Jump to content
Sign in to follow this  
PzNation

Persisting Data

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"?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...