r3875 Change in handling of HUDMessage

Bugs that have been investigated and resolved somehow.

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.
Post Reply
User avatar
Enjay
 
 
Posts: 27140
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

r3875 Change in handling of HUDMessage

Post by Enjay »

Noticed in my own Marine Assault and Overlord WADs plus a few others I had kicking around my hard drive. (Best to check Overlord because it contains the scripts in the zip - I forgot to include them with Marine Assault).

This:

Code: Select all

hudmessage (s:"Right Marine.\n Here are your orders.\n "; 
			HUDMSG_PLAIN, 3, CR_GOLD, 1.5, 1.0, 3.0, 0.05, 1.0);
Used to put a message on screen that was easy to read. If you try one of the above WADs in the official release of ZDoom, it is still easy to read the messages put up at the start. However, try it in an SVN build of ZDoom and the messages are difficult to see, I think because they are being drawn (very) translucent.
Spoiler: screenshots
Checking the Wiki, this could be my error because I note that HUDMSG_PLAIN doesn't seem to take all the arguments that I have used - but I must have got them from *somewhere*. Curse HUDMessage and its confusing parameters list. :P

As I said, this is something that has changed since the official versions of ZDoom and GZDoom were released but I'm not sure exactly which version caused the problem. r3863 (the oldest build that I have handy) shows the problem so the change occurred before that. [edit] r3821-3826 look likely. [/edit]
Blue Shadow
Posts: 5046
Joined: Sun Nov 14, 2010 12:59 am

Re: r3875 Change in handling of HUDMessage

Post by Blue Shadow »

After holdtime comes alpha for HUDMSG_PLAIN, which is 0.05 as you have it in that code.

Edit: Of course, the alpha was introduced in r3825.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: r3875 Change in handling of HUDMessage

Post by randi »

Enjay, Enjay, Enjay. What is this world coming to?

Fixed in r3876 by making the alpha conditional on another flag, just because Enjay's probably not the only one who did this.
User avatar
Nash
 
 
Posts: 17501
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: r3875 Change in handling of HUDMessage

Post by Nash »

I was freaking out earlier why my sun flares weren't working anymore, turns out I now need to add the HUDMSG_ALPHA flag. *whew* that was close. :D
User avatar
Enjay
 
 
Posts: 27140
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: r3875 Change in handling of HUDMessage

Post by Enjay »

Thanks for the fix. :)

Were the extra parameters that I used ever valid? I can't figure out why I would have used them if I hadn't seen them somewhere.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: r3875 Change in handling of HUDMessage

Post by Project Shadowcat »

Enjay wrote:Thanks for the fix. :)

Were the extra parameters that I used ever valid? I can't figure out why I would have used them if I hadn't seen them somewhere.
Only if they typed on to the screen, if I remember right.
Post Reply

Return to “Closed Bugs [GZDoom]”