- Home /
Plugins for Photon?
Is there a way I can write code to run on my game's servers (hosted on Amazon EC2)? I don't need to do anything too intense like simulating physics or unit stats. I need to use the server as a middle man to process commands for my lockstep RTS game.
What I wish to do: Every time a client tells a unit to move, the move command will be sent to all players. Every player, upon receiving the command, will send a confirmation message to the server. Once the server has received confirmation from all clients, it will send an RPC to all clients to let them know that the command is ready to be executed. If not, it will send the ID of the player who is not confirmed and a voting screen will pop up to vote that unconfirmed player out of the game.
To accomplish this, I will have to 1. Have an RPC on the server to be called for confirmations and 2. Send an RPC from the server if all clients are confirmed. Is this possible with Photon Unity Networking?
Do I have to edit a certain script or insert my own into a directory?
I'd go to the photon thread and check there or read their docs on this.. but you refer to RPC, why do you need photon?
@$$anonymous$$hos85 I need to use the server to implement the lockstep system and I intend to do this as described in my question.
Ins$$anonymous$$d of a player sending confirmations to every other player, I want the server to store the confirmations and send out an RPC when all players are confirmed for a command. This would drastically reduce the bandwidth demand on players and take advantage of packets going through the server.
I can't find how to do this in the documentation. If you know of it, can you link it please?
Hi , I'd try asking on the photon thread too http://forum.unity3d.com/threads/photon-unity-networking.101734/
I posted a question there but it'd still be nice getting an answer here.
Answer by jpthek9 · Jan 29, 2015 at 07:20 PM
This can be done in the room.cs file in the photon server sdk by following this tutorial: http://doc.exitgames.com/en/onpremise/current/tutorials/adding-operations.
Your answer
Follow this Question
Related Questions
Detect if webplayer is supported or not from UserAgent 0 Answers
Problems with Photon self-hosted server 0 Answers
Wrong App ID given for upgrading photon CCU,Wrong App Id given for upgrading the Photon CCU 0 Answers
How can I architect a persistent RTS using Unity as the client? 0 Answers
Photon Server Tutorials? Or Alternative Networking Asset 2 Answers