Noob here getting stuck into Unet [edited title]: Server drops connection and cannot be found again.

Hey all,

I admit, the post title/topic is a little vague - but I wanted you to know straight that I am a noob (unity/GameDev since January 2016).

I have what I feel is a basic game that I’m making… and it works quite well. However I’m having a disconnection issue with my game. After about 5-10 minutes of playing all clients are booted back to the offline scene. And then when they try to search for the game again, it’s no longer there in the matchmaking system. However the server/host is still playing with no problems.

At this point, though, I feel that it is worth saying that the profiler shows that at this point the server STOP sending “Unbuffered Msgs Out” at this point altogether. It’s as if it either A) decides to just stop sending, B) loses it’s connection to the matchmaker service or C) something else entirely. As I’m just starting out on this venture I’m not going to be placing bets on which it is…

Please… OH PLEASE, could anyone help me? I’m not asking for someone to take my code and ‘Fix’ it - although that would be really swell of you :wink: . But if anyone could point me in the right direction for network debugging and the like I would be Eternally (Yes Eternally!!!) grateful. I’ve been posting a lot on the Beginners forum, and this is my first REAL venture out into the big bad word of the forums… so go easy on me :S

Allow my just to say that I have found the documentation on networking to be a little… flimsy - at least from a beginners stand point. I’ve had to dug up the source code for the NetworkManagerHUD on this forum and examine it, struggle through the docs and reverse engineer it just to understand how to replicate it myself (I have a feeling though that this is the norm :wink: ). I have gone through the networking tutorials by “Gamer to Game Developer” and also a good chunk of those available from Unity Technologies, but nothing seems to handle this sort of issue, or how to debug it. I understand that Unet is still in it’s infancy, so if anyone from Unity Technologies stumbles across this please don’t think that I’m ungrateful… on the contrary! I love you guys.

Please note that I WILL look at whatever you link up and I WILL put the effort in to figure all this out. If anyone could help, please do so.

Thank you for reading this, and thank you in advance for any help.

MIke

P.S. This is a spinoff/duplicate of a thread in the beginners forum… but thought it would be better suited here.

P.P.S. I can send up vids/screenshots and text from the debugger or whatever if this will help!

Thanks again, all you lovely people, you!

I’ve just put a youtube video up of the problem. An embedded link for it can be found at this thread: