Saving extra data

Started by WorldOfIllusion, April 25, 2014, 02:59:31 AM

Previous topic - Next topic

WorldOfIllusion

I've been working on a mod that requires me to save some extra information in the rimworld save.

I've worked out how to save simple things, like an int or bool or string. What I need is to save something more complex, for example an object that contains:

  • an array of objects that have a thingDef and an int
  • some other basic data types
Wondering if there's an easy way to save this? Or should I just go and save each part of the object as a simple data type and then reassemble them into the original object on load.
Artistically challenged modder seeking artistically talented texturer's help. Please, please, PM me :)

Vendan

Look at the various scribe classes, there's stuff to save dictionaries and lists and everything