My bad. When people have problems like this, you almost always discover a whole slew of deeper rooted problems once you start shoveling through all of it. Call it PTSD if you will. It seemed obvious to me that if you have sync problems, it's because your gamestate data wasn't shared over the net correctly, not because your custom mod save file failed to generate properly. Maybe you could elaborate on exactly how a corrupted save (which I assume is common for all players) causes synchronization issues.
I don't believe the example is a valid behavior for a serializer. It would first create a table and only then fill it up, at which point it already has this very table created so it can insert it as a self-reference. Surely it's meant to be a circular reference example, or more generally an example where the referenced table isn't yet created. But I would also argue that it should create a blank table immediately and fill it up eventually. Or, the same data serializer could be used as the one for networking - on assumption that it serializes everything and doesn't leaves out custom script data. I will still berate you for using a serializer that just has bare "loadstring" on its deserialization function, stuff like that is just not acceptable. The array length operator instability is generally a noob trap, I don't use it unless it's something not performance critical and dead simple (not to mention in LuaJIT doing your own book keeping on array length is a lot faster).
When rookie makes a rookie mistake it's par for the course, it would be odd if they didn't. When a professional makes a rookie mistake - not so much. You see my point?
"Everyone who has (strong) criticisms is a troll" is a convenient position to have, because you can deflect any and all criticism and still feel good about yourself. Well, the "it just needs to function" also means that no amount of questionable programming can ever prevent your game from being a success - Notch will vouch for that. So you can just keep doing what you're doing no matter what, I'd wish you luck but clearly you don't need it as you're making mad profits as it is.Rseding91 wrote: ↑Sun Mar 29, 2020 2:44 pmI don't see how feeding the trolls is helpful here. If someone wants to actually be helpful they would be helpful. The internet is full of "internet programmers" who like to act like they are smarter than everyone else and yet they aren't the ones who are making Factorio: we (Wube) are.