Command maps in ET


(Danyboy) #1

Reet progressed in my test map - but am having problems with my command map

Ive taken the heightmap i used and colour it - added noise to try and make it more paper-like - not great but its still in test phase.

I’ve named it map_name_cc.tga in 24-bit TGA - its in the levelshots folder of my pk3 file.

Now i run map and i just get that yellow/black square and error in console:

unable to find image for shader levelshots/map_name_cc_trans
unable to find image for shader levelshots/map_name_cc_automap

  • erm tried to see if pak0 had any of these files but nope - so am stuck

Oh Sock where art thou ? :smiley:


(sock) #2

snip snip from documentation …

Adding the command map to the game

For this example of how to add a command post to the game I will assume your new map is called “mytest�. So that your map does not conflict with others maps all the files for the command should be named after your map name.

First create a square .tga image and save it as “mytest_cc.tga� in the “levelshots� directory. (512x512 pixels should be enough.)
Create a new shader called “mytest_levelshots.shader� in the “scripts� directory.
Open the new shader file and create two new entries as follows:

levelshots/mytest_cc_automap
{
	nopicmip
	nocompress
	nomipmaps
	{
		clampmap levelshots/mytest_cc.tga
		depthFunc equal
		rgbGen identity
	}
}

levelshots/mytest_cc_trans
{
	nopicmip
	nocompress
	nomipmaps
	{
		clampmap levelshots/mytest_cc.tga
		blendfunc blend
		rgbGen identity
		alphaGen vertex
	}
}

The “automap� shader is used inside of the compass on the HUD and the “trans� shader is used for the pop-out version of the command map. The command map displayed on the Limbo menu does not require any shader features.

Sock
:moo:


(Danyboy) #3

erm - being a bit nosy - but i cant find those shader for the 6 ET maps in the pak0 file?

But cheers for help there- am sure will need more of it in the future :clap: :clap:


(sock) #4

Have you tried looking in “scripts/levelshot.shader” file …

Sock
:moo:


(Danyboy) #5

ah - lol - well its is a long list of shaders :stuck_out_tongue:

also about CCs - ive got my lovely crap image in compass - and now am wondering about scale / position of compass in relation to the world

at the moment i can walk out of my CC and onto the Limbo menu :D:D

is this what the worldspawn keys are for - setting the min + max coordinates - or is there something else that must be done to align map and world


(sock) #6

snip snip from documentation …

Command maps

The command map is a critical element of the game offering players the chance to keep track of objectives, other team players and where health/ammo requests are coming from. The command map is usually a 512 x 512 pixel image on which all other information is displayed.

The command map can be 256 pixels square up to 1024 in size, the game will resize the image regardless. The command map picture (stored as a .tga) has to be created externally by a paint program of your choice. The gird size and co-ordinates are worked out from the min/max keys in the worldspawn entity for the map.

Key mapcoordsmins represent the top left corner (x / y map editor values).
Key mapcoordsmaxs represent the bottom right corner (x / y map editor values).

One of the easiest ways to do that is to create a square brush under your map. (Make sure it’s square!) Also make sure that everything that has to be on the command map is within the bounds of the square brush. Then move the cursor over the top left corner of the brush and you will get the x / y mapcoordsmins (first two values) from the little coordinate line in Radiant (bottom right). Repeat for the x / y mapcoordsmaxs with the bottom right corner of the brush and you’re done.

A quick way to create a temporary command map is to use the tracemap command and take the RED channel image and re-scale it to a 512x512 image.

Sock
:moo:


(Danyboy) #7

cheers Sock - nice snipping there

on a side track - what is the point in the tracemap - i cant open it - some variation of a TGA file?


(sock) #8

Open the tracemap image in photoshop and have a look at the different channels (Red/Blue/Green/Alpha). Its all explained in the documentation. Got to leave some stuff for you to read! :wink:

Sock
:moo:


(Danyboy) #9

hehe -soz

u know u could post the documentation now ;):wink:

as well as the tools :slight_smile:


(Dawg) #10

Proof reading note: the word grid is mis-spelled in the last sentence of the above paragraph. Since its part of your documentation I thought you might wanna know.

Dawg


(sock) #11

Word will be the bane of my life. :stuck_out_tongue:

Sock
:moo:


(Drakir) #12

If you are going to do a command map i suggest you use a program like Corel Draw or Adobe Illustrator and do the lines in vectors before making it an image.

This way you get full controll over the layout and colors. After that u can give it some touch via photoshop to make it look like a real map.

Look at the one i did:


(sock) #13

Looks very nice. Certainly what command maps should look like. :smiley:

Sock
:moo:


(chavo_one) #14

I think a tutorial is in order drakir! Nice work! How did you keep the scale right from the actual map to the image? I had imagined taking a screenshot from radiant and then using that as a base layer in photoshop.


(Fluffy_gIMp) #15

That’s a cool technique, the vector solution works quite well, we made our versions completely in photoshop. One thing that may be useful is to include one of our *.psd’s in the tools release so you guys can see how they were constructed.

Basically as Sock has already mentioned, they were constructed from tracemap images, of which we used two types, one with just the terrain and one with just the structures. These were simply created from two different map files with the required brushwork left in to be traced.

From the red colour channel I then pulled out a greyscale image with which to work from:

For the terrain (the base of the map) I blured the image a fair bit and added fake terrain for where it didn’t exist. Then using Filter>Artistic>Poster Edges… I created the contour effect.

Next I filled the different rings with a colour, based on their height. Each ring on it’s own layer so I could add an outline stroke to each.

Finally I slapped the structures trace map on top and drew in the most common routes.

This is by no means a definitive how-to but it gives you an idea… expect a more comprehensive tutorial at a later date.

As a side note, the tracemap images I worked with were 1024x1024 which currently you can’t generate with the official release (you should be able to in the tools release though).

-Fluffy_gIMp


(Drakir) #16

I used the tracemap as a base. As i am used to work with vector graphics when vectorizing logos and so for commercial prints, i found it very easy to do.

I took the tracemap and scaled it to 512x512 and then draw upon that using layers with the colors from a SD cc image.

Then i exported the image from Corel Draw to Paint shop Pro and added some effects to it and dusted it some.

I think that vector graphics are the best way to do the cc maps, the way SD did is a much more complicated way as the layers are more difficult to control in photshop than in a vector based program.

With a vector program u can choose outline with and so much more flexible when it comes to editing the outlines.
Well that´s how i did it…if anyone wants to know more contact me via e-mail, lindgrenrikard@hotmail.com


(weasel) #17

If you don’t alter the heightmap much in the editor, you can create the contours for the terrain easily. Posterize it, adjust levels to taste, duplicate the layer, color the bottom layer, use find edges filter on second layer, find a blending mode that looks decent (I forget what I used), then merge them. If you want to add fake terrain in the command map to make it interesting or something, just airbrush the heightmap a little before you posterize it. Here’s a sample one I did in about 2 minutes with just a random terrain. It would look better if I had scaled up the heightmap before doing the edges, and if it didn’t have the crappy compression artifacts.


(Loffy) #18

What is a tracemap?
Is it a map over your map (the map you are making)?
Do you get a so called tracemap from the mapping editor (from GtkRadiant? Is it like a function, in the editor. Choose File > Export > Tracemap, and you get a nice 2D-map over your 3D-world?
// Loffy


(chavo_one) #19

It’s created by the game itself. The quick and dirty rundown is:

  1. load up ET.
  2. pull down the console
  3. type “/g_gametype 2” (w/o quotes)
  4. type “/sv_pure 0”
  5. type “/devmap <yourmap>”
  6. type “/developer 1”
  7. type “/generatetracemap”

You should then have a file in the maps dir called <yourmap>_tracemap.tga

(I’m typing this from work so I hope I remembered all the steps.)


(LordDaimos) #20

Thats really a lovely commandmap you have there Drakir. Nicely done for sure.

/LordDaimos