Home / Docs / Save System

Takasuki Save System: documentation

A reliable save and load system for Unreal Engine. Slots, autosave, thumbnails, saved actors, saved variables, versioning, and protection against damaged save files. Works with Blueprint and C++.

Tested on: Unreal Engine 5.4, 5.6 and 5.8 (Windows, editor and packaged builds compile; the automated tests below pass on each version).

Set up in 3 steps
How a save is written safely
What gets saved

1. Install

  1. Copy the TakasukiSave folder into your project's Plugins folder (create it if needed).
  2. Open the project. Enable Takasuki Save System in Edit > Plugins if it is not already on, then restart the editor.
  3. Settings are in Project Settings > Plugins > Takasuki Save System.

C++ projects: add "TakasukiSave" to PublicDependencyModuleNames in your Build.cs.


2. Quick start (Blueprint, 5 minutes)

Save a variable-based game (gold, quest flags, settings...)

  1. In any Blueprint, call Get Takasuki Save System (or Get Game Instance Subsystem, class Takasuki Save Subsystem).
  2. Use Set Int / Set Bool / Set Float / Set String / Set Vector with a key of your choice: Set Int ("gold", 120).
  3. Call Save Game (Async) with a slot name (for example Slot1). Use the Completed and Failed pins.
  4. To restore, call Load Game (Async) with the same slot name. Then read values with Get Int ("gold", default 0).

Save actors (position, health, inventory, doors, pickups...)

  1. Open the actor's Blueprint. Add the Saveable component.
  2. Select a variable you want to keep and tick SaveGame (Details > Advanced).
  3. That's all. Placed actors are matched by an ID created in the editor. Actors spawned while playing are recreated when you load.

Build a "Load Game" menu

  1. Call Get All Slots. It returns a list with slot name, display name, date, play time, level and version. It only reads the file headers, so it is fast.
  2. For each slot, show the picture with Get Slot Thumbnail (a texture), the name, the date and Format Play Time.
  3. Buttons: Load Game, Delete Slot, Rename Slot, Copy Slot.

3. What is saved

Data How
Variables with keys (gold, quest_3_done...) Set ... / Get ... functions, saved with every slot
Actor transform Saveable component, on by default
Actor variables marked SaveGame Saveable component
Variables marked SaveGame on the actor's other components Saveable component
Physics velocity of the root component Saveable component, on by default
Actors destroyed during play (doors, pickups) Stay destroyed after loading
Actors spawned during play (dropped items, enemies) Respawned with their saved state
Level name, play time, date, screenshot Automatic

Not saved: anything not marked SaveGame; animation state; Niagara/sound playback; widgets; data of sublevels that are not loaded when you save.

Actors the game spawns by itself (the player)

A player character is created by the game mode, not placed in the level. Give its Saveable component a Stable Name (for example Player). It is then matched by that name on load instead of being treated as a new actor.


4. Slots, quick save, autosave

Saving does not freeze the game. The data is gathered in one frame, then compressed and written in the background. Listen to On Save Finished / On Load Finished, or use the async nodes.

What happens when you load

The saved level is opened again (so every actor starts clean), then saved values are applied. On Load Finished fires once everything is restored.


5. Protection against damaged saves

Save files are written in a safe order:

  1. The new data is written to a temporary file.
  2. The temporary file is read back and checked.
  3. Only then the old save becomes the backup, and the new one takes its place.

If a save is damaged anyway (power cut, disk error), the plugin detects it with a checksum and loads the backup instead. The result is Recovered From Backup so you can tell the player. Backup Count (settings, 0 to 5) sets how many older versions are kept.

Result codes: Success, NotFound, Corrupted, RecoveredFromBackup, WriteFailed, InvalidSlotName, Busy, UnsupportedVersion.


6. Update your game without breaking old saves

Set Game Version in the settings. Raise it when your data changes. When a save made with another version is loaded, On Migration Needed fires with the saved and current versions before data is applied. Use Set ... and Get ... there to fix old values, for example rename a variable or add a default.

Adding new SaveGame variables is always safe: missing values keep their default.


7. Settings

Setting Meaning
Sub Directory Folder inside the project's Saved directory (default TakasukiSave)
Backup Count Older versions kept per slot (default 1)
Game Version Your own data version number
Autosave Interval Seconds 0 turns autosave off
Autosave Slot Count / Prefix How many rotating autosaves, and their name
Quick Save Slot Name Slot used by Quick Save / Quick Load
Capture Thumbnails, Width, Height, Quality Screenshot stored with every slot (JPEG)
Verbose Logging Extra messages in the Output Log

Save files are in <Project>/Saved/TakasukiSave/*.tksave while developing, and in the user's local app data folder for the game in a packaged build.


8. C++

#include "TakasukiSaveSubsystem.h"
#include "TakasukiSaveableComponent.h"

UTakasukiSaveSubsystem* Save = UTakasukiSaveSubsystem::Get(this);
Save->SetInt(TEXT("gold"), 120);
Save->OnSaveFinished.AddDynamic(this, &AMyActor::HandleSaved); // (Slot, bSuccess, Result)
Save->SaveGame(TEXT("Slot1"), TEXT("Before the boss"), true);

Mark properties to keep with UPROPERTY(SaveGame) and add a UTakasukiSaveableComponent. Implement the ITakasukiSaveable interface (OnBeforeSave, OnAfterLoad) to refresh visuals after loading.


9. Good to know (limits)


10. Troubleshooting

Problem Fix
Nothing is restored on actors Check the actor has a Saveable component and the variable has SaveGame ticked.
Placed actor restored on the wrong object Do not duplicate actors by copying the Saveable component by hand. Copy the whole actor in the editor, each copy gets its own ID.
Player is duplicated after loading Give the player's Saveable component a Stable Name.
Save Game returns false Invalid name, or another save/load is still running. Check Is Busy and the Output Log (LogTakasukiSave).
Load does nothing in my test map The map must be saved as an asset: the plugin opens the saved level by its package name.

11. Automated tests

The plugin includes automated tests (Tools > Test Automation, filter TakasukiSave): file format, damaged-file recovery, backup rotation, slot name safety, and a full round trip of variables, placed actors, spawned actors, rename, copy and delete. They pass on UE 5.4, 5.6 and 5.8.


Support: https://takasuki.com/contact.html

Questions about the Save System?

Write to me, I reply by email.

Contact me