ROM Hack How to import .sav files from nintendo DS to emulator?

gatoula

Well-Known Member
OP
Newcomer
Joined
Jul 21, 2016
Messages
99
Trophies
0
Age
44
XP
537
Country
Greece
How to import .sav files from nintendo DS console to emulator?
I have tried desmume 0.9.6. but it gives me error when i try to import.
 
Last edited by gatoula,

Shadow#1

Wii, 3DS Softmod & Dumpster Diving Expert
Member
Joined
Nov 21, 2005
Messages
12,354
Trophies
2
XP
8,032
Country
United States
How to import .sav files from nintendo DS console to emulator?
I have tried desmume 0.9.6. but it gives me error when i try to import.
Most DS Emulator s dont use raw saves u will have to convert them and Idk how
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,190
Country
United States
I figured it out with new super mario bros. let me download that game.

--------------------- MERGED ---------------------------

what region is the game?
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,405
Country
United Kingdom
Step 1 is dump the saves.
If using a flash cart it should be a matter of grab SD card (or plug in cable if it is one of those ones), copy and paste.
If using an original cart then there are loads of homebrew programs to dump saves. Stuff for the original DS will tend to revolve around either the GBA slot (either running from or copying to), wifi or the like and involve swapping out the DS cart if it is not being dumped from a GBA slot flash cart (unlikely in this day and age).
The DSi and 3ds on the other hand should have options to dump from them if they are hacked and can run homebrew.
There are also hardware devices that will dump saves in various manners.

Flash carts, and also some of the dumping tools, will use other formats that are not raw saves.
Most of the time this involves sticking a bit of info on the end of the save to identify the game (DS games were responsible for their own save formats which meant most games did not include any easily identifiable info, newer consoles will tell them to put their save data in this format which usually includes a name of the game), trimming them (most DS games do not indicate the size of save so most dumpers/flash carts then went for the maximum*) or compressing them.
To that end we have conversion tools
http://shunyweb.info/convert.php

*the actual maximum is considerable and seen in that warioware DIY game and some music games (daigasso I believe was one) where you download extra songs or store your own creations. For most practical purposes though then 512K was it, something of a problem when 2 gig microSD cards were a considerable expense and many were still using 512 meg or 1 gig hence the compression.

Emulators may also have limited abilities to accept other save formats (their own tending to vary, even more so if you go fiddling with options). Emulators will tend to be more raw formats than others but there are exceptions. Anyway said other format options might well be in the file menu somewhere to import a save, as opposed to simply naming it the same as the ROM and putting it in the save folder.
Also be sure you are using the same ROM -- while I would expect most Euro and NA ROMs to play together, indeed it is far from unusual for Japanese and Euro/NA stuff to play nicely, there can be differences, and likewise there may be differences for v1.1 or those games that got a later version with wifi support.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,190
Country
United States
try this

--------------------- MERGED ---------------------------

I converted it via hex editing. it works.
 

Attachments

  • LEGO Harry Potter Y1.zip
    491 bytes · Views: 254

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,190
Country
United States
the save is padded, so you delete the padding up to 0x1ec and add this to the end: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 7C 3C 2D 2D 53 6E 69 70 20 61 62 6F 76 65 20 68 65 72 65 20 74 6F 20 63 72 65 61 74 65 20 61 20 72 61 77 20 73 61 76 20 62 79 20 65 78 63 6C 75 64 69 6E 67 20 74 68 69 73 20 44 65 53 6D 75 4D 45 20 73 61 76 65 64 61 74 61 20 66 6F 6F 74 65 72 3A EC 01 00 00 00 02 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 7C 2D 44 45 53 4D 55 4D 45 20 53 41 56 45 2D 7C
 

gatoula

Well-Known Member
OP
Newcomer
Joined
Jul 21, 2016
Messages
99
Trophies
0
Age
44
XP
537
Country
Greece
the save is padded, so you delete the padding up to 0x1ec and add this to the end: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 7C 3C 2D 2D 53 6E 69 70 20 61 62 6F 76 65 20 68 65 72 65 20 74 6F 20 63 72 65 61 74 65 20 61 20 72 61 77 20 73 61 76 20 62 79 20 65 78 63 6C 75 64 69 6E 67 20 74 68 69 73 20 44 65 53 6D 75 4D 45 20 73 61 76 65 64 61 74 61 20 66 6F 6F 74 65 72 3A EC 01 00 00 00 02 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 7C 2D 44 45 53 4D 55 4D 45 20 53 41 56 45 2D 7C
What padding? Be more specific?
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,190
Country
United States
the save file is padded with 0s at around that hex address all the way to the end. each dsemu save contains that hex above as a footer.

--------------------- MERGED ---------------------------

upload_2020-9-9_6-19-8.png
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,190
Country
United States
include the FF. it's just 0s before that. starting at 0x1ec

--------------------- MERGED ---------------------------

do note this is a per game basis. new super mario bros. ds is 9KBs.
 

gatoula

Well-Known Member
OP
Newcomer
Joined
Jul 21, 2016
Messages
99
Trophies
0
Age
44
XP
537
Country
Greece
include the FF. it's just 0s before that. starting at 0x1ec

--------------------- MERGED ---------------------------

do note this is a per game basis. new super mario bros. ds is 9KBs.

Rom gets black screen when game saves after a mission
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    Brb going with my dad
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, are most of those games shovelware?
    +1
  • K3Nv2 @ K3Nv2:
    Nah gotta buy 3 1tb SD cards for 3ds the entire libraries need archived in my home
    +1
  • SylverReZ @ SylverReZ:
    >buys x3 1TB SD cards
    >stores the entire 3DS library on them
    >installs CFW
    >realised why I wasted loads of money and resources
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Lol no I clean my sets
  • K3Nv2 @ K3Nv2:
    Cause it's in my home ready to go
  • K3Nv2 @ K3Nv2:
    Like uremum
  • Psionic Roshambo @ Psionic Roshambo:
    But 100 games on SNES and Genesis and GBA then TG16 and NES and GB and GBC then all the other random systems and arcade games it all adds up lol
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Virtual Boy alone has probably 5 games!!! Lol
    +1
  • K3Nv2 @ K3Nv2:
    I won't mention any names in chat but some of us wastes $300 on preloaded hdds :tpi:
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, The PS5 had none.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Lol I spent more than that on a stuffed 4TB drive lol
  • K3Nv2 @ K3Nv2:
    Honestly I've yet to fill the 1tb internal drive on my ps5
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, 1) except final fantasy 16. 2) why would I have a console's whole catalogue if most of the games are either shovelware or terrible games?
  • Psionic Roshambo @ Psionic Roshambo:
    Kind of a waste, but the allure of all those games over 100,000
  • Psionic Roshambo @ Psionic Roshambo:
    Some shovel ware with low ratings you might enjoy more than the ratings would sugest
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Cruisn on the Wii is one of my personal examples of that, it's considered one of the worst games of all time, I loved it and completed it several times.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    The trick for me was to go into the settings and crank up the Wiimote sensitivity to the max and it gets twitchy but you can win that way lol
  • Psionic Roshambo @ Psionic Roshambo:
    Lots of other games I enjoyed that reviews would say otherwise lol
  • btei @ btei:
    lethal company servers are down rn
  • btei @ btei:
    my pocket pikachu is going crazy rn
  • Psionic Roshambo @ Psionic Roshambo:
    Pocket Pikachu sounds dirty lol
  • SylverReZ @ SylverReZ:
    True lol
    SylverReZ @ SylverReZ: :tpi: