
BaconFixer
Fixes for big modpacks: $0 store prices, DunGen load errors, dark interiors from destroyed lights, duplicate network prefab errors, and weather bonuses and dangers in the terminal. Replaces DunGenReferenceFixer.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 items from Farming and Cooking Mod by MelanieMelicious, and 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, and interior assets built before DunGen moved | They still look for DunGen inside Assembly-CSharp. For the sound mod, 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 |
| Loading crash | DunGenReferenceFixer 0.0.1 | Its native hook rewrites a Unity function on every call with no lock, so two loading threads can collide and crash the game | The forwarders above answer the same lookups, so that mod isn't needed. Remove it if you have it, because BaconFixer can't turn its hook off |
| 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 |
| Sound pack errors | LethalResonance, loaded by loaforcsSoundAPI | Without FacilityMeltdown installed, its meltdown sounds log errors on every launch | Stops those errors. Your sounds stay the same |
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.
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.
Two log messages remain. DawnLib logs Couldn't match DestroyItemInSlot when DestroyItemInSlotFix is installed, which JLL's package does, though that mod fixes the same bug. WesleysInteriorShenanigans, inside Wesley's Interiors, warns that it could not be instantiated. It was built for an older game version and stays off on purpose.
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.