[b24] Death msg being displayed *before* related damage msgs

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
haenlomal
Wayist
Posts: 27
Joined: Sat Apr 02, 2011 7:36 pm

[b24] Death msg being displayed *before* related damage msgs

#1 Post by haenlomal »

Defect Summary:

Death message is displayed before relevant damage messages.


Steps to Replicate:

1. Either land a killing blow on a NPC, or have a NPC land a killing blow on you.


Expected Results:

The damage dealt to the target is displayed, followed by the death message (i.e. "Player killed Wolf!")


Observed Results:

The death message is displayed first, followed by the damage. Among other things, if the player was the victim, it can make it hard to see how much damage was dealt to him/her by the NPC in the final blow.


Comments:

My LUA is not good (more into ISO C and Assembly programming myself), so I may be misintpreting things, by its seems that the function responsible for the displaying the damage messages (displayDelayedLogMessage) is run after the end of every tick. This means that the function currently responsible for displaying the death message, takeHit, will be run before it. Since both functions store source and target information, it may be possible to move the code displaying the death message from takeHit to displayDelayedLogDamage instead.

Then again, this is a minor annoyance at best, so if the work involved is too much, it maybe best to drop it. :P


Cheers,

-- The Haen.

Hedrachi
Uruivellas
Posts: 606
Joined: Tue May 11, 2010 8:58 pm
Location: Ore uh gun, USA

Re: [b24] Death msg being displayed *before* related damage

#2 Post by Hedrachi »

Not sure if it's related to this, but it sounds like it. Anyhow:

In b21-b24, whenever I save the game without exiting, the log shows "Saving done" before it shows Saving...

The savegame process works, it's just the messages are in reverse order.
Having satellite internet is a lot like relying on the processes described in those RFC's for your internet. Except, instead of needing to worry about statues interrupting your connection, this time you worry about the weather. I have satellite internet. Fun, no?

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: [b24] Death msg being displayed *before* related damage

#3 Post by tiger_eye »

Another thing I've noticed is that if you kill something that deals damage to you when hit (such as icy skin or damage shield) with flurry, then you will take damage from all six flurry hits--even if the enemy dies from the first hit.

Final Master
Sher'Tul
Posts: 1022
Joined: Fri May 21, 2010 8:16 pm
Location: Inside the minds of all
Contact:

Re: [b24] Death msg being displayed *before* related damage

#4 Post by Final Master »

tiger_eye wrote:Another thing I've noticed is that if you kill something that deals damage to you when hit (such as icy skin or damage shield) with flurry, then you will take damage from all six flurry hits--even if the enemy dies from the first hit.
That's not new, that's old, and intended.
Final Master's Character Guides
Final Master's Guide to the Arena
Edge: Final Master... official Tome 4 (thread) necromancer.
Zonk: I'd rather be sick than on fire! :D

haenlomal
Wayist
Posts: 27
Joined: Sat Apr 02, 2011 7:36 pm

Re: [b24] Death msg being displayed *before* related damage

#5 Post by haenlomal »

Hedrachi wrote:Not sure if it's related to this, but it sounds like it. Anyhow:

In b21-b24, whenever I save the game without exiting, the log shows "Saving done" before it shows Saving...

The savegame process works, it's just the messages are in reverse order.

No, this isn't related. The code for handling the saving of the game is totally different from the code segments dealing with game ticks and combat. That said, perhaps a similar bug exists in that section of that code.

-- The Haen.

Post Reply