Repldump: Difference between revisions
From Stunts Wiki
Created page with "'''REPLDUMP''' is a tool that can generate a binary file with dynamic player information for each frame from a replay file. It is part of the Restunts project and was..." |
No edit summary |
||
| Line 1: | Line 1: | ||
'''REPLDUMP''' is a tool that can generate a binary file with dynamic player information for each frame from a [[replay file]]. It is part of the [[Restunts]] project and was built by shortcutting several parts of the code in Stunts to have it go straight to parsing a replay and dumping the status for each frame into the output. | '''REPLDUMP''' is a tool that can generate a binary file with dynamic player information for each frame from a [[replay file]]. It is part of the [[Restunts]] project and was built by shortcutting several parts of the code in Stunts to have it go straight to parsing a replay and dumping the status for each frame into the output. | ||
''REPLDUMP'' writes the number of frames as a word at the beginning of the output file and then, for each frame, it dumps the entire contents of the [[GAMESTATE]] block, which is 1120 bytes long. The information in this block is very valuable, as it includes the coordinates and orientation of the cars during the race as well as their speed, current gear and much more. | ''REPLDUMP'' writes the number of frames as a word at the beginning of the output file and then, for each frame, it dumps the entire contents of the [[GAMESTATE|Gamestate]] block, which is 1120 bytes long. The information in this block is very valuable, as it includes the coordinates and orientation of the cars during the race as well as their speed, current gear and much more. | ||
Revision as of 01:28, 1 March 2025
REPLDUMP is a tool that can generate a binary file with dynamic player information for each frame from a replay file. It is part of the Restunts project and was built by shortcutting several parts of the code in Stunts to have it go straight to parsing a replay and dumping the status for each frame into the output.
REPLDUMP writes the number of frames as a word at the beginning of the output file and then, for each frame, it dumps the entire contents of the Gamestate block, which is 1120 bytes long. The information in this block is very valuable, as it includes the coordinates and orientation of the cars during the race as well as their speed, current gear and much more.
