- Home /
MasterServer connection in Unity 3 fails
I have compiled a custom master server, basically just to have it running on our Linux Development machine, to be able to watch incoming messages and potentially use it for a future game of ours.
This worked (and still works) perfectly fine with Unity 2.6. After upgrading to Unity 3, no connection to the Master Server can be established, neither without any parameters (using the standard Unity Dev MasterServer), nor to our own MasterServer.
Unity 3 did make an upgrade to Raknet 3.732, so I figured "maybe the interface changed for the MasterServer, too", and tried to compile the MasterServer with replaced RakNet Source. Well, I made it compile (after some hours of trial and error compiling), and the connection from Unity 3 to the MasterServer is really established now.
Unfortunately, now the MasterServer crashes badly on Connection, appearantly because of an empty string for RakNets LightWeightDatabaseServer Table name.
Long story short, MasterServer 0.1.0 doesn't work with Unity3. So either they forgot that the Network Documentation needs some Updates in that part too when releasing Unity3, or I'm simply doing something wrong here.
Help in that matter would be greatly appreciated, we are currently putting a mario kart style racing game together, and the new clothing physics effects would make for some absolutely awesome powerup effects. But without NAT-capable networking based on a MasterServer, that's only half the deal.
Thanks for your time!
Answer by Crafty Firefox · Oct 15, 2010 at 08:54 AM
The problem was obviously solved in the forum:
http://forum.unity3d.com/threads/63631-Connection-to-master-server-fails
Just for convenience, the Link to the updated MasterServer sources for now is:
http://beta.unity3d.com/download/8020885265/download_servers.html
Answer by ClandestineMan · Oct 11, 2010 at 07:54 PM
I am having the same issues. We had no problems with the 2.6 unity, but sense the upgrade to Unity 3, we have not been able to connect to the Unity hosted Master Server or ours. One of our network guys think it might have to do with the www stuff they took out or whatever it was.
Sorry I am not more help. Did you find a solution?
As I described, the reason was not the www-stuff taken out, but the upgrade of RakNet. The upgraded $$anonymous$$asterServer would work without that strange crash, but as a Pro Customer, I don't think that it is my responsibility to fix the shortco$$anonymous$$gs of the Unity Release.
I already sent this to Unity Tech Support, but received no answer so far.
We are Pro Customer too. I found that my issues with connecting to the Unity $$anonymous$$asterServer was an issue with my code. I feel stupid now. lol, But I am still unable to connect to our own server. lol.
Your answer
Follow this Question
Related Questions
What are the options to distribute a final version of a multiplayer game? 1 Answer
Easy way to make my own Simple Master Server? 0 Answers
Master server in UNET 1 Answer
Unity Network Tutorial Master Server Question 1 Answer
Port forwarding 1 Answer