Thats a good question, Digs. I suspect this is hardcoded in the .exe file.
Normally in CC there are certain colours that the .exe treats as transparent or semi-transparent. For example RGB 255,255,255 is normally recognized as transparent in the sprite images, and 152,184,0 is recognized as a shadow.
There are some exceptions though. An example is the small strat map that appears on the right side of the mapscreen. After running a number of search strings to find the byte locations for the red circle placement, I gave up and decided to make the small map and red circle images white. Oddly enough they ended up appearing in game as WHITE, rather than transparent. A workaround was to make 1 pixel x 1 pixel images in a medium grey, which is hardly discernable to the eye.
There must be a number of transparency "switches" at various locations in the code that determine how certain colours are displayed. Finding the switches is the hard part.
Is this done manually or using some form of hacking tool?
I use Hackman and a few different Hex editors that have search functions.
ResHacker is also a useful program to have.
For the Red Circle dilemma I took screen captures of each mapscreen and noted the x,y coordinates of the placement, and recorded them along with the map number according to the index.mpi
If you read the documentation from Mafi's RTB tool it has some good info. Some coordinate sets are x,y,x,y........and some are xxxxxxx.........yyyyyyy....... so there are a number of search strings possible.
We have to remember that the folks that pioneered the modding tools we all benefit from, spent hours reverse engineering the code with simple hex editors.........looking for patterns, scratching their heads. Hats off too them all.
We have to remember that the folks that pioneered the modding tools we all benefit from, spent hours reverse engineering the code with simple hex editors.........looking for patterns, scratching their heads. Hats off too them all.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
In August of 2004, Zappi, Homba, Bambam887, RedScorpion and MOOXE all pitched
in to create this Close Combat site. I would to thank all the people who have visited
and found this site to thier liking. I hope you had time to check out some
of the great Close Combat mods and our forums. I'd also like to thank
all the members of our volunteer staff that have helped over
the years, and all our users that contributed to this site!