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
i noted after many debug in my issues, now check that there's a temporally DB that stored dinamyc spawns..
it's the reading of info serialized right? well it seems there's a limit in serialization still not happpened in this mod of course... BUT IT WILL CRASH MY SERVER! i mean:
this file it has only one line when i opened.. and as i know there's a limit over that line for files..
also the way of reading the data is problematic due serialization limits of one line generate future errors
Taking in consideration that on each join of a player will read and wirte data in this file.. as urgent requirement for big amount of users:
in first time for now. we can use core.safe_file_write function event the direct file:write (will raise the compatibility from 0.4.16 to 0.4.17, but i can made a falback if there's the case)
usage oif line by line OR porting to json format, cos it seems the dynamicspawn.lua.ser uses direct lua arrays
Noted the usage of pairs in the reading of town and pregens, then:
For the second one is more difficult porting to use line by line (as in the names_per_ip) cos it seems the dynamicspawn.lua.ser uses direct lua arrays, that implicts a more complex coding..
But as i see here: , we need to made migration like minetest-mods/areas@a9c05f0 i asked and may i send pull to solve this!
The text was updated successfully, but these errors were encountered:
mckaygerhard
changed the title
serialization error may happened in future due storage of dynamicspawn.lua.ser
serialization error happened for big servers
Nov 8, 2021
i noted after many debug in my issues, now check that there's a temporally DB that stored dinamyc spawns..
it's the reading of info serialized right? well it seems there's a limit in serialization still not happpened in this mod of course... BUT IT WILL CRASH MY SERVER! i mean:
Taking in consideration that on each join of a player will read and wirte data in this file.. as urgent requirement for big amount of users:
core.safe_file_write
function event the directfile:write
(will raise the compatibility from 0.4.16 to 0.4.17, but i can made a falback if there's the case)dynamicspawn.lua.ser
uses direct lua arraysNoted the usage of
pairs
in the reading of town and pregens, then:dynamicspawn.lua.ser
uses direct lua arrays, that implicts a more complex coding..The text was updated successfully, but these errors were encountered: