Page 1 of 1

Bad monster AI

Posted: Tue Aug 20, 2002 4:52 pm
by Lubor Kolar
I found Cursed Knights are tough, but very dumb. Picture on my site <a href="http://birdie.porcus.cz/knights.jpg">bi ... hts.jpg</a> shows my party (huh, can I say party when I have only one hero?) staying at 49,31,11 (according to DMute) looking at doors at 49,30,11. You can see Cursed Knight on the 49,29,11. What's the problem?
When I stay on 49,31,11 knight doesn't detect my presence and walks from left to the right and vice versa (from 46,29,11 to 50,29,11). If I want to lure him under the door, I need to stay in the doors (49,30,11) and wait until knight is at 49,29,11. Then he detects my party, turns and when I make backstep to the 49,31,11, he will follow me. But if I step back BEFORE he turns, he continues on his "guard walk" without following me.
Now I want to ask: is it planned behaviour or is it AI bug?

Re: Bad monster AI

Posted: Tue Aug 20, 2002 6:57 pm
by Gambit37
Looks like he thinks the door is closed...

Re: Bad monster AI

Posted: Wed Aug 21, 2002 9:30 am
by George Gilbert
Can you please send me a save-game in this exact position and I'll have a look at what the knight is thinking...!

Re: Bad monster AI

Posted: Wed Aug 21, 2002 1:47 pm
by Lunever
Although it could be smart for a mixed monster group not to go under a door as long as at least one of the monsters has missiles at its disposal.
<p>Komm zur bunten Seite der Macht! </p>

Re: Bad monster AI

Posted: Fri Aug 23, 2002 8:27 am
by Lubor Kolar
George, did you got my savegame? Do you know now what that knight is thinking? I am too curious :-)

Re: Bad monster AI

Posted: Fri Aug 23, 2002 9:33 am
by George Gilbert
Yes - thankyou very much; I'll take a look over the weekend and post something up on Tuesday (it's a Bank Holiday here in the UK on Monday!).

Re: Bad monster AI

Posted: Sun Aug 25, 2002 3:03 pm
by George Gilbert
Fixed for V0.21.

This was a really obscure bug by the way; there was a typo in the code replacing an "n" by a "s". The net result being that when a monster wanted to move due south the code was checking if the tile to the north was free. As you can see from your saved position this is exactly the state your knight was. To get through the door it had to move south, but as the tile due north was blocked so it thought it couldn't go south...

Re: Bad monster AI

Posted: Mon Aug 26, 2002 7:50 am
by Lubor Kolar
Ohh, thanks for fast reply! It is very good you fixed very high AC for knights because now will knight chase me instead of guard-walk :-)