Dugy / Legend_of_the_Invincibles

An add-on campaign for the Battle for Wesnoth game
GNU General Public License v3.0
40 stars 22 forks source link

lua.lua:699: attempt to index a nil value (field '?') #109

Closed arobinson closed 5 years ago

arobinson commented 5 years ago

Error after killing Beelzebub with Krux:

20181027 12:02:53 error scripting/lua: ~add-ons/Legend_of_the_Invincibles/lua.lua:699: attempt to index a nil value (field '?') stack traceback: ~add-ons/Legend_of_the_Invincibles/lua.lua:699: in local 'cmd' lua/wml-utils.lua:145: in field 'handle_event_commands' lua/wml-flow.lua:6: in function <lua/wml-flow.lua:5> [C]: in field 'fire_event' lua/wml-tags.lua:153: in local 'cmd' lua/wml-utils.lua:145: in field 'handle_event_commands' lua/wml-flow.lua:6: in function <lua/wml-flow.lua:5> 20181027 12:02:53 error engine: Unit has too many (293) XP left; cascade leveling goes on still.

LotI2-The Desert-Auto-Save24.gz

Dugy commented 5 years ago

It's in a piece of new code, not yet uploaded to the server. I have seen this one before, but I could not find a way to replicate it. Thanks.

Dugy commented 5 years ago

I have seen this, but it always appeared randomly on campaign startup and I could not reliably replicate it. Thanks for providing a save file.

EDIT: Thanks, I could fix it with your help.