ModsmithCycle

版本 v1.0.0·更新於 2026-09-27

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 892970 route 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.0.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.

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.0.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.

Requirements

  • Windows 10 or 11
  • Valheim 1.0.16
  • BepInExPack Valheim 5.4.2351
  • 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:

BepInEx/plugins/ModsmithCycle/ModsmithCycle.dll

BepInEx/plugins/ModsmithCycle/ModsmithCycle.Restarter.exe

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 friend

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
ModsmithCycle-1.0.0.zip
檔案大小
168.1 KiB