How can i connect a server and client using THNK?

I have a problem actually i want to add a lan feature in my game using the thnk extension and the p2p adapter but i cant find any documentation or example on how to connect the client in the server even though i insert the same p2pID

I had the same problem just create two scene s one ClientStartUp and a ServerStartUp you can not have the connect and start p2p on scene.

so i need a menu then that two and i will just navigate to that scene the buttons in the menu?

Does your problem solved when implementing this approach?

MainScene
-ButtonClient go to ClientScene
-ButtonServer go to ServerScene

ClientScene
-At the begging of scene
Connect to a default broker server
Wait 1 second
Connect to p2p scene

ServerScene
-At the begging of scene
Connect to a default broker server
Wait 1 second
Start a p2p scene

Still not working for me do you have a example project can you drop your github?


Actually i downloaded the example of THNK but even the example doesnt work think the latest ver of gdevelop is not supported the framework anymore

I can share the connecting thing later.

1 Like