Opened 8 years ago

Last modified 5 years ago

#3562 new task

Decide whether resources/corpses should have an obstruction, and if so how and which.

Reported by: wraitii Owned by:
Priority: Should Have Milestone: Backlog
Component: Simulation Keywords: design pathfinding
Cc: Patch:

Description (last modified by mimo)

This ticket follow #3530 and [17156]

In [17156] I made it so that entities that become resources upon death (chicken...) get a passable (it does not block anything) static obstruction. This fixes a bug and makes the behavior saner.

We should decide how to generalize this behavior: should some entities get a blocking obstruction? How do we decide the size of this obstruction?

Do we want this behavior for corpses too? If so it could go in decay.

Change History (9)

comment:1 by elexis, 8 years ago

  • Player-created animals like sheep should not block, as the user could block siege with a ton of dead sheep
  • Whale, sharks, fish and other sea animals should not block, no matter if alive or dead IMO
  • I wouldn't mind other corpses block, especially elephants

Notice it is important to assign the correct radius to the different corpse types, otherwise units won't be gathering at the correct place.

comment:2 by elexis, 8 years ago

As mentioned in #3530, gatherable corpses are only one case where obstructions with clearance 0 can occur, there might be other cases we don't know about yet.

That's why we should still add the warning and ignore obstructions with clearance zero, i.e. attachment:t3530_throw_warnings.patch:ticket:3530 and attachment:testLine.patch:ticket:3530

comment:3 by mimo, 8 years ago

Description: modified (diff)

comment:4 by Itms, 8 years ago

Keywords: pathfinding added

comment:5 by wraitii, 8 years ago

In 17166:

Make "no formation" the default setting but keep formations activated to help pathfinding in A19. Use at your own risk. Refs #3505 and #3565.

Also make rabbit, chicken and shark no longer obstruct movement, to further help with pathfinding. These may or may not be udpated later. Refs #3562. Fixes #3497.

comment:6 by mimo, 8 years ago

r17156 lead to resources which are inaccessibles when building a structure upon a resource corpse, as now they does not block anymore construction. That's a problem for the AIs which try to reach them. We should

  • either make resource corpses block construction
  • or destroy them when starting to build, but the present check in Foundation.js does not catch them.

comment:7 by mimo, 8 years ago

In 17426:

petra: improve the detection of stuck gatherers, refs #3562

comment:8 by Itms, 8 years ago

Milestone: Alpha 20Backlog

comment:9 by Imarok, 5 years ago

Component: UI & SimulationSimulation

Move tickets to Simulation as UI & Simulation got some sub components.

Note: See TracTickets for help on using tickets.