Pages: 1
Posted on 01-28-17, 11:08 pm (rev. 8 by shibboleet on 02-02-17, 06:34 pm)
Mole
Normal user

Karma: 2013
Posts: 232/359
Since: 07-08-12
Located at address 0x02088BDC in the game's memory (only when you're playing the story. Minigames overwrite this when playing minigames) lies the save file. It is 0x24C bytes long and contains a variety of information. The structure is defined below.







ValuePurpose
0x00-0x04"7000" in ASCII. (7001 in NewerDS)
0x04-0x08Most likely a flag that is set to 1 when the save has been initialized.
0x08-0x0CField responsible for calculating the user's profile stars.
0x0C-0x10Number of lives.
0x10-0x14Number of coins.
0x14-0x18Unknown.
0x18-0x1CNumber of star coins.
0x1C-0x20Number of spent star coins.
0x20-0x24Current world. Setting byte 2 of this field will play the warp animation.
0x24-0x28Unknown.
0x28-0x2CCurrent world map node.
0x2C-0x30Unknown.
0x30-0x34Current powerup the player has.
0x34-0x38Score.
0x38-0x3CCurrent background the bottom screen uses.
0x3C-0x40Current world possible duplicate. This value changes when 0x20 changes, and cannot be edited because 0x20 automatically sets it back to the previous value.
0x40-0x44Unknown.
0x44-0x48Unknown.
0x48-0x4CUnknown.
0x4C-0x50Unknown.
0x50-0x54Unknown.
0x54-0x58Unknown.
0x58-0x5CUnknown.
0x5C-0x60Current item in inventory.
0x60-0x70WorldUnlocks[8]
0x70-0x137StarCoins[200]
0x137-0x24CLevels[240]

Level Flags



FlagPurpose
0x00Not unlocked.
0xA0Used only by signboards. This value will be there while the animation for the sign disappearing is playing. Once it finishes, it will change to 0xC0.
0xC0Complete.

Star Coin Flags


Below is a table of how the StarCoins[] get marked.

FlagPurpose
0xD0No star coins.
0xD1Star Coin 1 Only
0xD2Star Coin 2 Only
0xD3Star Coin 1 and 2
0xD4Star Coin 3 Only
0xD5Star Coin 1 and 3
0xD6Star Coin 2 and 3
0xD7All 3 star coins.

World Map Flags



FlagPurpose
0x00Not unlocked.
0x3EWorld was not completed, user "finished" world by shooting out of a cannon.
0x43World was accessed by cannon.
0xFFWorld is completed. (The world itself is unlocked if the value is >= 0x40)
Posted on 01-29-17, 01:29 pm
Birdo


Karma: 2754
Posts: 1959/2091
Since: 06-26-11
Is this the same as the actual save file?
Posted on 01-29-17, 01:57 pm


Karma: 19757
Posts: 907/1100
Since: 04-02-13
The actual save file has three of those, a header, minigame saves and save backups
Posted on 02-02-17, 04:15 pm (rev. 1 by shibboleet on 02-02-17, 04:15 pm)
Mole
Normal user

Karma: 2013
Posts: 239/359
Since: 07-08-12
What's odd is that the entries for star coins per-level are not...right. It seems that toad houses and cannons are marked as 0xD7 (all 3 star coins)
Pages: 1