Skip to content

Fix/unit queue distribution#386

Open
andy5995 wants to merge 4 commits into
developfrom
fix/unit-queue-distribution
Open

Fix/unit queue distribution#386
andy5995 wants to merge 4 commits into
developfrom
fix/unit-queue-distribution

Conversation

@andy5995
Copy link
Copy Markdown
Contributor

Fixes #254

Will need a little more testing, but looks great so far!

@andy5995 andy5995 added this to the v3.14.0 milestone Mar 27, 2026
@andy5995 andy5995 force-pushed the fix/unit-queue-distribution branch from 2b9bcfd to ad1086d Compare March 29, 2026 13:21
- Distribute produce/upgrade commands to buildings with the fewest
  queued commands first, so idle buildings get priority over busy ones
- Treat buildings with only a stop command (auto-given when idle) as
  effectively empty (effectiveSize=0) to avoid skipping them
- Apply distribution for qAlways commands (produce/upgrade) even when
  the queue key is not held, since they always append rather than replace

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@andy5995 andy5995 force-pushed the fix/unit-queue-distribution branch from ad1086d to 1f21596 Compare April 5, 2026 09:36
@andy5995
Copy link
Copy Markdown
Contributor Author

andy5995 commented Apr 5, 2026

Made some more changes, ready for more testing by other people.

andy5995 and others added 2 commits April 7, 2026 03:47
…uilt ones

When a uniform selection (same unit type) contained an unfinished
building, commands were hidden for the entire selection if the front
unit happened to be unbuilt. Now checks all units in the selection
and shows commands as long as at least one is built.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Units always get queued on the same building when there's not enough resources.

1 participant