Topic: Need help with desync issues on multiplayer matches

Hello everyone.

I have an issue when playing multiplayer on 2 android devices. It could happen that, when a player win the match, the other player keeps fighting without syncing the result.
I saw this is a desync issue already solved on UFE 1.7.1 but i still have it, and i upgraded to 1.7.1 already. I upgraded it manually, script after script because i have bundle and needed to modify some scripts. Maybe i missed the script with the desync fix? Could you please tell me where to look for the fix and what to write?
Another issue i'm having is that, on multiplayer, when facing a draw, it is not synced. Player 1 saw his victory and player 2 saw his victory as well.
Thank you in advance for your answers.

Share

Thumbs up Thumbs down

Re: Need help with desync issues on multiplayer matches

luigiviagrande wrote:

Hello everyone.

I have an issue when playing multiplayer on 2 android devices. It could happen that, when a player win the match, the other player keeps fighting without syncing the result.
I saw this is a desync issue already solved on UFE 1.7.1 but i still have it, and i upgraded to 1.7.1 already. I upgraded it manually, script after script because i have bundle and needed to modify some scripts. Maybe i missed the script with the desync fix? Could you please tell me where to look for the fix and what to write?
Another issue i'm having is that, on multiplayer, when facing a draw, it is not synced. Player 1 saw his victory and player 2 saw his victory as well.
Thank you in advance for your answers.

Did you try creating a new project, Importing only UFE 1.7.1 in it, building, and then testing a match on it to see if it desync's then?

Share

Thumbs up Thumbs down

Re: Need help with desync issues on multiplayer matches

I tried it and works well.
However, after deep testing my game i noticed it is not a problem of aspect ratio but frame delays. For some reasons it happens sometimes that, when i play a move on client 1, it playes few frames later on client 2. I guess i should fix this with frame delays but i'm using photon and i fear this could affect.

Share

Thumbs up Thumbs down

Re: Need help with desync issues on multiplayer matches

luigiviagrande wrote:

I tried it and works well.
I guess i should fix this with frame delays but i'm using photon and i fear this could affect.

The frame delays could solve the issue, and if it doesn't, you could always just set the frame delays back to the original number. You have integrated Photon into your project already?

Share

Thumbs up Thumbs down

Re: Need help with desync issues on multiplayer matches

Yes, i have integrated photon.
However i will try to set frame delays but my game will run only for mobile. I guess i just need to find the correct value for delays. Low values means more accuracy but more lag, and high value means less accuracy but almost no lag. Guess i have to find a balance.
Thank you for your answers.

Share

Thumbs up Thumbs down