Stock Quality Upgrader

by Buttpie

Upgrade buildings and modules using the best quality you have in stock. Supports blueprints, copy-paste, building filters and automatic checks for better replacements.

Utilities
19 hours ago
2.1
7
Logistic network Circuit network Blueprints

Changelog

Version: 0.4.4
Date: 2026-10-20
  Changes:
    - Add a quality upgrade thumbnail.
    - Update the mod description and player instructions.
    - Update author information.
Version: 0.4.3
Date: 2026-10-19
  Changes:
    - Resize the panel to approximately 125% of the original: 50px icons, 18px body text, 23px heading.
    - Hide hidden entities, hidden placement items and empty fallback groups.
    - Clarify the Upgrade modules checkbox and cancel unpublished plans when unchecked.
  Bugfixes:
    - Release finished module delivery reservations using native request-proxy destruction events.
    - Discover late-created native proxies with a bounded, one-off check after construction.
    - Handle blueprint settings pasted over existing ghosts and built machines.
    - Coalesce large pastes over existing machines without filling the manual selection queue.
    - Refresh cached claims when rechecking a previously tracked ghost.
  Features:
    - Add /squ-explain for on-demand target, stock, reservation and filter diagnostics.
  Scripting:
    - 83 mocked tests pass. No Factorio engine or UPS measurement was available.
Version: 0.4.2
Date: 2026-10-19
  Features:
    - Use assembler 3 and steel furnace icons for their respective groups.
    - Increase panel icons to 60px and body text to 21px, with larger scroll areas.
    - E closes the panel without opening it. Native GUI-close actions also close it.
  Bugfixes:
    - Release completed building stock claims during the build event, not at the next periodic scan.
    - Release cancelled ghost claims immediately, including same-tick cached budgets.
    - Keep outstanding module delivery claims reserved and safely discard cancelled partial ghost plans.
  Scripting:
    - 74 mocked tests pass, including repeated assembler pastes, cancellations, cache refresh and close-only E behavior.
    - Actual Factorio rendering and robot execution remain unverified.
Version: 0.4.1
Date: 2026-10-19
  Features:
    - Split broad building filters into individual machine families and infrastructure types.
    - Group assemblers 1-3 together, stone/steel furnaces together, and electric furnaces separately.
    - Give each Space Age building its own filter, with native entity icons.
    - Use inventory-style icon slots, checkboxes, selection highlights and hover labels.
    - Toggle a category or modules by clicking its icon or checkbox. Keep exact entity overrides.
  Changes:
    - New filter groups inherit 0.4.0 parent selections without resetting personal options.
    - Hide unavailable prototype groups. Build the visual catalog only when opening the panel.
    - Close stale panels during configuration changes.
  Scripting:
    - 69 mocked tests pass. Actual in-game layout remains unverified.
Version: 0.4.0
Date: 2026-10-19
  Features:
    - Based on 0.3.0. Added an inventory-side Quality Upgrade Planner panel.
    - Added production defaults, separate research/silo groups, and exact entity include/exclude overrides.
    - Added personal blueprint and continued-monitoring toggles, independent modules, pause and interval controls.
    - Added custom quality upgrade, pause and resume icons.
    - Blueprint monitoring is enabled by default and follows completed construction.
  Bugfixes:
    - New ghosts choose building/module quality in the placement event instead of waiting for the batched job.
    - Shared per-source claims prevent immediate ghost planning from reusing this mod's reserved stock.
    - Common buildings retain their module follow-up after native blueprint deliveries.
  Optimizations:
    - Cache initial stock queries across placement events in the same tick. No map scans or idle tick polling.
    - Keep scheduled reconciliation and installed-module planning batched at 60-120 second intervals.
  Scripting:
    - 66 mocked integration tests, including filters, migration and GUI interactions. Engine validation still required.
Version: 0.3.0
Date: 2026-10-19
  Features:
    - Stock-limited checks for newly placed blueprint and hand-placed entity ghosts.
    - Upgrade requested blueprint modules without changing module types or tiers.
    - Planner can select ghosts; automatic watches continue after construction.
    - One toggle controls automatic checks on ghost placement.
  Performance:
    - Coalesces placement events into batched jobs sharing the existing stock budget.
    - Processes blueprint module request positions incrementally.
    - Preserves in-flight robot jobs and defers follow-up checks.
  Testing:
    - 50 mocked Lua runtime tests pass; in-game validation remains required.
Version: 0.2.0
Date: 2026-10-19
  Compatibility:
    - Target Factorio 2.1.22 and Quality 2.1.
    - Verified used runtime methods, event fields, selection flags, and prototypes against the 2.1.22 API.
    - Retained building and module upgrades, automation, reservations, and bounded work batches.