This Goes Here

版本 v2.1.2·更新於 2025-03-10

Small mod for mod authors to run file operations in bepinex folders.

模組介紹 作者原文

Valheim.ThisGoesHere

Small over-engineered BepInEx mod to help move files around using yaml configs.

Intended to help mod authors, by letting them supply a config file with their desired file movements.

Note, only files and paths within the BepInEx folder are valid.

ThisGoesHere scans the BepInEx/configs folder for any and all files named Valheim.ThisGoesHere.yml or with a wildcard part to add your own personal touch Valheim.ThisGoesHere.*.yml.

Currently supported operations

  • File
  • Copy
  • Move
  • Delete
  • Folder
  • Copy
  • Copy Content
  • Move
  • Delete

Format

All fields are optional.

PrintComment: #Text to print before running operations.

CopyFile:

  • From: #Path to file that should be copied.

To: #Path to file destination. If exists, target is overwritten.

MoveFile:

  • From: #Path to file that should be moved

To: #Path to file destination.

DeleteFile:

  • #Path to file that should be deleted.

CopyFolder:

  • From: #Path to folder that should be copied.

To: #Path to folder destination. Existing files will be overwritten.

CopyFolderContent:

  • From: #Path to folder that should have all its content copied.

To: #Path to folder destination. Existing files will be overwritten.

MoveFolder:

  • From: #Path to folder that should be moved.

To: #Path to folder destination. Existing files will be overwritten.

DeleteFolder:

  • #Path to folder that should be deleted.

Config files are run in whatever order they are found.

Operations in each config are run in the order:

  • PrintComment
  • CopyFile
  • MoveFile
  • DeleteFile
  • CopyFolder
  • CopyFolderContent
  • MoveFolder
  • DeleteFolder

Example

PrintComment: This text is printed when config is executed.

CopyFile:

  • From: config/copy_this_file.txt

To: plugins/folder/to_this_file.txt

MoveFile:

  • From: config/move_this_file.txt

To: config/to_this_folder/move_this_file.txt

  • From: config/move_this_too.txt

To: config/to_this_folder/move_this_too.txt

DeleteFile:

  • config\remove_this.txt
  • plugins/and_this.txt

CopyFolder:

  • From: config/copy_this_folder/

To: plugins/into_this/

MoveFolder:

  • From: config/move_this_folder/

To: config/into_this/

  • From: config/move_this_too/

To: plugin/

DeleteFolder:

  • config\remove_this\
  • plugins/and_this

This example will result in logs like this when starting Valheim.

[Info: BepInEx] Loading [This Goes Here 1.0.0]

[Debug:This Goes Here] Found 1 config files.

[Message:This Goes Here] This text is printed when config is executed.

[Message:This Goes Here] Copying 'config\copy_this_file.txt' to 'plugins\folder\to_this_file.txt'

[Info:This Goes Here] Creating missing folders in path.

[Message:This Goes Here] Moving 'config\move_this_file.txt' to 'config\to_this_folder\move_this_file.txt'

[Info:This Goes Here] Creating missing folders in path.

[Message:This Goes Here] Moving 'config\move_this_too.txt' to 'config\to_this_folder\move_this_too.txt'

[Message:This Goes Here] Deleting file 'config\remove_this.txt'

[Message:This Goes Here] Deleting file 'plugins\and_this.txt'...

Support

If you feel like it

Changelog:

  • v2.1.2
  • Compatibility: Packing YamlDotNet dependency into main dll, to avoid conflicts with other mods.
  • v2.1.1
  • Fixed missing null-check for CopyFolderContent...
  • v2.1.0
  • Added CopyFolderContent option.
  • v2.0.0
  • Converted from plugin to patcher. This means it now needs to be installed in bepinex/patchers instead of bepinex/plugins. It allows This Goes Here to run before any plugins are loaded, meaning even mod dll's can now be properly targetted. Eg., mods can be deleted before they are loaded.
  • v1.2.2
  • Added missing YamlDotNet, forgot to add it to the bundle. Woops.
  • v1.2.1
  • Fixed CopyFolder and MoveFolder moving entire 'from'-path into 'to', instead of just the indicated 'from' folder.
  • v1.2.0
  • Added folder options for move, copy, delete.
  • Fixed readme typo in filename for wild-card configs.
  • v1.1.0
  • Added support for customizable file names.
  • v1.0.0
  • Initial release

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
This_Goes_Here-2.1.2.zip
檔案大小
98.6 KiB