Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [photon]

Photon is networking and multiplayer middleware.

0
votes
0answers
14 views

Multiplayer Card Game using Photon Unity Networking

I'm making a card game using photon and an important issue i am facing is getting reference of other player objects that are instantiated on the network.The Card game allows players to swap cards with ...
0
votes
0answers
27 views

How can I get ping value from Photon Cloud?

I am trying to get ping from Photon Cloud but it always shows 0. I use method GetPing(); ...
0
votes
0answers
13 views

Photon Error while Upgrading to Unity 2018.2 error.

I've a project which was written in Unity 5.0. I tried upgrading it to Unity 2018.2. I've solved most of the errors. But there is an error which is not being fixed in "PhotonAnimatorViewEditor" Class. ...
0
votes
0answers
16 views

Can't access enum variable in specific namespace even using namespace

I need to access enum value which is located in ExitGames.Client.Photon.LoadBalancing. But even wrote "using ExitGames.Client.Photon.LoadBalancing", I still can't access to internal enum variable of ...
1
vote
1answer
129 views

How can I call a RPC from a different class?

How to call RPC function from a different class? Let's say my code is ...
0
votes
0answers
47 views

Unity Photon multiplayer :: check distance between two players

How to get distance between two player in a photon multiplayer game. Condition is both the player is moving. I have tried something like this, in my player control script: ...
0
votes
1answer
159 views

In Photon, What happens networked GameObject's ownership when master client disconnects?

I'm creating multiplayer game with Photon. When player disconnects, especially master client does, every GameObject instantiated from Master client is gone, so I can prevent with this: ...
0
votes
1answer
590 views

Photon disconnected without any error/warning message

I'm making online game with Photon and Unity. It was working fine, but suddenly players are disconnected without any warning or errors. It just happens sometimes fast, sometimes slow, but always ...
1
vote
2answers
365 views

synchronized transform is always 0,0,0 in Photon unity

I'm making a simple zombie co-op game with Unity and Photon and have problem with sync enemy transform. First, I need to explain my idea of chasing enemy AI. Enemies are using NavMeshAgent to finding ...
0
votes
1answer
383 views

How can I get fastest region server in Photon C++ Client API?

I am facing problem with my online multiplayer board game. It takes long time to create and join room. Also sometimes other player doesn't get the data. After searching all over the Photon C++ code I ...
1
vote
1answer
187 views

InvalidCastException when instantiating a prefab on the network using Photon

As stated in the title, I get this error when I try to instantiate a game object using Photon: InvalidCastException: Cannot cast from source type to destination type. NetworkingPeer....
1
vote
0answers
52 views

Best way to connect and save data in an online Android game [closed]

I'm new here, I'm in need of a help as it would be the most ideal way to proceed with my project. The project is very simple, a basic online rpg for android in specific (in the future can be migrated ...
0
votes
1answer
296 views

Synchronization between server's value and the one showed in a stat bar (health, stamina, mana…)

I am trying to implement a stamina system for my mmo. In few words, I computed everything on the server that then notifies the client. On the client I have a stamina bar that shows the stamina amount. ...
0
votes
0answers
214 views

Unity3D and Photon Networking RPG

Good time of the day. My question might sound stupid, due to the knowledge you might have, but here it is. I've purchased Diablo 3 a long time ago and been enjoying it since then. Since many of my ...
0
votes
1answer
133 views

How to share some elements of array with different players on Photon in the same Room? Unity3d

I want to assign cards to different players in the room. I've a Class "Cards" that contains an array of 52 cards like this: "2_of_spades","3_of_spades"....... and so on. All i want is to assign random ...
3
votes
1answer
541 views

Server logic on client side?

I am very confused by the PUN implementation of the Photon networking engine. It looks like I don't have to write a separate server so I'm very curious how this works. I have done quite some KryoNet ...
1
vote
1answer
254 views

Photon Unity Network with Socket IO Ambiguities

When trying to use Socket.IO along with PUN I get multiple errors similar to the one below: ...
0
votes
0answers
714 views

Unity Photon: Laggy movement even with smooth script

I am trying to make a pong game that implements multiplayer and I have chosen photon unity networking for this. I have a paddle prefab that gets instantiated and has a move script, a BoxCollider, a ...
0
votes
1answer
953 views

Unity3D: Photon syncing physics events

I'm making a billiard game and I wanna implement multiplayer in it. Since updating the movement in every frame is inefficient and laggy, I thought I could remake the events in game happen in all ...
1
vote
0answers
121 views

send data to specefic client in photon server

in new photon we have clientPeer instead of PeerBase. and in that we have connectionID instead of playerID. so when new client connects I assign a new id to it. but how to send a data to that client ...
1
vote
2answers
755 views

Not able to connect to Photon(PUN).photon unity networking error

I'm new to photon Networking. My game was working great suddenly this is appearing Cannot send messages when not connected. Either connect to Photon OR use offline mode! UnityEngine.Debug:LogError(...
1
vote
1answer
201 views

What's wrong with my food generating code?

This script is intended to produce amount of (food) objects for the players over the network. What should happen is that when a player eats one food, another food object gets created in another random ...
1
vote
1answer
118 views

How to manage this problem in a multiplayer client-server game with Photon ?

Good day. I'm developing my first simple game, a racing car, using Unity and Photon. In my game there are a function that generate random Bonus on random position each (for instance) 5 seconds. ...
1
vote
0answers
170 views

What i'm missing in this multiplayer Unity / photon code?

i'm having some troubles in my first, simple, multiplayer racing game, using Photon and Unity. Following classic photon tutorial i've written the code below, but, it won't work properly. In ...
3
votes
1answer
1k views

How to sync new object (weapons/bullet) in a multiplayer photon game ?

I'm using Photon to develop a multiplayer game. I would like to know the best way to synchronize "weapons" bullets object between network players. Thanks
1
vote
1answer
620 views

Communication between Photon Cloud game and web server

I am creating a multiplayer game using Photon Cloud (Photon Unity Network). For storage of player data (profile, inventory, achievments) I use web server (asp.net mvc & sql server). How to ...
2
votes
1answer
544 views

How to sync random incidents over network?

In my Photon powered game, I have a shotgun weapon and when a player fires a bullet, I call an RPC on other clients and it's bullets get direction from a random function, Random.Range, and on ...
1
vote
1answer
3k views

Sending message to all players in room from Photon server?

I need to send a message to all players in the room from a Photon server. Sending the message from a player would introduce too much latency so I need the server to collect data and distribute ...
1
vote
0answers
2k views

Unity Photon Networking - Cant understand OnPhotonSerializeView

In all tutorials I see that an object sends data over the network and receives the data. For sync in the same method: Code: ...
2
votes
1answer
54 views

invaliduriexception with photon unity

I am using photon unity networking right now to make a multiplayer game. When I publish to windows the build works fine, but when I change unitys build settings from windows to webgl it gives my a ...
2
votes
1answer
3k views

Making a master server in Photon Unity Network? [closed]

I am trying to make a game that requires a dedicated server running 24/7 and I would like to use Photon Networking but can Photon Network handle/do a dedicated server setup? The reason I ask is ...
4
votes
1answer
760 views

Photon alongside LibGDX

Can anyone point me to a possible implementation of the Photon network engine along with LibGDX for Android? Or any multiplayer networking SDK for all that matters. From reading source code it ...