OK guys in my game with photon server i can connect to the server and make room and connect to it.
Now big answer. with unity network i used networView.rpc bal bla bla so i used the RPC TO SHARE INFORMATION
NOW WITH PHOTON SERVER HOW CAN I DO TO SHARE INFO THERE IS SOMETHINCK LIKE THE RPC???
In PUN you can call RPCs just like in Unity’s Networking.
If you explicitly want to do something in the Photon Server, you would call “operations” and get “responses” for those (think: return values).
Too much for a reply here. Read: Fusion 2 Introduction | Photon Engine
i have tried to use the photon sdk in mine game but if i use the stuff like PhotonNetwork.isMasterClient dont’ works so i can’t implement the skd with photon server.
The Server SDK includes all the executables needed to run a server for Photon Unity Networking.
The configuration you should start from PhotonControl is named “LoadBalancing (MyCloud)”.
For a first run, just make sure your clients are setup to connect to the local machine (127.0.0.1:5055 as address). You can do this through the wizard or by modifying the PhotonServerSettings asset.
Clients can only connect to the local server if they runs on the same machine (and not even in a mobile device emulator) as the server, so start 2 clients on the same machine.
Next step would be to update the server’s IPs settings via PhotonControl’s “Game Server IP Config” to an IP available in the network you use (or publicly available).
Some docs:
Another quest how can i send message between 2 player in the room (Photon Server) to message i mean like variable value stuff like that
Use an RPC.
Read: Fusion 2 Introduction | Photon Engine
Edit: Ups. 2 weeks old. Didn’t notice.
Hello everyone
I visited https://www.exitgames.com/ site but there are too much documents and I don’t know how to start learning. Could someone tell me where I can start to learn Photon server to develop a Action game (God of War like) ?
What Photon framework, library, documents to read first ?
Thank you.
You should start small and on the client side only. Just to get the idea of what issues you have to expect in networking games.
As in the post above, I recommend the Marco Polo Tutorial. It’s basic and not too big but you can play around with the code and try to re-do it out of memory and adjust the pieces it’s got.