- Joined
- Apr 3, 2018
- Messages
- 499
I'm having an issue with game caches.
Some of the data I put in it is not retained.
BUT, this only happens with some of the stored data. Some keys work fine, but others don't.
Is there an article on what exactly am I supposed to do to have all my data saved in the cache?
crea_name here is "Ghouls" and name is "Ghoul frenzy". I'm trying to make a talent system with unlockable talents. The integer for marking unlocked talents won't save.
but StoreString(udg_cache, "Ghouls", "SelectedTalent", "Ghoul frenzy") for saving which of the unlocked talents is selected works just fine.
So some of the keys work but others don't and it's super annoying.
Some of the data I put in it is not retained.
BUT, this only happens with some of the stored data. Some keys work fine, but others don't.
Is there an article on what exactly am I supposed to do to have all my data saved in the cache?
Code:
StoreInteger(udg_cache, crea_name[i], name, 1)
BJDebugMsg("saved "+I2S(GetStoredInteger(udg_cache, crea_name[i], name)))
SaveGameCache(udg_cache)
TriggerSleepAction(3.)
BJDebugMsg("3sec later, the value is "+I2S(GetStoredInteger(udg_cache, crea_name[i], name)))
ReloadGameCachesFromDisk()
TriggerSleepAction(3.)
BJDebugMsg("3sec after reloading the cache "+I2S(GetStoredInteger(udg_cache, crea_name[i], name)))
crea_name here is "Ghouls" and name is "Ghoul frenzy". I'm trying to make a talent system with unlockable talents. The integer for marking unlocked talents won't save.
but StoreString(udg_cache, "Ghouls", "SelectedTalent", "Ghoul frenzy") for saving which of the unlocked talents is selected works just fine.
So some of the keys work but others don't and it's super annoying.
Last edited: