IronLabs-SavesCharactersOnStop icon

SavesCharactersOnStop

With this mod ServerCharacters will automatically save all connected characters when the server stops or restarts.

Last updated 3 hours ago
Total downloads 9
Total rating 0 
Categories Mods Server-side Client-side Utility AI Generated
Dependency string IronLabs-SavesCharactersOnStop-1.0.2
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2333
Smoothbrain-ServerCharacters-1.4.16 icon
Smoothbrain-ServerCharacters

Saves your character on the server, instead of your computer, to prevent you from messing with it.

Preferred version: 1.4.16

README

SavesCharactersOnStop

With this mod ServerCharacters will automatically save all connected characters when the server stops or restarts.

Features

  • Requests a profile save from every connected client.
  • Waits for ServerCharacters to confirm each transfer.
  • Processes up to four profile saves at a time.
  • Disconnects saved players before shutdown.
  • Performs the normal Valheim world save and exit afterward.
  • Logs unconfirmed profiles and continues after a 90-second timeout.
  • Intercepts a private dedicated-server exit request without a separate supervisor.
  • Detects its private exit request immediately through filesystem notifications.
  • Lets administrators restart a compatible systemd-managed server gracefully.

Commands

Command Access Description
restartserver Administrator Saves characters and the world, then restarts the dedicated server.

Valheim.exe Command Arguments Added

Argument Default Description
--disable-restart-command false Disables the restartserver command.

Installation

Install ServerCharacters and this mod on the dedicated server and every client.

For restartserver to relaunch the dedicated server, configure its systemd service with:

[Service]
Restart=always
RestartSec=10

An explicit systemctl stop valheim.service still leaves the service stopped. See the full documentation for the complete service configuration.

Client required Server required
Yes Yes

Read the full documentation on GitHub.

Contact

Report bugs through GitHub Issues. For questions, feedback, and other discussions, use GitHub Discussions.