casualexpie-SaveAnywhere icon

SaveAnywhere

FULL GAME ONLY! Cloud saving, Auto-Save & Save Slots This is a simple mod where you can save anywhere, instead of having to go deep down to the bottom layer in order to save.

Last updated a day ago
Total downloads 49
Total rating 0 
Categories Mods Tools Misc
Dependency string casualexpie-SaveAnywhere-1.8.3
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

Save Anywhere (NEW CLOUD-SAVING FEATURE)

Installing with r2modman, Gale or the Thunderstore Mod Manager? BepInEx is set up for you, so you can skip any manual install steps below.


CLOUD SAVES: READ THIS SECTION FIRST

Cloud backup is disabled by default and completely optional. Once enabled, an anonymized ID is created to link you to your cloud backups. When a game is saved, a compressed version of the save file, layer data, character, run type, playtime and mod version are sent over an encrypted connection to a Cloudflare Worker. Once received by the server an integrity check and verification pass are performed to protect against data corruption and confirm "Save Anywhere" data structure. Data retention Newest save + 5 earlier versions per slot. All data related to an ID (including saves) is automatically deleted from the server after 14 days of inactivity. No personal data is stored and IP addresses are encrypted. You can immediately purged all cloud saves and connected ID via the option in Cloud Settings. Local save data is treated as read-only and is never modified or deleted by the cloud backup. Save Anywhere is not affiliated with or endorsed by Cloudflare.

You can check the status of Cloud Save at https://cloud.smellypawz.com/
MY RECOMMENDATION: Turn on Cloud Saving so you don't lose your save at all, it'll always be stored on Cloudflare's R2 Storage.

Save Anywhere lets you save your Casualties Unknown run anywhere, not just between layers. It saves where you're standing and the whole layer around you, and Continue puts you right back on that spot.

NEW in 1.7.3: CLOUD SAVES (very experimental, off unless you turn them on). Upload your save slots and continue your run on another PC or Steam Deck. Please keep backing up your save anyway, and send any bugs to the Bugs tab.

  • F5: quick save into your current slot
  • Pause menu: Save, Save & Quit and Auto-save buttons added to the game's own pause ring, with matching icons and animation
  • Flashlights and emergency lights stay switched on when you load a save
  • Auto-save: on by default, every 5 minutes and shortly after you reach a new layer
  • Load with Continue on the main menu, like normal, or pick an older save on the SAVE SLOTS screen
  • Cloud saves (very experimental, opt-in): continue on another PC or Steam Deck, keep the last 6 copies of each slot, recovery key

INSTALLATION INSTRUCTIONS

  1. Open your game folder. In Steam: right-click Casualties Unknown > Manage > Browse local files.
  2. Install BepInEx 5 (skip if you already have it): unzip it into the game folder, start the game once, wait for the main menu, then close it.
  3. Copy the BepInEx folder from this mod's zip into the game folder and merge. The file should end up at: <game folder>\BepInEx\plugins\SaveAnywhere.dll
  4. IMPORTANT: open <game folder>\BepInEx\config\BepInEx.cfg in Notepad, change "HideManagerGameObject = false" to "HideManagerGameObject = true", and save.
  5. Launch the game. A popup on the main menu asks if you want cloud saves. Click "No thanks" to keep everything on your PC, like before.

Uninstall: delete BepInEx\plugins\SaveAnywhere.dll. Your save still works with the plain game, but it starts at the beginning of the layer.

MAIN FEATURES

What gets saved

  • Your exact position on the layer
  • Everything the game normally saves: health, injuries, limbs, stats, skills, inventory, worn items, recipes and run settings
  • The layer itself: terrain (including everything you dug or blew up), water and other liquids, and the layer modifier
  • Items on the ground, including containers and what's inside them
  • Structures, traps, mines, crates, creatures and enemies, with their health
  • Survivors (traders) with their stock, credit, reputation and mood
  • Climbable veins and climbing ropes, at their full length (ropes stay grabbable after loading)
  • Time spent on the layer, fog and rain

Your save is kept
Loading doesn't delete your save, so if the game crashes or you quit without saving, you can Continue from your last save again. Saving again overwrites it. If you die, your save is kept, so you can Continue and try again from your last save. Giving up (the quit button pressed 4 times) or reaching an ending deletes the save, just like the normal game. If you use the game's own save when you reach the next layer, that one is used instead.

Safe saving only
Saving is blocked, with a message telling you why, while you're falling or knocked down, unconscious or asleep, in critical condition (bleeding out, starving, septic, heart trouble and so on, so your last save is always from before things went bad), while a living enemy or hostile survivor is nearby, during earthquakes, with the radiation line close above you or fungal rain falling, during the end lab escape countdown, while you're climbing, bleeding badly, short of breath, freezing or overheating, while you're caught in a bear trap, grabbed by a grabber plant or a bloodsucker is attached, while a mine, lit dynamite or unstable crystal is about to blow up nearby, while the layer is loading, and on the final layers (the same rule as the game's own save).

Single-player only (multiplayer lock)
Saving and loading in multiplayer can badly break your save, so if Save Anywhere finds a multiplayer mod (like Casualties Together / KrokMP and its add-ons), it turns itself off completely and shows a popup saying what it found. Saving won't work that session and Continue loads the game's normal save. You don't have to remove Casualties Together: switch it off in its own menu (MP Mod Menu > Settings > General > Deactivate Multiplayer Mod) and Save Anywhere ignores it and its add-ons until you switch it back on. Other multiplayer mods still have to be removed. Networking libraries (like LiteNetLib) that other mods use don't count on their own. If you DON'T have a multiplayer mod and still see the popup, that's a false alarm: please send a bug report right away in the Bugs tab with the "Found" line from the popup and your BepInEx\LogOutput.log.

Save slots
Click Save in the pause menu to open the SAVE GAME screen and pick one of your save slots (5 by default, up to 10 in the config). There is also a separate AUTO-SAVE slot. Each slot is a floppy disk on top of that layer's picture, showing the layer, your character, the run type (Tough, Relaxed, Paradise, Desolate, Unchipped, Endless or Custom), run time and when it was saved. The slot you save into becomes your current slot: F5 and Save & Quit keep saving into it, so they never fill up your other slots. Auto-save never overwrites your manual saves: it always goes into its own AUTO-SAVE slot. Want a backup? Save into a different slot. On the main menu, the SAVE SLOTS button shows every slot with LOAD and DELETE buttons. A run's slots are deleted when you give up or reach an ending.

Auto-save
Auto-save is on by default. It saves into its own AUTO-SAVE slot every 5 minutes of play (paused time doesn't count) and about 10 seconds after you arrive on a new layer. If it isn't safe to save at that moment, it waits and saves as soon as it is. Turn it on or off with the Auto-save button in the pause menu, or change the interval in the config.

Cloud saves (VERY EXPERIMENTAL)
Cloud saves upload your save slots to a server run by me (casualexpie), so you can continue your run on another PC or Steam Deck. They're OFF unless you say yes to the popup or click "Cloud saves: OFF" under SAVE SLOTS on the main menu.

  • This is a very experimental feature. It may break, lose cloud saves, or stop working.
  • I can switch cloud saving off at any time, for example if hosting costs get too high. If that happens, your saves on your PC keep working normally.
  • Keep backing up your Save Anywhere saves yourself anyway. Don't rely on the cloud as your only copy.
    After every save, the slot uploads in the background. The SAVE SLOTS screen shows which slots are synced, lets you download slots that are only in the cloud, and bring back any of the last 6 cloud copies of a slot. To use another device, open CLOUD SETTINGS on the main menu, get a link code and type it on the other device. Make a recovery key there too, in case you lose your PC. Deleting a slot or ending a run deletes that run's cloud copies too.
    What's uploaded: your save slots and their details (layer, character, run type, run time, when it was saved). No name, email or password. CLOUD SETTINGS > DELETE MY CLOUD DATA deletes everything from the server. Accounts nobody uses for 90 days are deleted automatically. The mod only connects to the internet when cloud saves are on.
    Cloud saves are hosted on Cloudflare. Save Anywhere is not affiliated with or endorsed by Cloudflare.

Back up your save
Your save is in C:\Users\<you>\AppData\LocalLow\Orsoniks\CasualtiesUnknown. The cloud saves popup has an "Open save folder" button. Copy save.sv, saveanywhere.sav and the SaveAnywhere folder (your save slots) somewhere safe.

Configuration
<game folder>\BepInEx\config\saveanywhere.cfg: change the save hotkey, how close an enemy has to be to block saving (0 turns the check off), the auto-save settings (on/off, interval in minutes, save on new layer), how many manual save slots to show, and cloud saves on/off.

Known limitations

  • Enemies come back where they were, but they restart what they were doing.
  • Dead creatures and corpses you already destroyed aren't brought back.
  • Projectiles, blood, particles and a few decorations aren't saved.
  • Game updates may break the mod. Post in the Bugs tab with your BepInEx\LogOutput.log file.
  • Cloud saves need an internet connection. If the cloud can't be reached, your save is still saved on your PC.

REQUIREMENTS

  • Casualties Unknown, the full game (Windows / Steam). The demo isn't supported: the mod turns itself off there and shows a popup.
  • BepInEx 5 (x64): https://github.com/BepInEx/BepInEx/releases
      Download BepInEx_win_x64_5.4.x.x.zip. Version 5, NOT version 6.

SHOUT OUTS

Have fun, and please endorse if you enjoy it!