Line (File Format)

From Wexos's Wiki
Revision as of 17:40, 1 May 2024 by Wexos (talk | contribs) (Imported from avsys wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Line BIN files from Mario Kart Arcade GP and Mario Kart Arcade GP 2 control route data used by CPUs.

File Format

The file byte order is always big endian. It starts being read with a 12 byte footer.

File Footer

Offset Type Description
0x00 Int32 Unknown. Always 6.
0x04 Int32 Unknown. Always 6.
0x08 Int32 N number of paths. Always 7.
0x0C End of footer

Path Offsets

At the start of the file there are N path offsets, relative to the start of the file. The data afterwards is aligned to 0x10.

Offset Type Description
0x00 Int32[N] Offsets to Path Data sections.

Path Data

Each path has a footer that determines the number of points.

Path Footer

Offset Type Description
0x00 Int32 Negative number of points of the path. To obtain the actual number of routes, multiply by -1.
0x04 Byte[12] Padding.

Point Data

Each route point has its own 0x10 byte long entry.

Offset Type Description
0x00 Int32 Unknown. Always 1.
0x04 Float[3] Point position.

Tools

The following tools can handle Line files:

  • (none)