
ModsmithCycle
Save, exit, relaunch, resume, and preserve recent BepInEx logs to speed up Valheim mod testing and troubleshooting.Modsmith Cycle
Modsmith Cycle provides a faster restart and troubleshooting cycle for modded Valheim on Windows.
Open the Escape menu and choose SAVE & RESTART MODDED to save your game, close Valheim cleanly, relaunch through Steam with your active r2modman/BepInEx profile, and automatically return to the same character and local world.
Modsmith Cycle can also preserve the current BepInEx session log during shutdown. Recent logs are retained locally as LogOutput-1.txt and LogOutput-2.txt, with LogOutput-PendingSession.txt used during rotation. This makes it easier to compare recent sessions while testing and troubleshooting mods.
What it does
Modsmith Cycle will:
- give you a short countdown with time to cancel;
- use Valheim's normal save-and-quit path;
- wait until Valheim has fully exited;
- ask Steam to relaunch Valheim through the same
-applaunch 892970route used by r2modman; - preserve the active profile's Doorstop/BepInEx launch arguments;
- select the same character after relaunch;
- reopen the same local world automatically;
- restore the world's hosted-session settings when applicable so friends can reconnect normally.
- preserve recent BepInEx session logs locally to make troubleshooting between test sessions easier.
The active mod profile is preserved through its launch arguments. Modsmith Cycle does not automate or click through the r2modman interface.
Version 1.1.0 continues to use Steam for the relaunch because launching Valheim.exe directly can result in an unmodded session.
In-game restart interface
Modsmith Cycle adds a native-style section to Valheim's Escape menu:
[ gold Valheim ornament ]
SAVE & RESTART MODDED
During the restart countdown, the button changes to:
CANCEL RESTART (N)
A notice below the button confirms whether the restart is queued or cancelled.
When normal-exit backups are enabled (NormalExitOnly or Both), the native Quit confirmation also displays a yellow reminder below the panel. Backups may briefly make Valheim appear unresponsive while the game closes. This reminder does not appear when normal-exit backups are disabled.
The restart can also be triggered with the configured keyboard shortcut while the Escape menu is open.
Default shortcut:
Left Ctrl + F9
Local hosting behavior
- Local world: Modsmith Cycle reopens the same world with the same character.
- Locally hosted multiplayer world: hosted-session settings can be restored so friends can reconnect normally after the world returns.
- By default, a restart is blocked while another player remains connected.
- If friends are playing in your locally hosted world, have them return to the main menu before restarting.
- Each auto-resume uses a unique one-use token.
- Resume requests expire after a configurable amount of time.
- A detached helper waits for Valheim to fully exit before starting the replacement process.
- If character or world resolution fails, Modsmith Cycle stops safely at Valheim's menus.
Remote servers
Automatic guest reconnect to a remote server is not currently available in 1.1.0 and is planned for a future update.
The configuration entry remains reserved for future hosted co-op / remote reconnect work, but currently returns the player to Valheim's menus instead of attempting an automatic remote reconnect.
Dedicated-server restart support is not part of Modsmith Cycle's scope.
World and Character Save Backups (1.1.0)
Modsmith Cycle can create temporary rolling backups of your Valheim character and locally hosted world saves when you exit the game normally or use SAVE & RESTART MODDED.
This feature is disabled by default and must be enabled through the configuration.
How Backups Work
- Keeps up to three recent backups per character and per world.
- Maintains separate backup histories for different characters and worlds.
- Supports local saves and Steam Cloud saves when the saved data can be retrieved and verified.
- Creates backups only after an eligible exit with a successfully verified native save.
- Skips incomplete, unavailable, or unverifiable saves instead of treating them as successful backups.
- Uses staged copies, verification, and recovery procedures to protect existing backup history during rotation.
- Does not modify the original character or world saves as part of backup rotation.
Backups are created during eligible game exits, not continuously during gameplay. Crashes, forced termination, or power loss may prevent a backup from being created.
When playing as a guest, Modsmith Cycle can back up your own character save, but it cannot back up a world hosted by another player.
Backup Configuration
The following settings are available under Save Backups:
BackupMode
Disabled— No world or character backups are created. Default.NormalExitOnly— Create backups during eligible normal game exits.ModsmithRestartOnly— Create backups when using SAVE & RESTART MODDED.Both— Create backups during either eligible exit type.
Under Storage, the DataDirectory setting controls the entire ModsmithCycle data folder (not just save backups).
Leave DataDirectory empty to use the default parent folder:
BepInEx/ModsmithCycle
Save backups are stored beneath that parent in BackupSaves, for example:
BepInEx/ModsmithCycle/BackupSaves
The same parent contains temporary cloud-save capture data and ModsmithCycleHelper.log. BepInEx LogOutput and its numbered session-history copies stay in their usual BepInEx location.
Alternatively, enter a fully qualified path in Storage.DataDirectory to relocate the parent folder. If the custom destination is unavailable, Modsmith Cycle falls back to BepInEx/ModsmithCycle and logs a warning. Changes to this setting take effect after restarting Valheim.
Character and world backups are organized into separate identity-specific folders to prevent backups from different saves being mixed together.
Important Notes
- Backups are intended as temporary recovery copies, not permanent archival storage.
- Older backups are replaced as new, verified backups are successfully committed.
- Backup restoration is manual; Modsmith Cycle does not automatically replace or restore your active saves.
- If a backup cannot be completed safely, the operation is skipped and the existing backup history is preserved where possible.
- Backup files remain on your computer. Modsmith Cycle does not transmit them to other players or external services.
This feature operates independently of the existing BepInEx session-log backup system.
Requirements
- Windows 10 or 11
- Valheim 1.0.21
- BepInExPack Valheim 5.4.2360
- An active local-world or locally hosted Valheim session for automatic world resume
The small restart helper targets .NET Framework 4.8.
Installation
Keep both files together in the same plugin folder. For a manual installation, one possible location is:
BepInEx/plugins/ModsmithCycle/ModsmithCycle.dll
BepInEx/plugins/ModsmithCycle/ModsmithCycle.Restarter.exe
Mod managers may use a package-named plugin subfolder instead. The folder name is not important as long as the DLL and Restarter executable remain together.
Start Valheim with Start modded in r2modman.
Enter a world, press Escape, and choose SAVE & RESTART MODDED.
You can also use Left Ctrl + F9 while the Escape menu is open.
Configuration
Settings are written to:
BepInEx/config/MaddCatter365.ModsmithCycle.cfg
Current settings include:
Restart.CountdownSeconds— length of the cancel countdown.Restart.AutoResumeLocalWorld— when enabled, automatically reopens the previous local world.Restart.ResumeHostedSession— restores locally hosted-session settings so friends can reconnect.Restart.AutoReconnectRemoteServer— reserved for future remote-server reconnect support; currently disabled by default.Safety.RequireNoOtherPlayers— blocks restart while another player is still connected.Safety.MaximumResumeAgeSeconds— rejects stale resume requests.Hotkeys.Restart— restart shortcut used while the Escape menu is open.Logging.BackupSessionLog— enabled by default; saves the current log before exit and advances the two backup slots at the next launch.Compatibility.SteamExecutableOverride— optional full path toSteam.exewhen automatic Steam detection cannot find a nonstandard installation.
Older configuration files may still contain settings from previous versions that Modsmith Cycle no longer uses.
Scope
Version 1.1.0 provides reliable modded restart, resume, troubleshooting, and optional save-backup functionality:
- clean Valheim save and shutdown;
- Steam-based modded relaunch;
- active r2modman/BepInEx profile preservation;
- same-character restoration;
- same-local-world restoration;
- locally hosted-session restoration;
- native-style Escape-menu restart controls.
- optional local BepInEx session-log history for troubleshooting.
- optional rolling backups of character and locally hosted world saves;
- support for verified local and Steam Cloud save backups, with up to three retained copies per character or world.
Automatic remote guest reconnect is planned for a future update.
Dedicated-server restart support is out of scope.
1.0.0 changes
- Marks the first complete release of Modsmith Cycle's intended restart, resume, and troubleshooting workflow.
- Added optional BepInEx session-log backups for easier troubleshooting between test sessions.
- The current session log is preserved during normal game exit and before Save & Restart closes Valheim.
- Recent history is retained as
LogOutput-1.txtandLogOutput-2.txt, withLogOutput-PendingSession.txtused safely during rotation. LogOutput-1.txtis the most recent previous session andLogOutput-2.txtis the older retained session.- Added
Logging.BackupSessionLog, enabled by default, to allow log-history creation and rotation to be disabled. - Existing Test 1 backup names are migrated safely to the numbered log-history names on the first upgraded launch.
- Updated and revalidated Modsmith Cycle for Valheim 1.0.16 and BepInExPack Valheim 5.4.2351.
- Automatic remote-server guest reconnect remains planned for a future update and is not enabled in 1.0.0.
0.1.6 hotfix
- Corrected the restart helper's launch-request reader to use the V2 format written by the plugin.
- Restored Steam/r2modman relaunch after Valheim completes its normal save and shutdown.
- The main plugin DLL is unchanged from 0.1.5; 0.1.6 replaces the mismatched helper that shipped in the 0.1.5 package.
0.1.5 changes
- Added and finalized the native-style SAVE & RESTART MODDED Escape-menu interface.
- Added a matching Valheim ornament and centered restart-status notices.
- Added stable countdown/cancel behavior directly through the native restart button.
- Removed temporary UI diagnostic code.
- Cleaned obsolete helper/plugin request fields.
- Removed stale cinematic-skip code and references.
- Kept unfinished remote-server reconnect functionality safely disabled.
- Revalidated character and local-world auto-resume on Valheim 1.0.15.
- Confirmed successful save, shutdown, relaunch, character restoration, and local-world restoration.
Support
For help, bug reports, or compatibility feedback, visit the Mod Support channel.
Privacy and networking
Modsmith Cycle makes no network requests of its own and collects no data.
The restart helper receives only the information needed to wait for the current Valheim process to exit and relaunch Steam with the preserved modded launch arguments.
The temporary resume marker stores the information needed to restore the previous character and local world and is consumed during the resume process.
When Logging.BackupSessionLog is enabled, Modsmith Cycle creates local copies of the normal BepInEx LogOutput.log for troubleshooting. These backup files remain in the same BepInEx folder as LogOutput.log. Modsmith Cycle does not upload, transmit, or send these files anywhere.
The backup files remain on the user's computer unless the user manually copies, moves, uploads, or shares them. Because they are copies of the normal BepInEx session log, they may contain any diagnostic information that Valheim, BepInEx, or installed mods normally write to that log. Users should review logs before sharing them publicly.