Word Rescue Demo Format

From ModdingWiki
Jump to navigation Jump to search
Word Rescue Demo Format
Format typeMacro
Maximum lengthUnknown

The "player input" for the Word Rescue demos is stored in the WR?.D* files. Each level has its own demo file.

The demo files are can be up to 4000 bytes in size and each byte stores the player input for 1 game cycle/frame. The bits in each byte have the following meaning:

Bit Mask Description
7 0x80 unused
6 0x40 unused
5 0x20 end of demo marker
4 0x10 slime
3 0x08 left
2 0x04 right
1 0x02 climb down
0 0x01 jump / climb up

Math Rescue

Math Rescue uses the same basic format with some minor changes.

  • The file names are MR?.D*
  • The demo files are limited to a maximum size of only 3000 bytes.
  • The game does not allow each level to have its own demo file. The levels for which the game expects to find demo files are hard-coded.
  • Aside from the regular player input, Math Rescue also stores the "random" numbers for the math puzzles in the demo stream. There is no way to tell if a bytes is user input or a random number. The game detects this by context (when the player touches a number icon).


This file format was reverse engineered by K1n9_Duk3. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)