Filesystem/Race/Common.szs/kartAISpdParam.bin

From Custom Mario Kart
Jump to navigation Jump to search

kartAISpdParam.bin is a sub file of /Race/Common.szs. It contains speed parameters used by the CPUs, depending on the engine class and their difficulty. AIParam.bas overrides this file in specific courses if it's present into the AIParam folder of that course's file.

File Format

The file consists of 416 entries, each one containing three single-precision floating point numbers.

kartAISpdParam.bin Sections
Offset Description
0x0 Grand Prix entries. 4 per track slot (only for the 32 racing tracks): 50cc, 100cc, 150cc and Mirror.
0x600 50cc VS Race entries. 3 per track slot: Easy, Normal and Hard CPU difficulty modes.
0xA80 100cc VS Race entries. 3 per track slot: Easy, Normal and Hard CPU difficulty modes.
0xF00 150cc and Mirror VS Race entries. 3 per track slot: Easy, Normal and Hard CPU difficulty modes.
0x1380 End of the file

Entry

Offset Type Description
0x00 Float Speed advantage. This value is added to the CPUs' base speed.
0x04 Float Speed bias. It seems to be some kind of speed multiplier. Bigger values mean slower.
0x08 Float Base speed. Minimum speed value for the CPUs while driving?

Tools

The following tools can handle kartAISpdParam.bin: