error in lua, not sure which script.

error in lua, not sure which script.

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
MetalSkin
Posts: 77
Joined: 31 Aug 2007, 02:42

error in lua, not sure which script.

Post by MetalSkin »

G'day all,

I have experienced this error a number of times now, but its very random. so far only happened while i spec, but then lately i've been specing more than playing so hard to say if that's the only time it will happen.

The errors can take the form of:
LuaUI: error = 2, IsAbove, [string "LuaUI/widgets.lua"]:714:attempt to call global '' (a nil value)
LuaUI: error = 2, IsAbove, [string "LuaUI/widgets.lua"]:1343: attempt to call method ' | |' (a nil value)

I've noticed that the status info down the bottom is gone, no Lua stuff works and if i select something then the panel is missing a whole heap of gfx. also it seems to fire whenever i mouse over something on the map. I presume it's occurring when its trying to show the status.

Attached is a file showing the problem:

Well a screen shot of the problem would be attached but i can't upload files right now :(
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

It's some weird memory problem or something. There have been a few threads about it. /luaui reload fixes it. Not sure if a real fix is in SVN yet or not.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

It's not, but the game automatically disables LuaUI after a few such errors.
User avatar
MR.D
Posts: 1527
Joined: 06 Aug 2005, 13:15

Post by MR.D »

That or crashes you.
Post Reply

Return to “Lua Scripts”