Authoritative Photon server advice needed
Options
Hello,
I am making a Unity3D game currently using Photon cloud and would really like to expand into a dedicated server (either hosted by me or ExitGames).
Knowing this, I have already built the current networking code in the game as its own standalone 'entity' (that runs on the master client) that is almost utterly decoupled from the clients code. My hope is that upon setting up a Photon server I can simply migrate this 'server' code the the actual physical server with little trouble.
The problem I have is finding any comprehensive tutorial or guide showing how to do this (there's a few that show how to start-up a server but none that I found showing game code running on the server managing clients in a 'room').
Also, I only hold a Unity3D free licence (can't use plugins and such), will that be an issue?
Any help in pointing me in the right direction would be great, thanks!
I am making a Unity3D game currently using Photon cloud and would really like to expand into a dedicated server (either hosted by me or ExitGames).
Knowing this, I have already built the current networking code in the game as its own standalone 'entity' (that runs on the master client) that is almost utterly decoupled from the clients code. My hope is that upon setting up a Photon server I can simply migrate this 'server' code the the actual physical server with little trouble.
The problem I have is finding any comprehensive tutorial or guide showing how to do this (there's a few that show how to start-up a server but none that I found showing game code running on the server managing clients in a 'room').
Also, I only hold a Unity3D free licence (can't use plugins and such), will that be an issue?
Any help in pointing me in the right direction would be great, thanks!
0
Comments
-
Game code on cloud server is same as you can download from exitgames.com. this means that you are able to connect either to your server or to cloud version. this should not be a problem from server code point of view.
From your post i do not understand why do you want to expand to dedicated server. You said that everything is done on master client, so...
Unit3D license shoudl not be problem0 -
Sorry, by expand I mean transition from cloud based to server.
I should expand a little more:
By game code on server I mean my game code and not the Photon stuff (ie the logic controlling and validating in-game actions and validation such as having enough resource to play a card etc).0 -
Hey,
sorry for the late response.
The switch from Photon Cloud to a self-hosted Photon Server is easy:
- Download the Photon Server SDK
- start PhotonControl.exe
- start the "LoadBalancing" instance
- change the URL in your client to your local IP
Done!
If you want to modify the server-side code in the next step, I suggest that you have a look at our tutorials, especially the "Adding Operations" as a starting point:
http://doc.exitgames.com/en/onpremise/c ... operations
And if you want to know more of the "structure" of the LoadBalancing setup, please read here:
http://doc.exitgames.com/en/onpremise/c ... -balancing
Please let us know if you have further questions!
If you want to implement your own server-side logic, please check out our "tutorial" section as a starting point0 -
The links are broken. Is there an updated tutorial/code available?[Deleted User] said:
If you want to modify the server-side code in the next step, I suggest that you have a look at our tutorials, especially the "Adding Operations" as a starting point:
http://doc.exitgames.com/en/onpremise/c ... operations
And if you want to know more of the "structure" of the LoadBalancing setup, please read here:
http://doc.exitgames.com/en/onpremise/c ... -balancing
Please let us know if you have further questions!
If you want to implement your own server-side logic, please check out our "tutorial" section as a starting point0