Custom Icons and Custom maps


INsane_dod
12-22-2006, 05:19 PM
Hi all, this is a problem I have had some success but need some advice.

When I make custom icons, say a set of icons with a US flag, they are OK until I load some custom maps with custom icons.
They are embedded in the .bsp file.

One map dod_anvil2, you can replace the icon files for the kuebelwagen and they work good if placed in the correct game folder directory.

Other maps like dod_strand_rc1 you can't do this even if you get the folders correct, I even tried placing a .res file in the map folder (like dod_anvil2 has) redirecting file names with a VMT file ... tried all sorts of things.

dod_churchyard_b5 was another I tried, it has a couple of VTF files that look bad on low video settings... icon_obj_barn_X, icon_obj_graveyard_X, icon_obj_oak_axis...

http://dodbits.com/images/stories/Graphics%20article/anvil_churchyardicons.gif

So I wanted to change them to custom ones and fix that VTF setting problem too... I cannot find a way for the maps... dod_churchyard_b5 and dod_strand_rc1 ....but the dod_anvil2 map is a breeze.

Am I doing something wrong here? Is there a problem where the embedded icon files, if not set-up a certain way in the BSP... cannot be changed?

Dash
12-22-2006, 05:23 PM
Icons embedded in bsp files override any other icon, even if they exist in a folder with the same name.

INsane_dod
12-22-2006, 05:44 PM
Originally posted by Dash
Icons embedded in bsp files override any other icon, even if they exist in a folder with the same name.

That's actually the part I know already...or thought I knew until I tried the technique with dod_anvil2... now that map has embedded icons.... but you can replace them by placing one of the same name in the normal game folders.

The difference is a resfile in the maps directory with the icon/address named within the file... this difference in dod_anvil2 makes icons changeable?

Rommels
12-22-2006, 11:48 PM
BTW, I just checked the anvil2 bsp in packrat and I don't see the obj icons packed in there, so thats why you can change them.

This interest me very much as I also want to find a way past this issue.

Packed BSP's are the bane of the Universe, IMO ;p
I'm old school though.

INsane_dod
12-23-2006, 05:56 AM
EDIT: I spoke too soon maybe.... I think I have something.

I used the dod_churchyard_b5 map for a try-out.

* I got (saved) the icons from the .bsp file using Packrat, I also took note of the file names and the correct folder.

* I changed them in Photoshop and placed them in the correct folder...
\dod\materials\sprites\obj_icons\dod_churchyard

* Then I opened "mod_textures" and inserted the instruction to force the icon to use the addresses like the one above...the same as mentioned in the .bsp...
}

"icon_obj_oak_allies"
{
"file" "sprites/obj_icons/dod_churchyard/icon_obj_oak_allies"
"x" "0"
"y" "0"
"width" "64"
"height" "64"
}

The result is it redirects the icon back to the game folder.

Give that method a try Rommels, I will check it too ...just to make sure I have not stuffed up somewhere :D

EDIT: I have now tried it on-line...it works for the test map the standard dod_churchyard_b5 map on a Public server.

Here is a Download of what I have so far (http://www.dodbits.com/downloads/Objective_Icons/Custom_map_OBJECT_ICONS.zip)

Guyver
12-23-2006, 03:32 PM
Cool.:)

INsane_dod
12-23-2006, 05:20 PM
The only problem with it Guyver is that some huds use that mod_textures.txt file for other items. Updates will also knock out that file and the icons will go back to the maps .bsp... or if installed after the update, knock out the new parts of the game... like the DET map changes in July.

If an icon pack for custom maps are made, a special mod_textures.txt file must go along with it :)

Not a big problem, I could put an option in a installer, most people will have a standard one. I will work on the others you wanted soon, I have a technique now of mass producing these with different backgrounds very quickly :D

If this is the only way to do it... it may be worth a web page description and a few templates, wish it had a simple solution :(

INsane_dod
12-24-2006, 09:11 AM
For anyone interested I have started to assemble some downloads for the custom icons, so far it works OK, will be better when I get a few more and make a installer.

See this Thread HERE (http://www.dayofdefeat.net/forums/showthread.php?s=&threadid=70402)

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.