Bot Priority


Group construction jobs in roboport coverage and bias which ghost types construction robots build first.

Tweaks
a month ago
2.1
43
Logistics

Changelog

Version: 0.1.15
Date: 2026-11-02
  - Avoid switching same-priority ghosts through the holding force during large blueprint pastes.
  - Replace per-ghost sorting with a linear pass into the eleven priority bands.
  - Divert newly pasted ghosts immediately only when they fall below the currently active priority.
  - Add the approved Bot Priority mod thumbnail.
Version: 0.1.14
Date: 2026-11-02
  - Show remaining construction ghosts separately from the subset already dispatched to robots.
  - Sample construction registration state in small batches only while the priority window is open; do not scan the world or individual robots.
  - Keep dispatched jobs included in the remaining count until robot build completion events.
  - Preserve dispatched jobs through queue rebuilds triggered by new ghosts or edits.
Version: 0.1.13
Date: 2026-11-02
  - Avoid sorting every ghost after a priority change; sort only job groups and place them into the 11 priority bands.
  - Reuse the current queue on priority changes without rescanning roboport coverage.
  - Spread ghost force changes across ticks to reduce large redraw and simulation bursts.
Version: 0.1.12
Date: 2026-11-02
  - Remove robot-pool limiting and 32-tile spatial batches; expose every ghost in the active priority tier to Factorio's normal construction scheduler.
  - Keep lower-priority tiers held until the active tier completes or stalls for 30 seconds.
  - Reuse event-maintained grouped ghost counts in the open GUI instead of rescanning roboport coverage on each refresh.
Version: 0.1.11
Date: 2026-11-02
  - Keep a rolling set of construction requests available up to the network's total construction robot count, refilling it as jobs complete.
  - Preserve 32-tile front-to-back strips and priority-tier blocking while filling the robot pool; no fixed job cap is used.
  - Check aggregate network robot counts twice per second without polling individual robots.
Version: 0.1.10
Date: 2026-11-02
  - Rebuild saved queues before the spatial scheduler advances them after updating from older versions.
Version: 0.1.9
Date: 2026-11-02
  - Remove the fixed 768-ghost wave cap.
  - Release all ghosts in the current 32-tile spatial strip, then open the next strip after about 75% of that strip's jobs are claimed (or once it is complete); there is no fixed ghost-count limit.
  - Keep the front-to-back spatial sweep, with stalled-tier fallback after 30 seconds without network assignment or build progress.
Version: 0.1.8
Date: 2026-11-02
  - Fix a missing active-coordinate index initialization that caused an error while building the first wave.
Version: 0.1.7
Date: 2026-11-02
  - Treat 768 as the initial spatial wave size, not a cap on jobs or active bots.
  - Release another wave as construction robots are assigned, without waiting for every build in the prior wave to finish.
  - After 30 seconds without assignment or build progress, let the next priority tier proceed; each stalled tier times out separately.
  - Use each roboport network's aggregate available construction robot count; do not poll individual robots.
Version: 0.1.6
Date: 2026-11-02
  - Increase spatial construction batches from 256 to 768 ghosts.
  - Sort grouped construction jobs by remaining ghost count, largest groups first.
  - Give the jobs column flexible width and keep the priority heading fully visible.
  - Wrap long job names and size the window to the player's display resolution and interface scale.
  - Refit an open window when display resolution, interface scale, or display density changes.
Version: 0.1.5
Date: 2026-11-02
  - Release construction ghosts in spatial batches of up to 256, ordered along the blueprint's longest map axis.
  - Queue new blueprint ghosts within half a second without requiring the priority window to be opened.
  - Clear a job group's saved priority when its last ghost is built or removed.
  Performance:
    - Match robot completions with numeric coordinate indexes instead of allocating a string key for every build.
    - Remove per-completion temporary position tables and callback closures.
    - Cache force/surface scope keys and the holding-force lookup across ghost events.
    - Avoid repeating construction-range checks for ghosts found during a queue rebuild.
Version: 0.1.4
Date: 2026-11-02
  Performance:
    - Index construction coverage into spatial buckets so ghosts only check nearby roboport cells.
    - Query disjoint coverage buckets instead of repeatedly merging overlapping search rectangles.
    - Index held ghosts by force and surface to avoid scanning other scopes during reprioritization.
    - Debounce GUI ghost rescans after edits and completions, with refreshes limited to open windows.

Version: 0.1.3
Date: 2026-11-02
  - Restyled the priority window with grouped job rows, icons, ghost counts, and a clearer priority control.
  - Added a shortcut-bar button for opening and closing the priority window.

Version: 0.1.2
Date: 2026-11-02
  Features:
    - Track remaining top-priority jobs from robot build events.
    - Re-scan a scope only when priorities change, new ghosts appear, or its top group empties.
    - Refresh the GUI only when its displayed queue changes.
    - Remove whole-surface scans from periodic maintenance.