ABC (File Format)
From Wexos's Wiki
(Redirected from ABC)
ABC is a file format found in Mario Kart Arcade GP DX. It defines culling areas used in tracks.
File Format
The file byte order is always little endian.
File Header
The file starts with a header that is 0x10 bytes long.
| Offset | Type | Description |
|---|---|---|
| 0x00 | Char[4] | File magic. Always ABCT in ASCII. |
| 0x04 | Int32 | Always 1. Maybe version? The game checks if this value is 1, otherwise it won't read the file. |
| 0x08 | Int32 | Number of Culling Areas (N). |
| 0x0C | Byte[4] | Padding. |
| 0x10 | End of header, start of Culling Areas | |
Culling Areas
After the header, there are N 0x40-byte culling areas. Each area corresponds to each section of the track's VMD file, and it is made of a single 4x4 matrix that is used to transform the current position of the camera's target. The game checks once per frame if the transformed position of each area lies within a -0.5f to 0.5f AABB cube to determine the culling status.
| Offset | Type | Description |
|---|---|---|
| 0x00 | Float[16] | 4x4 matrix. |
Tools
The following tools can handle ABC files:
- (none)