The first thing to do is to make sure that your map coordinates are square and correct. You command map relies heavily on your mapcoordinates and if they are wrong then most likely your icons that appear on the map will be placed wrong and the scale of your map won't line up correctly with your brushes. Its also a good idea if your coordinates hug close to your furthermost brushes so that way you don't have wasted space on your command map. Revisit the first room tutorial for more on setting up map coords.
Next we want to generate a tracemap of our level so when we design our command map we have something to reference it back with. A tracemap is a tga file which contains information about your map in its chanels, for example. The blue channel shows the height of your sky from the ground. For more information on tracemaps check out the LDR at http://www.planetquake.com/simland/ldr1_1/default.htm and goto ->Trace maps.
Now the way to generate the tracemap is to do this:
Load up ET.
Bring down the console with the tilde ` key and type the following.
/g_gametype 2
/sv_pure 0
/devmap my_map
/developer 1
/generatetracemap
The tracemap is then created and put in etmain/maps directory(saved as my_map_tracemap.tga).
Once that is done exit ET and load up your texture editor. I'm using Adobe Photoshop but
there are alot of different editors you could use, Paint Shop Pro, Corel paint etc. or if your
strapped for cash, uni student or like freeware download The Gimp. As long as the editor can read chanels and has layers it should be fine.
At this point is where your texturing skills will apply with your editor. Effectively what you want to do now is use your tracemap as a guide for making your command map. The next part will show you how to edit a simple command map using Photoshop, and i'll assume you have moderate knowledge of Photoshop. You can choose to skip this next section and just use your tracemap as your command map, and if so go onto point 5, for everyone else follow on.
Now its time to make the shader for your command map. Open up notepad, and we'll immediately save the file. Go to Save as, in save as type, select all files, then go to etmain/scripts folder and save the file as mymapname_levelshots.shader
Now its time to include all the shader details, the best way to do this is to just copy everything underneath into notepad and change mymapname to whatever your map name is.
levelshots/mymapname_cc_automap { nopicmip nocompress nomipmaps { clampmap levelshots/mymapname_cc.tga depthFunc equal rgbGen identity } } levelshots/mymapname_cc_trans { nopicmip nocompress nomipmaps { clampmap levelshots/mymapname_cc.tga blendfunc blend rgbGen identity alphaGen vertex } }
Thats it for the shader file. Now just save the file again.
So now we have the command map and we've made the shader file which ET uses to make it appear in the limbo, HUD etc. It's time to load up that baby and and have a look.
Problems, comments, queries > Forums.
Tutorial by Ausman
Edited by WeblionX