Chaosforge Forum

DoomRL => Bug Reports => Topic started by: Kalir on October 13, 2011, 15:36

Title: [0.9.9.4] Dualreload strangeness
Post by: Kalir on October 13, 2011, 15:36

You dualreload your guns! There is a Supercharge Globe lying here. There is   
 a Supercharge Globe lying here.                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                  ###############               
                                                 ................               
                                         >       .................             
                                                +.................             
                                                #.........|}.......             
                                                #.............0....             
                                                #..................             
                                                #.......@.........             
                                                #......+........%.             
                                                #................               
                                                #................               
                                                 ...............               
                                                 ...0...........               
                                                  #############                 
 Con Smith                  Armor : modified blue armor [2/2] (183%) (B)       
 Health: 150% Exp:  3/50%   Weapon: modified pistol (2d4) [6/6] (T1)           
 cautious                                                    Phobos Base  Lev6 


Two Supercharge globes? It's my lucky day!

Yeah, simple enough. Game will output the stuff in your square twice on dualreload. As before, Windows version.
Title: Re: [0.9.9.4] Dualreload strangeness
Post by: Game Hunter on October 14, 2011, 07:28
This bug has already been reported here (http://forum.chaosforge.org/index.php/topic,4742.msg38612.html#msg38612). It hasn't yet been said to be reproducible, so this helps solidify when and why it occurs, thus the extra report is appreciated.
Title: Re: [0.9.9.4] Dualreload strangeness
Post by: Deathwind on October 14, 2011, 09:34
The game appears to handle multi-reload actions as a string of normal reloads and displays the terminal output for each one.
Title: Re: [0.9.9.4] Dualreload strangeness
Post by: thelaptop on October 14, 2011, 09:46
The game appears to handle multi-reload actions as a string of normal reloads and displays the terminal output for each one.
Well, yes and no.  Yes in the sense that the function used to reload is the same one for both of them, and there is no message queue flushing in between, so if there's an old message from the first reload, I think it will stay there.  No in the sense that the lowered cost of dual-reloading is still in action (lowered compared to the sum of the reloading times of each pistol).

Caveat: It has been a while since I last code-dived, so this is wholly my interpretation of what is going on.
Title: Re: [0.9.9.4] Dualreload strangeness
Post by: tehtmi on October 30, 2011, 13:01
It looks like this double message thing is related to keys that are bound to functions in keybindings.lua; it doesn't just happen with dual reloading.
Title: Re: [0.9.9.4] Dualreload strangeness
Post by: Hamster on November 01, 2011, 20:58
It looks like this double message thing is related to keys that are bound to functions in keybindings.lua; it doesn't just happen with dual reloading.

Same when switching weapons.
Code: [Select]
You swap your weapon. There is a Supercharge Globe lying here. There is a
Supercharge Globe lying here.
Code: [Select]
You prepare the rocket launcher! There is a Supercharge Globe lying here.
There is a Supercharge Globe lying here.
Code: [Select]
You don't have a combat knife! There is a Supercharge Globe lying here.
There is a Supercharge Globe lying here.