Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1406 closed enhancement (fixed)

Units walk over foundations waiting to be constructed

Reported by: fabio Owned by: Deiz
Priority: Should Have Milestone: Alpha 11
Component: UI & Simulation Keywords:
Cc: Patch:

Description (last modified by Jonathan Waller)

Friendly units should try to avoid walking over foundations. Otherwise they block the building from being built.

Savegame is attached, which is a good test case with a steady stream of trade units.

Attachments (1)

quicksave-0004.0adsave (403.3 KB ) - added by fabio 12 years ago.

Download all attachments as: .zip

Change History (7)

by fabio, 12 years ago

Attachment: quicksave-0004.0adsave added

comment:1 by fabio, 12 years ago

Description: modified (diff)

comment:2 by Jonathan Waller, 12 years ago

Description: modified (diff)
Milestone: Alpha 10Alpha 11
Priority: Must HaveShould Have
Summary: cannot create civic centerUnits walk over foundations waiting to be constructed
Type: defectenhancement

Thanks for reporting this.

This is because there were trade carts walking across the foundation. While units are on top of a foundation the structure cannot be built.

I would guess that the second issue would be the minimum distance required between civ centres. Once I deleted the foundation you had placed I could place a new one.

I have modified the tickets title and description to give a more accurate description. Priority has been lowered because this has an easy workaround of manually stopped the flow of trade units.

comment:3 by fabio, 12 years ago

See #1450 for a duplicate.

comment:4 by Deiz, 12 years ago

Owner: set to Deiz
Resolution: fixed
Status: newclosed

In 12462:

Have UnitAI respect the LeaveFoundation order unless in combat. Fixes #1406.

comment:5 by Deiz, 12 years ago

Component: Core engineUI & Simulation

Solution in r12462 is rather brute-force, but it's very effective. I was considering a pathfinding solution but decided a simple solution would do.

In my testing with 60 traders on a very short (5 metal) route, it took around five builders to get a fortress foundation started (keep in mind that the LeaveFoundation UnitAI function is called by the foundation each time a unit attempts to build, so more builders means more calls).

comment:6 by Kieran P, 12 years ago

If not done already, can we also give foundations a footprint/obstruction area to prevent new units walking onto foundations once placed?

Note: See TracTickets for help on using tickets.