Skip to content

Instantly share code, notes, and snippets.

@welcoMattic
Forked from HoLyVieR/gist:1616679
Last active January 2, 2024 09:28
Show Gist options
  • Save welcoMattic/2a2909e5b98aa8d745dfd0df0a6b3091 to your computer and use it in GitHub Desktop.
Save welcoMattic/2a2909e5b98aa8d745dfd0df0a6b3091 to your computer and use it in GitHub Desktop.
Gameplay - Export SAV file
// Getting the data //
var filename = "ROM_NAME";
var rawData = base64ToArray(findValue("B64_SRAM_" + filename)).map(function (a) { return String.fromCharCode(a); }).join("");
var tmpLink = document.createElement("a");
tmpLink.href = "data:application/force-download," + escape(rawData);
document.body.appendChild(tmpLink);
@fankimm
Copy link

fankimm commented Jan 21, 2019

@welcoMattic How do I decode it back to a sav file? I got a text starting with this:

%10%10%10%10%10%10%1E%1F%1E%1F%10%10%10%10%10%10()%10%10%10%10%10%10%10%10.%2F.%2F%10%10%10%10%10%1089%10%1

Thanks.

Edit:

It worked! The sav file worked fine in both OpenEmu and gba4ios.
I took the contents of saveState.B64_SRAM_POKEMON_GLD (<= my rom of pokemon gold), saved it in a text file and decode it back from base64 using this online tool: http://www.motobit.com/util/base64-decoder-encoder.asp

please help me out

@fankimm
Copy link

fankimm commented Jan 26, 2019

How to import .sav files to Game Play Color
https://www.youtube.com/watch?v=t56EQPtCA3w&feature=youtu.be
How to export .sav file from Game Play Color https://youtu.be/H5MI1CRyL0E

@LetsPlay75
Copy link

Please help.. how do I export it to my windows 10?

@Huse24
Copy link

Huse24 commented Jan 2, 2024

Hello. Im new to using github and would like to export my sav file from gameplay. how do you use the code without having a mac?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment