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.
|