spacemeowx2 / ldn_mitm

Play local wireless supported games online
GNU General Public License v2.0
692 stars 98 forks source link

Update 14.x #121

Closed dogty closed 2 years ago

spacemeowx2 commented 2 years ago

Thanks, will try it later

dogty commented 2 years ago

There are things that need to be reviewed in my opinion I had feedbacks of people having trouble joining rooms or even seeing one (even though they were connected on the website) when 14.1.0 came out (no problem was seen in 14.0.0). When I looked at the logs getdisconnectreason was called a lot of times. Lan-play also seems to behave differently. I would have loved to debug more but I need two Switch in order to debug properly. I can give you the debug files I've recorded if you want.

spacemeowx2 commented 2 years ago

It seems that the actions configuration needs to be updated, let me debug it

dogty commented 2 years ago

Out of curiosity where do you get the updated information on how you should set the action configurations? Where do you get the information on how a specific interface works?

spacemeowx2 commented 2 years ago

A1:

https://github.com/spacemeowx2/devkitpro-action/tree/v2

Just compile it using act, and fix it by error message..Such as update libnx and toolchain.

A2: By reverse engineering the ldn service or a specific game with symbols(as far as I know, the first version of Diablo 3 leaked the elf file with symbols), it is possible to infer how the interface works

dogty commented 2 years ago

My mistake Ive already updated the actions configuration by fotking your actions you can check my fork if you want.

I was more interested in the re of the interfaces

spacemeowx2 commented 2 years ago

The reverse part of the job is very boring... One thing I didn't mention is that when I first started writing ldn_mitm, I would use mitm to record the bare bytes of ipc, and then parse it manually....

Simply put, it's a cycle of error, restart, modify, update, and error again

dogty commented 2 years ago

That's what I started doing I thought there was maybe some kind of documentation the only thing I found was that https://github.com/kinnay/NintendoClients/wiki/LDN-Protocol#advertisement-frame it gave me a good starting point but I thought there was something else. Thank you!

spacemeowx2 commented 2 years ago

https://switchbrew.org/wiki/LDN_services#Network_protocol

Look here too, although you may have already seen it

dogty commented 2 years ago

Yes I have but thank you!