[Bug] Multiplayer Pokémon Scarlet connection error #463

Open
opened 2024-12-29 00:41:35 +00:00 by Fotia13 · 12 comments
Fotia13 commented 2024-12-29 00:41:35 +00:00 (Migrated from github.com)

Description of the issue

Hello, I think I need help for multiplayer with Pokémon Scarlet.
Context:

  • I'm in the same LAN as my brother
    Network scheme,
  • Ryujinx is allowed in the Windows Firewall rules on both computers and both inbound (TCP & UDP) and outbound (all protocols)
  • We have both the same Ryujinx version (tried with 1.2.76 and canary 1.2.161)
  • Same prod.keys
  • Same Firmware version (18.1.0)
  • Same Pokémon Scarlet [0100A3D008C5C000] with the same update 3.0.1 (the canary I used doesn't show the version) and also same DLC
    Version
  • Not the same save, we both created a new save file
  • RyuLDN with Guest Internet Access/LAN Mode on (I read the guide afterwise)
  • Vsync is on on both computer
  • 51 Worldwide Games [010047700D540000] worked flawlessly in local multiplayer with this setup

So with this setup we managed to connect with Union Circle like 1-2 minutes and then got connection error and everytime we try to reconnect same error in like 2 seconds.
Host PoV:
Host
Guest PoV:
Guest
We've tried with Guest Internet Access/LAN Mode off doesn't work (because we are in the same LAN I guess).
We've tried with ldn_mitm with Guest Internet Access/LAN Mode on and off and it does the same as RyuLDN.
So I looked the logs and I read HLE.OsThread.9 ServiceLdn ConfigureAccessPoint: Failed to open a port with UPnP for P2P connection. Proxying through the master server instead. with RyuLDN so I looked at my router parameters and UPnP IGD is activated with version 2 and Parsec works.
UPnP
I created a new user on both computer and it doesn't change the problem.
And then I finally managed to get the ability to read and read that RyuLDN is only over the internet and Pokémon Scarlet isn't on the list of LAN Mode Games.
So I connected my computer to my phone in access point mode and changed the interface in Ryujinx to my phone and same error.

Is there any way for us to play Pokémon Scarlet in multiplayer?
And also why UPnP doesn't work for me, I have a Freebox révolution with Freebox OS 4.8 (a french router) and it did the same with my phone but I won't be surprised if my phone doesn't do UPnP.

Reproduction steps

Launch Ryujinx with 2 computers with the following parameters: RyuLDN and Guest Internet Access/LAN Mode off.
parameters
Play Pokémon Scarlet on both, one create a club room and the other join the first with a 4 digits code then wait and connection error should appear.

Log file

Ryujinx_Canary_1.2.161_2024-12-28_22-23-15.log

OS

Windows 10 64 bits

Ryujinx version

1.2.76 and canary 1.2.161

Game version

3.0.1

CPU

AMD Ryzen 7 5700X 8 core

GPU

NVIDIA GeForce RTX 3060 Ti

RAM

32GB

List of applied mods

None

Additional context?

Sometimes I have to open ports on my router like when I host a minecraft server.

### Description of the issue Hello, I think I need help for multiplayer with Pokémon Scarlet. Context: - I'm in the same LAN as my brother ![Network scheme](https://github.com/user-attachments/assets/cb6e3f5d-de11-4147-bf2f-1b603e39260e), - Ryujinx is allowed in the Windows Firewall rules on both computers and both inbound (TCP & UDP) and outbound (all protocols) - We have both the same Ryujinx version (tried with 1.2.76 and canary 1.2.161) - Same prod.keys - Same Firmware version (18.1.0) - Same Pokémon Scarlet [0100A3D008C5C000] with the same update 3.0.1 (the canary I used doesn't show the version) and also same DLC ![Version](https://github.com/user-attachments/assets/47cf7037-697e-4c5b-b230-4ca0d236c337) - Not the same save, we both created a new save file - RyuLDN with Guest Internet Access/LAN Mode on (I read the guide afterwise) - Vsync is on on both computer - 51 Worldwide Games [010047700D540000] worked flawlessly in local multiplayer with this setup So with this setup we managed to connect with Union Circle like 1-2 minutes and then got connection error and everytime we try to reconnect same error in like 2 seconds. Host PoV: ![Host](https://github.com/user-attachments/assets/b06dab9d-95d9-4406-bc26-2e34631a5be8) Guest PoV: ![Guest](https://github.com/user-attachments/assets/87505fd2-7043-4f8d-a8af-1f6822099219) We've tried with Guest Internet Access/LAN Mode off doesn't work (because we are in the same LAN I guess). We've tried with ldn_mitm with Guest Internet Access/LAN Mode on and off and it does the same as RyuLDN. So I looked the logs and I read `HLE.OsThread.9 ServiceLdn ConfigureAccessPoint: Failed to open a port with UPnP for P2P connection. Proxying through the master server instead.` with RyuLDN so I looked at my router parameters and UPnP IGD is activated with version 2 and Parsec works. ![UPnP](https://github.com/user-attachments/assets/45c3c308-eec5-4dc2-a2f5-9cb6e314fecc) I created a new user on both computer and it doesn't change the problem. And then I finally managed to get the ability to read and read that RyuLDN is only over the internet and Pokémon Scarlet isn't on the list of LAN Mode Games. So I connected my computer to my phone in access point mode and changed the interface in Ryujinx to my phone and same error. Is there any way for us to play Pokémon Scarlet in multiplayer? And also why UPnP doesn't work for me, I have a Freebox révolution with Freebox OS 4.8 (a french router) and it did the same with my phone but I won't be surprised if my phone doesn't do UPnP. ### Reproduction steps Launch Ryujinx with 2 computers with the following parameters: RyuLDN and Guest Internet Access/LAN Mode off. ![parameters](https://github.com/user-attachments/assets/94264448-8937-4fbe-8fb7-1759717880b3) Play Pokémon Scarlet on both, one create a club room and the other join the first with a 4 digits code then wait and connection error should appear. ### Log file [Ryujinx_Canary_1.2.161_2024-12-28_22-23-15.log](https://github.com/user-attachments/files/18268022/Ryujinx_Canary_1.2.161_2024-12-28_22-23-15.log) ### OS Windows 10 64 bits ### Ryujinx version 1.2.76 and canary 1.2.161 ### Game version 3.0.1 ### CPU AMD Ryzen 7 5700X 8 core ### GPU NVIDIA GeForce RTX 3060 Ti ### RAM 32GB ### List of applied mods None ### Additional context? Sometimes I have to open ports on my router like when I host a minecraft server.
Vudjun commented 2024-12-30 04:34:25 +00:00 (Migrated from github.com)

If you're running on the same network, changing the mode to ldn_mitm should work for you. The connection will then be direct between the two PCs. The current implementation of uPnP seems to have issues with many routers, idk why.

If you're running on the same network, changing the mode to ldn_mitm should work for you. The connection will then be direct between the two PCs. The current implementation of uPnP seems to have issues with many routers, idk why.
Fotia13 commented 2024-12-30 18:20:07 +00:00 (Migrated from github.com)

Nope same issue with ldn_mitm, I put this parameter to the 2 computers:
retry ldn_mitm

and after 2-3 minutes we get the same error,
Host:
Host-Ryujinx_Canary_1.2.186_2024-12-30_19-07-12.log
error host
Guest:
Guest-Ryujinx_Canary_1.2.186_2024-12-30_19-08-26.log
error guest

Also I tried with Ryujinx_Canary_1.2.186 on both computers this time.

Nope same issue with ldn_mitm, I put this parameter to the 2 computers: ![retry ldn_mitm](https://github.com/user-attachments/assets/94b51b10-11d9-44b8-9d2a-82f02a5d5235) and after 2-3 minutes we get the same error, Host: [Host-Ryujinx_Canary_1.2.186_2024-12-30_19-07-12.log](https://github.com/user-attachments/files/18276953/Host-Ryujinx_Canary_1.2.186_2024-12-30_19-07-12.log) ![error host](https://github.com/user-attachments/assets/56bc98b3-e0b1-44a4-9bfd-22654f38c054) Guest: [Guest-Ryujinx_Canary_1.2.186_2024-12-30_19-08-26.log](https://github.com/user-attachments/files/18276955/Guest-Ryujinx_Canary_1.2.186_2024-12-30_19-08-26.log) ![error guest](https://github.com/user-attachments/assets/b1c8cf8e-d202-467b-b1e8-6d9995cd48e8) Also I tried with Ryujinx_Canary_1.2.186 on both computers this time.
FalconTheBerd commented 2024-12-31 00:46:54 +00:00 (Migrated from github.com)

im pretty sure you need to turn on Guest Internet Access/LAN as well

im pretty sure you need to turn on Guest Internet Access/LAN as well
Fotia13 commented 2024-12-31 00:57:59 +00:00 (Migrated from github.com)
Still the same with Guest Internet Access/LAN on ![still same](https://github.com/user-attachments/assets/be02b21c-8348-47fd-b74b-7e2ed326aaf4) [Host-Ryujinx_Canary_1.2.186_2024-12-31_01-48-24.log](https://github.com/user-attachments/files/18278587/Host-Ryujinx_Canary_1.2.186_2024-12-31_01-48-24.log) [Guest-Ryujinx_Canary_1.2.186_2024-12-31_01-49-17.log](https://github.com/user-attachments/files/18278588/Guest-Ryujinx_Canary_1.2.186_2024-12-31_01-49-17.log)
geminiwen commented 2025-02-07 15:44:52 +00:00 (Migrated from github.com)

Meet the same issue, I played with my family between Ryujinx Emulator and a Hacked Nintendo switch with ldn_mitm enabled.

Meet the same issue, I played with my family between Ryujinx Emulator and a Hacked Nintendo switch with ldn_mitm enabled.
Daenorth commented 2025-02-07 15:50:21 +00:00 (Migrated from github.com)

Image

Enable that neat little button too.

![Image](https://github.com/user-attachments/assets/15552161-d297-4ae8-a21d-5aee3c3e3e1c) Enable that neat little button too.
geminiwen commented 2025-02-08 06:59:22 +00:00 (Migrated from github.com)

Image

Enable that neat little button too.

Thanks, but certainly I had checked this checkbox. If not, I could not get connect with my partner. This issue will occur in 2-3 mins after we got connected. And after disconnected, only after I re-emulated my game, otherwise I could not connect switch terminal any more.

> ![Image](https://github.com/user-attachments/assets/15552161-d297-4ae8-a21d-5aee3c3e3e1c) > > Enable that neat little button too. Thanks, but certainly I had checked this checkbox. If not, I could not get connect with my partner. This issue will occur in 2-3 mins after we got connected. And after disconnected, only after I re-emulated my game, otherwise I could not connect switch terminal any more.
geminiwen commented 2025-02-08 12:21:00 +00:00 (Migrated from github.com)

I tested Ryujinx-mirror versioned r.49574a9. It works as expected.

I tested [Ryujinx-mirror](https://github.com/ryujinx-mirror/ryujinx) versioned r.49574a9. It works as expected.
Fotia13 commented 2025-02-10 20:08:59 +00:00 (Migrated from github.com)

I tested Ryujinx-mirror versioned r.49574a9. It works as expected.

This version works for us thanks a lot!

> I tested [Ryujinx-mirror](https://github.com/ryujinx-mirror/ryujinx?rgh-link-date=2025-02-08T12%3A21%3A00.000Z) versioned r.49574a9. It works as expected. This version works for us thanks a lot!
GreemDev commented 2025-02-10 20:14:41 +00:00 (Migrated from github.com)

Oh cool so I guess this won't be fixed ever lol

Oh cool so I guess this won't be fixed ever lol
Vudjun commented 2025-02-10 20:27:29 +00:00 (Migrated from github.com)

Oh cool so I guess this won't be fixed ever lol

Since it works in the original code in ryujinx-mirror that gives us something to compare to.

There's a good chance it's something that I changed in one of the shared RyuLdn/ldn_mitm classes. I couldn't reproduce the issue myself when I tried with two emulators on the same PC but I'll try with emulator to switch at some point.

> Oh cool so I guess this won't be fixed ever lol Since it works in the original code in ryujinx-mirror that gives us something to compare to. There's a good chance it's something that I changed in one of the shared RyuLdn/ldn_mitm classes. I couldn't reproduce the issue myself when I tried with two emulators on the same PC but I'll try with emulator to switch at some point.
capito27 commented 2025-02-19 21:35:03 +00:00 (Migrated from github.com)

I tested Ryujinx-mirror versioned r.49574a9. It works as expected.

Slightly unrelated to the ldn_mitm issues at hand with Pokemon SV, but still related to the multiplayer subsystems (in Pokemon SwSh).

I just wanna report that I stumbled upon this thread when trying to make LAN trading between Pokemon Sword and Shield work (my Shield version running on latest RyujiNX from this repo on Mac OS M1, and Sword running on an OFW switch, both latest firmware and game version), it was failing for a couple hours, and following some online threads from a couple years ago were somewhat unhelpful (disabling IPv6, running an NMAP scan, ...).
However, as soon as I downloaded this specific version, LAN mode worked instantly and flawlessly between the emulator and console.

For posterity, the precise steps I took for it to work :

  • Disabled IPv6 (remnants from previous testing, couldn't be bothered to enable it again)
  • Start both games, and enable LAN mode
  • On switch, create a Link Trade with a code
  • On Emu, create a Link Trade with same code
  • 5-10 seconds later, the trade went through
> I tested [Ryujinx-mirror](https://github.com/ryujinx-mirror/ryujinx) versioned r.49574a9. It works as expected. Slightly unrelated to the ldn_mitm issues at hand with Pokemon SV, but still related to the multiplayer subsystems (in Pokemon SwSh). I just wanna report that I stumbled upon this thread when trying to make LAN trading between Pokemon Sword and Shield work (my Shield version running on latest RyujiNX from this repo on Mac OS M1, and Sword running on an OFW switch, both latest firmware and game version), it was failing for a couple hours, and following some online threads from a couple years ago were somewhat unhelpful (disabling IPv6, running an NMAP scan, ...). However, as soon as I downloaded this specific version, LAN mode worked instantly and flawlessly between the emulator and console. For posterity, the precise steps I took for it to work : - Disabled IPv6 (remnants from previous testing, couldn't be bothered to enable it again) - Start both games, and enable LAN mode - On switch, create a Link Trade with a code - On Emu, create a Link Trade with same code - 5-10 seconds later, the trade went through
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MeloNX/Ryujinx-ryubing#463
No description provided.