RULE (File Format)

This file format was introduced in Metroid Prime 2 and has appeared in every Retro game since. The format is identical in Prime 2/3/DKCR, other than the shorter asset ID length in Prime 2. In Tropical Freeze, the extension was changed to RSTC and the header was changed, but otherwise the format is the same.

Possible version numbers:

Version 1
Header for RULE files in Metroid Prime 2, Metroid Prime 3, and Donkey Kong Country Returns:

Version 2
Header for RSTC files in Donkey Kong Country: Tropical Freeze:

Value Type Enum
Rule values are always 32 bits. These are the possible types: