I've found the problem but don't know the solution
So I did some Debugging.
Basically client is stuck connecting to name server.
I have a menu scene.
When I go in my menu scene and load up my multiplayer menu connectomasterclient works fine.
When I first go from my menu scene to my offline scene and back to my menu scene.
And then go to my Multiplayer menu, when I call connectusingsettings the client is stuck on connecting to the name server.
Both states are Disconnected (Debug log from NetworkClientState).
How do I go about fixing this
Answers
-
If I check Start In offline mode in photonserversettings then the editor and client can't connect to each other.
0 -
Hi @kkost,
Thank you for choosing Photon!And then go to my Multiplayer menu, when I call connectusingsettings the client is stuck on connecting to the name server.
Both states are Disconnected (Debug log from NetworkClientState).
How do I go about fixing this
Implement or override OnDisconnected callback.
Otherwise, see "Fist Aid" section (and subsection).If I check Start In offline mode in photonserversettings then the editor and client can't connect to each other.
0 -
Many thanks for replying, I will try this out and report back in the next few days.
0 -
Is there a way I could manually disconnect from the name server?
0 -
Another thing is, if I check the start in offline mode and connect to online by making sure I disconnect from the offline room and setting PN.offlinemode is false , I do not get this issue of being stuck on the name server but two clients can't connect to each other.
0