You are viewing a potentially older version of this package. View all versions.
LivingInstinkt-AutoQueueBuild-1.0.0 icon

AutoQueueBuild

Click a building you can't afford in the build bar and it auto-queues the full craft tree into the replicator.

Date uploaded 5 days ago
Version 1.0.0
Download link LivingInstinkt-AutoQueueBuild-1.0.0.zip
Downloads 4
Dependency string LivingInstinkt-AutoQueueBuild-1.0.0

This mod requires the following mods to function

xiaoye97-BepInEx-5.4.17 icon
xiaoye97-BepInEx

BepInEx5.4.17 mod plugin framework, Mod框架

Preferred version: 5.4.17

README

AutoQueueBuild

A Dyson Sphere Program mod. When you click a building in the bottom build bar that you have none of in your inventory, and you do have the materials to make it, the mod queues the full craft into the mecha replicator instead of just flashing "insufficient materials."

The recursion (queue the gears and rods needed for the assembler, etc.), the affordability check, material reservation and refund-on-cancel are all handled by the game's own MechaForge.AddTask — this mod is only the trigger.

Behaviour

Clicking a building you own 0 of:

Situation Result
Full craft tree affordable from current inventory Queued to the replicator (one craft). Tip + click sound.
Missing raw materials somewhere in the tree Nothing queued; vanilla "insufficient materials" feedback.
Recipe locked / not handcraftable Nothing queued; vanilla feedback.
You already own ≥1 Unchanged — selects into your hand as normal.
Double-click Unchanged — opens the replicator focused on the item.

Config (BepInEx/config/com.livinginstinkt.dsp.autoqueuebuild.cfg)

  • Enabled (default true) — master switch.
  • CraftsPerClick (default 1) — handcraft executions queued per click.
  • ShowTip (default true) — on-screen "Queued to replicator" tip.
  • PlaySound (default true) — build-menu click sound on queue.

Build

Requires the .NET SDK. Reference paths in AutoQueueBuild.csproj point at this machine's game + r2modman "Singleplayer" profile — edit them if your install differs.

dotnet build -c Release

On success the DLL is copied to ...\r2modmanPlus-local\DysonSphereProgram\profiles\Singleplayer\BepInEx\plugins\LivingInstinkt-AutoQueueBuild\.

Notes

  • Covers mouse clicks and the number-key build shortcuts (both route through UIBuildMenu.OnChildButtonClick).
  • Before publishing to Thunderstore, add the BepInEx pack to manifest.json dependencies and include an icon.png (256×256).

CHANGELOG

Changelog

All notable changes to AutoQueueBuild are documented here. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.1.1] - 2026-07-07

Changed

  • Placement.AutoCraftWhilePlacing now defaults to false (opt-in). Previously, using up the last building in your inventory auto-queued a buffer of more, which was surprising. The build-bar click on an item you own 0 of is now the only automatic queue out of the box.
  • Queue tip now appears at the mouse cursor (nudged above the build bar) and re-shows on every click with the updated total build time (Added to queue (12s) / In queue (12s)).
  • Build-bar overlay is a single inline line +N (time) positioned above the icon, with an outline for legibility.

Added

  • General.CtrlClickCrafts (default 1) and General.ShiftClickCrafts (default 5): Ctrl+click and Shift+click queue those amounts (affordable amount is added if you can't afford the full request).

Fixed

  • Build-bar overlay never rendered due to a throttle counter seeded at long.MinValue.

[1.1.0] - 2026-07-07

Added

  • Auto-craft while placing. When you keep placing a building after your inventory hits 0, the replicator is kept topped up with a small buffer of that building (via the game's own recursive AddTask), so construction continues instead of stalling on "insufficient materials."
  • Build-bar overlay. Each build-bar icon shows the quantity of that building currently queued in the replicator plus a build ETA (e.g. +3 / 12s).
  • Config: Placement.AutoCraftWhilePlacing, Placement.PlacementBuffer, Placement.CheckIntervalTicks, UI.ShowBarOverlay.

[1.0.0] - 2026-07-07

Added

  • Initial release. Clicking a building in the bottom build bar that you own 0 of will, if its full handcraft tree is affordable from current inventory, queue it into the mecha replicator (recursively, via the game's MechaForge.AddTask) instead of flashing "insufficient materials."
  • Covers mouse clicks and the number-key build shortcuts (UIBuildMenu.OnChildButtonClick).
  • Config: General.Enabled, General.CraftsPerClick, Feedback.ShowTip, Feedback.PlaySound.