Homebrew [Pre-release] Agbsave9 - Tool to extract agb_firm saves.

Rourke

Member
Newcomer
Joined
Aug 23, 2014
Messages
18
Trophies
0
XP
110
Country
Netherlands
On windows, and 2 seperate linux machines I get the following:

Type in the save's name: agb_dump.sav
Type in the output cia's name: zelda
Type in the save type: 2
Type in the title id of the game you wish to inject: 00076e00
Traceback (most recent call last):
File "gen_rom.py", line 25, in <module>
with open(ScriptPath + "agb_inject_mb.gba", "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/agb/agb_inject/agb_inject_mb.gba'

It needs a gba file? I tried downloading the game's GBA file because why not, but it results in:

Traceback (most recent call last):
File "gen_rom.py", line 29, in <module>
rom = bytearray(rom + bytes(padding) + footer)
ValueError: negative count
 
Last edited by Rourke,

Rourke

Member
Newcomer
Joined
Aug 23, 2014
Messages
18
Trophies
0
XP
110
Country
Netherlands
The default package is broken, you need the previous version + a fixed script that you can find on OP.
You're saying I need version 1.0 and I need to use a fixed script in the opening post? I don't see any script in the OP. You've lost me. :unsure:

Edit: with the agb_inject_mb.gba file from v1.0 I still get the following errors:

Type in the save's name: agb_dump.sav
Type in the output cia's name: zelda
Type in the save type: 2
Type in the title id of the game you wish to inject: 00076e00
Traceback (most recent call last):
File "gen_rom.py", line 48, in <module>
"-rsf", ScriptPath + "tmp/agb_inject_mb.rsf", "-f", "cxi", "-o", ScriptPath + "tmp/gba.cxi"])
File "/usr/lib/python3.5/subprocess.py", line 557, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
 
Last edited by Rourke,
  • Like
Reactions: Ailuros27

matpower

Messenger from Zero
Member
Joined
May 5, 2012
Messages
1,103
Trophies
2
Age
24
Location
Best state in Brazil
XP
2,594
Country
Brazil
You're saying I need version 1.0 and I need to use a fixed script in the opening post? I don't see any script in the OP. You've lost me. :unsure:

Edit: with the agb_inject_mb.gba file from v1.0 I still get the following errors:
My mistake, I mixed up threads. :P
But hmm, if you really want to use AGBSave9, you'll need this to make the injector work.
I would just use Decrypt9 if I were you though.

(Link: https://gbatemp.net/attachments/gen_rom-zip.38211/ - Just in case that "this" hyperlink doesn't work. Mobile is a pain sometimes.)
 
  • Like
Reactions: Ailuros27

matpower

Messenger from Zero
Member
Joined
May 5, 2012
Messages
1,103
Trophies
2
Age
24
Location
Best state in Brazil
XP
2,594
Country
Brazil
I can't get it to make .CIA after inputting the .CIA title gen rom closes

Is it compatible with Windows 10 anniversary edition?
You need a fixed script and maybe a certain file from the previous package. I wrote a guide that still should work fine here.
And yes, it's compatible with Windows 10 build 14393/1607 (Anniversary Edition).

I would just use Decrypt9 nowadays though, it's a lot easier to use.
 

BADDINOROX99

Well-Known Member
Member
Joined
Sep 9, 2015
Messages
782
Trophies
0
XP
1,093
Country
United States
You need a fixed script and maybe a certain file from the previous package. I wrote a guide that still should work fine here.
And yes, it's compatible with Windows 10 build 14393/1607 (Anniversary Edition).

I would just use Decrypt9 nowadays though, it's a lot easier to use.
Thank you for referring me to your guide I just tried it and I got my old Pokemon fire red game save back
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
36
Location
Asshai
XP
2,958
Country
United States
to dump you just need to run the game you want to dump, close and then run agb_dump.3dsx it will also tell you title id and save type
System version 9.x
Title id 00c31900
Use save type 1
Creating agb_dump.sav ...
Save Dump: succeeded!

and to inject, first of all you have to install Python3 in your computer, google it
Remember, you shall only inject in Sysnand!(but the save will works on emunand)
Download the lastest Agbsave9 release HERE
if you are in Windows overwrite gen_rom.py with that modified version at the moment the official one with EEPROM support (version 1.0) is not working on windows
then put your save file in agb_inject folder and run gem_rom.py
in save name just put the name of your save file, like "pokemon.sav"
in title id put the same title id of the game you want to inject
in save type put
"0" for SVRAM
"1" for Flash
"2" for EEPROM
you can dump a save from your game first to see what is the save type and your title id in dump log
then put a "whatevername.cia" in cia name
it should look like this
DgZFi7j.png

ok, now copy the cia to your SD and installs it OVERWRITING the original game, I used FBI to this
run it, and you will see something like that
2HGuplr6

for EEPROM it will show more lines and you have to wait it finish
then backup .sav file from SD:/Nintendo3DS/(lot of numbers, go to sysnand folder)/(morecharacters)/title/00040000/(your game title id)/data/
install the original cia of your game again and then restore the sav file that you just backuped

I think that is all folks
anyone got a guide or instructions on how to install agbsave9?

https://gbatemp.net/threads/dumping-and-injecting-gba-vc-saves-with-agbsave9.421836/

Even though the exact same thing is posted twice right above you.........
 
Last edited by Majickhat55,

Memth48

Member
Newcomer
Joined
Feb 21, 2017
Messages
12
Trophies
0
Age
32
XP
97
Country
Canada

ChicagoMel

Well-Known Member
Member
Joined
Sep 1, 2015
Messages
524
Trophies
0
Age
42
XP
863
Country
United States
How do I install this on al9hax? In the HBL the 3dsx and other file dont boot.

Where's the app or payload? Which file in the zip?
 

matpower

Messenger from Zero
Member
Joined
May 5, 2012
Messages
1,103
Trophies
2
Age
24
Location
Best state in Brazil
XP
2,594
Country
Brazil
hey i tried using the tool but it didnot work for me
i have done the gba vc injectio for pokemon fire red
You should just use GodMode9, it's easier, more stable and works with Bootstap9 (for backups)
Check out this little manual, specifically the "Backup/Restore GBA VC Saves" section.
 
Last edited by matpower, , Reason: Fixing grammar, shouldn't type at 5am

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    :rofl2::tpi::rofl2: I meant his eyes :tpi::rofl2::tpi:
  • ZeroT21 @ ZeroT21:
    :toot:blow me then @K3Nv2
  • K3Nv2 @ K3Nv2:
    Nah I'm straight but you're more than welcome to blow ancientboi
  • ZeroT21 @ ZeroT21:
    LOL, which straight person does not make gay jokes?
    +1
  • K3Nv2 @ K3Nv2:
    I'm straight but we can whack dicks together
  • ZeroT21 @ ZeroT21:
    nah, I'm gud over here, no need for sword fights

    :glare:
    +1
  • K3Nv2 @ K3Nv2:
    Dick slang
  • K3Nv2 @ K3Nv2:
    See ancientboi already has a crush on you
  • AncientBoi @ AncientBoi:
    [brings my ⚔️ ] On Guard :D:evil::wub:
  • K3Nv2 @ K3Nv2:
    Looks more like a dagger to me
  • AncientBoi @ AncientBoi:
    Pffffft I have a crush on everybody
  • ZeroT21 @ ZeroT21:
    I see no problem, unless i happen to grow another gender one day. Too bad it ain't now
  • K3Nv2 @ K3Nv2:
    Thought you already had both hotswappable gender fluid
  • ZeroT21 @ ZeroT21:
    Enjoy whatever life chucks your way

    :teach:
    +1
  • K3Nv2 @ K3Nv2:
    Deeze nuts
  • AncientBoi @ AncientBoi:
    Dem Nutz
  • ZeroT21 @ ZeroT21:
    'Em nutters
  • AncientBoi @ AncientBoi:
    M&M nutz
    +1
  • K3Nv2 @ K3Nv2:
    Slim anus nutter
  • AncientBoi @ AncientBoi:
    :unsure::unsure::unsure: I might go buy them M&M w/nuts. I gotta go out to pay the rent anyway
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Eat a Snickers!
  • Psionic Roshambo @ Psionic Roshambo:
    Almond Joys got nuts!
    Psionic Roshambo @ Psionic Roshambo: Almond Joys got nuts!