Command Map

***OPTIONAL***
1. Generate a Tracemap to help you make the command map image. (See this tutorial if you don't know how to generate a Tracemap.)

2. Using your favourite paint program (e.g, Adobe Photoshop), draw your command map onto a square canvas (between 256x256 and 1024x1024). This is where the Tracemap (above) comes in very useful.


3. Save the image as a 24-bit TGA file named 'yourmapname_cc.tga' in a new directory named 'levelshots'.

4. In your 'scripts' directory, create a new Shader (plain text file) named 'yourmapname_levelshots.shader'. (See this tutorial if you don't know how to create a Shader file.)

5. In your new Shader file, paste the text below (remember to replace 'yourmapname' with your maps real name).

levelshots/yourmapname_cc_automap
{
   nopicmip
   nocompress
   nomipmaps
   {
      clampmap levelshots/yourmapname_cc.tga
      depthFunc equal
      rgbGen identity
   }
}

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


That's it! You can now go and test your new Command Map. (See this tutorial if you don't know how to compile and test maps.)



 Add your comments on this tutorial

  Did it work for you? Is there anything I missed? Mistakes? Just want to say thanks? Let me know!

Violator commented at 29 Nov, 2003 - 13:16

OK it sort of works... firstly the image is getting pixellated by the game. Secondly only the right hand half is displaying, and that is not centred in the grid :o(


Violator commented at 29 Nov, 2003 - 13:02

Or if you want to make even easier map the 'shader' file extension to load in notepad. Double click the file and it will bring up the option to map it. Select 'notepad' from the list. Click OK btw it works - nicee :o)


DeQuincey commented at 11 Nov, 2003 - 05:59

This isn't the place to be teaching people about Windows. The default Windows configuration hides file extensions, which makes it difficult to change them. Open up My Computer or Windows Explorer. Go to the 'Tools' menu and select 'Folder Options' Click the 'View' tab Remove the check box next to "Hide extensions for known file types' Now, go into a directory somewhere and right click Select 'New' Select 'Text Document' You should see "New Text Document.txt" highlighted for you to change it..well, what are you waiting for.. e.g. some_example.shader NOW, when you do this the icon will change. But, you can still open it in Notepad to edit it... I'll leave that up to you.


IllegalX commented at 08 Nov, 2003 - 21:41

Just open your wordpad and paste this shit and save it the rename the file from: .doc to _levelshots.shader


=|BTF|=CrAzY-NuTTeR commented at 08 Nov, 2003 - 18:07

How the f*** do i make a shader file?


IllegalX commented at 07 Nov, 2003 - 19:24

Hey, could make this tutorial a little bit better to follow for the beginners...



Sorry, the comments are now closed.
These tutorials are over 20 years old, probably rubbish, and I don't even remember writing them - but, if you desperately need to, you can shoot me a message @sqwirral on Twitter.


  Click here to return to the Main Page