Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support of Pokemon trading / combat for GBA #1790

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jboss38
Copy link

@jboss38 jboss38 commented Mar 20, 2025

Hello,

This pull request is made for testing purpose for the support of the Pokemon trading and combat for GBA Red FIRE and Green LEAF only.

You can trade pokemon between RED to RED and GREEN to GREEN but ALSO between RED and GREEN, which currently not possible with gpSP only.

So you can find script here, there is A LOT of cleanup todo in the script but it's working if you want to use it.
(The script is based on this one #1007)

How To Install It :

  • Download the scripts and then put on your SDCARD to this path

  • ADD :
    ".tmp_update/script/netplay/easy-netplay_client_pokemon_GBA.sh"
    ".tmp_update/script/netplay/easy-netplay_server_pokemon_GBA.sh"

  • Replace:
    "App/romscripts/Netplay.sh"

  • Be sure to make a BACKUP of the original App/romscripts/Netplay.sh

How To Run It :

  • First backup everything
  • Install the script of this commits
  • Be sure that you have a made a INGAME save of Pokemon GBA before with gpSP Game core.
  • On the host: Head to the rom you wish to play, RED or Green and press Y to open GLO (Also in Recents/favs etc)
  • On the host: Select "Netplay (core supported: gpsp)"
  • On the host: Select "Host a session"
  • On the host: Select "Easy Netplay - Pokemon Trade/Battle GBA" - It will now wait for a client
  • On the client: Head to the rom you wish to play, RED or Green and press Y to open GLO (Also in Recents/favs etc)
  • On the client: Select "Netplay (core supported: gpsp)"
  • On the client: Select "Join a session"
  • On the client: Select "Easy Netplay - Pokemon Trade/Battle GBA" - It will now look for a host
    (PS : Sometime client and host don't synchronise, for better result start "looking for the host" on the Client 1 second before "running the server" on the host)
  • Wait for the process to complete
  • Select Start on the splash screens - Then choose your last Save INGAME

For the trade

  • Go to the Pokemon center and head to the trade link with the WORLD
  • Go through the dialogue until she allows you into the room
  • Trade your Pokemon or do the Battle.
  • When done, Go out of the door and do a INGAME save, on both device
  • Important: Retroarch must exit gracefully without the script dying with it. - Press Menu + Select and then B, then Exit.
  • Important: Do not interrupt this process, you should see cleanup changes
  • Start the game in single player mode (Just click it from recents/fav etc) and it should load your save.
  • Observe in both games you have now traded Pokemon.

Note : this process generate backup for the concernade game SAVES FILES and also your STATES FILES

Have fun !

@wouter-luimes
Copy link

wouter-luimes commented Mar 21, 2025

But the latest beta pre-release of Onion already supports connecting different games/roms right? I was able to trade between FireRed and LeafGreen just fine using the standard script and I was even able to use the Mystery Gift System, connecting FireRed to a custom Event Distribution ROM.

@jboss38
Copy link
Author

jboss38 commented Mar 22, 2025

But the latest beta pre-release of Onion already supports connecting different games/roms right? I was able to trade between FireRed and LeafGreen just fine using the standard script and I was even able to use the Mystery Gift System, connecting FireRed to a custom Event Distribution ROM.

With the pre-release beta It's working with the same ROM. You can't load netplay on gpSP core with 2 different save from 2 different ROM. (Or I don't know how to do it)

@jr9011
Copy link

jr9011 commented Mar 26, 2025

Hello,

This pull request is made for testing purpose for the support of the Pokemon trading and combat for GBA Red FIRE and Green LEAF only.

You can trade pokemon between RED to RED and GREEN to GREEN but ALSO between RED and GREEN, which currently not possible with gpSP only.

So you can find script here, there is A LOT of cleanup todo in the script but it's working if you want to use it. (The script is based on this one #1007)

How To Run It :

  • First backup everything
  • Install the script of this commits
  • Be sure that you have a made a INGAME save of Pokemon GBA before with gpSP Game core.
  • On the host: Head to the rom you wish to play, RED or Green and press Y to open GLO (Also in Recents/favs etc)
  • On the host: Select "Netplay (core supported: gpsp)"
  • On the host: Select "Host a session"
  • On the host: Select "Easy Netplay - Pokemon Trade/Battle GBA" - It will now wait for a client
  • On the client: Head to the rom you wish to play, RED or Green and press Y to open GLO (Also in Recents/favs etc)
  • On the client: Select "Netplay (core supported: gpsp)"
  • On the client: Select "Join a session"
  • On the client: Select "Easy Netplay - Pokemon Trade/Battle GBA" - It will now look for a host
    (PS : Sometime client and host don't synchronise, for better result start "looking for the host" on the Client 1 second before "running the server" on the host)
  • Wait for the process to complete
  • Select Start on the splash screens - Then choose your last Save INGAME

For the trade

  • Go to the Pokemon center and head to the trade link with the WORLD
  • Go through the dialogue until she allows you into the room
  • Trade your Pokemon or do the Battle.
  • When done, Go out of the door and do a INGAME save, on both device
  • Important: Retroarch must exit gracefully without the script dying with it. - Press Menu + Select and then B, then Exit.
  • Important: Do not interrupt this process, you should see cleanup changes
  • Start the game in single player mode (Just click it from recents/fav etc) and it should load your save.
  • Observe in both games you have now traded Pokemon.

Note : this process generate backup for the concernade game SAVES FILES and also your STATES FILES

Have fun !

@jboss38 Are you saying we can trade between Emerald and Fire Red now?

@jr9011
Copy link

jr9011 commented Mar 26, 2025

Is it just between fire red and leaf green?

@jboss38
Copy link
Author

jboss38 commented Mar 26, 2025

Is it just between fire red and leaf green?

Between fire red and leaf green yes it's working, I didn't try something else. But I think it should work with Ruby and Sapphire too.
I don't know about Emerald, but keep it mind that is like the official version, I think you need to complete the game with RED Fire before being able to trade with Emerald, if you want, you can test it I would appreciate.

@jr9011
Copy link

jr9011 commented Mar 27, 2025

@jboss38 hey bro, sorry but how to add this script into which folder?

@jboss38
Copy link
Author

jboss38 commented Mar 27, 2025

@jboss38 hey bro, sorry but how to add this script into which folder?

You can download the 3 files and put on your SDCARD to this path

ADD :
.tmp_update/script/netplay/easy-netplay_client_pokemon_GBA.sh
.tmp_update/script/netplay/easy-netplay_server_pokemon_GBA.sh

Replace :
App/romscripts/Netplay.sh

Be sure to make a BACKUP of the original App/romscripts/Netplay.sh
Also be sure to make a BACKUP of all of your saves and states ROM.

After follow up the "How to run it" on first post

@jr9011
Copy link

jr9011 commented Mar 30, 2025

@jboss38 you sir, are a genius

@jr9011
Copy link

jr9011 commented Mar 30, 2025

@jboss38 just realized ruby and sapphire don't have wireless trading function.....does that mean it's not possible to trade ruby and emerald?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants