Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old January 16, 2009, 06:37   #1
tigen
Apprentice
 
Join Date: May 2007
Posts: 53
tigen is on a distinguished road
3.1.0beta monster behavior and a few other things

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.
tigen is offline   Reply With Quote
Old January 16, 2009, 09:25   #2
tigen
Apprentice
 
Join Date: May 2007
Posts: 53
tigen is on a distinguished road
I think I see the problem with my #2, due to the monster group code. I'll try posting a ticket on the trac system instead of blathering about it here.
tigen is offline   Reply With Quote
Old January 16, 2009, 14:38   #3
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,936
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
Old January 17, 2009, 08:30   #4
tigen
Apprentice
 
Join Date: May 2007
Posts: 53
tigen is on a distinguished road
I guess the #1 in my post can be due to monsters that have one of the RAND_ flags making it do a random movement sometimes, which could make it step next to me instead of running. That seems like a weird behavior trait to have if something is scared and wants to run away. These flags are on quite a lot of monsters. Ah well.
tigen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Monster editor? GSN Vanilla 11 December 2, 2008 19:13
The fear the hero strikes into the puny things that dare get in his/her way. Irashtar Vanilla 2 October 22, 2008 15:54
Hound Behavior Zero Vanilla 13 February 13, 2008 00:29
Monster AI Malak Darkhunter Vanilla 3 December 9, 2007 08:05
new to Angband, found a few things odd... Mongler Vanilla 13 October 13, 2007 08:23


All times are GMT +1. The time now is 15:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.