To accommodate bit and byte boundaries, the field order of the binary frame format have been changed as well.
The change is backward compatible. All replays should be able to handle .ngf files containing either v1 frames and v2 frames (although of course a .ngf file should NOT have multiple versions of frames therein).
The layout of a given game frame now looks like this:
Context
As player skills skyrocketed (See Cheez's 2.3M score), the built-in limits of Nestrischamps have been reached.
The limiters of Nestrischamps were its compact binary frame format. Specifically the limitations of the frame format were as follows:
To support such high level play, Nestrischamps must be able to transmit what it sees on screen.
Approach
This PR introduces a binary format version 2. The format consumes 2 more bytes per frame with the following changes:
FFE
)To accommodate bit and byte boundaries, the field order of the binary frame format have been changed as well.
The change is backward compatible. All replays should be able to handle
.ngf
files containing either v1 frames and v2 frames (although of course a.ngf
file should NOT have multiple versions of frames therein).The layout of a given game frame now looks like this: