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

Details

Date Uploaded
18 hours ago
Downloads
169
Size
75KB

LocalDeposit

V81 host-only QoL mod inspired by HQoL that reduces ship lag due to Dine being a big fat meanie lag machine

HQoL remains the recommended choice because it's recognized by the HighQuotaHQ community. LocalDeposit is an alternative for hosts who want similar deposit functionality without requiring other players to install the same modpack. If HQoL is installed, LocalDeposit's commands are disabled and HQoL takes precedence.

WARNING

Crashing or Alt+F4 removes all saved scrap into nothingness so keep a spare savefile when using this mod

How It Works

  • Physically deletes all scrap and convert them into stored value in terminal
  • Shows the total deposited value in blue in the terminal
  • Preserves item values
  • /undeposit happens at the end of the day or when quitting normally so the savefile saves the values

Commands

  • /deposit — Deposit scrap.
  • /deposit -b — Deposit with blacklisted items.
  • /deposit -a or /deposit --all — Deposit everything, ignoring the blacklist (Gift Boxes are still never touched).
  • /deposit --list or /deposit -l — List deposited items.
  • /deposit --help or /deposit -h — Show command help.
  • /undeposit — Restore all deposited scrap.

/deposit and /undeposit work in the terminal and in the game chat (chat needs the ChatCommandAPI dependency).

Merging

Combine lots of scrap into ONE item worth the total (great for Dine). Host only. Needs Merge Mode set in the config (it is False by default, so /merge does nothing until you turn it on).

  • /merge — Merge all ship scrap and deposited scrap into one item. Works in the terminal and in chat.
  • /merge -o or --outside — Also include loose scrap lying outside the ship.
  • /merge -a or --all — Also merge blacklisted items.

Merge Mode: False (off), Random (a random item becomes the merged item), or an item name like Zeddog (always that item, even if it isn't lootable on the moon; a wrong name falls back to Random). Gift Boxes are never merged.

Merge Mode also lets /sell sell part of an item: with one item worth 50k, /sell 1000 puts a 1k item on the counter and the original drops to 49k (shown in the scan, or in the blue terminal total if it was deposited).

Merge Always = true merges automatically right before the end of every day (just before the game's autosave). It is ignored while Merge Mode is False.

Don't run TooMuchScrap's /merge alongside this one; both use the same command.

Selling (terminal only)

Sell at the Company, host only. Deposited scrap is included: anything deposited that gets chosen for a sale is undeposited first, then sold.

  • /sell quota — Sell just enough scrap to fulfil the remaining quota (exact if possible, otherwise the smallest overshoot).
  • /sell all — Sell all scrap.
  • /sell <amount> — Sell scrap worth at least <amount> (1500, 2k, 1k+500). Amounts are what you receive after the Company's buying rate.
  • /sell item <name> — Sell every item whose name contains <name>.
  • Add -a or --all to ignore the blacklist (e.g. /sell quota -a).
  • /sell bl / /sell pr — Show the blacklist / priority list.
  • /sell bl + [name], /sell bl - [name] — Add/remove a blacklisted item (no name = the item in your hands).
  • /sell pr + [name], /sell pr - [name] — Same for the priority list. Priority items are preferred when several combinations fit the amount.

/sell only exists in the terminal, so it works alongside QuickSell (which uses chat /sell). Clients don't need the mod; they just see the items go to the desk and their credits update. Overtime is not calculated.

Config

Config file: BepInEx/config/local.deposit.lethalcompany.cfg

[Blacklist]
Items = ShotgunItem, KnifeItem, GiftBox

[Sell]
Blacklist = ShotgunItem, KnifeItem, ZeddogPlushie, GiftBox
Priority = FancyLamp, LungApparatusTurnedOff, Clock, EasterEgg, ComedyMask, Tragedy, Heartcontainer

[Merge]
Merge Mode = False
Merge Always = false

[Debug]
LogItemIdentifiers = false
  • Blacklist Items: /deposit skips these (-a ignores the list).
  • Sell Blacklist: /sell skips these (-a ignores the list). Defaults match QuickSell's.
  • Sell Priority: /sell prefers these when several combinations fit.
  • Merge Mode: False, Random or an item name.
  • Merge Always: Merge automatically before the end of the day (needs Merge Mode on).
  • LogItemIdentifiers: Log every item name when a lobby loads, to find names for the lists.

Names are comma-separated and partial matches count. Use the prefab/object name of the item (KnifeItem, ShotgunItem, Clock, ...), the same names QuickSell uses; the asset name, display name and scan name also match. Everything else is fixed: saves always restore deposited items first, and a save that would miss deposited items is skipped.

Item identifiers were found using ShipSort alongside Unity Explorer.

Requirements

  • BepInEx 5, ChatCommandAPI (for chat commands).
  • Recommended: TooManyItems (vanilla only saves 45 ship items).

Known Issues

  • Undepositing thousands of items can cause lag.
  • Avoid Alt+F4: Use ESC → Leave Game whenever possible.
  • Crashing while items are deposited does not restore them (see the warning above).
  • Do not use HQoL's deposit/storage feature alongside LocalDeposit. If HQoL is installed, LocalDeposit's commands are disabled.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.