Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Third Party PUN 2 Photon Get Value or Data Corrupt and become Infinity Numbers

Discussion in 'Multiplayer' started by nandonandito, Feb 2, 2021.

  1. nandonandito

    nandonandito

    Joined:
    Nov 24, 2016
    Posts:
    43
    Hi, all Unity members,
    anyway I got some problem with PUN 2
    sometimes we get the data corrupt for example.
    player B.SetCustomProperties(new hashtable{{score, 10}})
    and then
    Device A : CustomProperties[score] player B = 1.17263744E-143
    Device C : CustomProperties[score] player B = 10
    device D : CustomProperties[score] player B = 10
    That's the problem Device A data or value is not the same, it becomes like an infinity number
    but, if we close the game and open it again, then reconnect and rejoin, the data get right.
    Also if we do PhotonNetwork.OfflineMode = true > create room > when clientState == joined > wait 0.2sec > leave room > PhotonNetwork.OfflineMode = False its working good.. but we don't want that process where the player should disconnect or close the game. We need to make sure every player gets the same data all time. is there any tips or solution for that?
    We use PUN 2.23, Also already use PhotonNetwork.CrcCheckEnabled = true
    but we still get the same issue.