[4.0.0] Where's the "Ouch" face?
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
- A_D_M_E_R_A_L
- Posts: 284
- Joined: Sun Apr 16, 2017 2:55 am
- Preferred Pronouns: He/Him
[4.0.0] Where's the "Ouch" face?
The "Ouch" face doesn't work as it should in GZD. Mod used in this screenshot: Pandemonia
https://cdn.discordapp.com/attachments/ ... m_4246.png
https://cdn.discordapp.com/attachments/ ... m_4246.png
Re: [4.0.0] Where's the "Ouch" face?
Seems to be. Without mods loaded and simply firing the rocket launcher at the floor in front of me, I was able to reliably get the ouch face in g3.3pre39-g2f45218 (which I happen to have installed for no really good reason) but in 4.0.0 and today's git build, I was not able to get the ouch face despite trying repeatedly. All I ever got was the pain grimace or straight to the dead face.
- Player701
-
- Posts: 1640
- Joined: Wed May 13, 2009 3:15 am
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: [4.0.0] Where's the "Ouch" face?
Confirmed. Bisecting indicates it probably started to happen in this commit... yeah, that one again. Some adjacent commits could not be tested because they crash as soon as the game starts, but they don't seem to contain any changes that may have triggerred this bug. On the other hand, the commit I linked to has this.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [4.0.0] Where's the "Ouch" face?
The ouch face and event handlers do not share any code, though, so it's more likely one of the adjacent commits.
Of course, the event handler code made quite a mess of all code it originally touched, so who knows...
Of course, the event handler code made quite a mess of all code it originally touched, so who knows...
- Player701
-
- Posts: 1640
- Joined: Wed May 13, 2009 3:15 am
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: [4.0.0] Where's the "Ouch" face?
The call to StatusBar->CallTick has been moved to another place within the P_Ticker function since that commit (see second link), and that could be the cause of the bug. I haven't looked deeper into the whole call chain there, though. What I can say for sure is that the value of the mugshot's FaceHealth field and the player's health appear to be always synchronized but the ouch face code expects them to be different at times.
Re: [4.0.0] Where's the "Ouch" face?
Indeed, the problem is the value of ouch is always false. This is the consequence of the mentioned change, i.e. the move of StatusBar->CallTick() line.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [4.0.0] Where's the "Ouch" face?
That piece of code is a textbook example of depending on side effects from other places. The main problem being that the old order of things was wrong - the status bar never got the full state of the frame to be displayed. Unfortunately the mug shot code is an area where my knowledge is limited because I only use the alternative HUD myself which doesn't have it.
So what piece of code needs to be moved where? I'm not really sure.
So what piece of code needs to be moved where? I'm not really sure.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [4.0.0] Where's the "Ouch" face?
I changed the setup but I'm afraid this has to be tested by someone else, I'm not sure it's 100% correct.
- Player701
-
- Posts: 1640
- Joined: Wed May 13, 2009 3:15 am
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: [4.0.0] Where's the "Ouch" face?
I'm not seeing any new commits, and for me the bug is still present...
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [4.0.0] Where's the "Ouch" face?
Damn, the change got lost in a branch switch, it seems.
- Player701
-
- Posts: 1640
- Joined: Wed May 13, 2009 3:15 am
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: [4.0.0] Where's the "Ouch" face?
Just wanted to confirm that this bug is still present as of GZDoom 4.1.0.
- A_D_M_E_R_A_L
- Posts: 284
- Joined: Sun Apr 16, 2017 2:55 am
- Preferred Pronouns: He/Him
Re: [4.0.0] Where's the "Ouch" face?
Still present in 4.1.1
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [4.0.0] Where's the "Ouch" face?
Obviously, condidering nothing has been done about it yet.
- Player701
-
- Posts: 1640
- Joined: Wed May 13, 2009 3:15 am
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: [4.0.0] Where's the "Ouch" face?
I'm terribly sorry for the bump, but is there any chance this could be fixed in the next release? I really miss the good old ouch face...
Re: [4.0.0] Where's the "Ouch" face?
If you have any ideas how to fix it and you think you can submit a PR within the next few hours, sure. It can be included.