Common Types
From Retro Modding Wiki
Revision as of 06:17, 14 November 2016 by Aruki (Talk | contribs) (Created page with "Types that are commonly seen in Retro Studios file formats. '''Note:''' Avoid linking directly to this page from articles. There's a template defined for each of the types on...")
Types that are commonly seen in Retro Studios file formats.
Note: Avoid linking directly to this page from articles. There's a template defined for each of the types on this page; use that instead.
Contents
Asset ID
Asset IDs are used to uniquely identify assets. They are assigned in the PAK table of contents and are used by resources to reference each other. The size of an asset ID depends on which game you're looking at:
- 32-bit IDs are used in Metroid Prime and Metroid Prime 2: Echoes.
- 64-bit IDs are used in Metroid Prime 3: Corruption and Donkey Kong Country Returns.
- 128-bit IDs are used in Donkey Kong Country: Tropical Freeze. The reason for the seemingly-unnecessary length increase is because it internally uses a new GUID system that's used commonly in a lot of different places throughout the game.
Vector3f
A Vector3f is a vector made up of three floats. Commonly used to represent a point in 3D space or a direction.
Offset | Type | Name |
---|---|---|
0x0 | float | X Coordinate |
0x4 | float | Y Coordinate |
0x8 | float | Z Coordinate |
0xC | End of Vector3f |
AABox
An AABox is an axis-aligned bounding box formed by the minimum and maximum XYZ coordinates. Because the box is axis-aligned, all other vertices forming the box can be derived from the min/max.
Offset | Type | Name |
---|---|---|
0x0 | Vector3f | Minimum Coordinate |
0xC | Vector3f | Maximum Coordinate |
0x18 | End of AABox |