Saving editable data

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
webik150
Posts: 4
Joined: Wed Feb 18, 2015 5:57 pm

Saving editable data

Post by webik150 »

Hey, I wanted to ask, if it's possible to save my data in a readable/editable way.

I'm saving a config file (configurable in-game), but I would like my users to be able to edit it by hand too (using text editor). Is this possible? I'm only saving simple stuff like strings, floats, ints and booleans (bools).
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Saving editable data

Post by Joel »

Hi there,

As Easy Save saves the data in binary format (which is by far the quickest and most compact format), it's not possible to edit it by hand.

However, most users who require this simply make a GUI in their app to allow users to modify the files, or even make a separate Unity app to do this.

Generally even with readable formats, it's not advisable to let users modify the data directly from a text editor because doing so might modify the encoding of the file or introduce formatting errors (or a whole host of other problems), which could cause problems at runtime.

All the best,
Joel
webik150
Posts: 4
Joined: Wed Feb 18, 2015 5:57 pm

Re: Saving editable data

Post by webik150 »

Yeah, it is completely configurable in-game. I was just asking in case something like Skyrim.ini or similar.
It doesn't really matter.

Thanks for the quick answer :)
Locked