FilipeTessaro - Savecraft: Multiplayer Save System with Slots, Cloud and World Partition

Savecraft saves and loads the world of a multiplayer game. Add the Savecraft Saveable component to any actor, tick SaveGame on the variables to keep, and call Save Game. Placed or spawned, streamed out or loaded, owned by the world or by a player who left an hour ago: it comes back as it was.

  • One component, no save game class, no list of actors, no ids to assign. What Gets Saved shows in the Blueprint editor what will be written

  • Only the server saves. Each player's things come back to them by online id, after a server restart, a hard disconnect or a rejoin

  • Crash safe: the last good file is never touched until the new one is whole on disk, with a backup and a CRC32 on every file

  • Slots with a picture, date, time played and your own text. Open Slot loads from a main menu on the slot's own map

  • World Partition cells, streamed sublevels and runtime data layers that are unloaded during a save or a load

  • Cloud saves through the online subsystem: EOS Player Data Storage and Steam Cloud

  • Every node, event and setting in Blueprint; C++ source included

Tested, with numbers.

  • Dedicated and listen server, 4 clients at 150 ms and 5% packet loss, 2040 actors: half the clients drop and rejoin, the server is killed and a new one loads the save, and all 5 machines end with the same world.

  • The game killed in the middle of a save 20 times: 20 whole files, the last good save always loads.

  • 10,040 actors: 19 to 28 ms of game thread in one frame, or spread at 4 ms per frame with Save Budget Ms. File: 568 KB with Oodle (1.58 MB raw), written off the game thread.

  • A save file written by version 1.0 is loaded by every build, so an update never breaks your players' saves.

  • Cloud round trip against real EOS Player Data Storage, signed in through Steam.

What gets saved.

The SaveGame variables of the actor and of its components, its transform, and whether a level actor was destroyed (a barrel blown up stays gone). Actors spawned in play come back as the same class, Blueprint children included. Plain UObjects inside a SaveGame variable (inventory items) are saved with their own SaveGame variables, nested and shared.

Old saves.

New or removed variables need nothing. A renamed level actor goes in a list in the settings. For anything else, raise Save Version and fix the old values in On Savecraft Loaded, which gets the version each file was written with.

Blueprint.

Save Game and Load Game as async nodes with Saved, Progress, Loaded and Failed pins. Get All Slots, Load Slot Thumbnail, Open Slot, Delete Slot Everywhere. Get Known Player Ids and Forget Player for character resets. Get Savecraft Settings reads and changes every setting at runtime, a save folder per profile for example.

Demo.

Try it before buying: a Windows Shipping build, no engine needed. 40 crates: give coins, destroy, spawn, save to 3 slots with pictures and load, alone or with a second player (Host.bat and Join.bat). Download: https://github.com/filipetessaro/savecraft-demo/releases/latest/download/SavecraftDemo_Win64.zip

Not included.

Encryption of the save file. No Mac or console build tested.

Documentation: https://apps.tessaroapps.com/savecraft/docs/

Support: contato@tessaroapps.com

PS: Feature requests are accepted!