# Save system - Demo and discussion inside

**URL:** <https://forum.choiceofgames.com/t/save-system-demo-and-discussion-inside/97393>\
**Category:** Game Development\
**Created:** [March 30, 2021, 9:50pm UTC](https://forum.choiceofgames.com/t/save-system-demo-and-discussion-inside/97393 "2021-03-30T21:50:17Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![cup\_half\_empty](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cup_half_empty/32/273983_2.png) [@cup\_half\_empty](https://forum.choiceofgames.com/u/cup_half_empty)\
**Post date:** [April 5, 2021, 11:19am UTC](https://forum.choiceofgames.com/t/save-system-demo-and-discussion-inside/97393/19 "2021-04-05T11:19:19Z")

</div>

You definitely want to use loops for that, and you should parse the string instead of figuring out the length of the variable.

I think the biggest pain would be to figure out a way to register variables to be serialized, so the routine knows it. I think the only solution would be to hardcode it, or parse another string with the name of the variables, like in @Twiger_Fluff’s [list implementation](https://forum.choiceofgames.com/t/working-string-manipulation-no-script-used-substring-substr-indexof-contains-replace/94805).

The deserialization routine would read the stream of characters looking for the separator character, in your case a comma. I would personally make this logic a little more robust to avoid splitting at the wrong place, for example if the value of a saved variable is a string which itself contains the separator character.

Like I said, it’s cumber some to build this system, but once in place it would be easier to use.

---

_[View the full topic](https://forum.choiceofgames.com/t/save-system-demo-and-discussion-inside/97393)._
