Hacking We Have Success W/ DS Save Injection From Flash Cart

godreborn

Well-Known Member
Member
Joined
Oct 10, 2009
Messages
20,498
Trophies
1
XP
12,639
Country
United States
I've managed to successfully inject my flash cart's save into the wii u (new super mario bros). it's a little more difficult than n64 saves. I had to reduce the file size from 512KBs to 8KBs by trimming everything until 1FFF in hex (8,192 bytes or the same size as a psx save exactly). then, I injected just the save with saviine, not the save state or rest mode save or else it will load and replicate the save from before. it took me a moment to figure that out. anyway, saved settings for the game will be reset, which I think might be what the .conf file is for. however, it works. :D
 
Joined
Mar 17, 2010
Messages
21,222
Trophies
3
Location
Space
XP
10,020
Country
Norway
Save size will depend on the game. Most flashcarts just use a large size for every game so they don't need to keep a list of every game and their corresponding save size (SC DS One had such a list, which meant for newly released games, you would need to look up the save size online or through trial and error set it to the correct one for the game to save), since games will still work correctly with a larger size than needed but not a smaller one. The Wii U emulator appears to be a bit more intelligent than that, hence it expects the save size to be the correct one.
 

godreborn

Well-Known Member
Member
Joined
Oct 10, 2009
Messages
20,498
Trophies
1
XP
12,639
Country
United States
I suppose it's possible the saves may not be uniform, so you'd have to compare them. the save I got to work with an emulator is 1KB. 8,192 bytes is equal to one block, which is why it's the same as a psx save.
 

Eddypikachu

Well-Known Member
Member
Joined
Mar 25, 2015
Messages
904
Trophies
0
Age
31
XP
1,772
Country
United States
Huh, I didn't have to trim any saves for my spirit tracks save file whenever I imported my flashcard save to the spirit tracks game I had in loadiine :O it just worked by just renaming the save file for me
 

godreborn

Well-Known Member
Member
Joined
Oct 10, 2009
Messages
20,498
Trophies
1
XP
12,639
Country
United States
you may not have to trim (not sure), but I did. the section you're trimming is padded, so it doesn't matter much. the beginning of the save looked exactly the same, so it's a header, followed by save, then padding to equal a block.
 

godreborn

Well-Known Member
Member
Joined
Oct 10, 2009
Messages
20,498
Trophies
1
XP
12,639
Country
United States
alright, I just tested it. the conf file can remain as it be your saved settings. the file must be trimmed though. without trimming, I got no save data read (new game in all slots). just put hex length at 2000 when you search for block from one.
 

godreborn

Well-Known Member
Member
Joined
Oct 10, 2009
Messages
20,498
Trophies
1
XP
12,639
Country
United States
it might depend on the flash cart being used if it worked for loadiine. I'm using the supercard dstwo, so the save was 512KBs. it's not completely padded down below. it has some sort of footer that doesn't exist on the wii u.
 

godreborn

Well-Known Member
Member
Joined
Oct 10, 2009
Messages
20,498
Trophies
1
XP
12,639
Country
United States
I played around with save including making a new save to play the first world again. no issues, so I think it's good. also, no issues on the ds doing the reverse. I don't know what would happen with a trimmed save though. I just injected the 8,192 bytes or hex length of 2,000 into the 512KB save and it worked.
 

Eddypikachu

Well-Known Member
Member
Joined
Mar 25, 2015
Messages
904
Trophies
0
Age
31
XP
1,772
Country
United States
how big is the save? the save on the wii u is 8KB (8,192 bytes to be exact) while my supercard's is 512KBs.
The spirit tracks save on my flashcard is 1,024KB and the spirit tracks save on my wii u (from loadiine) is also 1,024! :O They're the same size that's why I didn't need to trim anything when transferring over save files from one to the other, acecard 2i doesn't create all that padding in the save file I guess
 

godreborn

Well-Known Member
Member
Joined
Oct 10, 2009
Messages
20,498
Trophies
1
XP
12,639
Country
United States
it's possible not all saves are the same size. I only tested new super mario bros. however, the save injection method probably works for every game.
 
  • Like
Reactions: Stealphie
General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://youtu.be/m7a_AYYthbs