#Log Neuter

1 messages · Page 1 of 1 (latest)

zinc shale
#

https://thunderstore.io/c/lethal-company/p/BlueAmulet/LogNeuter/

Lets you remove specific log messages from the game.
Also has options to fix the audio spatializer warnings and "Look rotation viewing vector is zero" messages.

Has a feature to process all game classes and generate a config containing (nearly) all possible messages to block.
(Yes I know about the UnityLogListening config that is not the point)

My preferred config atm is to use:

[RedLocustBees|Update]
Setting zap mode to 0 aaa

[RedLocustBees|DoAIInterval]
STARTING AIINTERVAL  ---------------

[InteractTrigger|HoldInteractNotFilled]
Holding interact

[GameNetcodeStuff.PlayerControllerB|OpenMenu_performed]
PLAYER OPENED MENU

[PlayAudioAnimationEvent|PlayAudio2RandomClip]
Playing random clip 2

[NutcrackerEnemyAI|TurnTorsoToTargetDegrees]
^dist to target torso degrees: [0-9.]+$

[Unity.Netcode.RpcMessageHelpers, Unity.Netcode.Runtime|Handle]
^[0-9]+ | __rpc_handler_[0-9]+$
zinc shale
#

v1.0.1:
Added versioning to the config, lets me warn if config entries have been added/removed.
Added patch for Quaternion.LookRotation, will mask the "Look rotation viewing vector is zero" warnings.
Used Transpiler for the patch for less overhead than a Prefix.
Plugin is no longer specific to Lethal Company and should run on any game.
Config generation now done in separate harmony namespace and also unpatches itself.

v1.0.2:
Fixed patching logs in classes that aren't Assembly-CSharp.
Fixed patching being skipped if only regex patches were used.
Stopped trying to patch LogException.

umbral escarp
#

Is it possible to have it use a dynamic config (Probably not the correct wording) and have it disabled/enable log messages as you change the config while the game is open?

zinc shale
umbral escarp
#

Yeah that would work also

zinc shale
#

Alright, I can look into adding that

umbral escarp
#

Alright thanks! Not used to it yet so kinda sucks having to reload the game and get into on a moon and finding out that I didn't do it correctly.

zinc shale
umbral escarp
#

Alright I'll take a look at that also. Thanks!

umbral escarp
zinc shale
#

GenBlockAll only scans the base games, you can disable logs in other mods by specifiying the dll name after the type.
An example of this is in my example config
[Unity.Netcode.RpcMessageHelpers, Unity.Netcode.Runtime|Handle]
Here Unity.Netcode.Runtime is a different dll than the base game's Assembly-CSharp

umbral escarp
#

Alright thanks!

loud knoll
#

hi, this is posible remove unity log spam?

#

i mean dist to target torso

loud knoll
#

about ## Mask "Look rotation viewing vector is zero" messages
still showing on Console

zinc shale
# loud knoll i mean dist to target torso

If you enable GenBlockAll in the config, run the game once, and then disable it, a file called BlueAmulet.LogNeuter.Generated.cfg will appear as a reference for any log you can block.
For this entry, I ended up using the following config entry

[NutcrackerEnemyAI|TurnTorsoToTargetDegrees]
^dist to target torso degrees: [0-9.]+$
loud knoll
#

ya i already using once the genblockall but still come out that log. also the aiinterval

#

but need always active that genblockall for work. if only using once genblockall then disabled not work agins the logs come out agins

zinc shale
#

Can't replicate, log blocking works fine without GenBlockAll enabled. That wouldn't even make sense GenBlockAll unpatches itself after it's done, and has no influence on blocking logs anyway.

tepid granite
#

Tried to use LogNeuter but it did not block any logs. I generated the file then disabled the option to generate, then rebooted the game but nothing was blocked. also tried copying the internals of the generated file to the bottom of the config file, and it still didn't work. Am I doing something wrong?

#

@zinc shale

zinc shale
tepid granite
#

That was directly after launching the game. As far as I know, I had no other plugins installed, and even BepInEx says [Info : BepInEx] 1 plugins to load sooo..
hm

zinc shale
#

huh, alright I'll look into that.

loud knoll
zinc shale
#

Yes I'm aware, it's the same error in Nyxchrono's log

zinc shale
#

v1.0.3:
Prevent exceptions from halting patching.
Only log spatialization changes if anything was patched.

loud knoll
#

only morecompany and logneuter

#

^ make game can't scan

loud knoll
#

never mind, I checked 1 by 1 and now there are no errors / ambiguities 😄

#

Who knows if someone needs it, I'll put it here

loud knoll
halcyon bobcat
# zinc shale GenBlockAll only scans the base games, you can disable logs in other mods by spe...

I can't figure out how to get this to work
I have this in the LogNeuter config

^Error registering steam: .*$

[LethalRichPresence.DiscordAbstraction, LethalRichPresence|CreateDiscord]
^Error registering steam: .*$```

and yet it still shows up on my log
```[Info   :   BepInEx] Loading [LogNeuter 1.0.3]
[Warning: LogNeuter] Made no changes to method: Discord.ActivityManager, LethalRichPresence|RegisterSteam
[Warning: LogNeuter] Made no changes to method: LethalRichPresence.DiscordAbstraction, LethalRichPresence|CreateDiscord
[Info   : LogNeuter] Patched ConfigFile.Save
[Info   : LogNeuter] Patched Quaternion.LookRotation
[Info   : LogNeuter] Patched ActivityManager.RegisterSteam
[Info   : LogNeuter] Patched DiscordAbstraction.CreateDiscord
[Info   : LogNeuter] Patched RpcMessageHelpers.Handle
[Info   : LogNeuter] 5 patches applied
[Info   :   BepInEx] Loading [LethalRichPresence 0.2.0]
[Info   :LethalRichPresence] Plugin LethalRichPresence is loaded!
[Message:   BepInEx] Chainloader startup complete
[Info   :LethalRichPresence] Plugin LethalRichPresence is loaded!
[Error  :LethalRichPresence] Error registering steam: Discord.ResultException: InternalError
  at (wrapper dynamic-method) Discord.ActivityManager.DMD<Discord.ActivityManager::RegisterSteam>(Discord.ActivityManager,uint)
  at (wrapper dynamic-method) LethalRichPresence.DiscordAbstraction.DMD<LethalRichPresence.DiscordAbstraction::CreateDiscord>()```
loud knoll
soft delta
#

@zinc shale Patching SpawnPropOnDoorwayPair.CanTilesConnect causes a AccessTools warning because it's logging has extra parameters.