Tutorial: Customizing your HUD in DoD:S


Whiskas
09-28-2005, 08:01 PM
I promised to make a tutorial for this, and here it is.

The appearance of your HUD and menus are controlled by lots of files in the "Resources" folder of your dod folder. I'll save you the inconvenience of reaching for your greasy mouse and finding out that those files aren't in that folder because they're inside the GCF file for dod. You can download all the files you'll need to mod your HUD Here:

http://webdisk.ucalgary.ca/~pgkarski/public/resource.zip

Note that those are the UNMODIFIED files that came with everyone's installation, theyre just extracted. Go ahead and extract the contents of that zip into your \day of defeat source\dod\ folder.

With these files you can change fonts, colors, size, and positioning of anything in your HUD and menus. So if want, you can have your health bar double as a crosshair, or have your ammo counter numbers show up in Comic Sans font colored neon pink. It's not that hard to change and anyone without cabbage for brains can figure it out.

All you do is edit these files in your favorite text editor, such as notepad, and save it. Then start dod to see your changes.

All the files are structured the same, each HUD object has it's own code block denoted by { } braces. Inside these are the properties for that HUD object which are pretty self explanatory.

Lets look at an example:


"ChatFont"
{
"1"
{
"name" "Microsoft Sans Serif"
"tall" "12"
"weight" "700"
"yres" "480 599"
"dropshadow" "1"
}
"2"
{
"name" "Microsoft Sans Serif"
"tall" "13"
"weight" "700"
"yres" "600 767"
"dropshadow" "1"
}
"3"
{
"name" "Microsoft Sans Serif"
"tall" "15"
"weight" "700"
"yres" "768 1023"
"dropshadow" "1"
}
"4"
{
"name" "Microsoft Sans Serif"
"tall" "20"
"weight" "700"
"yres" "1024 1199"
"dropshadow" "1"
}
"5"
{
"name" "Microsoft Sans Serif"
"tall" "24"
"weight" "700"
"yres" "1200 10000"
"dropshadow" "1"
}
}


That mess up there controls the font for chat text. The "name" property is the font of the text, "tall" is the height, "weight" is how fat the text is, "yres" denotes which font settings will be used depending on your screen height. So for those of us playing in 1024x768, the setting "3" will be used since yres="768 1023", dropshadow is a boolean value which denotes whether a shadow appears behind the text.

Lets look at another type of HUD property type:


"HudHealthGreen" "85 112 66 255"
"HudHealthYellow" "244 210 17 255"
"HudHealthRed" "180 20 20 255"
"HudHealthBG" "255 255 255 128"
"HudHealthBorder" "0 0 0 255"


The stuff above controls the color of your health bar. Your health bar comes in three colors, depending on your health, so if you're almost dead "HudHealthRed" is used, if you just spawned and weren't spaded by your friendly neighborhood asshat TKer, your health will be full and "HudHealthGreen" will be used. The first three numbers are the RGB (Red Blue Green) mixture where 0 is none of that color, and 255 is the aboslute max of that color. 0 0 0 is black and 255 255 255 is white for instance. The last number indicates the transparency of the color, where 0 is completely transparent, and 255 is fully opaque, you can open up paint and play with the color box to choose your colors.

Alright if you understood that then you're ready to dig around the files in the resource folder and change your settings as you wish, if you screw up just delete the file and dod will default to the originals.

To get you started here are some of the files you can mod and what they do:

ClientScheme.res - controls the color of parts of your HUD/menus and also controls the color/size/font of all text in the game.

HUDPlayerStatusHealth.res - controls the size and position of the health portion of your HUD.

HUDPlayerStatusPanel.res - This looks like the master file for your HUD, things like ammo, health and other stuff are in here, this one is probably the first file you should start modding.

There are lots more files, but I'd rather play dod than stare at text files figuring out what they do, so I'll let you explore them yourself.

For now I'll leave you a small modification I made to the HUD, I changed the font from Verdana to Sans Serif and made it smaller, also changed the color of the health bar to make it easier to read and changed the coloring and highlighting in the scoreboard, like you see in these screenshots:

http://www.supload.com/free/dod_flash0000-170639.jpg/view/
http://www.supload.com/free/dod_flash0002.jpg/view/

If you like what I changed, just put the following file:


http://webdisk.ucalgary.ca/~pgkarski/public/ClientScheme.res

into your /dod/resources/ folder. Note that it only works for people playing in 1024x768 because I was too lazy to change it for other resolutions.


The rest of this thread is for questions about modding your HUD, and also showing off what you modded yourself, preferably with screenshots and a download.

pramjockey
09-28-2005, 08:09 PM
Alas, I must have cabbage for brains.

:(







Strong work, Whiskas. You've obviously put a lot of work into this.

psykotic
09-28-2005, 08:18 PM
Admittingly, I haven't read this whole thread yet - thanks for the info though. I'll definitely finish reading it and put the info to good use :D

DoDMovies
09-28-2005, 08:19 PM
basically, your screen is a grid with x and y coordinates, and you change these values to move your hud around.

PickItUp
09-28-2005, 11:42 PM
MAO!

Originally posted by pramjockey
Alas, I must have cabbage for brains.

:(

Tonedef
09-29-2005, 01:01 AM
Could you just tell me how to make the scoreboard darker pleeeeaaase? I am tired of having to stare at the sun or find a dark corner to see my score if I am US.

I have 1152x864 if that helps :).

DoD-Sauce
09-29-2005, 01:04 AM
Indeed! The colour was a bad choice.. Almost impossible to decipher at most points.. Will this be looked at?

(I'm aware it's more than likely that this been asked about a million times, so i won't give a rant about it. ;p)

DeaconBlues
09-29-2005, 06:10 AM
Whiskas... For real man...

THATS FANTASTIC.... I mean really nice... Good work.

Can't wait to see what some others come up with. I too want to make "my own."

Make sure everyeone shares!

Zao
09-29-2005, 07:49 AM
Stuck. Because it's good work and needs to be kept handy :)

Jonny_doe
09-29-2005, 01:31 PM
Does anyone know which font adjusts the size of netgraph 3 ?? i've been changing them but i can't seen to make this smaller

(99)
12-13-2005, 11:54 AM
Wiskas - thanks for the post -

I've been trying to change the font for my player name with no luck. From your post I assume it's in ClientScheme.res but I can't find the right entry - anyone help out??

THX (99)

DarkPenfold
06-29-2006, 11:44 AM
I'm still looking for some reliable info on how to edit the scoreboard and netgraph fonts. Any links would be nice :)

INsane_dod
07-08-2006, 07:23 PM
Originally posted by DarkPenfold
I'm still looking for some reliable info on how to edit the scoreboard and netgraph fonts. Any links would be nice :)

The netgraph font... I have had a look at this before and it seems there is no way to change this.. not in a res file anyway. I still look every now and again but it may be "built in" to one of the games .dll files :(

The scoreboard... EDIT: Done, mostly complete... more info needed is the team color problem.

See this page for scoreboard info. (http://dodbits.com/index.php?option=com_content&task=view&id=33&Itemid=37)

INsane_dod
07-15-2006, 06:30 PM
Another boring snippet of info, the functions in the ClientScheme.res file.

It's messy but factual, not a written web page just the contents of a real working standard ClientScheme.res on a text page.

If you copy and paste all its contents over your ClientScheme.res it will work.

Best way to use this is to open this link (http://www.dodbits.com/downloads/random/DoDs_ClientScheme_functions.txt) in your browser.

Then use the browsers "find" function to search for a function.

Say you need to know what colors are involved with the kills deaths caps area.

Just put in "kills" and see what pops up, (make sure you search ALL the lines so you get ALL the info) the word will be found in the description... slide to the left of that to see the details of the control for that area.

If you are unsure of what changes a function does, just change it's color to "255 25 252 200" a bright pink and see what has changed.

The standard color is repeated to the right beside the real one so you can copy/paste it back....

"HudHealthBorder" "255 255 255 255" //"255 255 255 255" * White, Health bar boarder.

Cheers

INsane

INsane_dod
08-15-2006, 09:49 AM
Originally posted by DarkPenfold
I'm still looking for some reliable info on how to edit the scoreboard and netgraph fonts. Any links would be nice :)

Found a way to edit the Netgraph Font DarkPenfold :)

See this page (http://dodbits.com/index.php?option=com_content&task=view&id=40&Itemid=37) for a guide. Have not found a way to edit the color of the netgraph font... but getting down the size is possible :)

Also new is this page (http://dodbits.com/index.php?option=com_content&task=view&id=39&Itemid=37) on console font size and color.

enjoy

INsane.

blaznasn
01-06-2007, 02:40 AM
anyone know of a way to edit the text size of the in game menus that popup when someone kills the other. the ones in the upper right hand side of the screen?

some people have really long screen names and then they kill someone or die, the menu thing goes across the whole screen.

INsane_dod
01-06-2007, 09:06 AM
You can see here on my site...
Kills Deaths and caps Tutorial (http://dodbits.com/index.php?option=com_content&task=view&id=51&Itemid=37)

It's the ...
"TextFont" "ChatFont"

Change that to another font mentioned in the ClientScheme.res file, or make another small font entry in the ClientScheme.res file.
ClientScheme.res file tut (http://dodbits.com/index.php?option=com_content&task=view&id=29&Itemid=37&limit=1&limitstart=1)


Or download some ready made huds too...

INsanes HUDs (http://dodbits.com/index.php?option=com_content&task=view&id=14&Itemid=33)

Most of my huds have a small fonts option.

Kud_Gray
08-22-2007, 05:00 PM
Hello,

I'd like to remove the death notice, and weapon/health notice, in fact, I'd like just to have the flags bar in my HUD, is it possible and how?

Thanks. :)

Regards,

Kud

INsane_dod
09-14-2007, 02:49 PM
This one (http://dodbits.com/index.php?option=com_remository&Itemid=61&func=fileinfo&id=25) maybe?

Pics... Cap out (http://www.dodbits.com/downloads/HUD/Bare_HUDs/dod_anvil0002.jpg) Jagd screen (http://www.dodbits.com/downloads/HUD/Bare_HUDs/dod_jagd0206.jpg)

Kud_Gray
09-14-2007, 02:52 PM
Yeah perfect. :) Thanks.

Kud_Gray
09-15-2007, 05:44 PM
Hello, it's me again.

The HUD you give me is excellent. I just need a way to disable the crosshair, any idea?

Thanks. :)

Cpl. Entek
09-26-2007, 11:05 AM
Any idea how you move the minimap from one side of the screen to the other? That way the death messages wouldnt interefer with the middle of the screen and cover up yer crosshair...

INsane_dod
09-28-2007, 11:40 PM
Hello, it's me again.

The HUD you give me is excellent. I just need a way to disable the crosshair, any idea?

Thanks. :)

You mean no crosshair at all? Change the crosshair?

INsane_dod
09-28-2007, 11:43 PM
Any idea how you move the minimap from one side of the screen to the other? That way the death messages wouldnt interefer with the middle of the screen and cover up yer crosshair...

You could try the Miniright hud (http://dodbits.com/index.php?option=com_remository&Itemid=61&func=fileinfo&id=28). Moving the minimap is a little complex if you don't know a lot about the hud files.
Pic of hud (http://dodbits.com/downloads/HUD/Others/Ultra-Mini-Right_HUD/dod_beaverville0005.jpg)

Look at the HudAnimations.txt (dod/scripts folder) file in that HUD, that is the only way I know of to move it and have no other plugin or mod... that hud will work on sv_pure servers without a worry but on sv_pure 2 you will see special graphics default to normal ones.

Guyver
11-29-2007, 10:52 PM
Hey Insane, I'm re-installing DoD:S....

What's the newest version of your small hud?

This?
http://dodbits.com/index.php?option=com_remository&Itemid=61&func=fileinfo&id=3

INsane_dod
12-13-2007, 10:55 PM
Yes it is.

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.