PlayerObject Persistence Fails to Respect Sync Mode
tracked
BobyStar
- Launch World: https://vrchat.com/home/world/wrld_882d1b16-ef0d-470f-b6e1-9523702e44d3
- Check Logs to see Data has been written.
- Rejoin World.
- Check Logs again, notice that Test3 failed for both Continuous (expected) and Manual (unexpected).
Manual Sync behaviours are expected to be able to persist one serialization on their own within a PlayerObject with Enabled Persistence. Test 1 works as expected. Test 3 serializes correctly over the network but fails to keep data between sessions. This is despite both storing roughly a similar amount of bytes in Manual sync and should be within the Manual Sync limit. Serialization expectedly fails for tests with Continuous > ~200 bytes.
Tests 1-3 are ran on Empty Objects that are children of their own individual Player Objects with Enabled Persistence.
Test 4 is ran on two individual empties.
C = Continuous Sync Mode. Expected to fail at ~200 bytes.
M = Manual Sync Mode. Expected to fail at ~280,496 bytes.
Test4 - PlayerData test with SetBytes (40 & 256)
Test1 - long[] test with 5 & 32 elements.
Test2 - 5 long variables.
Test3 - 32 long variables.
Screenshot shows logs after rejoin.
Log In
StormRel
tracked
BobyStar
Forgot to add: Notice that
Test1 CArray 32long
pulls a default value. I left the default at 1 element, which is why it doesn't report an error that it failed. It did fail as expected if you compare Previous to Next.aoiyu_
This is a long standing issue btw, had this issue arise during Space Jam 25. Would be nice if when Persistence saving fails the game idk, warns you?
|KitKat|
aoiyu_ Currently the game doesn't even tell us when it's done saving :(