View Single Post
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