You are viewing a potentially older version of this package. View all versions.
Zehs-SellMyScrap-1.2.3 icon

SellMyScrap

Adds a few terminal commands to sell your scrap from the ship.

Date uploaded 9 months ago
Version 1.2.3
Download link Zehs-SellMyScrap-1.2.3.zip
Downloads 1887
Dependency string Zehs-SellMyScrap-1.2.3

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2100
Evaisa-FixPluginTypesSerialization-1.1.1 icon
Evaisa-FixPluginTypesSerialization

Fix custom Serializable structs and such not properly getting deserialized by Unity.

Preferred version: 1.1.1

README

SellMyScrap

Adds a few terminal commands to sell your scrap from the ship.

This mod aims to sell scrap as close to the target amount as possible. In rare cases, it may exceed the target amount due to performance reasons, even if a suitable match is possible.

  • This mod will NOT sell Gifts, Shotguns, or Ammo by default.
    • See config settings for more info.

Terminal Commands

Command Description Usage example
sell <amount> Will sell scrap for a total of the amount specified. Amount is a positive integer. sell 500
sell-quota Will sell scrap to reach the profit quota.
sell-all Will sell all of your scrap.
  • You must be landed at The Company building to use these commands.
  • Each command will sell items based on the config settings.
  • Each command requires confirmation before selling your scrap.
    • Additional information is given on the confirmation screen.
    • See screenshots for details.
Command Description
view-scrap Shows a detailed list of all the scrap in the ship.

Config Settings

Sell Settings and Advanced Sell Settings will be synced with the host when joining a lobby.

Sell Settings Setting type Default value Description
speakInShip Boolean true The Company will speak inside your ship after selling from the terminal.
sellGifts Boolean false Do you want to sell Gifts?
sellShotguns Boolean false Do you want to sell Shotguns?
sellAmmo Boolean false Do you want to sell Ammo?
sellPickles Boolean true Do you want to sell Jar of pickles?
Advanced Sell Settings Setting type Default value Example value Description
dontSellListJson String [] ["Gift", "Shotgun", "Ammo"] JSON array of item names to not sell.
  • Use the view-scrap command or scan in-world to see the correct item names to use.
  • Item names are not case-sensitive.
  • Spaces do matter for item names.
Confirmation Settings Setting type Default value Description
showFoundItems Boolean true Show found items on the confirmation screen.
showFoundItemsLimit Int32 100 Won't show found items if the total item count is over the limit.
sortFoundItems Boolean true Sorts found items from most to least expensive on the confirmation screen.
alignFoundItemsPrice Boolean true Align all prices of found items on the confirmation screen.

Bug Reports, Help, or Suggestions

Lethal Company modding Discord
└── #mod-releases > SellMyScrap

Unofficial Lethal Company Community
└── #mod-releases > SellMyScrap

Screenshots

sell <amount>

sell-quota

sell-all

view-scrap

CHANGELOG

v1.8.0

  • Added PrioritySellList config setting to Advanced Sell Settings.
    • Description: Array of item names to prioritize when selling.
  • Updated Takey (scrap eater)
  • Added Wolfy?!
  • Other changes and improvements.

v1.7.2 + v1.7.3

  • Fixed compatibility with the ShipInventory mod.
  • Updated Takey (scrap eater)
  • Updated Zombies (scrap eater)
  • Updated Psycho (scrap eater)
  • Small bug fixes.
  • Other changes and improvements.

If you were using the ShipInventory mod and selling items wasn't removing them from the ShipInventory, this has been fixed in this update.

v1.7.1

v1.7.0

  • Added compatibility with the ShipInventory mod.
  • Added LethalConfig integration.
  • Updated Takey (scrap eater)
  • Made a few changes to config settings.
  • Bug fixes and improvements.

v1.6.2

  • Updated Takey (scrap eater)
  • Small fixes.

v1.6.1

  • Fixed missing texture in Takey (scrap eater)
  • Updated Takey (scrap eater)

v1.6.0

  • Improved sell algorithm.
  • Made some changes to sell commands output.
  • Updated Takey (scrap eater)
  • Added ShowQuotaWarning config setting.
    • Description: If enabled, will show a warning when you try to pull the ship's lever when the quota hasn't been fulfilled at the Company building with 0 days left.
Older Versions

v1.5.24

  • Small changes.

v1.5.23

  • Updated Takey (scrap eater)
  • Scrap eaters can now properly eat player ragdolls.
  • You can no longer get a scrap eater when selling after you pulled the ship's lever.
  • Added a warning if you try to start the ship at the Company building on the last day when the profit quota is not fulfilled.

v1.5.22

  • Small changes.

v1.5.21

  • Added support for vehicles.
  • Changed all config settings keys.
    • Previous config values will migrate to the new config settings.

v1.5.20

  • Fixed Takey (scrap eater) audio.

v1.5.19

  • Small update to Octolar (scrap eater)
  • Optimized assets.

v1.5.18

  • Updated README.

v1.5.17

  • Fixed rare microphone voice lines not playing at the Company after selling.
  • Added rareVoiceLineChance config setting.
    • Description: The percent chance the Company will say a rare microphone voice line after selling.

v1.5.16

  • Changed scrapEaterChance config setting default value from 40 to 75.

v1.5.15

  • Added Zombies?!
  • Fixed sellListJson in the terminal config editor to work properly.

v1.5.14

  • Added sell list command.
    • Description: Will sell all the scrap from the sellListJson config setting.
  • Added sellListJson config setting.
    • Description: JSON array of item names to sell when using the sell list command.
  • Made some changes and additions to scrap eaters.
  • Scrap eaters will now only revive dead players if all players are dead.

v1.5.13

  1. Removed overrideSetNewProfitQuota config setting.
  2. Fixed incompatibility with quota rollover mods.
  3. Fixed overtime bonus always being 15 credits more when selling on the last day.
  1. This config setting is now obsolete.
  2. This was previously fixed by setting overrideSetNewProfitQuota to false.
  3. The overtime bonus always being 15 credits more was because I was clamping daysUntilDeadline to 0 when selling on the last day. There's a vanilla bug that sets daysUntilDeadline to either 0 or -1 when selling on the last day because of certain circumstances. I've now learned what these circumstances are and can now accurately calculate the overtime bonus to be shown on the sell confirmation screen.

v1.5.12

  • Improved random percent calculations.
  • Small update to Takey (scrap eater)
  • Small update to Yippee (scrap eater)
  • Improved README and CHANGELOG.
  • Added XML file for summaries in scrap eater classes.

v1.5.11

  • Fixed some issues when trying to sell.

v1.5.10

  • Made some changes and additions to scrap eaters.
  • Other changes.

v1.5.9

  • Added psychoSpawnWeight config setting.
  • Made Psycho (scrap eater) available to everyone.

v1.5.8

  • Updated Psycho (scrap eater)

v1.5.7

  • Added Psycho?!
  • Added reset command to the config editor.
    • This will reset all your config settings to their default value.

v1.5.6

  • The sell item <name> command now shows found items when the showFoundItems config setting is set to false.
  • Made some small changes and additions to scrap eaters.

v1.5.5

  • Renamed sellKnife config setting to sellKnives.
  • Updated all sell commands.
  • Updated view overtime command.
  • Made some small changes and additions to scrap eaters.
  • Other small changes.

v1.5.4

  • Added sellKnife config setting.
  • Added view overtime command.

v1.5.3

  • Fixed oversight where scrapEaterChance set to 0 has a less than 1% chance to spawn a scrap eater.

v1.5.2

  • Small changes and fixes.

v1.5.1

  • Tested and working in version 50.
  • Fixed the DepositItemsDesk microphone audio clip desync.

v1.5.0

  • Made big changes and additions to scrap eaters.
  • Fixed Yippee (scrap eater) wings not rendering.
  • Added Cookie Fumo?!
  • Added cookieFumoSpawnWeight config setting.
  • Added overrideSetNewProfitQuota config setting.
  • Fixed the DepositItemsDesk playing the microphone audio twice.

v1.4.2

  • Added Yippee?!
  • Added yippeeSpawnWeight config setting.
  • Made Maxwell slightly more evil :3

v1.4.1

  • Removed overtimeBonusOffset config setting.
  • Made some changes and additions to scrap eaters.
  • Other small changes.

v1.4.0

  • Added support for modders to easily add their own scrap eaters.
  • Added Maxwell?!
  • Added maxwellSpawnWeight config setting.
  • Added -se / -se:<number> flag for all sell commands.
    • Using the -se flag will spawn a random scrap eater.
      • Usage: <sell-command> -se
    • Using the -se:<number> flag will spawn a scrap eater by their index (Starts at 1).
      • 1 = Octolar, 2 = Takey, 3 = Maxwell
      • Usage: <sell-command> -se:<number>
  • Added clear all command to the JsonListEditor (dontSellListJson config editor).
  • Improved the DisplayCreditsEarning popup.
  • Other small changes.

v1.3.16

  • Hopefully fixed the issue where the overtime bonus on the sell confirmation screen was sometimes inaccurate by $15.
  • Added overtimeBonusOffset config setting.
    • Description: The overtime bonus offset for the sell confirmation screen.
  • The overtimeBonusOffset config setting will get automatically set after the current quota is completed if the calculated overtime bonus on the sell confirmation screen is wrong.
  • Moved scrapEaterChance, octolarSpawnWeight, and takeySpawnWeight config settings to the new Scrap Eater Settings category.
  • Other small changes.

v1.3.15

  • Added sell item <name> command.
  • Added view all scrap command.

v1.3.14

  • Made some changes and additions to scrap eaters.
  • Other small changes.

v1.3.13

  • Added -o flag to the sell <amount> command.
    • Using the -o flag will sell for a less amount so (less amount + overtime bonus) = initial amount.
    • Usage: sell <amount> -o
  • Other small changes.

v1.3.12

  • Added Takey?!
  • Removed octolarSpawnChance config setting.
  • Added scrapEaterChance config setting.
  • Added octolarSpawnWeight config setting.
  • Added takeySpawnWeight config setting.
  • The DepositItemsDesk microphone audio clip is now synced with all players.

v1.3.9 → v1.3.11

  • Small changes.

v1.3.8

  • Added Octolar?!

v1.3.7

  • The overtime bonus now additionally shows the total value you will receive on the sell confirmation screen.
  • Changed sortFoundItems config setting key to sortFoundItemsPrice.

v1.3.6

  • Small changes.

v1.3.5

  • The sell <amount> command now supports math expressions.

v1.3.4

  • Improved sell algorithm.
  • The sell confirmation screen will now show how much overtime bonus you will receive.
  • Added onlySellScrapOnFloor config setting.
  • Changed description.

v1.3.3

  • Added edit config command.
  • Changed description.

v1.3.2

  • Added sellScrapWorthZero config setting.

v1.3.1

  • Fixed selling not working with specific BepInEx configurations.

v1.3.0

  • Changed custom welcome terminal node message.
  • All clients will now see all sold items on the DisplayCreditsEarning popup.
  • Improved DisplayCreditsEarning popup.
  • Fixed the DisplayCreditsEarning popup smooth scroll.
    • Sometimes scrolls too far down. I will try and fix that in a later update.
  • Fixed custom terminal help message to show [numberOfItemsOnRoute].
  • Removed showFoundItemsLimit config setting.
    • Will add back if anyone has any performance issues with showing too many items.
  • Improved terminal sell message when company buying rate is not 100%.
  • Improved scrap calculator algorithm.
    • Works better when the company buying rate is not 100%.

v1.2.5

  • Simplified README. Command aliases are still in place.
  • Added overrideWelcomeMessage and overrideHelpMessage config settings.
  • Moved some config settings to the new Terminal Settings category.
  • Added view config command.

v1.2.4

  • Added aliases for commands.
  • Added custom welcome and help message for the terminal.
  • Added sell help command.
  • The host will now get a notification after a client uses a sell command.
  • Moved the speakInShip config setting to the Misc Settings category.
  • Fixed a rare case where the mod would try and sell a little bit under the specified amount.

v1.2.3

  • Removed the sellHomemadeFlashbang config setting.
  • The Company will now only speak inside the ship after selling from the terminal.

v1.2.2

  • Fixed synced config for clients.
  • Fixed sell confirmations so it won't still be active if you quit the terminal before confirming or denying.

v1.2.1

  • Fixed the view scrap command.
  • Sell commands are no longer only accessible by the host.
  • Added speakInShip config setting.

v1.2.0

  • Added view scrap command.
  • Changed terminal sell commands confirmation messages.
  • Added synced config for clients.
  • The Company will speak inside the ship after selling scrap.

v1.1.4

  • Added more config settings.

v1.1.3

  • Added config settings for selling scrap.
  • Adjusted some terminal output messages.

v1.1.0 → v1.1.2

v1.0.0

  • Initial release.