Difference between revisions of "Slot Usage"

From Custom Mario Kart
Jump to navigation Jump to search
Line 9: Line 9:
  
 
{| class="textbox grid"
 
{| class="textbox grid"
|+ Slot usage of MKWii
+
|+ Track slot usage of ''Mario Kart Wii''
 
|-
 
|-
 
! N
 
! N
Line 38: Line 38:
 
|-
 
|-
 
| align=center | 187 || 0x44–0xfe || align=center | 68–254 || {{unknown|''not used''}}
 
| align=center | 187 || 0x44–0xfe || align=center | 68–254 || {{unknown|''not used''}}
| {{yes|187 Custom tracks}}
+
| {{yes|187 custom tracks}}
 
|-
 
|-
 
| align=center |  1 || align=center | 0xff || align=center | 255
 
| align=center |  1 || align=center | 0xff || align=center | 255
Line 47: Line 47:
 
|}
 
|}
  
There is a total of 206 (12+7+187) free slots.
+
There is a total of 206 (12+7+187) free slots. [[CT-CODE]] uses the free slots and overrides arena and special slots to get space for 221 custom tracks (see [[#CT-CODE|next section]] for details).
  
 
== CT-CODE ==
 
== CT-CODE ==

Revision as of 09:29, 20 February 2019

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 15 bit unsigned) to identify a track:

Track slot usage of Mario Kart Wii
N Slots Hex Slots Dec Nintendo Usage CT-CODE
32 0x00–0x1f 0–31 Racing tracks (T11–T84) Orignal racing tracks
10 0x20–0x19 32–41 Battle arenas (A11–T25) 34 custom tracks
12 0x2a–0x35 42–53 not used
1 0x36 54 Galaxy Stadium
4 0x37–0x3a 55–58 Special scenes like winning run demo
7 0x3b–0x41 59–65 not used
1 0x42 66 Maybe reserved.
1 0x43 67 Online Protocol: No track selected yet
187 0x44–0xfe 68–254 not used 187 custom tracks
1 0xff 255 Online Protocol: Random selected
? 0x100– 256– no online support

There is a total of 206 (12+7+187) free slots. CT-CODE uses the free slots and overrides arena and special slots to get space for 221 custom tracks (see next section for details).

CT-CODE

???

Slot Usage of CT-CODE
N Slots Hex Slots Dec Usage
32 0x00–0x1f 0–31 Original racing tracks (T11–T84)
34 0x20–0x41 32–65 Custom tracks
1 0x42 66 Maybe reserved.
1 0x43 67 Online Protocol: No track selected yet
187 0x44–0xfe 68–254 Custom tracks
1 0xff 255 Online Protocol: Random selected
? 0x100– 256– no online support

With this layout CT-CODE supports up to 221 slots for custom tracks plus 32 original racing tracks.

Wiimms SZS Tools

???