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.
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.