View Single Post
01/26/16, 12:53 PM   #6
step1step2
Join Date: Nov 2014
Posts: 5
Originally Posted by votan View Post
Hi and welcome

Watch out the version number in the right corner. If there is no version number (currently 2.2.4) it is "out-dated". It may still works, but it's likely not a good example to start with.

Try http://www.esoui.com/downloads/info934-HelloWorld.html

And yes, keeping tutorials up-to-date is work, too

Later on, you may check the "Developer Utilities" category: http://www.esoui.com/downloads/cat35.html
Thank you very much. It helps.

Originally Posted by sirinsidiator View Post
Welcome!

If you do not see any output or errors at all, it might be an issue with your meta file which prevents your addon from getting loaded.
Check if the addon is in the list of loaded addons ingame and if it is, put only error("test") in your file to see if the file is even loaded.

Also don't worry about asking many questions on the forums. That's what they are here for.
Haven't used Slack until now and don't think we have a Slack channel, but maybe someone could create one as an alternative to the more or less failed plan of making an ingame guild for exactly the same purpose?
https://gist.github.com/anonymous/32...aneuver-lua-L4
Didn't do anything. Is there something like a debug console I need to enable?
The addon seems to be loaded:



Originally Posted by haggen View Post
Your code has holes all over it. :P

Also d() doesn't work at startup because (I think) the chat isn't available at that point (d() prints at the chat window).

Are you sure you're putting the add-ons in the correct folder? I don't mean to be rude I'm just checking.

I'd suggest you start with something even smaller, like a slash command that prints a message and then go from there in small steps. When you get the hang of it you'll naturally increase the size of each step.

This, for instance:

Code:
local function OnAddOnLoaded()
    SLASH_COMMANDS["/myaddon"] = function()
        d("Hey oh!")
    end
end

EVENT_MANAGER:RegisterForEvent("MyAddOn", EVENT_ADD_ON_LOADED, OnAddOnLoaded)
Put it in a file called MyAddOn.lua with another file called MyAddOn.txt with this content:

Code:
# APIVersion: 100013
# Title: MyAddOn

MyAddOn.lua
Both files go in a folder called MyAddOn, and that folder you put in MyDocuments\Elder Scrolls Online\live\AddOns\.

If you're in European server change "live" to "liveeu".

Log in the game and see what happens when you type /myaddon.
Your code didn't work. I have tried to use brackets of the Hello World template tho. Unfortunately it didn't help either.
https://gist.github.com/anonymous/323b5dc4352df3cfb43e
  Reply With Quote