User:Wit/Questionable tables/DISTMAP.BIN

From Custom Mario Kart
Jump to navigation Jump to search

Because it couldn't just be simple.

No, it couldn't

DISTMAP
Offset Size Description
0x00 8 Who knows?! I certainly don't! What, is it always 00 03 02 00 00 00 00 00?
0x08 4 A uint32_t of some description.
0x0C 14 Always zero?
0x1A 2 Always 0x5A0 = 1440 (minutes per day)?
0x1C 2 Always 0x168 = 360 (degrees per circle)?
0x1E 2 Always 0x64 = 100 (100% = 1)?
0x20 4 Always zero?
0x24 1 What?!
0x25 1 1 if a competition is running.
0x26 1 Always 1?
0x27 1 One-based Wiimmfi competition number minus 37. What happened before #37?
0x28 4 Some identifier for the competition. Used to an annoying frequency in rksys.dat.
For Wiimmfi competitions (worth a note that those are all I have files for), this is the one-based competition number plus 156. Nintendo ran a total of 145 competitions during the game's run.
0x2C 4 × 3 Identical between my files. 0x4A35AB20, 0x4A442BA0, 0x4A4AC320.
0x38 4 × 20 Identical, all starting with 0x0D.
0x88 4 × 54 All zeroes.
0x160 2 × 2 × 5 × 2 One uint16_t, then the same again, then another, then the second again, up to five, then all 10 repeated again still.
0x188 0xD8 All zeroes.
0x260 2 × 64 The title to show in the leaderboards (UTF-16).
0x2E0 2 × 640 The names of each of the past ten competitions in reverse order, each preceded by a number, followed by the name & description of the current competition. Don't ask me how the game finds the latter.
Okay, you have the number "94" followed by a CR/LF, then a number, a space, the name of the past competition with competition number. Repeat CR/LF/number/name, nine more times, totalling ten. Now, you have CR/LF/CR/LF/LF, then the text to display on the competition info screen, which can include 0x1A escapes.
The "94" I struck out can be any number, or no number at all. If there's a number, it's not zero, and it's greater than the value at 0x28, it is deemed that a competition is not running; just as if the field at 0x25 were zero.
0x7E0 4 Offset to #List 1.
0x7E4 4 Size of #List 1.
0x7E8 8 Offset to & size of RKC.
0x7F0 4 Size of DISTMAP.BIN.
0x7F4 12 All zeroes.

List 1

aaaaaaaaaaaaaaaaaaaaaaaa!
Offset Size Description
0x00 4 × 3 uint32_ts. Save the last two entries, the first number seems to fall within the ASCII range.
0x0C 0x4A Mii data.
0x56 2 CRC-16 of the Mii data.
0x58 4 My disappointment is immeasurable.
0x5C 0x64 ???
0xC0 2 0x0004.
0xC2 2 0xFFFF.
0xC4 1 0xEE. My day is ruined.
0xC5 0x1B Filled with 0xEE.