Z CPU Player Format

From ModdingWiki
Jump to navigation Jump to search

The CPU-player data of Z also contains the level territory records.

File format

The inspected files are 2217 bytes, copied to static address 0x17de88. The first 1920 bytes are 64 territory records of 30 bytes (0x1e). The remaining 297 bytes contain further setup state whose complete file schema is not established here.

The territory code uses the first block directly and modifies it during initialization. Runtime field +0x16 is cleared across all 64 territories. Four setup bytes at file offsets 0x8a0–0x8a3 (static 0x17e728–0x17e72b) are copied into player setup globals. These known uses do not establish names for every field.

Notes

Treat this as a partial layout. Multiplayer and several level-start branches remain unverified in the cited evidence.

Source code

From re-z, the open-source browser port:

Credits

This file format was reverse engineered by VorticonCmdr. 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!)