Opened 11 years ago

Last modified 4 years ago

#1901 new defect

Chicken inside stone mine on neareastern badlands rms

Reported by: historic_bruno Owned by:
Priority: Should Have Milestone: Backlog
Component: Maps Keywords:
Cc: Patch:

Description (last modified by Imarok)

Noticed this while testing something, the AI has a bunch of units standing around since they can't reach the chicken, as seen here:


http://i.imgur.com/6NwiO02.jpg

The map happened to be neareastern badlands, but I suppose the same bug could occur on other maps as well.

Change History (6)

comment:1 by Adrián Chaves, 11 years ago

It can. I’ve seen chickens within the civic center as well.

comment:2 by FeXoR, 10 years ago

It's due to the lack of information available to RMS about entities/actors footprint/obstruction.

See: #1589

EDIT: The chickens/pigs inside CC should be fixed AFAIK. For the trees: The unitAI should check reachability of target entities (for entities outside the map or surrounded by cliffs).

Last edited 10 years ago by FeXoR (previous) (diff)

comment:3 by historic_bruno, 9 years ago

Any updates on this, now that the map generator has template info?

comment:4 by FeXoR, 9 years ago

There is a collision detection implementation in the forum: http://wildfiregames.com/forum/index.php?showtopic=16242&page=10#entry297569

Like suggested by sanderd17 I will rewrite it to only check if an entity WOULD collide. The collision grid, however, should be always generated because it's faster than regenerating it for each check seperately.

ATM it checks all entities WHILE they are placed (Good for debug, unusable for decisions at generation time).

Any suggestions welcome (especially if the space/time needed for the collision grid's generation is worse than the much longer time needed when the grid is generated several times but only if the functionality is used at all)

comment:5 by Imarok, 5 years ago

Component: UI & SimulationMaps
Description: modified (diff)

comment:6 by Bohaska, 4 years ago

I had a similar issue. My workers who gather wood decided it will be a good idea to try to chop a tree which was stuck in a stone mine. You can guess what happened.

Note: See TracTickets for help on using tickets.