LogNeuter
Utility to block certain log messages from the game
模組介紹 作者原文
LogNeuter
Allows you to remove certain logging messages from the game.
Supports constant strings and formatted strings.
Also has a few generic fixes to reduce log messages:
Fixes audio spatialization warnings.
Masks "Look rotation viewing vector is zero" warnings.
Installation (manual)
If you are installing this manually, do the following
- Extract the archive into a folder. Do not extract into the game folder.
- Move the contents of plugins folder into \BepInEx\plugins.
- Run the game.
Instructions
Add an entry to the configuration in the following format:
[Namespace.TypeName|MethodName]
Static Message To Filter
^Dynamic Message To Filter:.*$
Some log messages are dynamic or formatted, and regex syntax may be used in order to filter these.
LogNeuter checks for regex syntax by looking for the ^ and $ characters at the beginning and end.
To generate an example config file containing (nearly) all possible messages to filter, enable GenBlockAll and run the game once.
A file called BlueAmulet.LogNeuter.Generated.cfg will appear inside the config folder.
The presence of this file does not filter any logs, and filters must be set up inside the main configuration file.
Examples
To get rid of a few spammy messages, try the following config:
[RedLocustBees|Update]
Setting zap mode to 0 aaa
[InteractTrigger|HoldInteractNotFilled]
Holding interact
[GameNetcodeStuff.PlayerControllerB|OpenMenu_performed]
PLAYER OPENED MENU
[PlayAudioAnimationEvent|PlayAudio2RandomClip]
Playing random clip 2
[Unity.Netcode.RpcMessageHelpers, Unity.Netcode.Runtime|Handle]
^[0-9]+ | __rpc_handler_[0-9]+$
Known generator issues
Debug.Log with context not supported.
Debug.Log with string concat not supported.
Debug.LogFormat not supported.
These only affect very few possible logging messages.
Changelog
Click to expand
1.0.3
Prevent Ambigious method matching from halting patching.
Prevent Transpiler IL errors from halting patching.
Only log spatilization changes if anything was patched.
1.0.2
Fixed patching logs from classes other than Assembly-CSharp.
Fixed patching not applying if only regex patches were used.
Blocked trying to patch LogException.
1.0.1
Added versioning to the config, a warning message will appear if the config version is different than expected.
Added patch for Quaternion.LookRotation, will mask the "Look rotation viewing vector is zero" warnings.
Plugin no longer depends on Lethal Company and should work for any game.
Config generation now done in separate harmony namespace and also unpatches itself.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: