You are viewing a potentially older version of this package. View all versions.
Sparroh-BatchScrapping-2.1.1 icon

BatchScrapping

Mark upgrades for trash, batch-scrap marked or non-favorite upgrades, true instant scrap, and undo last scrap (5 deep).

Date uploaded 3 weeks ago
Version 2.1.1
Download link Sparroh-BatchScrapping-2.1.1.zip
Downloads 86
Dependency string Sparroh-BatchScrapping-2.1.1

This mod requires the following mods to function

BepInEx-BepInExPack_Mycopunk-5.4.2403 icon
BepInEx-BepInExPack_Mycopunk

BepInEx pack for Mycopunk. Preconfigured and ready to use.

Preferred version: 5.4.2403
Sparroh-SparrohUILib-1.1.1 icon
Sparroh-SparrohUILib

Shared UI library for Sparroh Mycopunk mods. Provides themed widgets, HUD builders, windows, and resolution-aware layout.

Preferred version: 1.1.1

README

Batch Scrapping

A BepInEx mod for Mycopunk that adds trash marking, batch scrapping, instant scrap, and undo for upgrades and skins.

Features

  • Trash Marking: Hover an upgrade and press the configured key (default T) to mark or unmark it for trash. Marked upgrades show a red trashcan icon.

  • Scrap Marked: Action bar button to scrap all trash-marked upgrades for the current gear (with confirmation).

  • Scrap No-Fav: Action bar button to scrap all non-favorite upgrades for the current gear (with confirmation).

  • Instant Scrap: Optional config to make the normal scrap hold complete almost instantly (~0.05s).

  • Fixed Scrap Timer: Optional config to use a fixed hold duration instead of the default scrap timer.

  • Undo Scrap: Restore up to the last 5 scrap actions (single or batch). Reverses destroyed upgrades and claws back scrap rewards when possible. The button shows remaining stack depth as Undo (N).

  • Skins Support: Works in both upgrade and skin modes.

Getting Started

Dependencies

  • Mycopunk (base game)
  • BepInEx - Version 5.4.2403 or compatible (Thunderstore: BepInEx-BepInExPack_Mycopunk)
  • SparrohUILib - Version 1.1.1 or compatible ( Thunderstore: Sparroh-SparrohUILib)

Installing

Via Thunderstore (Recommended):

  1. Download and install via Thunderstore Mod Manager / r2modman
  2. Dependencies are installed automatically
  3. The mod is placed in the correct plugins directory

Manual Installation:

  1. Install BepInEx and SparrohUILib first
  2. Place BatchScrapping.dll in your <Mycopunk Directory>/BepInEx/plugins/ folder

Building

dotnet build --configuration Release

Configuration

Settings are stored at <Mycopunk Directory>/BepInEx/config/sparroh.batchscrapping.cfg:

Section Option Default Description
Keybinds Trash Mark Keybind T Key to toggle trash mark on hovered upgrades
General Instant Scrap false Enable near-instant scrapping (~0.05s hold)
General Fixed Scrap Time false Use fixed scrap timer instead of default (ignored when Instant Scrap is on)
General Scrap Duration 1 Duration in seconds for fixed scrap timer

Usage

  1. Open a gear details window.
  2. Hover upgrades and press T (or your bound key) to mark them for trash.
  3. Use Scrap Marked or Scrap No-Fav on the gear action bar.
  4. Confirm the action in the popup.
  5. Use Undo / Undo (N) to restore the last scrap action (up to 5 deep). Works for both vanilla single scrap and batch scrap.

Favorites and trash marks are mutually exclusive. Favoriting an upgrade clears its trash mark, and trash-marking clears favorite. Favorites cannot be trash-marked with the keybind.

Undo notes

  • Each single scrap or batch scrap is one undo entry (max 5).
  • Restores upgrade seed, flags (favorite/turbo/trash mark), unlock state, and equip position when possible.
  • Removes scrap rewards granted by that action (clamped to what you still have).
  • Does not reverse unrelated side effects (achievements, some counters).

Help

  • Mod not loading? Verify BepInEx and SparrohUILib are installed correctly and check console logs for errors.
  • Keybind not working? Ensure no conflicts with other mods or game settings.
  • Buttons missing? Open a gear details window; action bar buttons only appear while the gear menu is open. Confirm SparrohUILib is installed.
  • Instant scrap not working? Enable Instant Scrap in the config and check BepInEx logs for patch success messages.

Authors

  • Sparroh

License

This project is licensed under the MIT License - see the LICENSE file for details.

CHANGELOG

Changelog

2.1.1

  • Refactor
  • Trash mark icon: marked upgrades now show a red trashcan instead of a recolored favorite star

2.1.0

  • Fixed Instant Scrap: was never applying due to wrong type lookup for nested HoverInfo.UnlockActionParams

  • Instant Scrap: short hold (~0.05s) — no unsafe IL rewrites

  • Undo Last Scrap: restore up to the last 5 scrap actions (single or batch)

    • Restores upgrade instance data (seed, flags, unlock, equip)
    • Claws back scrap rewards when still available
    • Undo button on gear action bar shows remaining stack depth
    • Drop oldest when over depth 5; defer single-scrap record one frame (stable with Instant Scrap)
  • Uses SparrohUILib gear action bar for Scrap Marked, Scrap No-Fav, and Undo

2.0.0

  • Major rewrite for current Mycopunk / UI integration
  • Trash-mark upgrades with a configurable keybind (default T)
  • Batch scrap all marked upgrades
  • Batch scrap all non-favorite upgrades
  • Optional instant scrap and fixed scrap timer
  • Skins support in gear details

1.1.0

  • Batch scrapping functionality for upgrades and skins
  • Hold-to-confirm buttons for scrapping marked upgrades and all non-favorite upgrades
  • T key marking system — press T to mark/unmark upgrades for scrapping (excludes favorites)
  • Visual indicators for marked upgrades (red icon) and favorites (white icon)
  • Batch processing with configurable size and interval
  • Resource calculation and distribution for scrapped upgrades
  • Improved UI integration with gear details window

1.0.0

  • Add MinVer
  • Add thunderstore.toml for tcli
  • Add LICENSE and CHANGELOG.md