Home / Forums / Photon Custom Properties: Room vs Player Hashtables for State Synchronization (Part 3)

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Tutorial

Photon Custom Properties: Room vs Player Hashtables for State Synchronization (Part 3)

RustMechanic
Unity & IL2CPP Reverser
VIP
Rep: 295
Join Date: Nov 2022
Posts: 32
Thanks: 74
2y ago · Oct 1, 2023 7:51 PM
#1
Synchronizing persistent match states and player inventories using ExitGames.Client.Photon.Hashtable.
RustMechanic | IL2CPP & Unity Engine Analysis
The following users thanked RustMechanic for this post:
GlowShader
Shader & Overlay Artist
MEMBER
Rep: 185
Join Date: Oct 2023
Posts: 36
Thanks: 46
2y ago · Oct 2, 2023 1:23 AM
#2
SetCustomProperties updates key-value pairs across all clients with automatic OnPlayerPropertiesUpdate callbacks.
GlowShader | Shaders, Stencils & DirectX DrawLists
NoRecoilDev
Input & Recoil Math
MEMBER
Rep: 130
Join Date: Nov 2024
Posts: 20
Thanks: 32
2y ago · Oct 3, 2023 5:23 AM
#3
Using expectedProperties (CAS - Compare and Set) ensures atomic updates and prevents race conditions between simultaneous client writes.
NoRecoilDev | Smoothing Algorithms & Input Events