You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runtime error from mod 'animalia' in callback luaentity_Step(): .../_minetest/.minetest/mods/animalia/api/behaviors.lua:530: bad argument #2 to 'random' (interval is empty)
#60
Open
Yonle opened this issue
Jul 29, 2023
· 3 comments
· May be fixed by #61
2023-07-29 22:07:06: ACTION[Main]: Server: Shutting down
2023-07-29 22:07:06: ACTION[Main]: IRC: Disconnected.
2023-07-29 22:07:06: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'animalia' in callback luaentity_Step(): .../_minetest/.minetest/mods/animalia/api/behaviors.lua:530: bad argument #2 to 'random' (interval is empty)
2023-07-29 22:07:06: ERROR[Main]: stack traceback:
2023-07-29 22:07:06: ERROR[Main]: [C]: in function 'random'
2023-07-29 22:07:06: ERROR[Main]: .../_minetest/.minetest/mods/animalia/api/behaviors.lua:530: in function 'action_wander_walk'
2023-07-29 22:07:06: ERROR[Main]: .../_minetest/.minetest/mods/animalia/api/behaviors.lua:891: in function 'func'
2023-07-29 22:07:06: ERROR[Main]: /home/_minetest/.minetest/mods/creatura/mob_meta.lua:1184: in function '_execute_utilities'
2023-07-29 22:07:06: ERROR[Main]: /home/_minetest/.minetest/mods/creatura/mob_meta.lua:937: in function </home/_minetest/.minetest/mods/creatura/mob_meta.lua:902>
It appears that LuaJIT tolerates the second argument to math.random() being lower than the first, but plain Lua does not. I'm not familiar enough with this mod to say for sure if "width" is positive here or not, but if it is, perhaps this is why it crashes for some users but not others.
Minetest v5.6.0 server.
The text was updated successfully, but these errors were encountered: