View Single Post
Old January 16, 2009, 13:38   #3
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,947
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by tigen View Post
I'll just throw out a few things I noticed...

1) Sometimes after a monster becomes afraid, instead of running away it steps diagonally adjacent to you. This is if you are in an open room right next to it. I suspect it either is trying to run behind you which doesn't make sense in these instances, or else the AI code decided there was no safe place to go and got confused. I helped fix something like this in NPP so maybe I can help with this too... first I have to get a save game where it happens. The monster AI code is written in an overly-convoluted way IMO.

2) I do have a save game here which shows odd behavior. These snagas will shadow my movements but do not attack unless I give them a free turn. For example if you just walk right and left it does the same instead of just attacking. The second one will come along and they both will do this dance.
http://csua.berkeley.edu/~dcs/angban...ment-3.1.0beta

I am supposedly a trained software developer myself so hopefully I can try to contribute myself to debugging stuff like this. I got the svn sync and will try to find some time.
I have no idea how the monster AI code works, so any help with fixing bugs or weird behaviour here is much appreciated. Otherwise, it won't be touched until after the 3.1 series, just because there's plenty of other stuff to be getting on with in the meantime.
takkaria is offline   Reply With Quote