promotional bannermobile promotional banner

Sophisticated Backpacks SafeSave

Add-on for Sophisticated Backpacks: saves every backpack in its own crash-safe file instead of one shared file, with backups, per-backpack recovery and safe migration. Install next to the original mod, no replacement.

Sophisticated Backpacks: SafeSave

An add-on for Sophisticated Backpacks. Drop it into mods/ next to the normal Sophisticated Backpacks jar. It does not replace or modify that jar.

Sophisticated Backpacks keeps every backpack of a world in one shared file and rewrites all of it whenever anything changes. SafeSave gives each backpack its own crash-safe file instead, so a crash or a damaged file can only ever affect that one backpack, not every backpack on the server.

Gameplay is unchanged. Backpacks, tiers, upgrades, filters, pickup, magnet, feeding and the GUI all work as before.

Features

  • One file per backpack. Stored in <world>/data/sophisticatedbackpacks/backpacks/. Only backpacks that actually changed are written.
  • Crash-safe saving. Every save is written to a temporary file, flushed, read back and verified, and only then swapped in atomically. If a write fails (full disk, permissions, interrupted write), the previous version stays intact.
  • Automatic backups. The last valid version of each backpack is kept in backups/.
  • Per-backpack recovery. A damaged file is restored from its backup when possible and always preserved in corrupt/. The log names the exact backpack and reason, and online operators get a chat message. A backpack is never silently replaced with an empty one.
  • Safe migration of existing worlds. The old shared file is converted automatically on first start. It is never modified or deleted. Migration can be resumed after a crash, can be run again safely, never overwrites newer data, and is only marked complete after every backpack has been read back and verified.
  • Server friendly. Backpacks are loaded on demand, writes are batched and done on a separate I/O thread, and saving is tied into world saves, /save-all and shutdown.
  • Nothing is deleted automatically. Removed backpacks go to removed/, damaged files to corrupt/.

Works with Sophisticated Backpacks updates

SafeSave does not pin a Sophisticated Backpacks version. When the game starts, it checks the structure of Sophisticated Backpacks' storage instead of its version number.

  • If the structure is the one SafeSave understands, it activates. This held across every 1.21.1 release from 3.21 to 3.26.
  • If an update changes it, SafeSave switches itself off rather than risk your data. It logs a clear error and warns operators when they join. Sophisticated Backpacks keeps using its own storage and nothing crashes. Check for a newer SafeSave then.

Installation

  1. Back up your world.
  2. Put the SafeSave jar into mods/ next to Sophisticated Backpacks and Sophisticated Core.
  3. Start the server and look for "Backpack storage migration complete" in the log.

It only needs to be installed on the server. Players do not need it.

Removing it: stop the server and delete the jar. Sophisticated Backpacks goes back to its old file, which does not contain changes made while SafeSave was installed. Those stay in data/sophisticatedbackpacks/, and reinstalling SafeSave picks them up again.

Requirements

  • Minecraft 1.21.1
  • NeoForge 21.1.229 or newer
  • Sophisticated Backpacks and Sophisticated Core

For server admins

  • If the old file cannot be migrated safely, the server refuses to start and says why. Starting anyway would let players create empty backpacks under IDs that still hold old contents. Nothing is modified in that case.
  • A backpack whose file cannot be read is left untouched and is not saved until the problem is fixed.
  • A hard crash can still lose roughly the last 30 seconds of changes. No software can fully protect against storage that misreports what it has written.
  • Sophisticated Backpacks itself still reads its old file once after each start, which can be slow and memory-hungry on very large old worlds. SafeSave never writes to it.
  • The corrupt/ and removed/ folders are never cleaned automatically.

Credits

Sophisticated Backpacks is created by P3pp3rF1y, with art by Ridanisaurus. SafeSave is an independent add-on by Blenny and contains no code or assets from the original mod except the icon, which is the original artwork with a checkmark badge added. All credit for Sophisticated Backpacks belongs to its authors.

Sophisticated Backpacks SafeSave Team

profile avatar
Owner
Forgeborn tier icon
  • 3
    Followers
  • 25
    Projects
  • 209.7K
    Downloads

More from BlennyView all