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.
LeMatrix
Rare hidden event: rooms near a player inside the facility are swapped for other rooms while nobody can see them, then put back. A way to an exit always stays open. Host runs it; it stays off unless every player has it.
By Rudeman
| Last updated | 4 hours ago |
| Total downloads | 3 |
| Total rating | 0 |
| Categories | Mods BepInEx Server-side AI Generated |
| Dependency string | Rudeman-LeMatrix-1.0.5 |
| Dependants | 0 other packages depend on this package |
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
LeMatrix
Every so often the facility rearranges itself behind you. A room you walked through a minute ago is a different room when you come back, a corridor now leads somewhere else, or a doorway you used is sealed. Half a minute later it quietly changes back. I am almost certain this is full of bugs, so be warned.
The event
- On a landed day there's a small chance (4% by default) of one event, triggered at a random point between 15% and 80% of the day, once someone alive is inside.
- One to five rooms near a target player are swapped, as one connected cluster close to that player's nearest exit.
- Three kinds of change: a room replaced by another that keeps all its connections, a room replaced by one that seals some of its doorways, or a single doorway sealed.
- A change only happens while no player can see the room (line of sight through doorways, the ship's radar screen when someone is watching it, and every client's own camera is asked first). Rooms with players, bodies, items or enemies in them aren't touched.
- Every player inside must still be able to reach an exit after the change. A player who can only reach one exit has that whole route protected.
- After 10 to 30 seconds, once it's unseen again, the room is restored. It's also restored straight away when the ship leaves, the round ends, or an inverse teleporter is used.
- Exit rooms, the apparatus, breaker box, vents, valves, the mine elevator and anything holding a network object are never swapped. Interiors with modded scripts in a room are skipped unless the script is on the reviewed list (
AllowedComponents). - The navmesh is rebuilt after each change so enemies keep pathing.
Mode: read this first
The default is Mode = Live: the real event. For testing there are three other modes: DryRun rolls and plans and only writes what it would have done to the log (nothing changes in the world), Survey logs how many swaps each interior allows, PrepareTest builds each replacement hidden on the host and destroys it again.
Who needs it
- Host: runs everything.
- Clients: needed. Each client sends the host a fingerprint of its generated dungeon after landing. In Live mode the host does nothing that day unless every connected player has LeMatrix (same version) and the same layout. So a lobby with one player missing the mod simply never gets the event.
Config highlights
BepInEx/config/jacob.lematrix.cfg. Only the host's values matter.
| Key | Default | What it does |
|---|---|---|
| General.Mode | Live | Live, or Survey, DryRun, PrepareTest for testing |
| Event.DayChancePercent | 4 | Chance per landed day |
| Event.WindowStart / WindowEnd | 0.15 / 0.8 | When in the day it may trigger |
| Event.MaxEventsPerDay | 1 | Extra events need their own roll |
| Rooms.MinRooms / MaxRooms | 1 / 5 | Rooms per event |
| Rooms.RestoreMinSeconds / RestoreMaxSeconds | 10 / 30 | How long a change lasts |
| Interiors.Allow / Deny | * / (empty) | Interiors it may run in, by LethalLevelLoader DungeonName |
| Safety.RestoreOnInverseTeleport | true | Restore everything when the inverse teleporter is pressed |
| Visibility.ClientVeto | true | Ask every client before a change |
| Debug.ShowRooms | false | Host-only debug view with boxes round rooms. Spoils the event |
| Debug.ShowRoomsWithDayInfo | true | Also shows that view while PerfWatcher's Day Info panel is open. Set false for normal play |
| Integration.ShowInPerfWatcher | false | Fill a status line for PerfWatcher's Day Info panel (host) |
Compatibility
- Lethal Company v81 (DunGen as shipped with it), BepInEx 5. No other mods needed.
- Tested on the vanilla interiors and the modded interiors in the ChobblePack modpack, including scaled tile sets and tilted dungeons.
- Uses PathfindingLib's navmesh lock when it's present; not required.
- Works alongside PerfWatcher (status line) and DefinitelyNotCheats (test trigger) if installed.
- Host and clients must run the same LeMatrix version.
AI disclosure
The code, documentation (partial) and icon of this mod were generated with Anthropic's Claude (Claude Opus 5.5 and other Claude models, via Claude Code). The author designed the mod, directed the work and tested it in game.