ROM Hack Help to Import .SAV Pokémon GSC from VBA to VC 3ds

llvictorll

Active Member
OP
Newcomer
Joined
Jan 31, 2015
Messages
27
Trophies
0
Age
35
XP
117
Country
Brazil
Hello guys.

I need some help.

I've been exporting saves from emulator VBA (PC) and importing them at the Virtual Console on my o3ds XL.

First, I export an inicial save from my game at Virtual Console (3ds) with SaveDataFiler. Then I have a sav.dat, usually 32.768 bytes.

Then i export a save from Visual Boy Advanced in File-> Export Battery file. I always get a file with 32.768 bytes. Replacing this file in the SaveDataFiler folder and importing at the 3ds worked fine until now.

Iit worked for Pokemon Red, Blue, Yellow. But for Pokemon Gold, Silver and Cristal it never worked!
The problem is that SaveDataFiler exports a sav.dat bigger then 32.768 bytes. It has 32.784 bytes.

When i replace this sav.dat [32.784 bytes] for my battery on PC [32.768 bytes] and import on SaveDataFiler, it shows that the save is corrupted when I lunch the game.

OBS: The automatic restore points is disable on Virtual Console.

Is there anyone who could actually import a Pokemon GSC to VC? If yes, i'm gonna keep trying. Maybe looking for other CIAs versions.

Thanks in advance
 

fmhugo

Well-Known Member
Member
Joined
Jan 19, 2013
Messages
681
Trophies
1
Age
37
XP
2,444
Country
Brazil
Use the option on visualboy advance "batery file" (File >> Export >> Batery File) and rename to file same used in virtual console.
 

llvictorll

Active Member
OP
Newcomer
Joined
Jan 31, 2015
Messages
27
Trophies
0
Age
35
XP
117
Country
Brazil
Use the option on visualboy advance "batery file" (File >> Export >> Batery File) and rename to file same used in virtual console.

I did that. And it worked for Pokemon Red, Blue and Yellow because the sav.dat generated by SaveDataFiler has 32.768 bytes, same size that a file from VisualBoy Advance [Export->Batterry File]

But for Gold, Silver and Cristal, the sav.dat generated by SaveDataFiler has 32.784 bytes. When I rename my save exported from VBA the 3ds says its corrupted. I think is because of the different size.
 

rainparadesamurai

Well-Known Member
Member
Joined
Feb 28, 2014
Messages
153
Trophies
0
Age
38
XP
194
Country
United States
I did that. And it worked for Pokemon Red, Blue and Yellow because the sav.dat generated by SaveDataFiler has 32.768 bytes, same size that a file from VisualBoy Advance [Export->Batterry File]

But for Gold, Silver and Cristal, the sav.dat generated by SaveDataFiler has 32.784 bytes. When I rename my save exported from VBA the 3ds says its corrupted. I think is because of the different size.


You've tried deleting the secure value for the game before importing, right??
 

llvictorll

Active Member
OP
Newcomer
Joined
Jan 31, 2015
Messages
27
Trophies
0
Age
35
XP
117
Country
Brazil
You've tried deleting the secure value for the game before importing, right??
Yes. I've also tried to use this cia: https://gbatemp.net/threads/release-jks-savemanager-homebrew-cia-save-manager.413143/

And got the same result.

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

I wouldn't doubt it's extra RTC data in the save file. Ruby, Sapphire and Emerald appended RTC data to the save file.
Just delete the last 16 bytes in a hex editor and try it.

And how can I delete this? Notepad? Please, can you help me?
 

llvictorll

Active Member
OP
Newcomer
Joined
Jan 31, 2015
Messages
27
Trophies
0
Age
35
XP
117
Country
Brazil
Maybe the RTC value is being saved as well for GSC?

I wouldn't doubt it's extra RTC data in the save file. Ruby, Sapphire and Emerald appended RTC data to the save file.
Just delete the last 16 bytes in a hex editor and try it.

I dont know if RTC means the game clock is being synchronize with 3ds, but it is. Just confirmed now. My clock in game is adjusted with 3ds clock.

How this impact in my save import? Should i delete 16 bytes from the save I imported from visualboy advanced and them import in 3ds?
 
Last edited by llvictorll,

Fishaman P

Speedrunner
Member
Joined
Jan 2, 2010
Messages
3,322
Trophies
1
Location
Wisconsin
Website
twitch.tv
XP
2,184
Country
United States
I dont know if RTC means the game clock is being synchronize with 3ds, but it is. Just confirmed now. My clock in game is adjusted with 3ds clock.

How this impact in my save import? Should i delete 16 bytes from the save I imported from visualboy advanced and them import in 3ds?
Exactly.
 
  • Like
Reactions: llvictorll

Traiver

Developer
Developer
Joined
Aug 1, 2014
Messages
1,326
Trophies
1
Location
???
XP
2,947
Country
United States
If you downloaded a normal version of a custom Pokemon GSC VC, the savefiler will not work for them. I already tested it. Just download one of the official eshop releases of blue red or yellow and decrypt plus extract the game. Then inject a GSC rom into it and rebuild the game. The safefiler will work with this then. I tried it with an GSC save editor and with an VBA savefile. Oh and you need to delete the secure data first.
 
  • Like
Reactions: llvictorll

llvictorll

Active Member
OP
Newcomer
Joined
Jan 31, 2015
Messages
27
Trophies
0
Age
35
XP
117
Country
Brazil
I FINALLY GOT THIS WORKING

Here is what i did:

-> Used VisualBoyAdvance-M-2.0.0-beta2 to export a pokemon.sav -> Size: [32.816 bytes]

-> Export a sav.dat with SaveDataFiler -> Size: [32.768 bytes]

-> Open both files with a Hex Editor.

-> Copied from the pokemon.sav file the hex BE0 to 8000 [File with 32.816 bytes]

-> Pasted in the sav.dat in BE0 to 8000 [File with 32.768 bytes]

-> Delete secure value

-> Imported new save

I had to adjust the clock in game after doing this.

Thank you guys.

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

If you downloaded a normal version of a custom Pokemon GSC VC, the savefiler will not work for them. I already tested it. Just download one of the official eshop releases of blue red or yellow and decrypt plus extract the game. Then inject a GSC rom into it and rebuild the game. The safefiler will work with this then. I tried it with an GSC save editor and with an VBA savefile. Oh and you need to delete the secure data first.

But does your clock works? I mean, in game linked with 3ds.

Mine is working fine now.
 
  • Like
Reactions: xJoelituh

Traiver

Developer
Developer
Joined
Aug 1, 2014
Messages
1,326
Trophies
1
Location
???
XP
2,947
Country
United States
I FINALLY GOT THIS WORKING

Here is what i did:

-> Used VisualBoyAdvance-M-2.0.0-beta2 to export a pokemon.sav -> Size: [32.816 bytes]

-> Export a sav.dat with SaveDataFiler -> Size: [32.768 bytes]

-> Open both files with a Hex Editor.

-> Copied from the pokemon.sav file the hex BE0 to 8000 [File with 32.816 bytes]

-> Pasted in the sav.dat in BE0 to 8000 [File with 32.768 bytes]

-> Delete secure value

-> Imported new save

I had to adjust the clock in game after doing this.

Thank you guys.

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



But does your clock works? I mean, in game linked with 3ds.

Mine is working fine now.

Yes my ingame clock is working too.
 

vree

Well-Known Member
Member
Joined
Sep 12, 2005
Messages
702
Trophies
1
XP
1,410
Country
United Kingdom
I FINALLY GOT THIS WORKING

Here is what i did:

-> Used VisualBoyAdvance-M-2.0.0-beta2 to export a pokemon.sav -> Size: [32.816 bytes]

-> Export a sav.dat with SaveDataFiler -> Size: [32.768 bytes]

-> Open both files with a Hex Editor.

-> Copied from the pokemon.sav file the hex BE0 to 8000 [File with 32.816 bytes]

-> Pasted in the sav.dat in BE0 to 8000 [File with 32.768 bytes]

-> Delete secure value

-> Imported new save

I had to adjust the clock in game after doing this.

Thank you guys.

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



But does your clock works? I mean, in game linked with 3ds.

Mine is working fine now.


Could you make a guide for this?

Got hex editor but can't find BE0. Maybe I'm using a horrible hex editor.

And what is the secure value???
 

Attachments

  • Knipsel.PNG
    Knipsel.PNG
    18.1 KB · Views: 571
Last edited by vree,

llvictorll

Active Member
OP
Newcomer
Joined
Jan 31, 2015
Messages
27
Trophies
0
Age
35
XP
117
Country
Brazil
Could you make a guide for this?

Got hex editor but can't find BE0. Maybe I'm using a horrible hex editor.

And what is the secure value???

Actually, the iformation posted by Fishaman P is correct. Just delete the last 2 lines (16 bytes) from the save exported with VisualBoyAdvance-M-2.0.0-beta2-> Size: [32.816 bytes]

The new save file should have exacly the same size of sav.dat from SaveDataFiler.

Then replace that file, use SaveDataFiler to delete the security value R+X and import again.
 

vree

Well-Known Member
Member
Joined
Sep 12, 2005
Messages
702
Trophies
1
XP
1,410
Country
United Kingdom
Actually, the iformation posted by Fishaman P is correct. Just delete the last 2 lines (16 bytes) from the save exported with VisualBoyAdvance-M-2.0.0-beta2-> Size: [32.816 bytes]

The new save file should have exacly the same size of sav.dat from SaveDataFiler.

Then replace that file, use SaveDataFiler to delete the security value R+X and import again.

Yeah ok maybe if you used a hex editor before but when I search for those values I can't find anything. (See screenshot above).

And screenshot of exported file in attachment
And the exported file itself is smaler (unchanged)
 

Attachments

  • Knipsel.PNG
    Knipsel.PNG
    9.3 KB · Views: 561
  • Pokemon - Crystal Version Exported.zip
    2.4 KB · Views: 270
Last edited by vree,

llvictorll

Active Member
OP
Newcomer
Joined
Jan 31, 2015
Messages
27
Trophies
0
Age
35
XP
117
Country
Brazil
Yeah ok maybe if you used a hex editor before but when I search for those values I can't find anything. (See screenshot above).

And screenshot of exported file in attachment
And the exported file itself is smaler (unchanged)

The problem is that your exported save [ON PC] doest have 32.816 bytes, but 32.768 bytes.

My guess is that you arent using the last version of VisualBoyAdvance-M-2.0.0-beta2, but old emulators, like I was when a wrote the first reply of this thread. The Old VisualBoyAdvance exported an save file of 32.768 bytes [wrong size for gold, silver and cristal, but ok for red, blue, yellow because the sav.dat of those games has 32.768 bytes as well].

The exported save on pc [GOLD, SILVER, CRISTAL] should have 32.816 bytes. When you delete the last 2 lines, it should have 32.784 bytes, exacly the same size of sav.dat exported by SaveDataFiler on 3ds.

The lines that you should delete:
 

Attachments

  • Pokemon Cristal HEX.jpg
    Pokemon Cristal HEX.jpg
    71.8 KB · Views: 671
Last edited by llvictorll,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    ButterScott101 @ ButterScott101: +1