Thread Tools Display Modes
Prev Previous Post   Next Post Next
10/22/16, 09:17 AM   #1
Aetheron
 
Aetheron's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 32
Mysterious nil function error

Hi All,
Combat Reticle occasionally causes an error on load - usually when loading a character for the first time, but also sometimes after fast travel (I think). The error message says:

CombatReticle_Update:3: function expected instead of nil
stack traceback:
CombatReticle_Update:3: in function '(main chunk)'

So, there is no function 'CombatReticle_Update' in my code. Where does this string come from? I'm guessing it has to do with either event registrations in the init code, or perhaps the control binding xml (<TopLevelControl name="CombatReticle" movable="false"><OnUpdate>...). Any ideas?

I do register several (4) events in the initial load function - is it possible that the game engine is calling to some of these before the are all registered? (I don't think that would cause the problem since all vars that are referenced in the handlers are already initialized)

Any help would be appreciated.

-A
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Mysterious nil function error


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