Canceling orders

Canceling orders

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Canceling orders

Post by ILMTitan »

I plan to make it possible to cancel commands in queues given to units coming out of factories. I am also considering making any overlap between buildings cancel, whereas now it cancels if it is within iirc 17*17 of the first build spot.

The first part is clearly positive, but their could be negative aspects for the building canceling (slopes can make it unapparent that certain building would overlap). Should I proceed on both? Should I make a little overlap OK?
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

could you make the footprint red-colored if it is over another placed building? Kinda like if you try to place a building over an already built one?
User avatar
krogothe
AI Developer
Posts: 1050
Joined: 14 Nov 2005, 17:07

Post by krogothe »

Overlapping that doesnt cancel is bad, but cancelling 3 buildings in a square because you accidentaly misplaced the fourth one is bad too.
Either a little overlap is okay or make it impossible to place a blueprint on another, except if they match(within 1 space), which then cancels the blueprint already there
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Post by ILMTitan »

Ok, I'm thinking that if the center of either order is within or on the border of the other order, it will cancel, and further away will simply not build. And, with that system, we do want to cancel all commands that fit the description.

But, we do want to be able to overlap with the queues of other builders, right? Say, if you have two builders with long queues and want the first one done to start some building, you give each a separate build command that is the same. Also, this would be easier to code.

I will have the building footprint show red for the overlap, but turn back green for cancel, because under certain conditions, ie multiple builders selected, the building will be placed when canceling.
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Post by ILMTitan »

Double posting, but changes submitted by this bug report with patch
Post Reply

Return to “Engine”