4 ms·
Why does using a Lua-basef format stop the files being corrupted?
by dbaupp 13y ago
Why does using a Lua-basef format stop the files being corrupted?
- politician 13y agoMaybe he means that he doesn't have to deal with bugs in a custom binary serializer.
- Igglyboo 13y agoI don't think it does. I think he meant that if a save became corrupted it wouldn't do so silently, it would violently crash the game because of a syntax error.
- Zecc 13y agoIt doesn't. But it makes them much easier to fix. Edit: Igglyboo has a point too.
- mrcharles 13y agoIt can only become corrupted by external factors; a lot of games I've worked on, in-game bugs could lead to corrupted saves being written out to disk. Since in this case we are just serializing lua data, unless the serializer itself has a bug, it will always write out correctly, and any issues become issues of game logic rather than anything else.