sandbox approch
Options
Hello I am an experienced person in unity however I never did a network before my project is about to send box I would like to make a multiplayer game that we've no master which photon solution is the best for my project I'm working on unity and I just download pun2 I probably didn't find everything about this subject but all the tutorial I have seen is base on a master player which I think is not the best solution to sync npc .. and everything else by the servers thanks for any jump-start you can give me because I'm a bit turning around different network solution if is that possible I would like to use at least during the development the cloud server
0
Best Answer
-
Hi @utopien,
when you use the Photon Cloud or even the Server SDK, you will always have one MasterClient per room (one exception: the room is empty and kept alive in the server's cache). A common approach in the Cloud is, to handle game logic or relevant events on the MasterClient. The reason therefore is, that you don't have server-side custom logic by default.
To run server-side custom logic you basically have two different options. The first one is to use Plugins in order to inject custom code into predefined Photon Server hooks. This works when you host the server yourself or by using the Enterprise Cloud. The second options is, to implement the server application entirely on your own. In this case you would have to host the server yourself.5
Answers
-
Hi @utopien,
when you use the Photon Cloud or even the Server SDK, you will always have one MasterClient per room (one exception: the room is empty and kept alive in the server's cache). A common approach in the Cloud is, to handle game logic or relevant events on the MasterClient. The reason therefore is, that you don't have server-side custom logic by default.
To run server-side custom logic you basically have two different options. The first one is to use Plugins in order to inject custom code into predefined Photon Server hooks. This works when you host the server yourself or by using the Enterprise Cloud. The second options is, to implement the server application entirely on your own. In this case you would have to host the server yourself.5 -
thanks a lot0