Source-checkedGameplay & overhauls

UnifiedAutoSaveInterval

by Daishi11 · for Valheim

Configurable combat-aware Valheim autosave interval for hosted worlds and local characters.

209Downloads
47d agoLast updated
BepInExLoaders
ThunderstoreSource

About UnifiedAutoSaveInterval

From Thunderstore

Configurable combat-aware Valheim autosave interval for hosted worlds and local characters.

Unified Auto Save Interval

A tiny BepInEx plugin that changes Valheim's own built-in autosave interval and can postpone autosaves briefly while players are in combat.

Default normal interval: 600 seconds / 10 minutes.

Default maximum combat delay: 120 seconds / 2 minutes.

The mod does not implement a separate save system and does not create custom save files. It only adjusts Valheim's existing Game.m_saveInterval.

Why

Valheim officially exposes -saveinterval for the dedicated server executable, but not as an in-game setting for normal clients or worlds hosted through Valheim's Start Server option.

Frequent autosaves reduce progress loss after crashes, but an autosave can also cause a noticeable hitch. The combat protection therefore allows the normal autosave to wait briefly when somebody is actively fighting.

Behaviour

In-game host / Start Server

The host process owns the world, so the normal interval applies to:

  • the hosted world;
  • the host's local character.

With ProtectAllPlayersWhenHosting = true, the host checks all connected players. If a creature is targeting any of them when the autosave becomes due, the save may be postponed.

Joining client

A joining client does not own the server world. The configured interval applies to that client's local character save.

Combat protection only watches that local player on a joining client.

Maximum delay

Combat never disables saving indefinitely.

Example with the defaults:

  • normal autosave: 600 seconds;
  • maximum combat delay: 120 seconds;
  • hard maximum interval while combat remains active: 720 seconds.

If combat ends earlier, the normal 600-second threshold is restored. If the normal save is already overdue, Valheim's own autosave runs immediately after the short combat-clear window.

Combat detection

Combat is considered active when a creature's Valheim BaseAI currently targets a protected player.

A short clear window keeps combat active for a few seconds after the last target disappears so retargeting does not rapidly toggle the save threshold.

The default clear window is 5 seconds.

Configuration

After first launch:

BepInEx/config/daishi11.valheim.unifiedautosaveinterval.cfg

Defaults:

[General]
SaveIntervalSeconds = 600

[Combat]
AvoidSavingDuringCombat = true
MaxCombatDelaySeconds = 120
CombatClearSeconds = 5
ProtectAllPlayersWhenHosting = true

Useful normal intervals:

  • 600 = 10 minutes
  • 480 = 8 minutes
  • 300 = 5 minutes
  • 60 = 1 minute for short testing

Allowed normal interval: 60 to 3600 seconds.

Allowed maximum combat delay: 0 to 600 seconds.

The settings can also be changed through compatible BepInEx configuration UIs.

Compatibility

  • No Harmony patches.
  • No custom save format.
  • No custom backup system.
  • No Jotunn dependency.
  • Uses Valheim's existing autosave timer and save routines.

Tested for the Valheim 1.0.x modpack using BepInExPack Valheim 5.4.2350.

Recommended setup

For normal play:

SaveIntervalSeconds = 600
AvoidSavingDuringCombat = true
MaxCombatDelaySeconds = 120
CombatClearSeconds = 5
ProtectAllPlayersWhenHosting = true

For a quick combat test:

SaveIntervalSeconds = 60
MaxCombatDelaySeconds = 30

Stay in combat across the one-minute save point. The log should report combat protection and the save should either run shortly after combat clears or at the 90-second hard maximum.

License

MIT.

Highlights

From source data

Loaders

Runs on BepInEx.

Footprint

Rated a light load on a server.

Last update

Its author last shipped an update 47d ago.

UnifiedAutoSaveInterval on Nxeon

From our catalogue
One-click install
Supported on Nxeon Valheim servers, for BepInEx servers. We download it from Thunderstore, place it, and restart the server.
Server side
Optional on the server
Server type needed
BepInEx
Server load
light
Smallest plan we suggest
Valheim — 4 GB (4 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.0.0, released 2026-09-19

Game versions by loader

LoaderGame versionsNewest
BepInEx

From 1 recorded build of UnifiedAutoSaveInterval.

Dependencies

Declared by the newest build that lists any. Required ones are installed with it on one-click installs.

Run UnifiedAutoSaveInterval on a Valheim server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Thunderstore as “Content”

Gameplay & overhauls

New mechanics, content and overhauls that change how the game plays.

Works on a server

From source side support

Thunderstore lists server-side support for UnifiedAutoSaveInterval as optional: it can run on a server, but isn’t required there.

Compatibility

Game
Valheim
Loaders
BepInEx
Runs on
Serveroptional on the server
Requires
One-click install needs a BepInEx server.

Verified at the source

  • ✓ThunderstoreOfficial listing, checked 2026-10-01Open ↗
  • ✓AuthorDaishi11, as published on Thunderstore
  • ✓LicenseNot published by the sourceFree

UnifiedAutoSaveInterval, answered

Generated from the mod’s own source data.

Do my players need to install UnifiedAutoSaveInterval?

Thunderstore lists server-side support for UnifiedAutoSaveInterval as optional: it can run on a server, but isn’t required there.

Which loaders does it support?

BepInEx.

Is it free?

Yes. UnifiedAutoSaveInterval is free to download from Thunderstore.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run UnifiedAutoSaveInterval on a Valheim server.

Deploy in about a minute from $9.99 a month, then add UnifiedAutoSaveInterval in one click.