Slot Usage
This article describes some technical aspects of slots for custom track distribution maintainers.
Original Mario Kart Wii
The tracks of Mario Kart Wii are internally addressed by slot identifiers beginning with value 0. The game uses integers (at least 31 bit unsigned) to identify a track:
Slots Hex | Slots Dec | N | Nintendo Usage | CT-CODE |
---|---|---|---|---|
0x00–0x1f | 0–31 | 32 | Original racing tracks (T11–T84) | |
0x20–0x29 | 32–41 | 10 | Battle arenas (A11–T25) | 34 custom tracks |
0x2a–0x35 | 42–53 | 12 | not used | |
0x36 | 54 | 1 | Galaxy Stadium | |
0x37–0x3a | 58 | 4 | Special scenes like winningrun_demo | |
0x3b–0x41 | 59–65 | 7 | not used | |
0x42 | 66 | 1 | Maybe reserved. | |
0x43 | 67 | 1 | Online Protocol: No track selected yet | |
0x44–0xfe | 68–254 | 187 | not used | 187 custom tracks |
0xff | 255 | 1 | Online Protocol: Random selected | |
0x100–? | 256–? | ? | no online support |
There is a total of 206 (12+7+187) free slots.
CT-CODE
CT-CODE (or CT-Code; an abbreviation of Custom Track Code) is an extension of Mario Kart Wii. CT-CODE was developed by MrBean35000vr and Chadderz for their CTGP Revolution. The name CT-CODE was created by Wiimm, when he implemented CT-CODE support in his SZS Tools.
The main purpose is to allow more than 32 racing tracks in one distribution:
Slots Hex | Slots Dec | N | Usage | |
---|---|---|---|---|
0x00–0x1f | 0–31 | 32 | Original racing tracks (T11–T84) | |
0x20–0x41 | 32–65 | 34 | Custom tracks | |
0x42 | 66 | 1 | Maybe reserved. | |
0x43 | 67 | 1 | Online Protocol: No track selected yet | |
0x44–0xfe | 68–254 | 187 | Custom tracks | |
0xff | 255 | 1 | Online Protocol: Random selected | |
0x100–? | 256–? | ? | no online support |
CT-CODE uses the free slots and overrides arena and special slots to get space for 221 custom tracks in addition to the 32 original racing tracks.
Wiimms SZS Tools
Tool wctct of Wiimms SZS Tools uses slots 0x2a–0x35, 0x2b–0x41 and 0x44–0xfe by default to distribute the custom tracks over she slot system. Option --allow-slots=keywords can modify the default setting:
- TRACKS
- Enable 32 slots 0x00–0x1f for custom tracks and overwrite original custom track slots.
- ARENAS
- Enable 10 slots 0x20–0x29 for custom tracks and overwrite original battle arena slots.
- SPECIAL
- Enable 5 slots 0x36–0x3a for custom tracks and overwrite the special slots.
- CTCODE
- CTCODE is available since v2.00 of the tools and is an abbreviation for ARENAS,SPECIAL. It enables all custom track slots mentions above.
The keywords can be combined as comma-separated list. The most usual usage is: --allow-slots CTCODE since v2.00, or --allow-slots ARENAS,SPECIAL before v2.00.