Questions about dedicated servers

Question 1:
When I start my dedicated server it connects to a master server and sends it’s info. When the client downloads the server info from the master server it shows the server as having one client connected already. I don’t want the dedicated server to show up as a player. How do I fix it?

Question 2:
Is there a way to disable rendering of certain objects on the server? I don’t see a reason for rendering the player on the server.

Thanks in advance for any help.

for #1, you could easily fake it by subtracting 1 from the total number of clients displayed.

for #2, could you just turn off the camera for the server? I’m no Unity expert, but it seems like it wouldn’t render anything w/o a camera. If you want to render some things, but choose to not render other things, you can easily do so using layers.

also, another tip for dedicated servers (found in the excellent zero 2 hero guide: http://forum.unity3d.com/viewtopic.php?t=30788 ):

“When running a dedicated server, you should use “Application.targetFrameRate”to make sure unity
doesn’t try to run your server at 1000+fps, hogging your resources.”

  1. You need Unity Pro to run true dedicated (-batchmode) and then have scripts that do all automatically instead of relying on input to configure it post start

#1: Bah that’s too easy :wink:

#2: I forgot about layers. If I turn off the camera will the gui still render? If not then the layer approach would work.

Thanks for the help. Hopefully the next time I seek it I will have tougher problems to solve :wink: