Bad monster AI

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Lubor Kolar
Artisan
Posts: 178
Joined: Thu Jan 25, 2001 10:21 pm
Location: Prague, Czech Republic, Europe

Bad monster AI

Post 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?
User avatar
Gambit37
Should eat more pies
Posts: 13769
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Bad monster AI

Post by Gambit37 »

Looks like he thinks the door is closed...
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Re: Bad monster AI

Post 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...!
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Re: Bad monster AI

Post 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>
Parting is all we know from Heaven, and all we need of hell.
User avatar
Lubor Kolar
Artisan
Posts: 178
Joined: Thu Jan 25, 2001 10:21 pm
Location: Prague, Czech Republic, Europe

Re: Bad monster AI

Post by Lubor Kolar »

George, did you got my savegame? Do you know now what that knight is thinking? I am too curious :-)
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Re: Bad monster AI

Post 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!).
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Re: Bad monster AI

Post 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...
User avatar
Lubor Kolar
Artisan
Posts: 178
Joined: Thu Jan 25, 2001 10:21 pm
Location: Prague, Czech Republic, Europe

Re: Bad monster AI

Post 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 :-)
Post Reply