Skip to main content

Save and Load System

The game utilizes a robust auto-save system designed to mirror the seamless experience found in modern mobile games. This ensures that player progress is preserved automatically without requiring manual interaction from the player.

How It Works

The game state is saved locally in a JSON file format with AES encryption. The system automatically triggers a background save whenever a significant change occurs in the game state.

Common Save Triggers:

  • Narrative Progression: When the player continues the story or completes a chapter.
  • Player Choices: Immediately after selecting a dialogue option or branching path.
  • Economy Transactions: When earning currency (e.g., after watching an ad) or spending it.

File Locations

The save files are stored in the application's persistent data directory inside a folder named Local. This location varies depending on the operating system.

Finding Save Files

If you need to debug or clear your save data manually, you can find the files here:

  • Windows: %userprofile%\AppData\LocalLow\<companyname>\<productname>\Local
  • Mac: ~/Library/Application Support/company name/product name/Local

Note: Replace <companyname> and <productname> with the specific settings defined in the project.

For a more technical explanation of how Unity handles these paths, refer to the Unity Application.persistentDataPath Documentation.

Technical Reference

For developers or designers looking to understand the underlying data structure, the save file schemas are defined in the following source scripts:

  • PlayerData.cs: Handles general user data (currency, settings, etc.).
  • StoryProgressData.cs: Handles narrative state.