
BaconFixer
Fixes for big modpacks: $0 store prices, DunGen load errors, dark interiors from destroyed lights, duplicate network prefab errors, weather bonuses and dangers in the terminal, and freeze reports.BaconFixer
Fixes for big Lethal Company modpacks, in one mod. It changes nothing on the network, so players can use it without everyone in the lobby having it.
What it fixes
| Fix | Mods involved | The problem | What BaconFixer does |
|---|---|---|---|
| Store prices | MrovLib, shown by TerminalFormatter. Hits LethalLevelLoader unlockables, such as Magic sphere from Wesley's Moons | MrovLib reads the price from the item's info node, which is often $0 | Uses the real price from the buy node |
| DunGen load errors | loaforcsSoundAPI.LethalCompany 1.0.2 | It still looks for DunGen inside Assembly-CSharp, so its dungeon name condition throws TypeLoadException during AudioSource.Play, interrupting ambient sounds |
Forwards those types to DunGen.dll in memory. Game files on disk are not changed |
| Dark interiors | Base game RoundManager, set off by an interior that destroys a light |
A NullReferenceException stops the light loop, so later lights keep their old state |
Removes destroyed lights from the list before each step |
| Duplicate prefab errors | Netcode. Seen with bundles from Wesley's Interiors and Wesley's Moons | The same prefab in several bundles, such as Gastank, logs an error | Skips true duplicates without the error. See Limits for different prefabs that share a hash |
| Mod data | LethalModDataLib 1.2.2, set off by any plugin that fails to load, such as WesleysInteriorShenanigans on v81 | One failed plugin aborts the loop, so plugins after it never register their mod data | Skips failed plugins and carries on |
| Terminal stutter | HarmonyX AccessTools.TypeByName, called by TerminalUtils and WeatherRegistry |
Each lookup scans every type in every assembly | Caches results, removing a 1-2 second stall the first time the store or moons page opens |
Terminal additions
Both need WeatherRegistry.
- Moons list and route pages (needs TerminalUtils): weather shows its bonuses, such as
Eclipsed $+35% loot+15%.$is scrap value andlootis scrap amount. - Route confirm page (needs TerminalFormatter): a
SCRAP BONUSline and aDANGERline that explain the weather.
Freeze reports
If the game's main thread runs no frame for 20 seconds, BaconFixer writes every thread's stack to BepInEx/freeze-reports, then again at 60 and 120 seconds. Each launch also writes selftest.txt there to show the reporter works. Reports stay on your PC. They only record a freeze, they do not fix it.
Limits
Fixes for other mods check that those mods are installed, and skip themselves if they are not. A different prefab that shares a hash still spawns as the first one registered, because a real fix needs every player's game to agree.
AI disclosure
The code and this README were generated with Claude Code, Anthropic's AI coding agent. The author directed the work and tested the mod in game.