#Multiplayer desynchronization

1 messages · Page 1 of 1 (latest)

lavish compass
#

Hello, I need help with a problem I am getting in my Unity project. I am making a phone game and I use photon to connect.
I connect from my unity project and my phone and it works to connect but then when it starts, I see different things happening on both screens. I have been working to figure out how to synchronize both games but no success.

I am also using ai to help figure out what is going on and still not fixed.

Does anyone know if this is a problem with me using Photon for a phone game or something else?

Thanks

analog wraith
#

You'll have to be more specific than that. Photon libraries definitely work on mobile. One of them is primarily designed for mobile.

winter fable
#

Sounds like you might be running as host on both devices and they are not actually connecting

lavish compass
lavish compass
analog wraith
#

Ideally you would try to debug your issue further so you can provide more detail about the problem.

winter fable
#

Also, desync implies things were synced at some point

lavish compass
lavish compass
#

I will try to see if both devices run as host as you said.

winter fable
#

Well if they are both running as host, then you wouldnt be seeing other player at all. They would be in 2 different sessions

#

I don't use Photon and don't know exactly how their shared authority works if you are using that

lavish compass
#

Once I get a change to change that will update

lavish compass
#

Seems like it's not the same host but that helped me find a different approach to figure out what is going on.

Right now I am checking to see if the games start in the same room or different rooms.

#

So I have at least a next step until I figure out why I don't see the same things.

lavish compass
#

Somehow it does not recognize as the same room. Having Ai review the implementation of the photon network function to figure out where stuff went wrong.

So far tho, the games connect and it show there are 2 players in the game, one of them is host, still characters go different ways in the game. So have to find out why I see different things in the unity app and phone that are connected in multiplayer.

lavish compass
#

Update.
It does work to connect to the same room but I think my problem is the movment of the champions. So once I get that fixed, it should give me a better ideea of what is happening or if there was any problem in the first place.