Open rafaliyo opened 2 months ago
If your cartridge has a battery, you can boot into a game, power off the system. Then just write the save data into SRAM and it’ll be imported on the next start of the menu. If your cartridge has no battery, you would have to inject your save data into the batteryless-SRAM-patched ROM yourself.
Thanks for the reply. It has no battery is a 369 in 1 cartridge. So I would have to open the ROM and patch the save file on it?
Yes, in case of batteryless cartridges, the save data has to be all handled by the game ROM itself and the menu doesn’t touch anything.
Also see https://github.com/metroid-maniac/gba-auto-batteryless-patcher
Ok I am a bit lost (sorry to be a noob), I open and patch the ROM with GBata and I patch it but how inject the save exactly? If I run the batterylss patcher should I drag the new rom (patched) and the save file?
If you run the gba-auto-batteryless-patcher, it says something like
Found a reference to the IRQ handler address at 234, patching
Found a reference to the IRQ handler address at 7ca04, patching
Installing payload at offset f7f7bc, save file stored at f80000
So, first open your save data file in HxD and press Ctrl+A and Ctrl+C. Take a note of the "length" displayed at the bottom. Then also open your already patched ROM file in HxD. Press Ctrl+G and go to address as indicated above (f80000
). Then mark a block using Ctrl+E and enter the length of your save data that you took a note of. Now press Ctrl+V to paste your save data into the ROM file and save.
Is the ROM patched with the batteryless-patcher which I have to modify or do I run just first the program to see where is the save file stored?
I say this because I have tried what you said with the ROM patched with GBata and batteryless patcher with no luck. If I run it (supposedly with the save file injected) in mGBA emulator it runs the ROM with no save data
I am doing something wrong surely
The sequence is: Clean ROM → Patch with GBATA → Patch with gba-auto-batteryless-patcher → Edit with HxD. Try with a simple game like Super Mario Advance first. If it still doesn't work, I'm afraid I'm out of ideas.
Ok I will try with another ROM. I have to say when I say I run the patched ROM with the save "injected" in mGBA I have not used the Gba_Multimenu
I'm trying to do this on an e-reader ROM, since I would like to put the Pokémon card minigames on a 369 in 1 cartridge with the multimenu.
I have tried doing it with a single sav to see if it would detect it when I turned on the game, but I can't do it. I have only tested it in the VBA for PC. Is it possible that it only works on a physical cartridge?
In a few hours I'll get home and try it again on a cartridge, but it's to remove doubts about whether I'm doing it right, but maybe it doesn't work in the emulator.
Thank you for all lesserkuma!! (If you want to try, here's the link to the minigames)
Nevermind, I have already followed the steps and it has worked for me both in the emulator and in the 369 in 1 GBA cartridges with the Multimenu. Thank you very much for everything!
Is it possible to create put a ROM with its save file so when you boot the game you already have a save?