LogNeuter
Utility to block certain log messages from the game
About this mod Author’s original text
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.
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: