News for hackers. Stuff that matters.
Re:Linus Torvalds: “I'm happily hacking on a new save format... by dbaupp on Friday March 07, 2014 @10:44AM (#7360826)
Why does using a Lua-basef format stop the files being corrupted?
Re:Linus Torvalds: “I'm happily hacking on a new save format... by politician on Friday March 07, 2014 @11:57AM (#7361282)
Maybe he means that he doesn't have to deal with bugs in a custom binary serializer.
Re:Linus Torvalds: “I'm happily hacking on a new save format... by mrcharles on Friday March 07, 2014 @02:02PM (#7362031)
It 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.
Re:Linus Torvalds: “I'm happily hacking on a new save format... by Igglyboo on Friday March 07, 2014 @11:59AM (#7361299)
I 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.
Re:Linus Torvalds: “I'm happily hacking on a new save format... by Zecc on Friday March 07, 2014 @12:11PM (#7361375)
It doesn't. But it makes them much easier to fix.

Edit: Igglyboo has a point too.