But any data written to that datastore object does not persist. I must be missing something, I tried to look at the data for the save function but I am not even sure where its even getting the data to be persisted.
How are you setting the variables in the data store? Variables inside SprChrg.dataStore.data are saved to the save slot when the slot is saved either automatically or through the save button (wow, how many times did I say “save” there?). Variables inside SprChrg.dataStore.settings, on the other hand, won’t save without calling DataStore.saveSettings(); or manually changing something in the settings menu in-game.
Alot of saves there but from what you said I think I got this cleared up
SprChrg.dataStore = GDT.getDataStore("SprChrg-mod");
SprChrg.dataStore.data.myFlag = true; /* Persists to save */
SprChrg.dataStore.myFlag = true; /* Does not persist */
Would that be correct usage? and Obviously I was doing the latter.