How to make and use multi-colored spraypaint pictures
By Nico 'Devil N' de Poel
E-mail: nlp@home.nl
ICQ#: 15162181
Altered By: [#]Boxer[D.C.]
This file may be freely distributed, as long as the name of the author (that's Devil N, duh!) is mentioned.
If you've made a multi-colored spraypaint picture and someone else asks you how you did that, then refer him (or her

to
http://connect.to/deviln
Contents
- The principle
- Making a PLDECAL.WAD yourself
- 2 more things
- Legal Sizes
The principle
First of all it's important that you know the principle of Half-Life textures. The process of making a multi-colored spraypaint picture is fairly simple if you know this principle. Therefore I will explain it here.
Half-Life textures are 256-color (8-bits) pictures, which may have any palette by the way, which are saved in a so-called Wad3 file. So WAD files are simply files in which contain a couple of pictures, that can be opened and used by Half-Life (duh!

.
Now, spraypaint pictures are also saved in a WAD file. What Half-Life normally does to make spraypaint pictures is this: Take a greyscale BMP picture from the Logos folder, give it one certain color (this is a process most people will probably know), and put the result in a file named PLDECAL.WAD. This PLDECAL.WAD is the file that will be uploaded to the server and that will be downloaded by all players next, so they can see the picture too.
But, like I said, a picture in a WAD file can have any palette you want. Standard spraypaint pictures have only one color because Half-Life makes them that way.
But, naturally, you can also make such a PLDECAL.WAD yoursélf, with a picture of your own. Besides that, you can also define the size of the picture yourself (normal HL spraypaint pictures are 64x64 pixels, my Dopefish picture in example is 80x112 pixels).
- Make sure you understand exactly what has been described above. If you don't understand it completely, then read it again until you understand the system. This will prevent a lot of confusion later on when you're busy making and using a multi-colored spraypaint picture.
So, what I did: I downloaded the Half-Life Texture SDK (Software Developing Kit), I read the tutorial included with it, I converted a 256-color BMP picture of my own to a PLDECAL.WAD, and I replaced my old PLDECAL.WAD with the new one.
Making a PLDECAL.WAD yourself
First, make sure you have an 8-bits (256 color) BMP picture. The palette, like I said, doesn't matter.
- Make sure that there's at least one pixel in your picture that is pure blue (in RGB that's 0 0 255 or #0000FF). This is because pure blue pixels become transparent in Half-Life. If there are no transparent, pure blue pixels in the picture, then for some reason the picture will be drawn in greyscale in Half-Life.
- If you don't want any transparent parts in your picture, then just make a pure blue border around your picture.
The BMP picture has to be at least 16x16 pixels. Width and height may differ, but the amount of pixels, in both cases, MUST BE DIVISIBLE BY 16!!! The picture must also have less than 12288 pixels altogether. This means that a picture of 112x112 (= 12544) pixels doesnt work, but a picture of 112x96 (= 10752) pixels does work.
So, a picture of 80x80 pixels is allowed, a picture of 32x96 too, but a picture of for instance 67x130 WON'T WORK.
Call this BMP picture {LOGO.BMP and put it somewhere temporarily.
- Mind the { in {LOGO.BMP. If it's not clearly visible, that token is an {. It tells Half-Life that the picture contains transparent pixels, which is quite important.
Now copy your own made {LOGO.BMP to the folder that you put the tools that came with this file.
- Make sure that there is only one BMP picture in the folder. If there are more BMP pictures in it, then these will also be taken into the PLDECAL.WAD file, and then PLDECAL.WAD will become much larger than 15 kb!!!
Execute the colorspr.bat. If all goes well then two files are made now, which should be PLDECAL.LS and PLDECAL.WAD.
- If this doesn't happen, and only PLDECAL.LS is being made, then there is something wrong with your BMP picture. Make sure that it's an 8-bits (256 colors) BMP picture and that the width and height in pixels are divisible by 16!!!
Okay, if all went well, you should've gotten your PLDECAL.WAD by now. Copy this file, and go to your Half-Life folder (for instance C:\SIERRA\HALF-LIFE). From that folder, go to the folder of the Half-Life type in which you want to use your spraypaint picture (in the case of Counter-Strike this is the CSTRIKE folder, in the case of Team Fortress this is the TFC folder, and in the case of standard Half-Life this is the VALVE folder). Now paste the PLDECAL.WAD file you've just copied in this folder. You're ready to use the spraypaint picture now!
2 more things
1) DON'T click on OK or Cancel in Customize in the Half-Life menu. Exit Customize by pressing the Escape key. If you do click OK or Cancel, your old spraypaint picture will be made again. If this does happen accidently, then place your own PLDECAL.WAD back in the folder where you placed it before (so for instance the CSTRIKE, TFC or VALVE folder).
2) If you want to spray your spraypaint picture in the game, and instead of your own picture a completely different picture appears (like a Hostage Rescue Point in Counter-Strike), don't panic, because it takes a while before your picture is uploaded to the server and is downloaded by yourself. As soon as this has happened, your picture will work just fine (That is, if you've followed all of the steps above here correctly).
Legal Sizes
16 32 48 64 80 96 112 128 144 160 176 192
208 224 240 256 272 288 304 320 336 352 368 384
400 416 432 448 464 480 496 512 528 544 560 576
592 608 624 640 656 672 688 704 720 736 752
If all else fails. Try this site.
http://nes-roms.virtualave.net/colorspr.htm