Jump to content

Persisting Data


PzNation

Recommended Posts

It looks like getModData() can be used to attach custom data to a specific object.  Is there a standardized way to persist information outside of this?  For instance, 

 

It seems a few mods use get getGameTime():getModData(), which seems to store the information in map_t.bin, but I've read that this data could potentially be deleted during a soft reset.  

 

Another option would be to use the file system, possibly through bcUtils.writeINI/bcUtils.readINI.  

 

Does anyone have any information on this, and how to go about persisting this data "server side"?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...