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

Details

Date Uploaded
Downloads
535
Size
106KB

Ship_Layout_Restorer

Save your ship layout, lose the run, restore it later. Host only.

Needs ChatCommandAPI.

Commands

Type in chat. /f works instead of /furniture. # means a preset number. Type the number instead of #.

Command What it does
/furniture -s Saves your placed furniture to preset 0 (old save kept as a backup)
/furniture -r Restores preset 0, moving everything you own (terminal too)
/furniture -# Loads preset # (# = 0 to 10). Example: /furniture -3
/furniture -d# Shows what preset # would move and what is missing (# = 0 to 10). Example: /furniture -d3
/furniture -m Lists every missing item
/furniture -m# Lists the missing items for preset # (# = 0 to 10). Example: /furniture -m3
/furniture -s# Saves into your own slot # (# = 8, 9 or 10). Example: /furniture -s8
/furniture -n# Name Renames your own slot # (# = 8, 9 or 10). Example: /furniture -n8 My Ship
/furniture -c Stores all furniture and removes Cozy lights. Keeps cupboard and Signal translator
/furniture -h Quota helper: stores everything (not Cozy lights). Use again to bring your layout back (survives a restart)
/furniture -u Undo the last restore or clear (use again to redo)
/furniture -p Lists preset names
/furniture -l Total luck of the furniture you own and haven't stored. Uses the game's own luck values
/furniture -cz Removes Cozy lights, or brings them back if they are removed
/furniture -cozy Same as -cz

Furniture you don't own yet is skipped and listed as missing. Commands only work in orbit or when landed.

Welcome mat and Cozy lights

The game normally can't store these.

Welcome mat: you can store it in the game with B then X, like other furniture, or with -c and -h (-h or -u brings it back). If the game ignores the X press, the mod stores it for you. This works on the host.

Cozy lights: -c removes them, and -cz or -cozy removes or restores them at any time. -h and -u never change them. Presets only change them when the preset has Cozy lights = bought (see Presets). They stay bought. Removing them also removes them for other players, and restoring them brings the same Cozy lights back. When they come back, they match the ship lights again.

Removed Cozy lights and a stored Welcome mat don't count in -l.

Presets

  • 0 Saved (yours)
  • 1 My Setup
  • 2 Crazy Teleporter (teleporter on its side)
  • 3 Beehive
  • 4 Mirrored
  • 5 Inverted (every item upside down)
  • 6 Ceiling Furniture
  • 7 Outside Furniture Grid
  • 8-10 Your own slots

Presets 1-7 share the same light switch spot and can't be overwritten by -s.

Cozy lights in presets: presets 1, 2, 4, 5, 6 and 7 need Cozy lights. If you don't own them, -#, -d# and -m# list "Cozy lights" as missing. If you own them, loading the preset also shows them again. Preset 3 (Beehive) doesn't use Cozy lights. -s writes Cozy lights = bought into your slot when you own them.

Updating from an older version: your own slots 7-9 move to 8-10. Presets 1-7 reset to the shipped layouts.

Files

  • Crispy_Depression.Ship_Layout_Restorer.cfg: settings
    • Keep_On_Clear: what -c and -h leave on the ship
    • Store_Mat_And_Lights: lets -c and -h store Welcome mat, and -c remove Cozy lights
    • Auto_Place_Buys: new purchases go to their preset 0 spot
    • Presets_File: the preset list file below
  • Crispy_Depression.Ship_Layout_Restorer.Presets.txt: all 11 presets (sits next to the dll, made on first launch)

Each preset starts with a Cozy lights line: bought (or unlocked) means the preset needs Cozy lights, empty means it ignores them. Then there is one line per furniture: x, y, z | rotX, rotY, rotZ. Edit freely, any rotation works. default = original spot, empty = skip. Changes are picked up on the next command, no restart needed.

Install

Install with a mod manager. It also installs BepInEx and ChatCommandAPI. Only the host needs the mod.

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