Connect clients using the p2p adapter THNK

How do I connect clients using the THNK p2p adapter consistently. I have attached screenshots below, but and the client will join the scene “createdlobby”, but 20% of the time it will not join the scene 70% of the time not create either object and 10% of the time only create the player object, but it won’t create both, am I trying to connect the clients incorrectly?



Screenshot 2025-01-27 225450

You are using THNK conditions before connecting to the server, and you are changing the scene using change scene action, that’s not how it works.

  • In your first screenshot, remove the conditions (running on client/running on server).
  • Your main menu scene events should be like this:
    • at the beginning of the scene, → connect to default broker server.
    • P2P is ready → Create the buttons objects (host/join buttons).
    • If Host is pressed → start scene “CreatedLobby” over P2P.
    • If Join is pressed → Connect to scene with the ID “” (you enter the host ID here)

that’s just the basics, I recommend reading THNK documentation and follow the tutorial to understand how it works:

i also made 2 templates teaching THNK if you want to check them out: