Skip to content

v0.16.0 Save stories

Compare
Choose a tag to compare
@neph1 neph1 released this 29 Oct 16:54
· 278 commits to master since this release
60a5533

A first instance of saving stories has been implemented. It's completely different than the existing Tale serialization and instead uses json. This makes it easy to edit files, if you want to.
Currently it saves:

  • Locations,
  • Zones,
  • NPCs,
  • Items,
  • Story background info.

There are still several states that aren't saved, like memories and ongoing story info, dialogues, etc.
So, for now, use this if you find a particular world you would like to visit again.

To save, type 'save_story' in the command prompt.

There's no way to load from inside the game currently (sorry). My suggestion is that when you have saved it:

  • Copy the 'world_story' folder from tests/files into 'stories'
  • Copy the 'world.json' and 'story_config.json' that were saved in the current (anything?) story folder
  • Update story.py to use the new config.

A bit cumbersome. I'll work out some better system in a future release.

Edit: This currently doesn't work with 'anything' stories. I'll fix that in v0.16.1 later this week.