Ticket #1406 (closed enhancement: fixed)

Opened 12 months ago

Last modified 9 months ago

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:

Description (last modified by quantumstate) (diff)

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

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

Change History

Changed 12 months ago by fabio

comment:1 Changed 12 months ago by fabio

  • Description modified (diff)

comment:2 Changed 12 months ago by quantumstate

  • Priority changed from Must Have to Should Have
  • Summary changed from cannot create civic center to Units walk over foundations waiting to be constructed
  • Type changed from defect to enhancement
  • Description modified (diff)
  • Milestone changed from Alpha 10 to Alpha 11

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 Changed 12 months ago by fabio

See #1450 for a duplicate.

comment:4 Changed 9 months ago by Deiz

  • Owner set to Deiz
  • Status changed from new to closed
  • Resolution set to fixed

In 12462:

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

comment:5 Changed 9 months ago by Deiz

  • Component changed from Core engine to UI & 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 Changed 9 months ago by k776

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.