Changes

1,766 bytes added ,  15:25, 16 March 2022
Created page with "'''cdt''' are files that are used in Super Mario Maker for level data. cdt could stand for '''C'''ourse '''D'''a'''t'''a. ==File Format== The byte order is in big endian. {|..."
'''cdt''' are files that are used in Super Mario Maker for level data. cdt could stand for '''C'''ourse '''D'''a'''t'''a.

==File Format==
The byte order is in big endian.
{| class="wikitable" border="1"
! Offset !! Size !! Type !! Description
|-
| 0x00 || 4 || uint64 || Assumed to be a version number. Always 0xB (11).
|-
| 0x08 || 4 || uint32 || Checksum. Standard CRC32 of the entire file from offset 0x10 onwards.
|-
| 0x0C || 4 || uint8[4] || Padding
|-
| 0x10 || 2 || uint16 || Creation Year
|-
| 0x12 || 1 || uint8 || Creation Month
|-
| 0x13 || 1 || uint8 || Creation Day
|-
| 0x14 || 1 || uint8 || Creation Hour
|-
| 0x15 || 1 || uint8 || Creation Minute
|-
| 0x16 || 1 || uint8 || Unknown
|-
| 0x17 || 1 || uint8 || Unknown
|-
| 0x18 || 8 || uint64 || Data Id that this level got when it was uploaded
|-
| 0x20 || 1 || uint8 || Unknown
|-
| 0x21 || 7 || uint8[7] || Padding
|-
| 0x28 || 42 || uint16[33] || UTF-16 Course Name
|-
| 0x6A || 2 || char[2] || Game mode ('M1', 'M3', 'MW', 'WU')
|-
| 0x6C || 1 || uint8 || Unknown
|-
| 0x6D || 1 || uint8 || Course theme (0 = overworld, 1 = underground, 2 = castle, 3 = airship, 4 = water, 5 = ghost house)
|-
| 0x6E || 1 || uint8 || Unknown
|-
| 0x6F || 1 || uint8 || Unknown
|-
| 0x70 || 2 || uint16 || Time Limit
|-
| 0x72 || 1 || uint8 || Autoscroll (0 = none, 1 = slow, 2 = medium, 3 = fast)
|-
| 0x73 || 1 || uint8 || Unknown
|-
| 0x74 || 4 || uint32 || Unknown
|-
| 0x78 || 96 || uint8[96] || Unknown
|-
| 0xD8 || 4 || uint32 || Unknown
|-
| 0xDC || 4 || uint32 || Unknown
|-
| 0xE0 || 12 || uint8[12] || Padding
|-
| 0xEC || 4 || uint32 || Object Count
|-
| 0xF0 || 83200 || objects[2600] || Objects
|-
| 0x145F0 || 2400 || effects[300] || Sound Effects
|-
| 0x14F50 || 176 || uint[176] || Padding
|}
12

edits