kinnay / NintendoClients

Python package to communicate with Switch, Wii U and 3DS servers
MIT License
547 stars 66 forks source link

ACNH: how to search for friends with open gates? #40

Closed ioistired closed 1 year ago

ioistired commented 4 years ago

It'd be great to be able to search for open islands without a Dodo Code. What is the process for that?

ioistired commented 4 years ago

Any update on this? It's now more useful to me as I want to find out how to become someone's friend without having to bot visiting their island and leaving again. Being their friend, in turn, would be useful in order to automate sending letters to someone with just their switch friend code.

kinnay commented 4 years ago

Sorry I have very little time at the moment because of my bachelor's thesis. I also want to redesign the code with an async library before I implement any new features, because the current scheduler is really broken. You'll have to figure this out on your own for now.

ioistired commented 4 years ago

ok

ioistired commented 4 years ago

well, I'll leave this open as a reminder for me to figure it out.

kinnay commented 4 years ago

I figured it out. The game calls FindMatchmakeSessionByParticipant. The friend pids are probably obtained from the baas server (2.0.0/users/<id>/friends).

kinnay commented 1 year ago

I implemented 2.0.0/users/<id>/friends: https://github.com/kinnay/NintendoClients/commit/71d77bb086c330be80df155b4eb26767a27664d2