TooMuchScrap

版本 v1.4.1·更新於 2026-01-26

Adds the merge terminal command to reduce lag caused by too many scrap piles.

模組介紹 作者原文

TooMuchScrap — Lethal Company Mod

A small mod for Lethal Company that reduces onboard item clutter and lag by letting players merge items of the same type with a single command. Use the merge command in terminal (or /merge in chat) to combine nearby identical items into a single instance, summing their values up to a configurable cap.

Warning (Host-only command)

Only the game host can run the merge command — clients cannot execute it. Clients do not need the mod installed to join; only the host/server needs the mod for merging to work.

Features

  • Merge items of the same internal type when they are close to each other.
  • Reduce entity count and server/client lag.
  • Configurable merge distance, maximum merged value, and which item types are eligible.

Usage

  • In-game or server console, run:

/merge

  • The command scans for items listed in MergeItems and merges items of the same internal name when they are within MergeDistance. Merged item values are summed but never exceed MaxMergeValue.

Configuration

  • "MergeDistance": max distance (units) between items to consider them for merging.
  • "MaxMergeValue": maximum numeric value an item can have after merging (merged totals are clamped to this value).
  • "MergeItems": comma separated list of internal item names that should be considered for merging. Default: HeartContainer,SeveredHandLOD0,SeveredFootLOD0,SeveredThighLOD0,Bone,RibcageBone,Ear,Tongue (Dine items). Edit this comma-separated list to add or remove items.
  • "PrefixChar": Command prefix (Requires game restart after changes)
  • "CompanyOnly": true/false — Whether to merge items only while at the Company building.
  • "AutoMerge": true/false — Whether to automatically merge items after leaving a moon. Note: if "CompanyOnly" is True, auto-merge will only run when at the Company building.

You do not need to restart the game after editing the config.

Credits

Heavily based on work by MeGaGiGaGon (ScrapMerging) — credit to MeGaGiGaGon for inspiration and reference implementation ideas.

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack

檔案與校驗

檔案名稱
TooMuchScrap-1.4.1.zip
檔案大小
46.6 KiB