Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
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.
By baconya
| Date uploaded | 2 weeks ago |
| Version | 1.0.0 |
| Download link | baconya-BaconFixer-1.0.0.zip |
| Downloads | 25 |
| Dependency string | baconya-BaconFixer-1.0.0 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305README
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.
CHANGELOG
Changelog
2.3.0
- Any mod: particle effects no longer fill the log with
Sub-emitters may not use stop actions. The Stop action will not be executed.Unity never runs those stop actions, so BaconFixer turns them off. Rain did it most: Wesley's Weathers' Hurricane and Forsaken and the Sub Systems interior logged it 3,835 times in one landing, and none with the fix. - New logo.
2.2.1
- BloodVFX: a blown-apart player's head goes into a normal hotbar slot instead of the utility slot, where switching away made it seem to vanish. The ship teleporter beams that player's head up to the pad, as it does with a body.
- A type a mod looks up before the mod that has it loads is found once that mod loads. Before, it stayed not found for the whole session.
- SolidLib: outside music plays again. SolidLib's music patch read a value the game made private in v81, so it threw each time and no outside music played on any moon.
- A keybind with no key active right now, such as one set to a device that isn't plugged in, no longer stops the settings from refreshing when the Escape menu closes.
- ImmersiveVisor: hitting an enemy with no eye, such as Surfaced's Urchin, no longer throws. Its blood splat on the visor needs the enemy's eye, so every hit those enemies took, by a player or another monster, failed partway with an "Unhandled RPC exception".
2.2.0
- One press of W or S in Lategame Upgrades' store, and in other Interactive Terminal API menus, now moves the cursor one line. It used to move twice when the key was down a little over 0.1 s, so on the store's first menu the cursor landed back where it started. Holding the key still scrolls, after a short pause.
2.1.0
- Icon images that mods ship for RuntimeIcons no longer keep a second copy in RAM. With RuntimeIcons_BetterRotations' 797 icons, the game uses about 270 MB less RAM. The icons look the same.
2.0.0
- BaconFixer is now only fixes, and works in any pack. Game Rules moved to BaconGameRules, and the terminal extras and Terminal quality moved to BaconTerminal. Install those to keep them. Their settings carry over.
- BaconFixer no longer requires any other mod. Each fix checks for the mods it fixes and turns itself off without them.
- Chameleon's manor windows and mineshaft caves now work in any interior built from those parts, not only Spooky Manor and Atlantean Citadel.
- Sound packs with sounds for mods you don't have now load their other sounds. This works for any pack, not only LethalResonance's FacilityMeltdown sounds.
- Fixed a crash, mostly when quitting, caused by mods that make sound clips on several threads at once, such as loaforcsSoundAPI with LethalResonance. Those sounds now load one at a time, which adds a few seconds to startup.
- Modded scrap without a scan node now gets one, so you can scan it, such as the glasses from Farming and Cooking.
- The DawnLib and DestroyItemInSlotFix fix now applies whatever order those mods load in.
1.2.1
- Installing BaconFixer now also installs TerminalFormatter, TerminalUtils, WeatherRegistry and LethalLevelLoader, so every terminal extra and the whole Game Rules window work right away.
- If you turn any of these off, BaconFixer still runs and leaves out only what needs that mod. The README lists what each one adds.
- Moon pages now work without WeatherRegistry, with dangers for the game's own weathers.
- The
OTHERpage only lists the extras you have, and the Game Rules window says when its moon clock list needs LethalLevelLoader.
1.2.0
- Fixed a clash between DawnLib and DestroyItemInSlotFix. A key used from your inventory with GeneralImprovements stayed in its slot with no icon, and destroying an item in another slot took off the wrong carry weight.
- ImmersiveEntrance's door portals now work on modded moons and interiors, with the screen fitted to each door. Art Gallery and a few moons with older doors still have none.
- Atlantean Citadel's caves now follow Chameleon's cave lists.
- The moons page now says Galetry buys scrap too, and moon pages for places that buy scrap show the buying rate.
- Moon pages no longer show loot and interior odds for places that generate no interior, such as The Company.
1.1.1
- Moon pages now list the odds of every interior, with anything under 1% grouped as
others. They only showed the top 3 before. - Added this changelog.
1.1.0
- Added Game Rules: click a save file on the host screen to set its difficulty, credits, quota, quota growth, days per quota, day length, scrap and enemies.
- Added a Terminal quality setting to the game's Settings menus.
- Added
SORT BONUSto the terminal, andLOOT,INTERIORandDAY LENGTHlines in colour on moon pages. TheOTHERpage now mentions these. - Weather bonuses now read
value+35% items+15%. - Added WeatherTweaks support: combined weathers get a danger line for each weather, long names are shortened in the moons list, and hidden weather stays hidden.
- Fixed FacilityMeltdown not starting when Mirage is installed.
- Fixed Chameleon's door lights and snow checks on modded moons.
- Stopped the error spam from enemies off the nav mesh, mostly Red Locust Bees.
- Removed the timer that closed a game frozen on quit, because Thunderstore flagged it. A frozen game now has to be closed by hand.
1.0.2
- Fixed Spooky Manor's windows with Chameleon.
- Added a timer that closes the game if it's still running 15 seconds after you quit.
- The README now lists each mod it fixes, why, and how to test it.
- Added a Discord name for feedback.
1.0.1
- Stopped LethalResonance's sound pack errors when FacilityMeltdown isn't installed.
- Removed freeze reports.
1.0.0
- First release: fixes for $0 store prices, DunGen load errors, dark interiors, duplicate network prefabs, mod data not registering and terminal stutter, plus weather bonuses and dangers in the terminal.