![]() |
#1 |
Prophet
Join Date: Apr 2008
Posts: 2,831
![]() |
Tracking an annoying monster message bug
I'm experiencing an annoying bug in PWMAngband that I tried to track for a long time now without finding the cause. Sometimes, after a while or even when entering a new level, I get monster messages displayed out of their context. For example, I get "You hear a scream of agony!" immediately upon entering a level, or sometimes "The orc flees in terror!" when there's no orc around... and looking at the message log, I find that I've killed an orc a while back with "The orc screams in agony. The orc dies." messages displayed.
Looking at the code in mon-msg.c, I see little differences with the code in V. 1) stack_message(): I only check the last message, I'll change that to what is done in V 2) show_monster_messages(): I added a check if the message count is not zero, but that can probably go away That's pretty much it. There's a small bug in what_delay() which only checks for DIE and DESTROYED codes to delay the death messages, when it should check for MSG_KILL flag, so I'll fix that and see if it changes anything. Then I can look at all add_monster_message() calls to check the delay parameter. Maybe I'm missing something, like how and when show_monster_messages() is called. To all V players around, did someone catch the same problem during a normal Angband game? I don't recall seeing this during my games, but it seems to happen very randomly.
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant! |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug: can see monster, monster term doesn't show it. | Timo Pietilä | Vanilla | 4 | June 10, 2014 11:45 |
Stair message bug | intently | Sil | 6 | May 15, 2014 03:26 |
mimic message bug | fizzix | v4 | 7 | March 27, 2012 00:01 |
bug - wielding golden dagger message timing | ekolis | v4 | 3 | March 1, 2012 22:54 |
[D] Bug tracking help request. | APWhite | Variants | 1 | July 24, 2007 11:35 |