melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.31k stars 545 forks source link

GBA cartridge/save not being detected #1899

Open Jaizu opened 11 months ago

Jaizu commented 11 months ago

Setup: DS HeartGold rom + save that allows to transfer Pokémon from older generations Pokémon Fire Red ROM + save that allows to send Pokémon Nintendo DS Firmware + dios setup

Expected behavior:

Current behavior:

I made sure that:

Melonds: image

Desmume: image

The gba save is in the same path as the gba rom, with the same name and .sav format, working fine with mGBA and properly detected with desmume.

KostaSaizo7 commented 11 months ago

The gba save is in the same path as the gba rom, with the same name and .sav format, working fine with mGBA and properly detected with desmume.

I think that is the issue, try putting the .sav file of the GBA game on the same path that you have the DS .sav files

Jaizu commented 11 months ago

That didn't change a thing.

KostaSaizo7 commented 11 months ago

Welp, I can't reproduce the issue.

Make sure you have the latest build, from here: https://github.com/melonDS-emu/melonDS/actions?query=branch%3Amaster

Also make sure you are in DS mode, you insert the GBA cart before booting the DS cart and that you are using external bios and firmware files. MIGRATEMIGRATE2MIGRATE3

Jaizu commented 11 months ago

image image image image

GBA save in both folders with the correct name and file extension

What I did:

I tried using the latest builds that you linked instead of latest release but that build doesn't allow me to edit the settings for some reason image

KostaSaizo7 commented 11 months ago

Oh also check the gba sav file size. It should be 128kb.

If it is 129kb, then you should use mgba to convert it without the appended rtc info.

Jaizu commented 11 months ago

My save is fine, its 128kb, used with mgba and desmume without any problems.

ashgx commented 11 months ago

wait?recharged-yellow.gba?Why rom hack?

Jaizu commented 11 months ago

wait?recharged-yellow.gba?Why rom hack?

I'm a dev, I was testing my game. Tested with other games to confirm that it wasn't a me issue. My game and vanilla games work fine in desmume, none worked for me in melonds. I'm giving up with this tho, I feel like there is very little interest into having it fixed or figuring it out why it doesnt happen to everybody, I will just use desmume for my needs, good luck with future bug reports related to this.

RSDuck commented 11 months ago

if the issue persists, the issue can stay open.

patataofcourse commented 11 months ago

I tried using the latest builds that you linked instead of latest release but that build doesn't allow me to edit the settings for some reason

That's because you have multiple windows of melonDS open - you need to close one of them

KostaSaizo7 commented 11 months ago

You can also upload your save files so someone else can try to reproduce the issue.

Kaelygon commented 9 months ago

On melonDS I haven't been able to get that button to show up with LeafGreen and Platinum. LeafGreen save life was saved on mGBA Pokemon migration has these perquisites: "Unlock national dex in Platinum" and "have at least 6 pokemon on PC in LeafGreen .sav file"

Steps I did in melonDS Both roms and .sav files are in same folder as "Save files path:"

  1. Insert Rom Cart LeafGreen,GBA
  2. Open Rom PokemonPlatinum.nds
  3. Start emulation No migrate button

I wasn't able to find if out melonDS 0.9.5 has any console for debugging so I have no logs to share image

How I got migrate button to show up in DeSmuME 0.9.13

  1. place LeafGreen.gba LeafGreen.sav PokemonPlatinum.nds to [DeSmuME]/Roms
  2. convert platinum .sav to .dsv using this site https://www.save-editor.com/tools/wse_ds_save_converter.html
  3. place the 513kb .dsv file to desmume [DeSmuME]/Battery folder
  4. launch DeSmuME
  5. Config -> slot 2 -> LeafGreen.gba
  6. File ->Open ROM -> PokemonPlatinum.nds image

The save files Pokemon_Platinum_LeafGreen_save_files.zip

LeafGreen.sav 131 072 bytes PokemonPlatinum.sav 524 288 bytes PokemonPlatinum.dsv 524 410 bytes

Kaelygon commented 9 months ago

Never mind! I switched to external bios and firmware and finally the migration button shows even in melonDS 0.9.5

REALERvolker1 commented 5 months ago

I have the national pokedex in both Platinum and Ruby. DS saving works in melonDS, and GBA saving works in mgba. I found that when I selected "Open ROM" and tried to open a GBA rom that way, the program would segfault. I followed the instructions for this, but the ROM still is not recognized.

EDIT: It does not work for me in either the git version or release version of melonds

https://github.com/melonDS-emu/melonDS/assets/73304952/77d690bc-6bd1-45e7-8952-57638b0eaba7