I have a game that heavily relies on Stat Creators with Persistence turned on. However, I’m finding all sorts of issues with stat creators that make my systems unreliable. Here are the behaviors I have noticed thus far:
Start Game, Stat Creator is set to 1 instead of 0. However, I have 9 other Stat Creators and those are all set to 0 as they should be.
Start Game, Stat Creator is properly set to 0. Do an action that raises the Stat Creator to 1. End Game. Launch Game. Stat Creator is set at 0 instead of 1. Similarly, I increased my Stat Creator to 2, ended game, came back, and Stat Creator was set at 1. Seems to lose 1 value sometimes for no reason when ending and starting a game.
Created Stat Creator A and Stat Creator B. Created code that looks for the Value in Stat Creator A to decide if something should happen. For some reason, the code looks inside Stat Creator B instead even though Stat Creator B isn’t referenced by the Verse Device whatsoever.
Created Stat Creator A and Stat Creator B. Code says when an action happens, it will increase Stat Creator A by 1. However, for some reason the code starts adding 1 to Stat Creator B instead, even though Stat Creator B is not referenced by the Verse Device whatsoever.
Stat Creators have huge potential but these weird inconsistent behaviors are hindering that potential.
Please select what you are reporting on:
Creative
What Type of Bug are you experiencing?
Assets
Steps to Reproduce
Listed in main body of message
Expected Result
I expect Stat Creators to work as intended without inconsistent behaviors.
Observed Result
There are numerous inconsistent behaviors with Stat Creators.
This is a particularly frustrating issue. I am encountering issue #4 a lot right now. I actually just got Stat Creator A to 2. And for some reason it also increased Stat Creator B to 2. So I deleted Stat Creator B. I added a new Stat Creator C and didn’t connect it to anything. I launched the session and Stat Creator C was set to 2! It was a brand new device with a brand new never before used stat name and this was the first session it was coming into existence and it decided it wanted to have the value of Stat Creator A. I don’t understand why.
I’m painfully getting around this problem for now by exiting a session. Deleting the broken Stat Creators, making new ones from scratch with different stat names, and then hooking them up and launching a session. And sometimes they won’t be broken after that and if so, I continue forward. If they appear broken I delete them and repeat the process until the bugs don’t appear on a new copy.
As of today, I’m still seeing issues on the live unlisted version of an island I’m developing that is using stat creators to transfer player stats between sessions using Persistence checked on. In this island, several of the stat creators are initializing with their values at 0 while others have stats that are persisting. There is no visible difference between the configurations of the two.
I also am losing all my items when I leave the island and come back, on live, even though I have a Save Device in-game with persistence turned on. The Save Device wasn’t having these issues on live until about 3-4 weeks ago.
Is Weak Map the only reliable way currently to transfer persistent data? I may have to refactor.