Smart Mining Dump

v1.0.3
by Nimb

Adds a toggle to mining towers so trucks prefer dumping dumpable materials over storing them.

Stable 1 day ago The Unlicense Source code
Source code
https://github.com/CesarM-Git/SmartMiningDumpMOD
Tags
Quality of Life Vehicles

Every mining tower inspector gains a "Prefer Dumping" checkbox. When it is on, trucks assigned to that tower will try to dump dumpable materials into dumping or levelling designations inside the tower's zone before falling back to normal storage delivery.

Useful when you are levelling terrain near a mine and would rather the overburden went into the hole next to it than across the map into a storage you will have to empty later.

  • Per tower. Each tower has its own setting; towers default to off.
  • Console command. smart_dump toggles the preference without opening the inspector.
  • Persistent. The setting is saved per game.
  • Falls back cleanly. If there is nowhere to dump, trucks behave exactly as they normally would.

No announcements yet.

v1.0.3

Latest
Game version
0.8.7 - 0.8.7
Released
Aug 20, 2026
File size
173.2 KB
License
The Unlicense
Save-game: Add · Remove
Changelog
------
Fixes:
- "No MineTowers found" is no longer logged as a Warning on startup. On a new
save you have not built a mining tower yet, so this is the normal state, not
a fault — the mod already retries once the first tower exists. It now logs
at Info and says so.

No gameplay changes. Log wording only.
Loading forum…

Smart Mining Dump — Changelog

==============================

v1.0.3

------
Fixes:
- "No MineTowers found" is no longer logged as a Warning on startup. On a new
save you have not built a mining tower yet, so this is the normal state, not
a fault — the mod already retries once the first tower exists. It now logs
at Info and says so.

No gameplay changes. Log wording only.

v1.0.2

------
Fixes:
- Removed six "Multiple commands with the same name" errors from the game
log on every load — one each for smart_dump, smart_dump_all,
smart_dump_status, smart_dump_unstick, smart_dump_verbose and
smart_dump_diag. The mod was registering its own console commands, and
the game then registered them again during its own startup scan, which
logs an Error-severity line with a stack trace per command. The commands
always worked — the game's registration bails out without overwriting —
but six errors looked like a real fault.
- The mod no longer registers its commands itself. The game discovers
[ConsoleCommand] methods on mods automatically. The mod now only verifies
after the game's scan that all six are present, and self-registers
quietly if any are missing.

No gameplay changes. All six commands behave exactly as before.

v1.0.1

------
Compatibility:
- Verified against Captain of Industry 0.8.7. No gameplay changes.
- The mining tower inspector's constructor changed in 0.8.7: it went from
5 parameters to 7 (it now also takes MultiAreaEditController,
MineTowersManager and ForestryTowersManager, and the old
NewInstanceOf<PolygonAreaSelectionController> parameter is gone). No code
change was required — the mod builds its inspector subclass by reading the
base constructor's parameter list at runtime rather than hardcoding it, so
it adapted to the new signature on its own.

Hardening:
- The emitted forwarding constructor now boxes value-type parameters before
packing them into the argument array. Every mining tower inspector
parameter has been a reference type so far, so this is a no-op today, but
the constructor has already changed shape once and a struct parameter
would previously have produced invalid IL and killed the inspector patch
outright.
- InspectorsManager now auto-discovers IEntityInspector<T> implementations in
its own constructor instead of starting empty. This happens before the
mod's init-state callback, so the dictionary swap still works unchanged.
- Every other game API this mod reaches by reflection was re-checked and
none of them moved or changed shape: MineTower.m_trucksJobProvider,
TruckJobProviderBase.Context, TruckJobProviderContext.DumpJobFactory,
DumpingJob.Factory.TryCreateAndEnqueueJob (5-argument overload),
Truck.m_jobProvider / DeactivateCannotDeliver,
PathFindingEntity.Jobs, InspectorsManager.m_inspectorsImplTypes, and
BaseInspector.AddPanelRow / Entity.
- min_game_version is now 0.8.7. This build no longer claims support for
older game versions as it wasn't verified for them.

v1.0.0

------
Initial release.

New features:
- Adds a "Prefer Dumping" toggle to every mining tower inspector. When
enabled, trucks assigned to that tower will attempt to dump dumpable
materials in dumping/leveling designations inside the tower's zone
before falling back to storage delivery.
- Provides the `smart_dump` console command as an alternative way to
toggle the preference per tower.
- Per-tower preference is persisted with the save.
This mod depends on

This mod has no dependencies.

Mods that depend on this

No other mods depend on this mod yet.