ldn_mitm - Play local wireless supported games online

upload_2018-12-7_13-51-15.png

Whether lurking on an older firmware, banned from online activities, or unwilling to fork out for Nintendo's Switch Online, a lot of us find ourselves stuck in the void of single-player gaming. The release of switch-lan-play opened doors previously closed, allowing us to play a select list of games online regardless of bans and subscriptions. Taking another step forwards, we have ldn_mitm: a custom kip to break the final chains, to allow almost every game supporting local wireless to be enjoyed online.

Requirements:
  1. Atmosphère 0.8.0+ SXOS 2.5 Beta+
  2. switch-lan-play (setup guide)
  3. ldn_mitm
How to Use (Atmosphere):
  1. Download the zip from the release pages.
  2. Extract the zip to your sd card,
  3. Boot up Atmosphere with fusee primary.bin
  4. Start your game of choice, and select local wireless play
  5. (Optional) Use official Switch-lan-play discord to match make and find other players,

How to Use (SXOS):
  1. Download the latest SXOS. Here
  2. Go to SX Menu then to options.
  3. Enable ldn_mitm,
  4. Go in-game and select the Wireless Play Option (If you see an L in your WiFi bars that means that the kip did not load and that you need to reboot)
You can find a list of currently tested games here.


It is recommended to only use ldn_mitm and lan-play.exe from their official releases, third-party apps and homebrew are not supported.


K0aQEb0.png

B02KFiY.jpg

:arrow: Github
:arrow: Discord
:download: Download
 
Last edited by Cubuss,

Cencil

Well-Known Member
Member
Joined
Aug 24, 2016
Messages
292
Trophies
0
XP
1,122
Country
Canada
Seems like Pokemon sword and shield is working with ldn_mitm

Pokemon Sword And Shield is working with latest ldn_mitm, but it seems like the game will automatically disable 90dns therefor risking you getting banned,
So if you dont wanna get banned be careful and dont use ldn_mitm for now,



2019111119550500-3C66B776DB1AA06323037049FACD96D3.jpg
Amazing!! Who's down for some raid battles??
 

Ryft

Well-Known Member
Member
Joined
Nov 21, 2013
Messages
617
Trophies
1
Age
38
Location
Illinois
XP
1,010
Country
United States
Can not get this to work on latest Atmosphere and Switch firmware versions. Just hangs at the Nintendo Switch screen after I reboot and I have to delete everything.
 
  • Like
Reactions: Csmrcc

Csmrcc

Well-Known Member
Member
Joined
Sep 13, 2018
Messages
412
Trophies
0
Age
37
XP
905
Country
Spain
Can not get this to work on latest Atmosphere and Switch firmware versions. Just hangs at the Nintendo Switch screen after I reboot and I have to delete everything.
Same for me, maybe there is some sort of conflict with another kips?


Anyone knows if it would work with ringfit? I mean the net features. I guess not because there is no local multiplayer?
Thank you guys
 
Last edited by Csmrcc,

Ryft

Well-Known Member
Member
Joined
Nov 21, 2013
Messages
617
Trophies
1
Age
38
Location
Illinois
XP
1,010
Country
United States
Same for me, maybe there is some sort of conflict with another kips?


Anyone knows of it would work with ringfit? I mean the meet features. I guess not because there is no local multiplayer?
Thank you guys

Figured it out. You have to disable ftpd module to fix it.
 
  • Like
Reactions: Csmrcc

ShyPlox

Well-Known Member
Member
Joined
Jan 4, 2016
Messages
144
Trophies
0
Age
32
XP
127
Country
United States
Can not get this to work on latest Atmosphere and Switch firmware versions. Just hangs at the Nintendo Switch screen after I reboot and I have to delete everything.
Hey I’m having the same issue did u try booting with fusee primary

--------------------- MERGED ---------------------------

Figured it out. You have to disable ftpd module to fix it.
How do I got about doing that ? Also do I need to boot into fusee primary
 

JonJaded

Well-Known Member
Member
Joined
May 22, 2016
Messages
676
Trophies
0
XP
2,931
Country
United States
i guess you disable it via kosmos toolbox? i delete temporaly the ftp module in modules folder but anyway always crashed at power on :(

delete other sysmodules as well. Do you have things like emuiibo installed? ldn and emuiibo don't play nice.
 

RattletraPM

Well-Known Member
Member
Joined
Jan 18, 2017
Messages
897
Trophies
1
XP
8,341
Country
Italy
ldn_mitm 1.2.7 has been released with the fix already included. Please use the official version instead of the one attached in this post.
I think I've found a fix for ldn_mitm's crashes (error 2011-0301) with Sword/Shield. I haven't made a PR on spacemeowx2's repo as I've only had the chance to try it in action with these games so I don't know whether it's a proper fix or not, but if you only plan to play Pokémon with it, then I've done some pretty extensive testing and I didn't have to reboot the console once in the span of several hours. If anyone wants to check it out, I've attached a modded build here as well as the source file that's been changed you can check the source over at my ldn_mitm fork here.

Keep in mind this has only been tested on FW 9.0.1 & vanilla Atmosphère 0.9.4 and, even if both a KIP and NSP are available, I've only ever used the NSP version in my tests - no idea if the KIP works. Installation and usage instructions are the same as any other build. If you need ldnmitm_config.nro, you can use the same one from the latest official release.

If you're interested in the technical details, here's a more in-depth explanation:
The crashes happened due to a memory leak related to the sysmodule's worker threads. When exiting one of the said threads, ldn_mitm erroneously calls svcExitThread before workerThread.Join which makes the latter fail to exit cleanly and free is resources (return code 5977) and that causes the aforementioned leak. After some time, the sysmodule runs out of free memory and, thus, it becomes unable to create new worker threads (threadCreate return code 559, aka LibnxError_OutOfMemory). That's why you must reset the console once it crashes to make it work again.

Unless I misunderstood what the code does, calling svcExitThread shouldn't be needed at all because Join already waits for a thread to be done executing and then terminates it cleanly (in a nutshell, it first calls threadWaitForExit and then threadClose) so all this mod does is it just removes the svcExitThread call - so far, I haven't seen any adverse effects by doing so after around 24 hours of mixed online gameplay/idling, nor any Join/threadCreate errors in the logs. An issue like this wouldn't be limited to Pokémon only and old logs seem to confirm it, however, the crashes likely only popped up now because Pokémon sends a metric crapton of stuff over the network compared to the other Switch games, thus exhausting the available memory more quickly.

The module has been built from the master branch (commit f962ebc) with the included libstratosphere & latest stable libnx (2.5.0).

Errors 2618-0502 and 2618-0006 can sometimes (rather rarely) pop up but they're not the same as 2011-0301 and you do not need to restart your console to fix them: they pretty much only tend to happen when joining/leaving an event and the Switch will reconnect automatically after either waiting a bit or by entering another in-game area - check if you can access the Y-Comm to confirm whether you've reconnected successfully. If you still get other weird errors, make sure you're on FW 9.0.1 w/ Atmosphère 0.9.4 (earlier FW/AMS versions might cause strange behaviour in official builds as well).

Hopefully this helps and, if so, please let me know ^_^
 

Attachments

  • ldn_mitm-swshfix_NSP.zip
    129.5 KB · Views: 213
  • ldn_mitm-swshfix_KIP.zip
    131.5 KB · Views: 207
Last edited by RattletraPM,

RattletraPM

Well-Known Member
Member
Joined
Jan 18, 2017
Messages
897
Trophies
1
XP
8,341
Country
Italy
hi rattletra where put this lan_discovery.cpp???? what folder ? and where is the module what i delete?
lan_discovery.cpp is the modified source file, ignore it unless you're a developer.

If you're using the NSP version (recommended) download ldn_mitm-swshfix_NSP.zip from my post and extract its contents to your SD card (overwrite any files if asked). On the other hand, if you wish to use the KIP (untested, not recommended) first go to the atmosphere\kips folder on your SD and, if it exists, delete the old ldn_mitm KIP (if the folder doesn't exist, create it) then place the new one from ldn_mitm-swshfix_KIP.zip there.

You should only install one version, either the NSP or KIP, not both. Once you're done, you can proceed with the rest of the configuration as usual (running the lan-play client on your PC, configuring the Switch's Wi-Fi network, etc.)

(Also remember that the above instructions are only for Atmosphere - although you can likely get the sysmodule to work under Kosmos too by following them. You'll have to use some different paths if you run ReiNX and god knows if SX OS even lets you override its built-in ldn_mitm with something else).
 
Last edited by RattletraPM,

raulls

Member
Newcomer
Joined
Nov 19, 2019
Messages
10
Trophies
0
Age
34
XP
192
Country
Spain
everytime i try trade with someone,i will get error 2011-0301, few moments latter game will freeze/crash.

if i try join some raid, error 2618-0502

ldm 1.2.6 ,lan-play 0.2.6, 9.0.1/0.9.4 atmosphere, and am not using vpn

any idea whats happenning?
 

RattletraPM

Well-Known Member
Member
Joined
Jan 18, 2017
Messages
897
Trophies
1
XP
8,341
Country
Italy
sry, didnt saw it before, i will try it later, just asking, if i put ldn_mitm-swshfix on sd, i dont need use kip files?
Yes, it's like any other build, just drag and drop the files on the SD card and overwrite the old ones. Make sure to read the rest of the post if you encounter other errors.
(And it should go without saying but hey - it's an unofficial build, don't go complain to the devs if something's broken! Please let me know if it worked for tho, so I can confirm it's all good and I'll make a PR on ldn_mitm's GitHub repo)
 

Agusto101

Well-Known Member
Member
Joined
Jul 9, 2018
Messages
324
Trophies
0
Location
Guatemala
XP
974
Country
Guatemala
Yes, it's like any other build, just drag and drop the files on the SD card and overwrite the old ones. Make sure to read the rest of the post if you encounter other errors.
(And it should go without saying but hey - it's an unofficial build, don't go complain to the devs if something's broken! Please let me know if it worked for tho, so I can confirm it's all good and I'll make a PR on ldn_mitm's GitHub repo)
So how do I use it on sx os ? Can you tell please
 

abilaunken

Well-Known Member
Newcomer
Joined
Apr 30, 2009
Messages
81
Trophies
0
XP
662
Country
Brazil
Wait, i aways think that ldn_mitm just need to search for local players, lan-play is another solution...
For pokemon its just put the last 1.2.6 kip and ready to go?
 

RattletraPM

Well-Known Member
Member
Joined
Jan 18, 2017
Messages
897
Trophies
1
XP
8,341
Country
Italy
So how do I use it on sx os ? Can you tell please
(Also remember that the above instructions are only for Atmosphere - although you can likely get the sysmodule to work under Kosmos too by following them. You'll have to use some different paths if you run ReiNX and god knows if SX OS even lets you override its built-in ldn_mitm with something else).
I don't use SX OS and I very much doubt you can override its built-in modules with something else.
 
  • Like
Reactions: Agusto101

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Talk about propaganda.