I have a strange bug however: in my server I get messages like these:
2018-10-29 21:30:34: WARNING[Server]: ServerEnv: Trying to store id = 0 statically but block (19,0,-5) already contains 2171 objects.
- the -5 sometimes is -4.
- When I teleport to that location, there's nothing visibly there.
- the 2171 keeps going up. I can't really put a finger on it, but I think it goes up each time I quit the server and restart it. During a run it stays constant (for a while at least)
if I use a debugger to see what the 2171 stored objects contain I get an endless list of this:
<snip>
{type = 7 '\a', pos = {X = 3180, Y = 90, Z = -672}, data = "\001\000\023advtrains:discouple\000\000\000\tDISCOUPLE\000\n", '\000' <repeats 15 times>}, {type = 7 '\a', pos = {X
= 3180, Y = 90, Z = -672}, data = "\001\000\023advtrains:discouple\000\000\000\tDISCOUPLE\000\n", '\000' <repeats 15 times>}, {type = 7 '\a', pos = {X = 3180, Y = 90, Z = -672}, data = "\001\000\023advtrai
ns:discouple\000\000\000\tDISCOUPLE\000\n", '\000' <repeats 15 times>}, {type = 7 '\a', pos = {X = 3180, Y = 90, Z = -672}, data = "\001\000\023advtrains:discouple\000\000\000\tDISCOUPLE\000\n", '\000' <re
peats 15 times>}, {type = 7 '\a', pos = {X = 3180, Y = 90, Z = -672}, data = "\001\000\023advtrains:discouple\000\000\000\tDISCOUPLE\000\n", '\000' <repeats 15 times>},
<snip>
Does anybody have any ideas how to debug? I'm not (yet) really fluent in lua, and especially not in the interaction between the minetest engine and lua in a debugging situation.
For now the server keeps running as if nothing's wrong, but I suspect it will become a problem eventually?
static_save=false wasn't set for discouples, triggering the ancient
engine entity duplication bug.
%close