Loading...
  OR  Zero-K Name:    Password:   

Post edit history

.sdfz Game Replay File Format

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
8/27/2016 12:37:45 AMGBrankTheEloIsALie before revert after revert
8/27/2016 12:37:10 AMGBrankTheEloIsALie before revert after revert
8/27/2016 12:36:43 AMGBrankTheEloIsALie before revert after revert
Before After
1 It's actually more of a recording of the net packets that were sent. 1 It's actually more of a recording of the net packets that were sent.
2 \n 2 \n
3 You can poke around the code in and around [url=https://github.com/spring/spring/tree/develop/rts/System/LoadSave]here[/url]. Especially DemoReader.cpp should give you an idea (it reads a netcode::RawPacket when requested, which is simply stored/zipped as the memory block that would be in the program). To read those packets, you need to know how the [url=https://github.com/spring/spring/tree/develop/rts/System/LoadSave/demofile.h]chunk headers[/url] look (because they tell you how much data to read). 3 You can poke around the code in and around [url=https://github.com/spring/spring/tree/develop/rts/System/LoadSave]here[/url]. Especially DemoReader.cpp should give you an idea (it reads a netcode::RawPacket when requested, which is simply stored/zipped as the memory block that would be in the program). To read those packets, you need to know how the [url=https://github.com/spring/spring/tree/develop/rts/System/LoadSave/demofile.h]chunk headers[/url] look (because they tell you how much data to read).
4 \n 4 \n
5 Once you figured out how to read the data in meaningful chunks, you'll have to look into how a RawPacket is decoded/interpreted in the engine to make sense of that data. 5 Once you figured out how to read the data in meaningful chunks, you'll have to look into how a RawPacket is decoded/interpreted in the engine to make sense of that data.
6 \n
7 TL;DR: There is no line separator. It's binary data.