Lethal Company
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
952
Size
17KB

Equal Interiors

Every playable moon gets the same interior pool, with equal chances for each enabled interior. Every vanilla and installed modded interior has its own checkbox in LethalConfig, 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, LethalLevelLoader 1.7.13 or newer, and LethalConfig 1.4.6 or newer. A mod manager installs these dependencies automatically. 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

Open LethalConfig > Equal Interiors in the game's menu. Under Vanilla interiors, Facility, Mansion, Mineshaft, and the alternate Facility layouts each have their own checkbox. Under Modded interiors, each installed custom interior gets its own checkbox.

Checked = enabled. Unchecked = disabled. Apply your changes while in orbit; they take effect on the next landing without restarting the game. The menu prevents changing the pool during a landing or active round.

Vanilla checkboxes are available immediately. Host or join a lobby once to let LethalLevelLoader finish registering all installed custom interiors, then reopen the config menu if it was already open. You do not need to land, visit an interior, or unlock a moon. The complete installed-interior registry supplies the list, including zero-weight layouts.

Settings are saved in BepInEx/config/sockpoop.equalinteriors.cfg. If editing this file manually, close and restart the game. For example:

[General]
Enabled = true

[Interiors]
# Facility
Level1Flow = true
# Haunted Mansion
Level2Flow = true
# Mineshaft
Level3Flow = true
# Disable Substation on every playable moon
SubstationFlow = false
  • Enable Equal Interiors: Uncheck to use LethalLevelLoader's original selection again.
  • Each interior checkbox: Checked allows that interior on every playable moon; unchecked removes it from every playable moon. 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.
  • Upgrading from older versions: Existing per-interior settings are preserved. Any old exclusion list is migrated into initial checkbox values and removed after lobby setup. The old comma-separated text field is no longer displayed.

The host's settings control the actual roll. When you install more interiors, their checkboxes 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 checked. 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. Check at least one interior and apply your changes 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, LethalLevelLoader, and LethalConfig DLLs. Its headless checks exercise the production selection policy, settings, menu registration, and adapter using names extracted from installed asset bundles: equal pools across all inspected moons, zero-weight interiors, vanilla and custom checkboxes, disabling and re-enabling, migration, all-disabled landing prevention, future interiors, stable ordering, and terminal/landing consistency. A separate harness checks config persistence and removal of the retired list 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.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.