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, games frozen on quit, and weather bonuses and dangers in the terminal. Replaces DunGenReferenceFixer.
By baconya
| Date uploaded | a week ago |
| Version | 1.0.2 |
| Download link | baconya-BaconFixer-1.0.2.zip |
| Downloads | 26 |
| Dependency string | baconya-BaconFixer-1.0.2 |
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.
Mods it fixes
Each entry says what goes wrong, why, and how to see it yourself. Versions are the ones tested on game v81. If a mod has been updated since, its problem may already be gone.
To compare, disable BaconFixer in your mod manager, launch and follow the test, then enable it and repeat. Log lines are in BepInEx/LogOutput.log in your profile.
MrovLib 0.4.15, shown by TerminalFormatter 0.3.9: $0 store prices
- Affects: LethalLevelLoader unlockables, such as items from Farming and Cooking Mod by MelanieMelicious, and Magic sphere from Wesley's Moons.
- Why: MrovLib reads the price from the item's info node, which is often $0. BaconFixer uses the real price from the buy node.
- Test: Host a lobby and type
storein the terminal. Without BaconFixer these items show $0. With it they show their real price, and the log hasFixed store price for 'Magic sphere': $140.
loaforcsSoundAPI.LethalCompany 1.0.2: DunGen load errors
- Why: It still looks for DunGen inside
Assembly-CSharp, but the game moved DunGen toDunGen.dll. Its dungeon name condition throws duringAudioSource.Play, which interrupts ambient sounds. BaconFixer forwards those types toDunGen.dllin memory, and game files on disk are not changed. - Test: Land on a moon. Without BaconFixer the log has
RoundManagerPatch::Reporting(). Error: System.TypeLoadException. With it that error is gone, and the log hasForwarding 133 DunGen types from Assembly-CSharp to DunGen.dll.
DunGenReferenceFixer 0.0.1: loading crash
- Why: Its native hook rewrites a Unity function,
MonoManager::GetMonoClassWithAssemblyName, on every call with no lock, so two loading threads can collide and crash the game. BaconFixer's forwarders answer the same lookups, so that mod isn't needed. Remove it if you have it, because BaconFixer can't turn its hook off. - Test: This can't be triggered on demand. It was seen once in 51 launches, as an access violation at
UnityPlayer.dll+0x7842E0, the function it hooks. If your log hasPatched MonoManager::GetMonoClassWithAssemblyName(), the hook is still active.
LethalModDataLib 1.2.2: mod data not registering
- Affects: Plugins that load after any plugin that failed to load, such as WesleysInteriorShenanigans inside Wesley's Interiors 5.0.19.
- Why: It loops over every plugin, and a failed plugin aborts the loop, so plugins after it never register their mod data. BaconFixer skips failed plugins and carries on.
- Test: Launch to the main menu with both installed. Without BaconFixer the log has a
NullReferenceExceptionfromModDataAttributeCollector. With it the log hasModDataFix: scanned N plugin(s), skipped 1 that failed to load.
LethalResonance 4.7.8, loaded by loaforcsSoundAPI 2.0.13: sound pack errors
- Why: Its
meltdown.jsonreplaces sounds from FacilityMeltdown. Without that mod installed, SoundAPI logs errors on every launch. BaconFixer stops those errors, and your sounds stay the same. - Test: Launch without FacilityMeltdown. Without BaconFixer the log has
2 fail(s) while loadingformeltdown.json, andMapping: '#FacilityMeltdown:warning_voice' has not been found. With it those lines are gone.
Wesley's Interiors 5.0.19 and Wesley's Moons 7.0.18: duplicate prefab errors
- Why: Several of their bundles ship the same prefab, such as Gastank. Netcode keeps the first copy and logs an error for the others. BaconFixer keeps the same result without the error.
- Test: Launch to the main menu. Without BaconFixer the log has
NetworkPrefab (Gastank) has a duplicate GlobalObjectIdHash source entry value of: 298664861!. With it the log hasSkipped duplicate network prefab 'Gastank' (hash 298664861).
TerminalUtils 0.0.18 and WeatherRegistry 0.8.8: terminal stutter
- Why: They call HarmonyX's
AccessTools.TypeByName, which can scan every type in every assembly. BaconFixer caches the results. - Test: In a big pack, type
moonsorstorefor the first time after launching. Without BaconFixer it stalls for 1-2 seconds the first time. With it there is no stall.
Chameleon 2.4.6 with Wesley's Interiors 5.0.19: Spooky Manor windows
- Why: Spooky Manor is built from the manor's tiles, including its fake windows, but Chameleon only sets windows up in the vanilla manor. In Spooky Manor they always show the default pasture view and stay on when the power goes out. BaconFixer runs Chameleon's window setup there too, so they follow its window lists and
PowerOffWindows. - Test: Land on a moon with a different window list, such as Rend, when Spooky Manor generates, and find a room with windows. Without BaconFixer they show the default view. With it they show that moon's view, and the log has
Cached window tile instance.
Base game v81, RoundManager: dark interiors
- Why: An interior can destroy a light after the game has built its light list. The loop that switches lights then throws, so later lights keep their old state and part of the building can stay dark. BaconFixer removes destroyed lights from the list before each step.
- Test: This needs an interior that destroys a light, and most don't. Without BaconFixer the log has a
NullReferenceExceptionwithRoundManager+<turnOnLights>in its stack. With it that error is gone.
Big modpacks: game freezing on quit
- Why: The cause isn't known yet. The game can stop during its final shutdown, after every mod's quit code has run, leaving a frozen window until you end the process. With about 100 mods it happened on 2 of 6 quits after landing on a moon, and never on quits without a landing.
- What BaconFixer does: This doesn't fix the cause. If the game is still running 15 seconds after you quit, BaconFixer closes it. A normal quit finishes first, so the timer never fires. It closed a freeze forced on purpose in testing, but a natural freeze hasn't happened with it yet.
- Test: This can't be triggered on demand. After a frozen quit,
Player.login%USERPROFILE%\AppData\LocalLow\ZeekerssRBLX\Lethal Companystops afterInput System module state changed to: Shutdown., with noMemory Statistics:line. With BaconFixer the window closes by itself within 15 seconds.
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.
Different prefabs that share a hash still spawn as the first one registered, because a real fix needs every player's game to agree. BaconFixer logs a warning for these, such as Network hash 3155849242 is shared by 'GASteelDoorMapModel' and 'SteelDoorMapModel2'.
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.
Feedback
Found a bug, or know a mod BaconFixer should fix or support? Message me on Discord: bac_kun.
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.