Page 1 of 1

Trouble with custom fonts (SOLVED)

Posted: Mon Nov 06, 2017 8:21 am
by Exosphere
As the title states, I've been have some trouble with implementing custom fonts. I've been testing the number font from the ICARUS wad in my mod, and even with using the ZDoom wiki in how to create the necessary lump, the new font still wont appear for some reason. I've tried having the font as .lmp and .png, yet neither work.

Here is the code form the FONTDEF file.

Code: Select all

STATUSFONT
{
0 STTNUM0
1 STTNUM1
2 STTNUM2
3 STTNUM3
4 STTNUM4
5 STTNUM5
6 STTNUM6
7 STTNUM7
8 STTNUM8
9 STTNUM9
% STTPRCNT
- STTMINUS
	
NOTRANSLATION 109
}
Any thoughts?

Re: Trouble with custom fonts

Posted: Mon Nov 06, 2017 8:55 am
by Graf Zahl
No data, so no thoughts. I'm not a mind reader and cannot look into your unposted mod.

Re: Trouble with custom fonts

Posted: Mon Nov 06, 2017 9:55 am
by Exosphere
Graf Zahl wrote:No data, so no thoughts. I'm not a mind reader and cannot look into your unposted mod.
I don't mean to sound rude, but what else do I need to include? There doesnt seem like anything else that would be necessary in my mind, however I should mention that all the font files (the .lmp files) are located in a folder, and the FONTDEF is outside the folder. Here is the basic file structure of my mod:

Code: Select all

Models (FOLDER)
Sprites (FOLDER) -----> The font files are in here
Decorate (FOLDER)
ACS (FOLDER)
Sounds (FOLDER)
README.txt
MODELDEF
DECORATE
GAMEINFO
GLDEFS
SNDINFO
KEYCONF
LOADACS
FONTDEFS
DEHACKED.lmp
TEXTURES

Although, I can send you a PM with my mod. I know this will sound stupid, but I am slightly hesitent to post my mod openly on the forums, even in its incomplete state.

Re: Trouble with custom fonts

Posted: Mon Nov 06, 2017 12:34 pm
by Sarah
Try moving the font files to a "graphics" folder.

Re: Trouble with custom fonts

Posted: Mon Nov 06, 2017 2:56 pm
by Exosphere
Nero wrote:Try moving the font files to a "graphics" folder.
That did the trick! Thank ya! Just so I know for the future, should I put all pngs/lmps for fonts, and other HUD/UI stuff, in the "Graphics" folder from now on?

Re: Trouble with custom fonts

Posted: Mon Nov 06, 2017 6:13 pm
by Kappes Buur
Graf Zahl's comment stands, simply because you did not furnish enough information in your inital post.
How were we supposed to know which format you used for your map, which then became clear with your next post.

But yes, for the zip or pk3 format,
custom font images, doom format, png, etc. go into GRAPHICS.
Then the fonts you want to use are specified in FONTDEFS.

Likewise with sounds,
custom sounds, mp3, flac, ogg, etc, go into SOUNDS.
Then the sounds you want to use are specified in SNDINFO.