Save System

From Studio Grow Wiki
Jump to: navigation, search

Scripts[1] for adding saving and loading to a scene

  • PlayerInfo must not be added to any scenes.
  • Attach LoadPositions & SaveSystem to the main camera.

Features

  • Multiple save states
  • Load resets the level
  • Hierarchal grouping
  • Load into player object and scene objects
  • Save everything in an xml file

Saved Data

Currently Saved

  • Player State
    • Current Scene
    • Current Transform

Plans For Future

  • Player State
    • Inventory
  • Scene Saves
    • Scene State
      • Movable Objects
        • Current Transform
      • Event Flags

File Template <enscript lang=html> <?xml version="1.0" encoding="ISO-8859-1"?> <root> <player> <inventory /> <level name="mapname" /> <position x="0" y="0" z="0" /> <rotation x="0" y="0" z="0" /> <scale x="0" y="0" z="0" /> </player> <scenes> <scene name="map1"> <object name="obj1"> <position x="0" y="0" z="0" /> <rotation x="0" y="0" z="0" /> <scale x="0" y="0" z="0" /> </object> <events> <event id="shortname" value="1" /> </events> </scene> </scenes> </root> </enscript>