mgba icon indicating copy to clipboard operation
mgba copied to clipboard

Saving overrides is confusing

Open erfanCA01 opened this issue 1 year ago • 7 comments

i select portable from mgba tools section but portable.ini seems to be empty file

the overrides i also cannot change after saving, for example i set rtc to on in pokemon fire red, now i cannot turn it off.

if you need more info tell me

erfanCA01 avatar Feb 15 '24 04:02 erfanCA01

As you said, game overrides will default when mgba close.

leoxxx avatar Feb 15 '24 10:02 leoxxx

I also cannot find the file where game overrides are saved, it should be in %APPDATA%/mGBA but it is not, i have turned off portable mode

erfanCA01 avatar Feb 17 '24 21:02 erfanCA01

~Installer version can't save the overrides, too.~ It's not a bug. I test it some times, found it how to work. First, set the overrides before you load rom. If you don't click "save" now, you need click "save" when you load rom. It will be saved in config.ini. (load rom is necessary)

Then, you can find it like this in the ini.

[override.[gamid]] hardware=[number]

e.g.

[override.AGNJ] hardware=9

This is the Goemon - New Age Shutsudou! override. You can find the game id from "File -> ROM info...".

@endrift I think it need to be written in FAQs.

leoxxx avatar Feb 18 '24 01:02 leoxxx

i select portable from mgba tools section but portable.ini seems to be empty file

Not saving what? The portable.ini file is just marking that it should look in that directory for the config.ini instead of in %APPDATA%.

endrift avatar Feb 24 '24 12:02 endrift

I think this is one large misunderstanding. But yes, the way saving game overrides works is bad UX and I need to improve it. I'm going to use this bug report for that specific issue.

endrift avatar May 08 '24 06:05 endrift

I am trying to figure out how to save my overrides as well. What I want is to use SRAM Savetype for a Pokemon Fire Red rom. If I'm understanding the guidance here, I'm meant to open mGBA -> set override -> open rom -> save override. I tried that, as well as the open mGBA -> set override -> save override -> open rom -> save override again

In both cases, my config.ini file was updated with

[override.BPRE]
savetype=SRAM512
hardware=0

I also manually tried adding the same for override.AGB and override.AGB-BPRE since the ROM info said AGB-BPRE for the id. In any case, my overrides are not loaded when I open the Fire Red rom again, and it instead defaults back to autodetect and autodetects Flash

Is there something I'm doing wrong or is this the expected behavior at the moment

arrigonyc avatar Jun 04 '24 13:06 arrigonyc

I test leaf green 386 CHS version, the default save type is SRAM512. But my save is FLASH 512kb(64K) and created by VBA. mgba can't be loaded the save by default, So I change it to FLASH 512kb(64K), then the save can be loaded.

[override.P386]
savetype=FLASH512

Restart mgba, the overrides will be display autodetect (default), but after you load the game which you saved override setting, it will display FLASH 512kb.

leoxxx avatar Jun 05 '24 02:06 leoxxx