Thread Tools Display Modes
02/14/15, 10:08 PM   #1
Wulfrun
Join Date: Feb 2015
Posts: 9
Examples Inoperative?

Before I spend many more hours can anyone tell me if I should expect these wiki tutorials to work with the current game?

Writing your first addon - no errors but no indication of combat when I attack something or get attacked.
MyFirstAddon tutorial by Zenimax Online - UI Erorr: function expected instead of nil in function '(main:chunk)'
Click Counter LUA Tutorial - counter never appears and slash commands don't do anything

These all show up in the addons list in game and can be enabled and disabled but are otherwise inoperative.
This makes me wonder if there is some basic and simple setting I don't have enabled.
I use Notepad++ and wonder if there are some invis chars messing things up.
ThankYou.
  Reply With Quote
02/14/15, 10:41 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
All examples works, I guess you made some simple mistake - like wrong file name, not all files are created correctly, some missing lines etc.

Can you please post exact folder/file structure of addon you are testing and content of all files?

Something like:
+FooAddon\
|--FooAddon.txt
|--FooAddon.lua

FooAddon.txt
Code:
## Title: Foo Addon
## APIVersion: 100010

FooAddon.lua
FooAddon.lua
Lua Code:
  1. local function OnPlayerCombatState(event, inCombat)
  2.     d((inCombat and "Entering" or "Exiting") .. " combat")
  3. end
  4.  
  5. EVENT_MANAGER:RegisterForEvent("FooAddon_CombatState", EVENT_PLAYER_COMBAT_STATE, OnPlayerCombatState)
  Reply With Quote
02/15/15, 07:04 AM   #3
Wulfrun
Join Date: Feb 2015
Posts: 9
Thank you Garkin,
With that I took off my glasses and pressed my nose up to the screen. Then read out loud the file names.
OMG, I had used FooAddon.lau; Yikes it's lua! But I sure was consistent.
I guess I need to study a little Portuguese or Lua history
Yes, FooAddon works for me.
Am-bare-ast
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Examples Inoperative?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off