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

Equal Interiors

Gives every playable moon the same pool and equal chances for all installed LethalLevelLoader interiors. Compatible with JLL.

By baggers
Date uploaded 3 weeks ago
Version 1.0.0
Download link baggers-Equal_Interiors-1.0.0.zip
Downloads 26
Dependency string baggers-Equal_Interiors-1.0.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 interior. 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 it to the shared pool. Each included interior receives weight 100, so eleven interiors would each have a 1/11 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

On first launch, BepInEx creates BepInEx/config/sockpoop.equalinteriors.cfg:

[General]
Enabled = true
ExcludedInteriors = Level1FlowExtraLarge,Level1Flow3Exits
  • Enabled: Set to false to use LethalLevelLoader's original selection again.
  • ExcludedInteriors: Comma-separated display names or DungeonFlow asset names, matched without regard to case. The default excludes the extra-large and three-exit Facility variants so Facility gets one ticket. LethalLevelLoader still adjusts the selected layout's fire exits for the moon. To exclude another interior, append its name, for example ,Substation.

Restart the game after editing these settings. The host's settings control the actual roll. LethalLevelLoader's per-interior Enable Content Configuration switches can remain off: this mod replaces the final candidate list in memory. If exclusions remove everything, the mod logs a warning and keeps LethalLevelLoader's original pool.

Checking the result

On the host's ship terminal, enter simulate experimentation, simulate march, or another moon name. The example mod set above should show ten interiors at 10% each. 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, 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.

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. Exclude a problematic interior if needed.

Validation

The release is compiled against the installed game, BepInEx, Harmony, and LethalLevelLoader DLLs. Its headless tests exercise the production selection policy and adapter using names extracted from the installed asset bundles: equal pools across all inspected moons, formerly absent interiors, duplicate variants, exclusions, invalid references, disabling, empty-pool fallback, stable ordering, future interiors, and terminal/landing consistency.

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

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.