TheForceEngine icon indicating copy to clipboard operation
TheForceEngine copied to clipboard

[Bug] Weapon Supercharge ammo font swaps from HD to Low Res

Open DatMaxNub opened this issue 1 year ago • 7 comments

Version: 1.10

Game: Dark Forces

Issue: With the HD Hud Enhancement on from the Remaster, grabbing a Supercharge switches the ammo counter font to the low res version. This doesn't happen on the Remaster.

Screenshot 2024-08-25 22-22-07

DatMaxNub avatar Aug 26 '24 02:08 DatMaxNub

@DatMaxNub TFE probably can't find the HD font asset. Did you verify this works in the Remaster?

luciusDXL avatar Aug 26 '24 17:08 luciusDXL

@luciusDXL just type LARANDY and the ammo font changes to the original blocky one.

mlauss2 avatar Aug 26 '24 19:08 mlauss2

@DatMaxNub TFE probably can't find the HD font asset. Did you verify this works in the Remaster?

Yes I verified that works correctly in the Remaster. The HD font shows up fine when not supercharged

DatMaxNub avatar Aug 27 '24 14:08 DatMaxNub

Ok, good to know, thanks.

luciusDXL avatar Aug 27 '24 20:08 luciusDXL

This is probably related to this:

[Error : HUD] Cannot load font 'SuperWep2.fnt'

This notice has been there since the introduction of enhanced.gob support.

easy enough fix for this bug:

index ab2b4bfa..91228cad 100644
--- a/TheForceEngine/TFE_DarkForces/hud.cpp
+++ b/TheForceEngine/TFE_DarkForces/hud.cpp
@@ -98,7 +98,7 @@ namespace TFE_DarkForces
                "ArmNum.fnt",
                "HelNum.fnt",
                "AmoNum2.fnt",
-               "SuperWep2.fnt",
+               "SuperWp2.fnt",
                "ArmNum2.fnt",
                "HelNum2.fnt",
        };

mlauss2 avatar Aug 28 '24 07:08 mlauss2

This is probably related to this:

[Error : HUD] Cannot load font 'SuperWep2.fnt'

This notice has been there since the introduction of enhanced.gob support.

easy enough fix for this bug:

index ab2b4bfa..91228cad 100644
--- a/TheForceEngine/TFE_DarkForces/hud.cpp
+++ b/TheForceEngine/TFE_DarkForces/hud.cpp
@@ -98,7 +98,7 @@ namespace TFE_DarkForces
                "ArmNum.fnt",
                "HelNum.fnt",
                "AmoNum2.fnt",
-               "SuperWep2.fnt",
+               "SuperWp2.fnt",
                "ArmNum2.fnt",
                "HelNum2.fnt",
        };

Really, just a typo on my part huh... :( - Oh I see how it happened, other assets just added the '2' afterward but SuperWep was already 8 characters. I can see why I made that mistake then.

Ok - I added a fix in for the next release, thanks for spotting it @mlauss2. @DatMaxNub this will be fixed in the next release, I will close this bug once the release happens.

luciusDXL avatar Aug 29 '24 04:08 luciusDXL

Hi

@luciusDXL @DatMaxNub

This can Temp. Fixed. Just Unpack the SUPERWP2.FNT from the Enhanced.Gob and rename SUPERWP2.FNT to SuperWep2.fnt, and paste the File in the Dark Forces Folder, dosn't work as Gob/Zipped Mod, the Filename is too long for the Gob Format!

LuciusDXL did make a small Mistake, TFE Search the SuperWep2.fnt instead of SUPERWP2.FNT. But i saw in the Code the SuperWp2.fnt is added now!

Btw. +2K Res. Users dosn't realy see the Diff.

Cheers!

TP555 avatar Sep 04 '24 16:09 TP555