Line (File Format)

From Wexos's Wiki
(Redirected from Line)
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 as well as checkpoints.

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. Maybe number of CPU paths?
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. The first path is always a checkpoint path, while the rest are CPU paths from left to right from the pole position.

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. The Y value seems to be used as the point's radius (?)

Tools

The following tools can handle Line files:

  • (none)