ROM Hack [Request] Skyward Sword HD Save editor/Converter

soaresden

Well-Known Member
Member
Joined
Dec 16, 2013
Messages
333
Trophies
1
XP
2,106
Country
France
I Just completed it 100% + Hero mode 100 % in 60 hours
There is no point to not enjoy this aventure again. Just play it regularly

Also, the savefile "wiiking2" seems to be same file name of the wii version but size differs.
I tried to edit in hex, I can still see some values like PlayerName but that's it. Every tried editing on my side was a failure

GameOff = 0x20 - Offset of first file
GameOff + 0x0000 - Playtime
GameOff + 0x0004 - unknown;
GameOff + 0x0008 - Date Time (When the file was saved, ticks from 1-1-2001 12AM)
GameOff + 0x0010 - Player Origin (stored as 6 floats)
GameOff + 0x0028 - Camera Origin (stored as 6 floats)
GameOff + 0x08D3 - Location ID (Displays location name on the load screen)
GameOff + 0x08D4 - Hero's Name (stored as a Big Endian Unicode String)
GameOff + 0x08F1 - Z-Target Intro;
GameOff + 0x08F8 - Crate intro
GameOff + 0x0936 - Unknown set to 0x04 after talking to horwell for the first time and accepting the "mission";
GameOff + 0x09D2 - Interface type (0x00 = standard, 0x40 = Pro, Light = 0x20, OR it by 0x08 if Fi has told link about it. [The 0x08 doesn't really do anything substantial])
GameOff + 0x09E7 - Stamina fruit (and probably other things)
GameOff + 0x0A3C - Amber Relic
GameOff + 0x0A44 - Sky Stag beatle
GameOff + 0x0A46 - Gerudo DragonFly
GameOff + 0x0A5E - Rupees
GameOff + 0x1A66 - Dash Intro and Mia Rescued flag (0x08 = dash, 0x50 = mia rescued or them together to complete both);
GameOff + 0x1A69 - Skyloft Flags1 (0x00, 0x10, 0x30 and 0x70 are current known values)
GameOff + 0x1A8B - Unknown set to 0x02 after talking to horwell for the first time 0x10 after talking to jakamar, OR them together to get the final flag.
GameOff + 0x30F5 - Skyloft Flags2 (0x00 haven't entered the main area yet, 0x80 the cutscene played imediately after you leave the academy has been played, 0x82 or 0x84 Instructor horwell has been talked to about Mia, 0x86 player accepted the rescue mission)
GameOff + 0x30FB - Whether the rupee in links room was taken or not.
GameOff + 0x5302 - Total Hearts
GameOff + 0x5304 - Unk (Total heart pieces?)
GameOff + 0x5306 - Current Health
GameOff + 0x531C - Current Map
GameOff + 0x533C - Current Location (Skyloft, Lanayru Mines, etc.)
GameOff + 0x535C - Seems to be a Copy of of 0x531C
GameOff + 0x53AE - Equipped Weapon
GameOff + 0x53B0 - Deals with Minus button equipment not sure what it does exactly
GameOff + 0x53B1 - Same as above.
GameOff + 0x53BC - Checksum
 
  • Like
Reactions: SAIYAN48

WhoIAm

Well-Known Member
Newcomer
Joined
Mar 17, 2018
Messages
49
Trophies
0
Age
25
XP
2,238
Country
United States
I Just completed it 100% + Hero mode 100 % in 60 hours
There is no point to not enjoy this aventure again. Just play it regularly

Also, the savefile "wiiking2" seems to be same file name of the wii version but size differs.
I tried to edit in hex, I can still see some values like PlayerName but that's it. Every tried editing on my side was a failure

Any way you could share your 100% save? I just completed the game not too long ago on Wii, and I’d love to have that progress on the Switch version without going through the entire game again!
 

soaresden

Well-Known Member
Member
Joined
Dec 16, 2013
Messages
333
Trophies
1
XP
2,106
Country
France
Any way you could share your 100% save? I just completed the game not too long ago on Wii, and I’d love to have that progress on the Switch version without going through the entire game again!
Please?

This is insane, people that don't be polite and don't appreciate efforts we made for them...
 
  • Like
Reactions: Aheago

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,184
Trophies
2
XP
33,715
Country
Mexico
I Just completed it 100% + Hero mode 100 % in 60 hours
There is no point to not enjoy this aventure again. Just play it regularly

Also, the savefile "wiiking2" seems to be same file name of the wii version but size differs.
I tried to edit in hex, I can still see some values like PlayerName but that's it. Every tried editing on my side was a failure
Most likely the issue with Hex editing the save came from the checksum not being valid after editing it.
Possibly all that'd be needed would be to know what kind of checksum the save file uses for it, and then edit it properly after one has added all its changes.

To quote Antidote on his findings way back in 2012:
Antidote said:
I'm able to not only modify the save data, but i'm also able to get a "valid" file, each game has a CRC32 checksum tacked on at the end. Each "file" is 0x53c0 bytes in size.

Source:
http://zfgc.com/forum/index.php?topic=38795.0

PS: Btw I'm interested in being able to edit the save file. I just need to dump mine and screw around with it since I already completed the game.
Aside from editing the wiiking2.sav file, we might also need to modify the skip.dat file, since that one seems to handle some flags as well:
https://github.com/Antidote/skyward-sword-save-editor/blob/master/save editor/SkipData.txt

The save files could possibly be edited with the Wii Save Editor, as it seems both the skip.dat and wiiking2.sav files follow the exact same structure as the Wii ones, but I am not sure how to even get the Save Editor from the Wii version running. It asks for keys.bin from the Wii, hopefully adding those and trying to import the dat+sav file from the Switch version could give us a good result.
 
Last edited by ShadowOne333,
  • Like
Reactions: SAIYAN48

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,184
Trophies
2
XP
33,715
Country
Mexico
I managed to do some sort of hacky save editing with my save and @Lacius '.
So what I did was merging my first save file slot (Normal mode) with Lacius' 2nd save file slot (Hero Mode).
I did some tests, and while most failed, at the end I managed to make it work.

So here's how I pulled it off:
  • According to Antidote's notes, the save file structure from Skyward Sword HD is, for a major part of it, almost identical to that of the Wii's save data. There's still the header, which occupies the first 0x20 bytes of the wiiking2.sav file, and then you have 0x53C0 bytes for each save file.
  • With that info, 1st Save slot begins at 0x53E0 (which is the 0x20 bytes of the header + 0x53C0 of the first save) in the wiiking2.sav, 2nd save beings at 0xA7A0 and the 3rd save begins at 0xFB60.
  • Now here comes the tricky part...
    Copy-pasting any of the save files into another .sav file won't work, if you end up doing that, you end up with a corrupted file in whichever slot you copied into the .sav file.
    For the following things, which I assume are additional checksums of sorts, can't tell which ones yet (possibly MD5?), we need to go to 0x1D890 and 0x1D9B0.
  • The data at 0x1D890 I am not sure what it is. It's a pair of bytes, and the second one always seems to be 07 for me. Only the one exactly at 0x1D890 might need to be changed, but I am unsure if this one is required to be changed or not. I changed this one to the exact same value I had from the save file I was copying the data from. It was A0, and in my original save it was 22, so I left it as 22 (even though I don't know what this one does).
  • Last, we have what seems to be the additional checksums per-file.
    We have a set of 0x10 bytes of data at 0x1D9B0, which are duplicated at 0x1DA04. I copied the whole section from 0x1D9B0 up to 0x1DA20. This seems to be data related to corruption/checksum of the 1st save slot. 2nd slot and 3rd slot follow after those addresses in a very similar pattern, you can easily make them up in between all the 00s. Though, it's worth noting that we have 4 patterns in a similar manner, so one of those could be for the Autosave (unsure which one corresponds to 2nd, 3rd and Autosave, some trial and error might help, but I'm sure those are related to the slots checks).

  • Since I wanted my 1st save slot to be the one I played in Normal Mode with my name, I pasted the whole save data of the 1st save slot from mine from 0x20 - 0x53E0 to the other save, and then the extra checks from 0x1D9B0 - 0x1DA20 into the other file too. With that, I saved the wiiking2.sav changes in the Hex editor (HxD), and then imported the test save back with Edizon... And voala! I had my 1st slot Normal Mode save working, alongside the Hero mode save in the 2nd slot.
I have attached my modified save for those curious to check.
Hopefully this helps towards a creation of a proper save editor for Skyward Sword HD.
I know Antidote's save editor for the Wii version could be easily modified to take into account the new HD version stuff, it's just a matter of adding the proper code for this, and it should be feasible.
Sadly, that amount of advanced coding is out of my hands, so I'll leave that to a more experienced programmer, I feel my research here was quite fruitful for those wanted to dive into the save stuff properly.
 

Attachments

  • 01002DA013484000.zip
    217.7 KB · Views: 183

soaresden

Well-Known Member
Member
Joined
Dec 16, 2013
Messages
333
Trophies
1
XP
2,106
Country
France
Here my Checkpoint Savefile :

- Slot 1 - Norma Mode - 1st Run , save just before final boss (almost 100%, some god's cube missing)
- Slot 2 - Hero Mode - If you are going to Volcano, you will play the Stealthing part of the game (which I liked very much)
- Slot 3 - Hero Mode 100 % I Guess
 

Attachments

  • 20210726-014323 Soaresden.zip
    255.6 KB · Views: 166
Last edited by soaresden,
  • Like
Reactions: WhoIAm

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,184
Trophies
2
XP
33,715
Country
Mexico
@ShadowOne333 Do you think that the save file of the switch version would work on the wii version if the extra data is taken out and the files become the same size?
If you cut out some data from the Switch version, then possibly it could be made into a Wii save.
However, Wii to Switch would require knowing what the extra data near the end of the Switch file is, and how it correlates to the validity of each save file in it.
 
  • Like
Reactions: SAIYAN48

FRKN4O

Well-Known Member
Newcomer
Joined
Oct 13, 2017
Messages
85
Trophies
0
XP
1,066
Country
Netherlands
Here's my 100% save file for both normal mode and hard mode, if anybody wants it.

Thanks for the save. I went a little bit further on your Hero mode save. I have beaten all the bosses in the Thunder Dragons challenge. Did all the silent realm time trials under the needed times. Opened all the overworld and dungeon chests. Played all the minigames and set a score in them. Upgraded all the shields. And beat Demise to obtain the triforce on my save file.
 
  • Like
Reactions: Lacius

Lacius

Well-Known Member
Member
Joined
May 11, 2008
Messages
18,099
Trophies
3
XP
18,338
Country
United States
Thanks for the save. I went a little bit further on your Hero mode save. I have beaten all the bosses in the Thunder Dragons challenge. Did all the silent realm time trials under the needed times. Opened all the overworld and dungeon chests. Played all the minigames and set a score in them. Upgraded all the shields. And beat Demise to obtain the triforce on my save file.
I said 100%, and I meant it. :angry:
 
  • Like
Reactions: FRKN4O

Lacius

Well-Known Member
Member
Joined
May 11, 2008
Messages
18,099
Trophies
3
XP
18,338
Country
United States
You saved me some real time. I had a perfect hero mode save file in the Wii version. Feels good to have it in the Switch version. Cant thank you enough for your effort!
As long as you didn't beat my boss fight times with Lanayru, we good.
 
  • Like
Reactions: FRKN4O

FRKN4O

Well-Known Member
Newcomer
Joined
Oct 13, 2017
Messages
85
Trophies
0
XP
1,066
Country
Netherlands
As long as you didn't beat my boss fight times with Lanayru, we good.

You had amazing times my friend. I only have beaten 1 of your time trial I think. 3 bosses dit not have any score. Demise, IP2 and another which I forgot. The first thing I did was to battle the bosses after all those years. I could improve my own times, but some of your times looked impossible to beat.
 
  • Like
Reactions: Lacius

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: 10 tabs open on chrome and no slow downs suck it low ram ple bs lol