ValheimConsoleCapture
Mirror the F5 console into a local log. Copy recent lines, dump them to a file, or run a command chain and save only that output.
模組介紹 作者原文
Valheim Console Capture
Valheim BepInEx mod that mirrors the F5 console into a local log, and can copy or dump those lines.
Identity
| | |
| --- | --- |
| Author | SonicDM |
| Plugin name | ValheimConsoleCapture |
| Plugin GUID | com.sonicdm.valheim.valheimconsolecapture |
| Assembly | ValheimConsoleCapture.dll |
| Version | 1.0.0 |
| Config file | BepInEx/config/com.sonicdm.valheim.valheimconsolecapture.cfg |
| Source | |
Features
- Writes F5 console lines to BepInEx/ValheimConsole.log inside the active BepInEx folder. With Gale or r2modman, that is the profile folder, not the Steam game folder.
- Keeps a rolling in-memory buffer (default 1000 lines) for copy and dump.
- Starts a new session block in the log each time the console wakes up.
- Client-only. Nothing is uploaded or sent to other players.
Commands
| Command | What it does |
| --- | --- |
| copyconsole | Copy the buffer to the clipboard. copyconsole 50 copies the last 50 lines. |
| dumpconsole | Write the buffer to BepInEx/ConsoleCaptures. dumpconsole 100 writes the last 100 lines. |
| dumpcommand pos | Run one console command and write only its output. |
| dumpcommand "pos; seed" | Run each command in order into the same file. |
| clearconsolebuffer | Clear the in-memory buffer. Does not clear the F5 console or delete the log. |
| consolecapture | Show status. consolecapture on and consolecapture off toggle capture until the next launch. |
Quotes are only needed when chaining. A semicolon outside the quotes is still a separate console command.
Dump files are named console--yyyy-MM-dd-HHmmss.txt. The "Dumped N lines" acknowledgement is shown in the console and is not part of the file. Clipboard text and dump files are not timestamped.
Configuration
- [General] Enabled
- [File] LogToFile, LogPath, AppendMode, TimestampLines, FlushImmediately
- [Buffer] BufferedLines (1–100000)
- [Clipboard] EnableClipboard
- [Filtering] CaptureCommands, CaptureOutput, StripRichText, CaptureAutocomplete
LogPath defaults to BepInEx/ValheimConsole.log. A BepInEx... path stays inside the active BepInEx folder. Any other relative path starts at the game folder.
Installation
- Install BepInExPack and Jötunn.
- Place ValheimConsoleCapture.dll under BepInEx/plugins.
Build.\build.ps1
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: