You are viewing a potentially older version of this package. View all versions.
baggers-Equal_Interiors-1.1.0 icon

Equal Interiors

Equal interior chances on every playable moon, with an enable/disable config for every installed interior. Supports future interiors automatically. Compatible with JLL and LethalLevelLoader.

By baggers
Date uploaded 3 weeks ago
Version 1.1.0
Download link baggers-Equal_Interiors-1.1.0.zip
Downloads 28
Dependency string baggers-Equal_Interiors-1.1.0

This mod requires the following mods to function

AinaVT-LethalConfig-1.4.6 icon
AinaVT-LethalConfig

Provides an in-game config menu for players to edit their configs, and an API for other mods to use and customize their entries.

Preferred version: 1.4.6
BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305
IAmBatby-LethalLevelLoader-1.7.13 icon
IAmBatby-LethalLevelLoader

A Custom API to support the manual and dynamic integration of all forms of custom content in Lethal Company. (v81 Compatible)

Preferred version: 1.7.13

README

Equal Interiors

Every playable moon gets the same interior pool, with equal chances for each enabled interior. Every installed LethalLevelLoader interior has its own enable/disable setting, including interiors with zero original spawn weight. Built against Lethal Company v81 and LethalLevelLoader 1.7.13, with compatibility designed around JLL 1.10.1's existing interior callbacks.

For example, with Generic Interiors 5.2.1 and LiminalPools 1.0.17 installed, these ten interiors each have a 10% chance on every playable moon:

  • Facility
  • Haunted Mansion
  • Mineshaft
  • Storehouse
  • Bunker
  • Drains
  • Substation
  • Tower
  • Liminal Facility (Backrooms)
  • Liminal Pools

Installing another interior that registers with LethalLevelLoader automatically adds its config entry and includes it in the shared pool by default. Each enabled interior receives weight 100, so eleven enabled interiors would each have a 1/11 chance. Disable one of those eleven and the remaining ten each have a 10% chance. Repeats are possible.

Installation

The host needs this mod. Everyone still needs compatible versions of the actual interior mods and their dependencies.

Install through Thunderstore Mod Manager or r2modman. For a downloaded ZIP, use your manager's local-mod import, or copy BepInEx/plugins/EqualInteriors/EqualInteriors.dll into that folder inside the host's profile. Restart the game after installation.

Required: BepInEx 5 and LethalLevelLoader 1.7.13 or newer. JLL is supported as an optional dependency; its doors, elevators, components, generation callbacks, and other interior scripts continue through the existing generation pipeline.

To remove the mod, remove its EqualInteriors.dll and restart. Its configuration file can be left in place or deleted.

Configuration

The file is BepInEx/config/sockpoop.equalinteriors.cfg. Launch the game and host or join a lobby once to let LethalLevelLoader finish registering every installed interior. You do not need to land, visit an interior, or unlock a moon. The mod generates switches from the complete installed-interior registry, not from previously encountered interiors or a moon's current spawn list.

Close the game, open this file in your mod manager's config editor or a text editor, and set any unwanted interior to false. For example:

[General]
Enabled = true
ExcludedInteriors =

[Interiors]
# Facility
Level1Flow = true
# Haunted Mansion
Level2Flow = true
# Mineshaft
Level3Flow = true
# Disable Substation on every playable moon
SubstationFlow = false
  • General / Enabled: Set to false to use LethalLevelLoader's original selection again.
  • Interiors / each asset name: true allows that interior on every playable moon; false removes it from every playable moon. Comments in the generated file show the display name. All ordinary interiors default to enabled.
  • Facility variants: Level1FlowExtraLarge and Level1Flow3Exits have their own switches, defaulting to false so Facility gets one ticket. You can explicitly enable them. LethalLevelLoader still adjusts fire exits for the selected moon.
  • General / ExcludedInteriors: Migration support for version 1.0. Existing exclusions seed a newly created toggle to false. Once a toggle exists, it takes precedence over this list. Use the individual switches for future changes.

Restart the game after editing settings. The host's settings control the actual roll. When you install more interiors, their entries are added automatically on the next game/lobby load; existing settings are preserved. Mods that are not installed cannot have entries generated yet. LethalLevelLoader's per-interior Enable Content Configuration switches can remain off: this mod replaces the final candidate list in memory.

Keep at least one interior enabled. If all usable interiors are disabled, the mod cancels moon landing and shows the host a message. It does not silently select a disabled Facility as a fallback. You can still land at the Company. Enable at least one interior and restart to resume normal landings.

Checking the result

On the host's ship terminal, enter simulate experimentation, simulate march, or another moon name. The example mod set above with default settings should show ten interiors at 10% each. After disabling Substation, it should show the other nine at approximately 11.11% each on either moon. A client without this mod may display its own original preview; the host still supplies the actual selection table.

The BepInEx log includes an [Equal Interiors] entry listing the final pool. Earlier LethalLevelLoader diagnostic entries can show the original moon-specific weights because this mod runs after that calculation.

Scope and compatibility

The mod patches DungeonManager.GetValidExtendedDungeonFlows with a Harmony postfix. It builds the pool from all valid registered dungeon assets and filters it using the individual toggles, so an interior with zero original weight can appear on every playable moon. It does not rewrite the original matching properties or consume random numbers. LethalLevelLoader continues distributing the host's candidate list and weights, and the game continues choosing the interior and layout from the map seed. A host-side StartOfRound.StartGame prefix cancels landing if the configured pool is empty.

The Company and destinations without dungeon generation retain their normal behavior. This covers moons routed through LethalLevelLoader; a mod that completely replaces that loading/selection pipeline would need its own integration. Other mods that overwrite the same returned candidate list can conflict.

Equalizing eligibility does not guarantee every third-party interior can generate successfully at every moon size. The original dungeon sizing and generation rules still apply. Disable a problematic interior if needed.

Validation

The release is compiled against the installed game, BepInEx, Harmony, and LethalLevelLoader DLLs. Its 26 headless checks exercise the production selection policy, settings, and adapter using names extracted from installed asset bundles: equal pools across all inspected moons, zero-weight interiors, per-interior disabling and re-enabling, legacy migration, all-disabled landing prevention, complete registry enumeration before any landing, future interiors, stable ordering, and terminal/landing consistency. A separate harness checks config persistence using the actual installed BepInEx assembly.

These checks do not substitute for a live Unity generation or multiplayer session. A live game/multiplayer test has not been performed for this release.

Building from source

Install the .NET 10 SDK, then run from the source folder:

.\build.ps1 -GameDir 'C:\Games\Lethal Company' -ProfileDir 'C:\path\to\your\mod\profile'
dotnet run --project .\tests\Tests.csproj -c Release
dotnet run --project .\config-tests\ConfigTests.csproj -c Release '-p:GameDir=C:\Games\Lethal Company' '-p:ProfileDir=C:\path\to\your\mod\profile' -- .\config-test-data

Change those paths for your machine. The build uses the game's managed assemblies and your profile's BepInEx/LLL references; it does not download or redistribute game/library binaries. The resulting DLL is EqualInteriors/bin/Release/netstandard2.1/EqualInteriors.dll.

Upstream packages: LethalLevelLoader, JLL.

This plugin was created using AI-assisted development. The validation scope is described above.

CHANGELOG

Changelog

1.5.0

  • Add Minimum Scrap Items to LethalConfig's Loot section, defaulting to 20. Set it from 0 to 500; 0 disables the minimum.
  • Apply the minimum to the total requested normal scrap count, including zero rolls on loot-enabled moons with an item pool. Keep the Company and loot-disabled destinations unchanged.
  • Let the minimum exceed Maximum Scrap Multiplier while still respecting Boosted Scrap Limit. Never reduce a higher existing count.
  • Apply host changes in orbit to the next landing. Disabling the loot boost also disables the minimum.
  • Preserve existing loot, interior, and loading-bar settings during upgrades.

1.4.0

  • Add a configurable, host-controlled loot boost, enabled by default: about 50% more normal scrap items on ordinary maps.
  • Optionally increase the count further using the generated interior's estimated room footprint, including custom interiors. Default density is one item per 250 square metres, limited to 3x the rolled count and 100 normal items.
  • Add Loot checkboxes and sliders in LethalConfig for the boost, base multiplier, size scaling, density, maximum multiplier, and item limit. Apply changes in orbit for the next landing.
  • Adjust the game's already-rolled count without changing persistent moon settings, scrap value multipliers, or network spawning. Preserve existing interior bonuses and other mods' prior count adjustments.
  • Keep zero-loot/non-dungeon destinations unchanged. Limits never remove a higher count already requested by the game or another mod.
  • Preserve existing interior choices and loading-bar settings. The loot boost has its own enable switch.

1.3.0

  • Add a local loading bar beneath the existing loading display, with moon loading, interior generation stages, final setup, and crew waiting status.
  • Show elapsed loading time and the attempt number when interior generation retries. The bar reflects stages rather than an estimated time percentage.
  • Wait until the game starts its ship-landing sequence before filling the bar completely. Handle Company landings, disconnects, and consecutive moons.
  • Show scene-ready crew counts to clients and hosts, and interior-ready crew counts on the host. Clients see when their own interior is ready.
  • Add an immediately adjustable Show loading bar checkbox in LethalConfig, independent of the equal-interior selection switch.
  • Observe the existing JLL/LLL/game pipeline without changing generation, navigation, random seeds, or network messages. Each player who wants the bar installs the mod locally.

1.2.0

  • Add named LethalConfig checkboxes for every vanilla and installed modded interior.
  • Make Facility, Mansion, Mineshaft, and the two optional Facility variants visible before hosting a lobby.
  • Explicitly register late-loaded custom interior checkboxes so they appear even after LethalConfig's first automatic scan.
  • Remove the comma-separated exclusion field from the menu. Migrate any old list and remove it from the file after lobby setup, preserving existing per-interior choices.
  • Apply checkbox changes to the next landing without a restart; allow editing in orbit to avoid changing a pool during generation.
  • Add LethalConfig 1.4.6 as a dependency.

1.1.0

  • Add a separate enable/disable config switch for every installed LethalLevelLoader interior, including zero-weight interiors and the optional Facility variants.
  • Generate the complete list when LethalLevelLoader finishes setting up the lobby; no landing or prior encounter is required.
  • Add settings for newly installed interiors automatically while preserving existing choices.
  • Keep equal weights across all enabled interiors on every playable moon.
  • Migrate version 1.0's exclusion list into initial toggle values; individual switches take precedence afterward.
  • Cancel moon landing with a host message when every usable interior is disabled, preventing LLL's disabled-Facility fallback. The Company remains accessible.
  • Pass 26 headless selection/config/adapter checks and verify persistence with the real BepInEx config parser. Live game and multiplayer verification remains outstanding.

1.0.0

  • Give every playable LethalLevelLoader moon the same pool of installed interiors, each with weight 100.
  • Include interiors that had zero weight on a particular moon, including Substation.
  • Exclude duplicate Facility variants by default so Facility receives one entry.
  • Add an enable switch and configurable interior exclusions.
  • Use LethalLevelLoader's existing host selection synchronization and terminal simulations.
  • Preserve JLL's interior components and generation callbacks.
  • Complete 15 headless policy and adapter checks; live game and multiplayer verification remains outstanding.