Brad Wardell's site for talking about the customization of Windows.

Since the beginning of Fallen Enchantress, people have claimed that the AI monsters will sit next to any enemy city and not attack.  They concluded that the monsters were giving AI players a pass. 

I have responded that I have looked at the code over and over and the monsters do not treat computer players any differently.

Well, tonight I’m seeing the behavior very starkly.

image

These ogres should be wiping out this AI city.

image

The code says that the ogres want to wipe out the AI city.

They are explicitly targeting it.

..

And yet..

The attack never happens.

As a result, the monsters are just standing there, stuck outside the city.   Now, I’ve got a few thousand hours of game time on this and this is the first time I’ve seen it where I knew it should be attacking (i.e. I’ve seen well defended cities with monsters outside).  So it’s not that common.  But based on forum feedback, it’s definitely something others have seen.

Now, I have to find out why they are being prevented from attacking.

Stay tuned..

 

Update 1: Seems to be path finding related. This is going to take some digging.

 

Update 2:

New check in.

+ AI Removed conflicting code that caused monsters to behave outside the control of the AI
+ AI Monsters more careful about leaving their lairs unguarded.
+ AI Updated the area threat evaluation to include stationed units.
+ AI champions significantly better about taking out enemy outposts and grabbing goodie huts on the way to another destination
+ AI better at building more lethal armies
+ AI much better at protecting its cities
+ AI fixed a bug where certain AI personalities had a chance of not building units when they should depending on the type of city
+ AI more aggressive about training units when it feels that city is vulnerable
+ AI no longer has a "auto patrol" system. Instead, the monster AI directly controls monsters and not the mobileobject system.
+ Fixed a pathfinding bug that caused monsters that were calculating a destination to not be able to set a destination IF the target was 1 tile away and it is a city.


Comments (Page 1)
3 Pages1 2 3 
on Jul 14, 2013

  should you choose to accept the mission.... (theme song running in background...)

Good luck!

 

on Jul 14, 2013

Unackowledged bug;

Monsters ruin only me.

It is pathfinding

on Jul 14, 2013

I'm glad that you are finding these issues. I can't imagine that it will be easy to ferret these problems out. Thanks for fixing the IsTargetWorthy tags or (who ever did that)

on Jul 15, 2013

Thanks Frogboy.  We may be crazy, but we aren't crazy..

on Jul 15, 2013

It's actually a problem if you're in a crazy world and you're supposedly sane.  Although I do think there's more good than bad in the world, especially now.

on Jul 15, 2013

Im glad you are checking into this, because in my games Ive seen this alot.  I tend to play with lots of monsters running around, and watching them just ignore the AI players, and yet come for me is very aggravating.  GL and thanks for starting this post to keep us in the loop!

on Jul 15, 2013

Omg, it's first time i see that dev talk with users on forum and explain problems.

keep up good work!

 

PS. yes, sometimes monsters are too passive with AI.

Also it'll be cool, that monsters in zone of city are more likely to attack this city (to protect it's lair).

on Jul 15, 2013

first seen in wom, then in FE , and now LH, monsters favour the AI(and not attack) and attack humans at first sight.

check, are they monsters?

if they do not attack ai and do attack humans, then yes they ARE monsters.

thanks for finally seeing the issue and even posting that you have seen the issue, and are even working on it

thanks frogboy

harpo

 

on Jul 15, 2013

Pathfinding sounds like it should be easy, but isn't.  I have noticed that there is a weird bias towards attacking north-west.

on Jul 15, 2013

Could it have anything to do with the AI factions and monsters going at the same time?

on Jul 15, 2013

The frustrating thing is that it's 1 tile away.  How hard is that to find  path for?

on Jul 15, 2013

If it is pathfinding, I would guess that it's trying to pathfind to the other side of the city.  It can't do that because the city takes up the tiles between the ocean and the gorge.  So the monsters just stand there scratching their butts.

Hmm, could it be that AI improvements are somehow blocking monsters from pathfinding into cities?  So when the player takes the city over the improvements are destroyed and then the pathfinding succeeds and the monster beelines to the city.

on Jul 15, 2013

hedetet

Unackowledged bug;

Monsters ruin only me.

It is pathfinding

Actually the bug affects everyone equally. It just seems like it only affects you because you see cases where there are monsters sitting right outside a city unable to attack.  Monsters DO attack cities very often. But there is a case (which I think I've tracked down) where the pathfinding gets stuck.  It would happen to a human too but humans tend to deal with monsters before they get to their front door.

on Jul 15, 2013

Frogboy
The frustrating thing is that it's 1 tile away.  How hard is that to find  path for?

I feel and see the pain. When the AI targets the city, is it trying to target the closest city tile or is it targeting another tile within the city that it cannot reach? From your screenshot it may be that the Ogre is trying to target the part on the other side of the city that it cannot reach since there is a chasm in the way. The center of that city, if I put a tack in it would be on that small building on the other side.

on Jul 15, 2013

sweatyboatman

If it is pathfinding, I would guess that it's trying to pathfind to the other side of the city.  It can't do that because the city takes up the tiles between the ocean and the gorge.  So the monsters just stand there scratching their butts.

Hmm, could it be that AI improvements are somehow blocking monsters from pathfinding into cities?  So when the player takes the city over the improvements are destroyed and then the pathfinding succeeds and the monster beelines to the city.

That is what I'm thinking too.

3 Pages1 2 3