Difference between revisions of "BAS (File Format)"

From Custom Mario Kart
Jump to navigation Jump to search
(According to the parse function, BAS files mostly override the data set by kartAiSpdParam)
Line 8: Line 8:
 
! Offset !! Type !! Description
 
! Offset !! Type !! Description
 
|-
 
|-
| 0x00 || Float || '''Speed parameter'''. Higher values make faster CPUs, but after a limit, <br/> the speed won't change anymore and it will use the maximum allowed. <br/>Negative values make the CPUs stop when they reach their maximum speed.
+
| 0x00 || Float || '''Speed advantage'''. This value is added to the CPUs' base speed.
 
|-
 
|-
| 0x04 || Float || {{Unknown-left|'''Unknown'''.}}
+
| 0x04 || Float || '''Speed bias'''. It seems to be some kind of speed multiplier. Bigger values mean slower.
 
|-
 
|-
| 0x08 || Float || {{Unknown-left|'''Unknown'''.}}
+
| 0x08 || Float || '''Base speed'''. Minimum speed value for the CPUs while driving?
 
|-
 
|-
 
| 0x0C || Float || {{Unknown-left|'''Unknown'''.}}
 
| 0x0C || Float || {{Unknown-left|'''Unknown'''.}}
 
|-
 
|-
| 0x10 || Float || {{Unknown-left|'''Unknown'''.}}
+
| 0x10 || Float || CPU difficulty override. Accepted values (in float format): 0 (Easy), 1 (Normal), 2 (Hard).
 
|}
 
|}
  

Revision as of 14:35, 12 August 2021

Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.

BAS (Binary AI Speed) is a filetype found into competitions, specifically found as AIParam.bas; it changes the speed parameters for the Mario Kart Wii's in race CPUs. AIParam can be added into any track to make more challenging gameplay in offline versus races. When this file is not present, the parameters are controlled instead by kartAISpdParam.bin, found into Common.szs.

File Format

BAS files are only 20 bytes long, containing 5 floats:

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?
0x0C Float Unknown.
0x10 Float CPU difficulty override. Accepted values (in float format): 0 (Easy), 1 (Normal), 2 (Hard).

Trivia

The first ever Nintendo competition contained a BAS file that was 16 bytes long, missing the last float.

Tools

The following tools can handle BAS files: