You are viewing a potentially older version of this package. View all versions.
SonicDM-ValheimConsoleCapture-1.0.0 icon

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.

Date uploaded a week ago
Version 1.0.0
Download link SonicDM-ValheimConsoleCapture-1.0.0.zip
Downloads 36
Dependency string SonicDM-ValheimConsoleCapture-1.0.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202
ValheimModding-Jotunn-2.23.0 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.23.0

README

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 https://github.com/sonicdm/ValheimConsoleCapture

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-<commands>-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

  1. Install BepInExPack and Jötunn.
  2. Place ValheimConsoleCapture.dll under BepInEx/plugins/.

Build

.\build.ps1

CHANGELOG

Changelog

1.0.0

  • Mirror F5 console lines to BepInEx/ValheimConsole.log
  • Rolling buffer with copyconsole, dumpconsole, and clearconsolebuffer
  • dumpcommand runs one command or a quoted chain and writes only that output
  • consolecapture on/off, optional rich-text stripping, and autocomplete capture
  • Client-only; nothing is sent to other players