I keep getting server crashes and the following error:
2024-05-03 21:36:06: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'animalworld' in callback luaentity_GetStaticdata(): ...arthmann/minetest580/bin/../builtin/common/serialize.lua:33: unsupported type: userdata
2024-05-03 21:36:06: ERROR[Main]: stack traceback:
2024-05-03 21:36:06: ERROR[Main]: [C]: in function 'error'
2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:33: in function 'count_values'
2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:29: in function 'count_values'
2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:29: in function 'count_values'
2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:36: in function 'count_objects'
2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:69: in function 'serialize'
2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:195: in function <...arthmann/minetest580/bin/../builtin/common/serialize.lua:193>
I just started using this mod on my server recently too. It mostly runs pretty well for me, but I actually do get the exact same error if I stress test by spawning dozens of animals at once. I haven't yet had it come up from natural gameplay.
I'm running the latest release of the mod, and version 5.8.0 of Minetest. An example of the same error that I get is below:
2024-05-08 20:56:15: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'animalworld' in callback luaentity_GetStaticdata(): ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:33: unsupported type: userdata
2024-05-08 20:56:15: ERROR[Main]: stack traceback:
2024-05-08 20:56:15: ERROR[Main]: [C]: in function 'error'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:33: in function 'count_values'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:29: in function 'count_values'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:29: in function 'count_values'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:36: in function 'count_objects'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:69: in function 'serialize'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:195: in function 'func'
2024-05-08 20:56:15: ERROR[Main]: ...n/../share/minetest/builtin/profiler/instrumentation.lua:108: in function <...n/../share/minetest/builtin/profiler/instrumentation.lua:101>
All the logs prior to this event are literally just animals attacking each other. Not really seeing much else in debug.txt.
Thanks, that does help me track things down a little. I thought it was due to my mob_biome_mapper mod that made it spawn more elephants, hippos, and crocodiles, but it turns out that mob_biome_mapper mod only has 6000 chance and only adds elephants. Animal world has a 2000 chance for all these mobs which makes them 3 times more likely. I think it's a combination of mobs spawning more frequently on a server than in single player, and the fact that my server has more limited resources. I wish there was a way to use a parameter on the mod to incrase the chance parameter which decreases the chance that mobs will spawn. Not sure why server multi player makes so many more mobs spawn also. Maybe it multiplies the chance of spawning by the number of players online?
I keep getting server crashes and the following error: 2024-05-03 21:36:06: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'animalworld' in callback luaentity_GetStaticdata(): ...arthmann/minetest580/bin/../builtin/common/serialize.lua:33: unsupported type: userdata 2024-05-03 21:36:06: ERROR[Main]: stack traceback: 2024-05-03 21:36:06: ERROR[Main]: [C]: in function 'error' 2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:33: in function 'count_values' 2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:29: in function 'count_values' 2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:29: in function 'count_values' 2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:36: in function 'count_objects' 2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:69: in function 'serialize' 2024-05-03 21:36:06: ERROR[Main]: ...arthmann/minetest580/bin/../builtin/common/serialize.lua:195: in function <...arthmann/minetest580/bin/../builtin/common/serialize.lua:193>
I'm having the same problem.
I just started using this mod on my server recently too. It mostly runs pretty well for me, but I actually do get the exact same error if I stress test by spawning dozens of animals at once. I haven't yet had it come up from natural gameplay.
I'm running the latest release of the mod, and version 5.8.0 of Minetest. An example of the same error that I get is below:
All the logs prior to this event are literally just animals attacking each other. Not really seeing much else in debug.txt.
Thanks, that does help me track things down a little. I thought it was due to my mob_biome_mapper mod that made it spawn more elephants, hippos, and crocodiles, but it turns out that mob_biome_mapper mod only has 6000 chance and only adds elephants. Animal world has a 2000 chance for all these mobs which makes them 3 times more likely. I think it's a combination of mobs spawning more frequently on a server than in single player, and the fact that my server has more limited resources. I wish there was a way to use a parameter on the mod to incrase the chance parameter which decreases the chance that mobs will spawn. Not sure why server multi player makes so many more mobs spawn also. Maybe it multiplies the chance of spawning by the number of players online?