Sprite Packer/Unpacker 1.0 for MS Close Combat III


This program is used for packing/unpacking sprite files ( eg: Terrain, Soldier).

Sprite files contain hundreds compressed pictures. For soldiers files we can also extract files of mask containing descriptions of part of soldiers body (for uniform colors) and shadow and edge. Programme assigns to them suitable colours:

Name RGB
Shadow (0,127,0)
Edge (0,200,0)
Shadow+Edge (31,255,31)
Body (100,0,0)
Legs (120,0,0)
Head (140,0,0)
Belt (160,0,0)
Boots (180,0,0)
Weapon (200,0,0)

Unpacking sprite files

To unpack sprite file you should choose option Unpack->SPR File, program will create directory \sprite in which will save files: sprhead.dat (heading of file), sprfoot.dat (footer of file) and lots of files SPS( single sprites). to unpack files SPS one choose option Unpack->SPS files and to choose (multiple) files. In directory \bmp become created 24-bits bitmaps with name sprxxxx. HotX. HotY. bmp .
For files Soldiers We can separate also mask files by choosing Unpack->SPS files ( mask). Created in directory \bmp files will have names mskxxxx. HotX. HotY. bmp.

Packing sprite files

To pack files *. sps (single sprites) you must choose option Pack->SPS Files and to choose spr*. bmp files. New created sps files you should copy to yours \sprite directory (overwrite old files). If you exchange all files that you want, make sure than in directory \sprte is located proper number of SPS files with files sprhead.dat, sprfoot.dat. Then choose option Pack-SPR file and choose directory. Program will create file c:\out.spr

To pack soldiers files you must choose option Pack->SPS files (Soldier) and to choose files spr*. bmp, but additionally in this
directory must have to be found suitable files of mask( msk*. bmp). After creation of files SPS we proceed as above.

All new bmp files must have name: sprxxxx. HotX. HotY. bmp or mskxxxx. HotX. HotY. bmp where xxxx is correct number of sps file and HotX, HotY is hot (rotate) point (normally 33.39 for small and 62.54 for big soldiers sprites).

Konrad

sylwb@pro.onet.pl

http://www.cc3.hg.pl