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.
ModpackFixes
Lightweight modular compatibility, late-join, and bugfix patches for Lethal Company v81 modpacks, with soft-dependency detection so profile exports never force optional mods.
| Date uploaded | 5 days ago |
| Version | 0.2.0 |
| Download link | Aqlow-ModpackFixes-0.2.0.zip |
| Downloads | 134 |
| Dependency string | Aqlow-ModpackFixes-0.2.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.2304README
ModpackFixes
Lightweight, modular compatibility and bugfix patches for Lethal Company (v81) modpacks.
ModpackFixes is designed for players who share and maintain multiple r2modman / Gale / Thunderstore modpack profiles:
- Zero forced mod dependencies: Third-party mods are detected dynamically at runtime via
BepInEx.Bootstrap.Chainloaderand patched via reflection + Harmony. AddingAqlow-ModpackFixesto an exported profile will never force-install mods you removed in another profile. - Per-fix toggles: Every compatibility module has its own
[Fixes]toggle inBepInEx/config/dev.aqlow.modpackfixes.cfg(enabled by default). - Safe when target mods are absent: Modules whose target mods aren't installed automatically skip startup cleanly with a single log line.
Included Fixes (0.2.0)
1. Built-In Orbit & Mid-Round Late Join (LateJoinFix)
- Config keys:
[Fixes] LateJoinFix = true,[LateJoin] AllowJoiningWhileLanded = true - Activates when: Always (compatible with vanilla 4-player lobbies and
MoreCompany32-player lobbies) - What it provides & fixes:
- Keeps lobbies joinable in orbit and (when
AllowJoiningWhileLanded = true) after the ship has finished landing, while blocking joins during dungeon generation and ship takeoff/scene unload. - Fixes vanilla's two
StartOfRound.OnPlayerConnectedClientRpcbugs: reconciles all0..N-1MoreCompanyslots viaconnectedPlayerIdsOrdered(not justj < connectedPlayersAmount + 1), preservesisPlayerDead = true/isPlayerControlled = falseon already-dead players, computes authoritativelivingPlayers, and assignslocalPlayerControlleron the joining client immediately beforeGenerateNewLevelClientRpcruns. - Sends an authoritative
CustomMessagingManagersnapshot (dev.aqlow.modpackfixes.latejoin_sync) syncing per-slot life/suits/names/locations, mid-round level seed, weather, mold state, breaker power,TimeOfDayclock, ship doors, occupiedInteractTriggers /Terminallock state, and dead-player spectator voice muting. - Cleans up disconnected players non-destructively in
StartOfRound.OnPlayerDC(releasing heldInteractTrigger/Terminallocks, resetting slot names/radar labels, and triggering automatic ship leave if the last living player disconnects on a moon).
- Keeps lobbies joinable in orbit and (when
2. Netcode Mid-Round Scene Sync & Approval Retry Guard (NgoSceneSyncNullParentFix)
- Config key:
[Fixes] NgoSceneSyncNullParentFix = true - Activates when: Always
- Fix: Replaces
Unity.Netcode.SceneEventData.SortChildrenNetworkObjectswith a UnityObject != null-aware comparator so destroyed cached parent transforms never crashSynchronizeNetworkObjectsduring mid-round joins, and makesNetworkConnectionManager.AddClientidempotent if aclientIdalready exists from an earlier pending approval retry.
3. Deterministic Player & Radar Target Name Sync (RadarTargetNameSyncFix)
- Config key:
[Fixes] RadarTargetNameSyncFix = true - Activates when: Always
- Fix: Fixes vanilla's duplicate-name numbering in
SendNewPlayerValuesClientRpcacross all slots, synchronizesplayerUsername+usernameBillboardText+ QuickMenu labels, and updatesStartOfRound.Instance.mapScreenviaChangeNameOfTargetTransform(player.transform, ...)(plusSyncOrderOfRadarBoostersInList) so non-playerRadarBoosterentries never shift player names out of sync withdarmuhsTerminalStufforOpenBodyCams.
4. Interaction Lock & Item Slot Safety (InteractionLockSafetyFix)
- Config key:
[Fixes] InteractionLockSafetyFix = true - Activates when: Always (with optional soft-patch when
mrgrm7.LethalCasinois loaded) - Fix: Repairs null
localPlayerControllerbeforeInteractTrigger.StopSpecialAnimation, automatically releases manual-stopInteractTriggerlocks orphaned by dead or disconnected players without disturbing active remoteTerminalusers, and guardsLethalCasino.Patches.PlayerControllerBPatch.ShowScrapValueHoverTipwhencurrentItemSlotis outside0 .. ItemSlots.Length - 1(e.g.,LevelDowncarry slot50).
5. Biodiversity Boom Bird + Bigger Ships Compatibility (EnableBoomBirdBiggerShipFix)
- Config key:
[Fixes] EnableBoomBirdBiggerShipFix = true - Activates when:
Biodiversity(com.github.biodiversitylc.Biodiversity) is loaded; exterior-perch routing engages automatically whenmborsh.WiderShipMod,MelanieMelicious.2StoryShip, any configuredMicBirdcompat mod is present, orshipBounds.bounds.sizeexceeds vanilla dimensions - Problem: Boom Birds (
MicBirdAI) targetmiddleOfShipNode + (0, 4, 0)(buried inside 2-story/wider ship cabins) or unverified±15mforward offsets inside carved ship NavMesh, causing!agent.hasPathfor 10 AI ticks and silent early suicide despawns (Playing death sound for enemy: Boom bird) that also leakenemyType.numberSpawnedand leavefirstSpawnedstuck on a dead bird. In addition,ToggleAllWalkiesOutsideClientRpcusesif (w.isInFactory) break;, aborting before outdoor/ship walkies whenever an indoor walkie sits earlier inwalkies. - Fix: Computes NavMesh-sampled,
PathComplete-verified exterior perimeter perch positions outside enlargedshipBounds, warps off-NavMesh reinforcement spawns onto nearby walkable NavMesh, promotes a living leader whenfirstSpawneddies/despawns, decrementsnumberSpawnedondespawnEarly, resets static state each round, and orders!isInFactorywalkies first inUpdatewithout touching RPC execution stages.
6. DawnLib + Mirage Cloned EnemyType DawnEnemyInfo Repair
- Config key:
[Fixes] CopyDawnInfoToClonedEnemyTypes = true - Activates when:
TeamXiaolan-DawnLib(com.github.teamxiaolan.dawnlib) is loaded - Problem:
DawnLibinjectsIDawnObject.DawnInfo(DawnEnemyInfo) onto canonicalEnemyTypeassets during registry freeze. WhenMirage(qwbarch-Mirage) has masked enemy spawn control enabled on the host, it callsUnityEngine.Object.Instantiate<EnemyType>(maskedPrefab.enemyType)insideOn.TimeOfDay.Startto injectMaskedPlayerEnemy(Clone)across moons. Unity'sObject.Instantiateleaves the injected managedDawnInfobacking fieldnullon the clone, causingNullReferenceExceptionin mods that inspectSelectableLevel.EnemiesviaEnemyType.GetDawnInfo(). - Fix: Automatically copies
DawnEnemyInfoonto any clonedEnemyTypewhoseDawnInfoisnull(resolving the canonical donor viaenemyPrefab -> EnemyAI.enemyType, with a fallback lookup across loadedEnemyTypeassets) afterTimeOfDay.Start, beforeRoundManager.LoadNewLevel, and beforeRoundManager.BeginEnemySpawning.
7. FacilityMeltdown Host Ship Auto-Takeoff Desync Guard
- Config key:
[Fixes] GuardFacilityMeltdownHandleEnemies = true - Activates when:
loaforc-FacilityMeltdown(me.loaforc.facilitymeltdown) is loaded - Problem: In
FacilityMeltdown,MeltdownHandler.StartMeltdownClientRpc()callsHandleEnemies()on the server before settingmeltdownStarted = true. WhenHandleEnemies()encounters anEnemyTypemissingDawnEnemyInfo(such as Mirage'sMaskedPlayerEnemy(Clone)), it logs a warning without continuing and throwsNullReferenceExceptionon the host beforemeltdownStarted = true. Non-host clients tick downmeltdownTimerand see the ship take off automatically, while the host'sMeltdownHandler.Update()returns early forever until the ship lever is pulled manually. - Fix: Runs
DawnEnemyInfoclone repair immediately beforeMeltdownHandler.HandleEnemies()executes and wrapsHandleEnemies()with a HarmonyFinalizersafety net so an enemy-spawning error can never abortStartMeltdownClientRpc()beforemeltdownStarted = trueon the host.
Requirements & Installation
- Lethal Company: Tested on v81
- Mod Loader:
BepInEx-BepInExPack-5.4.2304 - Multiplayer Compatibility: Safe on both host and clients (recommended on at least the host; installs cleanly for everyone in shared
r2modmanprofile codes).
Install
Install Aqlow-ModpackFixes via r2modman, Gale, or the Thunderstore Mod Manager, or extract plugins/ModpackFixes.dll into BepInEx/plugins/Aqlow-ModpackFixes/.
Uninstall & Troubleshooting
Remove the package in your mod manager (or delete BepInEx/plugins/Aqlow-ModpackFixes/). Startup activation and skip logs are written to BepInEx/LogOutput.log under [Info :ModpackFixes].
Credits & Disclosure
- Built for Lethal Company using BepInEx 5 and HarmonyX.
- Compatibility research against
TeamXiaolan-DawnLib,qwbarch-Mirage,loaforc-FacilityMeltdown,me.swipez.melonloader.morecompany,mrgrm7.LethalCasino,Biodiversity,mborsh.WiderShipMod, andMelanieMelicious.2StoryShip. - AI Disclosure: Code, automated tests, and procedural package icon authored with GitHub Copilot (Gemini 4 Carbon).
- License: MIT.
CHANGELOG
Changelog
0.2.0
- Added
LateJoinFix([Fixes] LateJoinFix = true,[LateJoin] AllowJoiningWhileLanded = true): clean built-in orbit + mid-round late joining withMoreCompany32-slot support,Execute-stage-onlyOnPlayerConnectedClientRpcreconciliation (preserving dead players and exactlivingPlayerscounts), immediatelocalPlayerControllerassignment beforeGenerateNewLevelClientRpc, authoritativeCustomMessagingManagerround/moon/weather/power/time/suit/voice/trigger state sync, and non-destructiveOnPlayerDCcleanup. - Added
NgoSceneSyncNullParentFix([Fixes] NgoSceneSyncNullParentFix = true): prevents Netcode for GameObjectsSceneEventData.SortChildrenNetworkObjectsNullReferenceException/InvalidOperationExceptionwhen a spawnedNetworkObjecthas a destroyed cached parent during mid-round scene sync, and preventsNetworkConnectionManager.AddClientduplicate-key exceptions on connection retries. - Added
RadarTargetNameSyncFix([Fixes] RadarTargetNameSyncFix = true): deterministically deduplicates player usernames across all slots and updates ship radar target names byTransform(ChangeNameOfTargetTransform) soRadarBoosters,darmuhsTerminalStuff, andOpenBodyCamsalways stay aligned. - Added
InteractionLockSafetyFix([Fixes] InteractionLockSafetyFix = true): self-healsInteractTriggermanual special-animation locks orphaned by dead/disconnected players, repairs nulllocalPlayerControllerinStopSpecialAnimation, and soft-guardsLethalCasino'sShowScrapValueHoverTipagainst out-of-boundscurrentItemSlotindices (such asLevelDowncarry slot50). - Added
EnableBoomBirdBiggerShipFix([Fixes] EnableBoomBirdBiggerShipFix = true): fixesBiodiversity's Boom Bird (MicBirdAI) withWiderShipMod,Melanie2StoryShip, and enlargedshipBoundsby routing exterior perches to NavMesh-verified perimeter anchors outside the ship hull, recovering off-NavMesh spawns, promoting a living leader whenfirstSpawneddies/despawns, preventingdespawnEarlyspawn-cap leaks, and ordering outdoor/ship walkies ahead of factory walkies soToggleAllWalkiesOutsideClientRpcnever aborts early.
0.1.0
- Initial release of
ModpackFixeswith modular soft-dependency[Fixes]architecture (dev.aqlow.modpackfixes). - Added
CopyDawnInfoToClonedEnemyTypes: copiesDawnLibDawnEnemyInfofrom canonicalEnemyTypedonors onto runtime-clonedEnemyTypeinstances such asMirage'sMaskedPlayerEnemy(Clone). - Added
GuardFacilityMeltdownHandleEnemies: repairs clonedEnemyTypeinstances prior toFacilityMeltdown'sMeltdownHandler.HandleEnemies()and guardsHandleEnemies()with a HarmonyFinalizerso hostmeltdownStartedand automatic ship takeoff never desync from clients.