SellMyScrap
[v40/v73+] Adds a few terminal commands to sell your scrap from the ship or cruiser. Highly Configurable. Compatible with the ShipInventoryUpdated mod. SellFromTerminal +
| Date uploaded | 2 weeks ago |
| Version | 1.14.2 |
| Download link | Zehs-SellMyScrap-1.14.2.zip |
| Downloads | 10854 |
| Dependency string | Zehs-SellMyScrap-1.14.2 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100Evaisa-FixPluginTypesSerialization
Fix custom Serializable structs and such not properly getting deserialized by Unity.
Preferred version: 1.1.4README
SellMyScrap
Adds a few terminal commands to sell your scrap from the ship or cruiser. Highly Configurable. Compatible with the ShipInventoryUpdated mod. SellFromTerminal +
Who needs this mod installed for it to work? Everyone!
This mod works in all game versions from v40 to v73+
This mod will sell scrap as close to the requested value as possible.
This mod is compatible with the ShipInventoryUpdated mod.
- You must be landed on a moon that has a sell desk (e.g., The Company) to use sell commands.
- This mod will NOT sell Gifts, Shotguns, Ammo, and Knives by default.
- See Sell Settings for more info.
- See Sell Settings for more info.
- This mod supports excluding any vanilla/modded scrap items from the sell algorithm.
- See Advanced Sell Settings for more info.
- See Advanced Sell Settings for more info.
- This mod will show how much overtime bonus you will receive on the sell confirmation screen.
Terminal Commands
Click to Expand
- You must be landed on a moon that has a sell desk (e.g., The Company) to use sell commands.
- Each sell command will sell items based on your config settings.
- Each sell command requires confirmation before selling your scrap.
- Additional information is given on the confirmation screen.
| Command | Description | Optional flags |
|---|---|---|
sell <amount> |
Will sell scrap for a total of the requested amount. | -se, -se:<number>, -a:<number>, -o |
sell quota |
Will sell scrap to reach the profit quota. | -se, -se:<number>, -a:<number> |
sell all |
Will sell all of your scrap. | -se, -se:<number> |
sell item <name> |
Will sell scrap by their item name. | -se, -se:<number> |
sell list |
Will sell all the scrap from the SellList config setting. |
-se, -se:<number> |
- Using the
-seflag will spawn a random scrap eater.- Usage:
<sell-command> -se
- Usage:
- Using the
-se:<number>flag will spawn a scrap eater by their index (Starts at 1).- 1 = Octolar, 2 = Takey, 3 = Maxwell, 4 = Yippee, 5 = Cookie Fumo, 6 = Psycho, 7 = Zombies, 8 = Wolfy
- Usage:
<sell-command> -se:<number>
Additional info for the sell <amount> and sell quota commands.
- Added more algorithms to find scrap match (#15)
- The scrap match algorithms are:
- 1 → Default (Recommended)
- 2 → Brute Force
- 3 → Super Fast (Recommended when selling 10k+)
- Added command flag
-a:<number>to select a scrap match algorithm.<number>is the index of the scrap match algorithm.- Usage examples:
sell 10000 -a:3sell quota -a:3
- The scrap match algorithms are:
Additional info for the sell <amount> command.
- This command supports math expressions as the input for
<amount>.- Usage example:
sell 500 + 50
- Usage example:
- Using the
-oflag will sell for a less amount so (less amount + overtime bonus) = initial amount.- Usage:
sell <amount> -o
- Usage:
Additional info for the sell item <name> command.
- Item names are not case-sensitive but, spaces do matter.
- Usage examples:
sell item Whoopie cushionsell item Whoopiesell item Whoo
Additional info for the sell list command.
- This command will sell all the items from the
SellListconfig setting. - This command will bypass the
DontSellListconfig setting.
| Command | Description |
|---|---|
sell |
Shows a help message for this mod. |
view overtime |
Shows your current overtime bonus. |
view scrap |
Shows a list of all the scrap in the ship. |
view all scrap |
Shows a list of all the registered scrap. |
Config Settings
Click to Expand
I recommend you use the LethalConfig mod to edit the config settings.
Sell and Advanced Sell config settings will be synced with the host.
| General | Setting type | Default value | Description |
|---|---|---|---|
ExtendedLogging |
Boolean |
false |
Enable extended logging. |
| Sell | Setting type | Default value | Description |
|---|---|---|---|
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? |
SellKnives |
Boolean |
false |
Do you want to sell Kitchen knives? |
SellPickles |
Boolean |
true |
Do you want to sell Jar of pickles? |
| Advanced Sell | Setting type | Default value | Description |
|---|---|---|---|
SellScrapWorthZero |
Boolean |
false |
Do you want to sell scrap worth zero? |
OnlySellScrapOnFloor |
Boolean |
false |
Do you want to sell scrap that is only on the floor? |
PrioritySellList |
String |
Tragedy, Comedy, Whoopie cushion, Easter egg, Clock, Soccer ball |
Array of item names to prioritize when selling. |
DontSellList |
String |
|
Array of item names to not sell. |
SellList |
String |
Whoopie cushion, Easter egg, Tragedy, Comedy |
Array of item names to sell when using the sell list command. |
Additional info for the PrioritySellList config setting.
- Use the
view scraporview all scrapcommand to see the correct item names to use. - Each entry should be separated by a comma.
- Item names are not case-sensitive but, spaces do matter.
- Example value:
Tragedy, Comedy, Whoopie cushion, Easter egg, Clock, Soccer ball
Additional info for the DontSellList config setting.
- Use the
view scraporview all scrapcommand to see the correct item names to use. - Each entry should be separated by a comma.
- Item names are not case-sensitive but, spaces do matter.
- Example value:
Maxwell, Cookie Fumo, Octolar Plush, Smol Takey, Blahaj
Additional info for the SellList config setting.
- Use the
view scraporview all scrapcommand to see the correct item names to use. - Each entry should be separated by a comma.
- Item names are not case-sensitive but, spaces do matter.
- Example value:
Whoopie cushion, Easter egg, Tragedy, Comedy
| Terminal | Setting type | Default value | Description |
|---|---|---|---|
OverrideWelcomeMessage |
Boolean |
true |
Overrides the terminal welcome message to add additional info. |
OverrideHelpMessage |
Boolean |
true |
Overrides the terminal help message to add additional info. |
ShowFoundItems |
Boolean |
true |
Show found items on the confirmation screen. |
SortFoundItemsPrice |
Boolean |
true |
Sorts found items from most to least expensive. |
AlignFoundItemsPrice |
Boolean |
true |
Aligns all prices of found items. |
| Misc | Setting type | Default value | Description |
|---|---|---|---|
SpeakInShip |
Boolean |
true |
The Company will speak inside your ship after selling from the terminal. |
RareVoiceLineChance |
Single |
5 |
The percent chance the Company will say a rare microphone voice line after selling. |
ShowQuotaWarning |
Boolean |
true |
If enabled, will show a warning when you try to pull the ship's lever when the quota hasn't been fulfilled on a moon that has a sell desk (e.g., The Company) with 0 days left. |
| Scrap Eater | Setting type | Default value | Description |
|---|---|---|---|
ScrapEaterChance |
Int32 |
0 |
The percent chance a scrap eater will spawn?! |
OctolarSpawnWeight |
Int32 |
1 |
The spawn chance weight Octolar will spawn?! (scrap eater) |
TakeySpawnWeight |
Int32 |
1 |
The spawn chance weight Takey will spawn?! (scrap eater) |
MaxwellSpawnWeight |
Int32 |
1 |
The spawn chance weight Maxwell will spawn?! (scrap eater) |
YippeeSpawnWeight |
Int32 |
1 |
The spawn chance weight Yippee will spawn?! (scrap eater) |
CookieFumoSpawnWeight |
Int32 |
1 |
The spawn chance weight Cookie Fumo will spawn?! (scrap eater) |
PsychoSpawnWeight |
Int32 |
1 |
The spawn chance weight Psycho will spawn?! (scrap eater) |
ZombiesSpawnWeight |
Int32 |
1 |
The spawn chance weight Zombies will spawn?! (scrap eater) |
WolfySpawnWeight |
Int32 |
1 |
The spawn chance weight Wolfy will spawn?! (scrap eater) |
ShipInventoryUpdated Compatibility
This mod is compatible with the ShipInventoryUpdated mod.
If you use the command flag -inv when writing sell commands, you can make the command only target the ShipInventory storage.
Want more Scrap Eaters?
- GiantScrapEaters - Adds an additional scrap eater.
- BigEyes - Adds an additional scrap eater.
Developer Contact
Report bugs, suggest features, or provide feedback:
- GitHub Issues Page: SellMyScrap
| Discord Server | Forum | Post |
|---|---|---|
| Lethal Company Modding | #mod-releases |
SellMyScrap |
| Unofficial Lethal Company Community | #mod-releases |
SellMyScrap |
Screenshots
Click to Expand
sell <amount>
sell quota
sell all
sell item <name>
view overtime
view scrap
view all scrap
Credits
Takey (scrap eater)
- "Pirate hat" (https://skfb.ly/oDoDr) by ReversedG is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
- "Playing Cards" (https://skfb.ly/oDIqr) by Dumokan Art is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
- "Low poly Chicken" (https://skfb.ly/oARnK) by marksethcaballes is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
- "Bell" (https://skfb.ly/oIUVu) by ApprenticeRaccoon is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
- Foley, Hand Bell, Ringing, Muffled.wav by yake01 -- https://freesound.org/s/586567/ -- License: Attribution 4.0
- "Boxing Gloves - Left Handed" (https://skfb.ly/6XOUS) by Gohar.Munir is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
- "Boxing Gloves - Right Handed" (https://skfb.ly/6XPGF) by Gohar.Munir is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
- "Gift Bow" (https://skfb.ly/oxBKr) by buzzkirill is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
- "Crystal empire - Crystal Heart - MLP" (https://skfb.ly/6uyzt) by Kalem.Masters is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
- "Cake" (https://skfb.ly/ozG96) by Harry Charalambous is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
- "Pilgrims Hat" (https://skfb.ly/6TYHC) by The Elliseran Modeller is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
Maxwell (scrap eater) and Cookie Fumo (scrap eater)
- Models and sounds from LethalThings.
Zombies (scrap eater)
- Model by MissSuperE.
CHANGELOG
v1.14.2
- Improved
OnlySellScrapOnFlooraccuracy.
v1.14.1
Hopefully improvedOnlySellScrapOnFlooraccuracy.
v1.14.0
- Updated to support v73+
v1.13.1
- Added missing AssetBundle file.
v1.13.0
- Changed the
ScrapEaterChanceconfig setting's default value from75to0.- This was changed at the request of the High Quota community.
v1.12.5
- Removed April Fools update.
v1.12.4
- April Fools update.
v1.12.3
- Fixed compatibility with the ShipInventoryUpdated mod v1.2.9+
v1.12.2
- Fixed compatibility with the ShipInventory mod v1.2.6+
- This mod is compatible with the ShipInventoryUpdated mod v1.2.8+
- Fixed selling items from the ship inventory where trying to sell too many items (over the
Chute max capacity) would cause the command to time out because no more items were spawning out of the chute.
v1.12.1
- Fixed trailing comma in the
DontSellListconfig setting value not allowing you to use thesell <amount>,sell quota, andsell allcommands.
v1.12.0
- Added support for all game versions v40 to v69+
- Command flags are now case-insensitive.
Older Versions
v1.11.1
- Small changes.
v1.11.0
- Added more algorithms to find scrap match (#15)
- The scrap match algorithms are:
- 1 → Default (Recommended)
- 2 → Brute Force
- 3 → Super Fast (Recommended when selling 10k+)
- Added command flag
-a:<number>to some sell commands to select a scrap match algorithm.<number>is the index of the scrap match algorithm.- Example:
sell 10000 -a:3
- The scrap match algorithms are:
- Selling now works on any moon that has a sell desk.
- This includes the moon Galetry.
- You can now sell scrap items that are placed on PlaceableShipObjects.
- The
view scrapcommand now includes scrap items worth $0 when theSellScrapWorthZeroconfig setting is false. - Updated Takey (scrap eater)
v1.10.2
- Updated Takey (scrap eater)
v1.10.1
- Fixed compatibility with the ShipInventory mod v1.2.0+
v1.10.0
- Updated Takey (scrap eater)
v1.9.1
- Fixed the
view overtimecommand not working properly. - Removed patches to fix the ShipInventory mod v1.1.7 breaking the saving and loading of items.
v1.9.0
- Removed the
view configandedit configcommands.- I recommend you use the LethalConfig mod to edit the config settings.
- Updated config settings.
- Old config setting values will migrate to the new config settings.
- Improved config sync.
- Updated Takey (scrap eater)
- Fixed compatibility with the ShipInventory mod v1.1.7+
- Fixed the ShipInventory mod breaking the sell commands and view scrap command when using an incompatible version.
- Added some patches to fix the ShipInventory mod v1.1.7 breaking the saving and loading of items.
- Other changes and improvements.
v1.8.1
- Fixed compatibility with the ShipInventory mod v1.1.6+
v1.8.0
- Added
PrioritySellListconfig 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 v1.1.5+
- 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
- Fixed compatibility with the ShipInventory mod v1.1.2+
v1.7.0
- Added compatibility with the ShipInventory mod v1.1.1+
- 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
ShowQuotaWarningconfig 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.
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
rareVoiceLineChanceconfig setting.- Description: The percent chance the Company will say a rare microphone voice line after selling.
v1.5.16
- Changed
scrapEaterChanceconfig setting default value from 40 to 75.
v1.5.15
- Added Zombies?!
- Fixed
sellListJsonin the terminal config editor to work properly.
v1.5.14
- Added
sell listcommand.- Description: Will sell all the scrap from the
sellListJsonconfig setting.
- Description: Will sell all the scrap from the
- Added
sellListJsonconfig setting.- Description: JSON array of item names to sell when using the
sell listcommand.
- Description: JSON array of item names to sell when using the
- Made some changes and additions to scrap eaters.
- Scrap eaters will now only revive dead players if all players are dead.
v1.5.13
- Removed
overrideSetNewProfitQuotaconfig setting. - Fixed incompatibility with quota rollover mods.
- Fixed overtime bonus always being 15 credits more when selling on the last day.
- This config setting is now obsolete.
- This was previously fixed by setting
overrideSetNewProfitQuotato false.- The overtime bonus always being 15 credits more was because I was clamping
daysUntilDeadlineto 0 when selling on the last day. There's a vanilla bug that setsdaysUntilDeadlineto 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
psychoSpawnWeightconfig setting. - Made Psycho (scrap eater) available to everyone.
v1.5.8
- Updated Psycho (scrap eater)
v1.5.7
- Added Psycho?!
- Added
resetcommand 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 theshowFoundItemsconfig setting is set to false. - Made some small changes and additions to scrap eaters.
v1.5.5
- Renamed
sellKnifeconfig setting tosellKnives. - Updated all sell commands.
- Updated
view overtimecommand. - Made some small changes and additions to scrap eaters.
- Other small changes.
v1.5.4
- Added
sellKnifeconfig setting. - Added
view overtimecommand.
v1.5.3
- Fixed oversight where
scrapEaterChanceset 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
cookieFumoSpawnWeightconfig setting. - Added
overrideSetNewProfitQuotaconfig setting. - Fixed the DepositItemsDesk playing the microphone audio twice.
v1.4.2
- Added Yippee?!
- Added
yippeeSpawnWeightconfig setting. - Made Maxwell slightly more evil :3
v1.4.1
- Removed
overtimeBonusOffsetconfig 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
maxwellSpawnWeightconfig setting. - Added
-se/-se:<number>flag for all sell commands.- Using the
-seflag will spawn a random scrap eater.- Usage:
<sell-command> -se
- Usage:
- 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>
- Using the
- Added
clear allcommand to the JsonListEditor (dontSellListJsonconfig 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
overtimeBonusOffsetconfig setting.- Description: The overtime bonus offset for the sell confirmation screen.
- The
overtimeBonusOffsetconfig 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, andtakeySpawnWeightconfig settings to the new Scrap Eater Settings category. - Other small changes.
v1.3.15
- Added
sell item <name>command. - Added
view all scrapcommand.
v1.3.14
- Made some changes and additions to scrap eaters.
- Other small changes.
v1.3.13
- Added
-oflag to thesell <amount>command.- Using the
-oflag will sell for a less amount so (less amount + overtime bonus) = initial amount. - Usage:
sell <amount> -o
- Using the
- Other small changes.
v1.3.12
- Added Takey?!
- Removed
octolarSpawnChanceconfig setting. - Added
scrapEaterChanceconfig setting. - Added
octolarSpawnWeightconfig setting. - Added
takeySpawnWeightconfig 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
sortFoundItemsconfig setting key tosortFoundItemsPrice.
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
onlySellScrapOnFloorconfig setting. - Changed description.
v1.3.3
- Added
edit configcommand. - Changed description.
v1.3.2
- Added
sellScrapWorthZeroconfig 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
showFoundItemsLimitconfig 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
overrideWelcomeMessageandoverrideHelpMessageconfig settings. - Moved some config settings to the new Terminal Settings category.
- Added
view configcommand.
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
speakInShipconfig 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
sellHomemadeFlashbangconfig 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 scrapcommand. - Sell commands are no longer only accessible by the host.
- Added
speakInShipconfig setting.
v1.2.0
- Added
view scrapcommand. - 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.