Crash when using wrong function
complete
Sylas Starchild
When I use the code below (which uses integer instead of tonumber), I am logged out after a minute and the object's code and textures are reset. Expected behavior is to throw a type mismatch error or something.
function state_entry()
ll.Say(0, tostring(-1 - integer(string.sub(tostring(ll.GetKey()), -7, -1), 16)))
end
state_entry()
Log In
H
Harold Linden
complete
Should be fixed with the latest server update, thanks again!
H
Harold Linden
Thanks for the info here! Yep, we were forgetting to call
lua_settop()
in cases where we wanted to ignore extra arguments (which is idiomatic for Lua, I guess.) We're working on a fix for this.SuzannaLinn Resident
or with:
local i = integer(42, 12345) -- with any number as second parameter
- save
- modify to save again
- wait 20 seconds
- crash
it seems that the first saving gets something stuck and the second saving crashes the viewer