Paulo+WSP+editing+notes

**Paulo's Notes for WSP Editing files**
All the images used in the windows interface except for the backgrounds use another proprietary MPS format whose extention is WSP. This format is very different of the others generated by PICPAC.

This format is used for the files that contain the small black and white photographs of the planes and some other small graphical pieces that decorate all the EAW screens, including the medals and squadron insignia.

The WSP files can be found inside WSPRITES.CDF

The file format is the following: // header start unsigned long int file_size; // 4 bytes unsigned int image_width; // 2 bytes unsigned int image_height; unsigned long int number_images; unsigned long int offset_to_images[number_images]; // table containing offsets to the start of each image inside the file

// images start unsigned long int lenght_line; // always equal to image width byte image_bytes[lenght_line]; // line lenght bytes // repeat from image start for every image and for every line.

The file format doesn't contain any pallete. All images are 256 color and use the pallete of the base image were they are used.

Attached you can find two small DOS programs.

DUMP_WSP.EXE  

Dumps one image at a time to a file in RAW format acceptable by PaintShopPro (I use v4.15 SE) and output the image size to screen. This last info is needed to import RAW images into PaintShopPro. To get the correct pallete enter EAW and make a screen dump of the screen were the image is used. Use your favourite program to open the captured image and save the pallete to disk. After that, import the extracted image and load the pallete KEEPING the same indexes. Change whatever you want keeping the pallete unchanged and don't paint ontop of any area that happens to be in colour index 0 that means those bits are absent on the original file and must not be used or the entire file must be rebuilt from scratch. Save the result as RAW format.

PTCH_WSP.EXE  

This one puts the image in the indicated slot. You must provide the image size by hand. Those dimensions will be checked with the ones of the image to be replaced. The image index is zero based (0 is the first). The file names must be 8.3 format.