You are viewing a potentially older version of this package. View all versions.
IWantToBeHome-Connected_Doors-1.0.1 icon

Connected Doors

Two free furniture doors, connecteddoor0 and connecteddoor1, that lead to each other. An add-on for Pocket Rooms: place one anywhere on the ship, the other somewhere else, and walk through.

Date uploaded 21 hours ago
Version 1.0.1
Download link IWantToBeHome-Connected_Doors-1.0.1.zip
Downloads 16
Dependency string IWantToBeHome-Connected_Doors-1.0.1

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2305
MelanieMelicious-Pocket_Room_Library_MelanieMelicious-2.1.7 icon
MelanieMelicious-Pocket_Room_Library_MelanieMelicious

Shared library for people who want to make pocket rooms, and don't want duplicate functions. You can find me in the Lethal Company Modding Discord.

Preferred version: 2.1.7
MelanieMelicious-Pocket_Rooms_MelanieMelicious-1.1.3 icon
MelanieMelicious-Pocket_Rooms_MelanieMelicious

Adds pocket room doors that you (and enemies) can enter! Perfect for when wider 3-story ship with extended catwalk is still too small. You can find me in the Lethal Company Modding Discord.

Preferred version: 1.1.3
TeamXiaolan-DawnLib-0.9.26 icon
TeamXiaolan-DawnLib

A modern API for Lethal Company content and all sizes of mods [V81]

Preferred version: 0.9.26

README

Connected Doors

Two free furniture doors that lead to each other. An add-on for Pocket Rooms by MelanieMelicious, This add-on is not affiliated with them.

What you get

Terminal word Price (default)
connecteddoor0 $0
connecteddoor1 $0

Buy both, place them wherever you like on the ship in build mode, then go through one and come out of the other, in front of it and facing away from it.

  • Hold [LMB] on a door to go through it.
  • Walking in also works (and so does walking in while holding furniture in build mode). This follows the Pocket Room Library's own Walk-In Teleport option.
  • A door does nothing while its partner is not placed or is in storage, so nobody is ever sent to a stored door's parking spot.
  • The doors look like the doors of the Pocket Rooms furniture. They have no room behind them.

Requirements

  • Pocket Rooms and Pocket Room Library (this mod uses the door that is already installed with them; nothing from them is copied or redistributed).
  • DawnLib. Note: if you did not have DawnLib before, Pocket Rooms notices it and switches to its DawnLib registration path by itself. Start a fresh save or back up your save first.
  • Everyone in the lobby needs this mod, because the doors are networked furniture.

Config

BepInEx/config/ConnectedDoors.PocketRoomAddon.cfg

Setting Default Meaning
Price 0 Price of each door in the terminal store.

The Pocket Room Library's options (Walk-In Teleport, No Room Access When Landed, enemy door warp blacklist and teleport times) apply to these doors as well.

Notes

  • Adding furniture can shift the order of the game's unlockables list, so add this mod on a new save or keep a backup.
  • Both doors appear at the same default spot when bought. Pick them up in build mode and move one.

Troubleshooting

In BepInEx/LogOutput.log, a healthy start looks like this:

[Info   :Connected Doors] Using the door of '...' (...) as the model.
[Info   :Connected Doors] Registered 'connecteddoor0' (price 0).
[Info   :Connected Doors] Registered 'connecteddoor1' (price 0).
[Info   :Connected Doors] Connected Doors 1.0.1 loaded: 2 doors registered.

When the ship loads: 'connecteddoor0' has unlockable id N (after Terminal.Awake). When a door is in the ship: Door 0 appeared. and, once both are there, Door 0 is now connected to door 1.

If you see lost its prefab ... Rebuilding it, something destroyed a door prefab; the game still starts, but the doors may not be buyable until the next launch. If you see could not start, no doors were added, the line after it says why. Please include the log, plus your Pocket Rooms, Pocket Room Library, DawnLib and LethalLevelLoader versions, when reporting a problem.

Credits

The door model and teleport script belong to Pocket Rooms and Pocket Room Library by MelanieMelicious. This add-on is not affiliated with them.

CHANGELOG

Changelog

1.0.1

  • Fixed the ship failing to start when hosting (thousands of errors in the log) with LethalLevelLoader 1.7 and DawnLib 0.9.26. The door prefabs were destroyed by the scene change before the ship loaded, and DawnLib / LethalLevelLoader threw while registering them. They are now kept alive the same way LethalLib keeps its prefabs.
  • Safety net: if a prefab is ever destroyed anyway, it is rebuilt and an error is logged, instead of breaking startup.
  • The unlockable ids are now also set right before the game spawns furniture (LethalLevelLoader 1.7 reorders the list).
  • New log lines when a door appears and when two doors connect.
  • Removed the "targets a wrong version of BepInEx" warning.

1.0.0

  • First release.
  • Adds two furniture items, connecteddoor0 and connecteddoor1, priced at 0 by default.
  • The two doors lead to each other. A door does nothing while its partner is not placed or is in storage.