Simple HUD Add-ons [Updated May 18, 2022]

For high-res texture/sprite projects, sprite-fix patches, music add-ons, music randomizers, and other graphic/sound-only projects.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
StroggVorbis
Posts: 859
Joined: Wed Nov 08, 2017 4:23 pm
Discord: StroggVorbis#2466
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: Simple UI Add-ons [Ammo List, Crosshair HP, Level Info]

Post by StroggVorbis »

Any plans for LevelInfo & AmmoInfo to support Heretic, Hexen and Strife in the future?
Tekish
Posts: 130
Joined: Tue Jun 28, 2016 6:31 pm

Re: Simple UI Add-ons [+Heretic, Hexen, Strafe]

Post by Tekish »

I went ahead and added support for those 3 games in the latest versions of AmmoInfo and LevelInfo.
User avatar
StroggVorbis
Posts: 859
Joined: Wed Nov 08, 2017 4:23 pm
Discord: StroggVorbis#2466
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: Simple UI Add-ons [+Heretic, Hexen, Strafe]

Post by StroggVorbis »

Wow, that was fast, thank you for the quick response! :)
User avatar
SiFi270
Posts: 436
Joined: Tue Feb 10, 2015 2:51 am
Location: Does anyone put a serious answer here?

Re: Simple UI Add-ons [+Heretic, Hexen, Strafe]

Post by SiFi270 »

I'd really appreciate it if in addition to Heretic it also supported Sgt. Shivers' Shazam addon, which uses the same kinds of ammo and only changes the weapon actors for cosmetic reasons.
Tekish
Posts: 130
Joined: Tue Jun 28, 2016 6:31 pm

Re: Simple UI Add-ons [+Heretic, Hexen, Strife]

Post by Tekish »

Added. I didn't have time to test it, but it should work. Let me know if it doesn't.
User avatar
DevilBlackDeath
Posts: 170
Joined: Fri Sep 06, 2013 2:40 am

Re: Simple UI Add-ons [+Heretic, Hexen, Strife]

Post by DevilBlackDeath »

Hello,

Coming back with the sizing suggestion for crosshair hp ^^ Couldn't you use integer scaling to avoid distortion ? Of course scaling with floats will be problematic for pixel perfect texture/fonts... But if you scale it by 2.0, 3.0... It shouldn't cause any issue, and whatever rick you use to avoid distortion should be intact ;)

Other than that pretty amazing stuff. Also, purely from a technical standpoint (as I'd guess it would take a LOT of effort), could the ammo list addon be modified to be "universal" ?

Congrats on this, it's been in my global autoload for a few days and I don't plan on removing it :D
Tekish
Posts: 130
Joined: Tue Jun 28, 2016 6:31 pm

Re: Simple UI Add-ons [+Heretic, Hexen, Strife]

Post by Tekish »

Thanks, I'm glad you find it useful.

Regarding your suggestions; they both seem to require ZScript, and I've been hesitant to use it because these add-ons function with Zandronum (which currently doesn't support ZScript).

Integer scaling without distortion depends on the resolution. The math to determine valid sizing isn't reproducible in ACS, so it needs to come from the engine itself, and as far as I can tell the only way to get that information is with ZScript. I released an update to CrosshairHP to work around this. I manually resized all of the graphics and implemented an option to double the size without relying on the engine's scaling. It's an inelegant solution to the problem, but it works.

Universal ammo recognition is a bit more problematic. It's impossible to automatically determine the context in which mods use ammunition, so a universal solution would still require compatibility tweaks to remove excess or unused ammo types, ammo based on player classes, or add others that simply aren't easily detectable. It's because of this that even if I were open to using ZScript, I probably wouldn't implement a universal solution because it wouldn't truly be universal.
User avatar
DevilBlackDeath
Posts: 170
Joined: Fri Sep 06, 2013 2:40 am

Re: Simple UI Add-ons [+Heretic, Hexen, Strife]

Post by DevilBlackDeath »

Tekish wrote:Thanks, I'm glad you find it useful.

Regarding your suggestions; they both seem to require ZScript, and I've been hesitant to use it because these add-ons function with Zandronum (which currently doesn't support ZScript).

Integer scaling without distortion depends on the resolution. The math to determine valid sizing isn't reproducible in ACS, so it needs to come from the engine itself, and as far as I can tell the only way to get that information is with ZScript. I released an update to CrosshairHP to work around this. I manually resized all of the graphics and implemented an option to double the size without relying on the engine's scaling. It's an inelegant solution to the problem, but it works.

Universal ammo recognition is a bit more problematic. It's impossible to automatically determine the context in which mods use ammunition, so a universal solution would still require compatibility tweaks to remove excess or unused ammo types, ammo based on player classes, or add others that simply aren't easily detectable. It's because of this that even if I were open to using ZScript, I probably wouldn't implement a universal solution because it wouldn't truly be universal.


Well thanks for going through the trouble of making a 2x option available :D That will really help with some mods ^^ (although I just completed a run of D4T + TUTNT Supportive Edition, and the original size was just perfect and fitting for that purpose ;) )

Yeah I figured that much for AmmoInfo =/ I would make a ZScript version if I had any skill with it. I'm a programmer but I still have to touch ZScript (although I plan to take a look at it once I'm done with fixing War Against the Doomed)
User avatar
m8f
 
 
Posts: 1385
Joined: Fri Dec 29, 2017 4:15 am
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Other Linux 64-bit
Location: Siberia (UTC+7)

Re: Simple UI Add-ons [+Heretic, Hexen, Strife]

Post by m8f »

[imgur]https://imgur.com/cXpsXGB[/imgur]

That's exactly what was missing in Heretic statusbar! AmmoInfo and LevelInfo do a great job filling empty space with useful information. Thanks for making these.

One suggestion: (optional) aligning by "/"? You can see how it looks at the screenshot above.
[spoiler=example format function]

Code: Select all

function str format(int leftNumber, int rightNumber)
{
    str fill  = "   ";
    str left  = strparam(d:leftNumber);
    str right = strparam(d:rightNumber);
    left  = StrParam(s:StrMid(fill, 0, 3 - StrLen(left)),  s:left);
    right = StrParam(s:StrMid(fill, 0, 3 - StrLen(right)), s:right);
    return strparam(s:left, s:"/", s:right);
[/spoiler]
Tekish
Posts: 130
Joined: Tue Jun 28, 2016 6:31 pm

Re: Simple UI Add-ons [Updated June 27, 2018]

Post by Tekish »

Thanks. I added a value alignment option in the latest versions of AmmoInfo and LevelInfo that should do what you're looking for.
User avatar
SiFi270
Posts: 436
Joined: Tue Feb 10, 2015 2:51 am
Location: Does anyone put a serious answer here?

Re: Simple UI Add-ons [Updated June 27, 2018]

Post by SiFi270 »

I'm sorry, can I have a link to the previous version of levelinfo? I had a game in progress with it, but after replacing it with the new one I can't load my save any more because the ACS is different.
Tekish
Posts: 130
Joined: Tue Jun 28, 2016 6:31 pm

Re: Simple UI Add-ons [Updated June 27, 2018]

Post by Tekish »

Here you go. Let me know once you've got it because it's an expiring link.
User avatar
SiFi270
Posts: 436
Joined: Tue Feb 10, 2015 2:51 am
Location: Does anyone put a serious answer here?

Re: Simple UI Add-ons [Updated June 27, 2018]

Post by SiFi270 »

I got it, but it doesn't seem to be the right one. My save's looking for a version with 5220 bytes, while the current one has 6220 and the reupload above has 5740. There's a good chance I'm just awful at keeping track of updates to mods.
Tekish
Posts: 130
Joined: Tue Jun 28, 2016 6:31 pm

Re: Simple UI Add-ons [Updated June 27, 2018]

Post by Tekish »

It could be 1.07. This is the only other version I still have.
User avatar
SiFi270
Posts: 436
Joined: Tue Feb 10, 2015 2:51 am
Location: Does anyone put a serious answer here?

Re: Simple UI Add-ons [Updated June 27, 2018]

Post by SiFi270 »

Same result, unfortunately. Luckily it was Eternal Doom, so when I restart it the puzzles should still be fresh in my head, and the nature of maps 13 and 14 mean I don't have to start from the very beginning.

Return to “Graphic/Audio Patches”