ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   attempt to call a nil value error (https://www.esoui.com/forums/showthread.php?t=10501)

sinnereso 03/31/23 08:22 PM

attempt to call a nil value error
 
I'm getting a strange error after zoning after finishing a last feature for my addon.

Code:

Attempt to call a nil value
stack traceback:

Thats with more info enabled.. no other information. its difficult to track this. Any suggestions?

Baertram 03/31/23 08:28 PM

There is no other info? :confused: No line number and no file name?
Attempt to call a nil value means you try to call a function somewhere, maybe from your XML code, that does not exist at the time you call it.

Well, disable ALL addons and libraries.
Test if no error.
If so: Enable ONLY your addon and LibAddonMenu-2.0.

If the error happens again:

Check your last changed files and see what you have changed there.
Download and enable DebugLogViewer and LibDebugLogger. At the settings menu of LibDebugLogger enable the strack traceback and at the UI for DebugLogViewer to left dropdown: Change to "Current session" (which is only current /reloadui then).
Check if there are any error messages shown in DebugLogViewer, which you normally would not see as they happen before the chat is ready.

sinnereso 03/31/23 08:32 PM

Correct was nothing else BUT.. Think i found it.. it my On_Player_Activate function i was supposed to be unregistering the tevar stone update if the feature was disabled or not in campaign etc.. It was missing the "Un" in "Unregister". so was trying to register the event with no function listed... testing now but im 97% sure that was the cause and only mistake i can find.

**EDIT

that correction seems to have fixed it.. sorry to bother you.


All times are GMT -6. The time now is 12:04 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI