PDA

View Full Version : Are castleflags not moddable?



Bohemond
11-02-2002, 04:30
I can change nearly any flag in the game. But can't find how to do this with the flag over the castles. Seems to have to do with the hard-coded faction colors?

All I found was
\campmap\pieces\buildings\CastleFlags.BIF
which is the template and it shows a Almohade flag, but no trace of the others ...

Wellington
11-02-2002, 06:36
Bohemond,

CastleFlags is a 20 frame BIF. Each frame represents one factions Flag.

Use BifReader version 2.1 (downloadable at this site) to extract all 20 BIF frames into BMP images.

Having extracted all 20 frames from 'Castleflags', amend the BMP's (using whatever Graphics editor you have) towhatever you desire.

Once your happy you can rebuild the 20 frame BIF again (using BifReader 2.1). This is a bit tricky sometimes as you have to rebuild all 20 extracted frames into an existing BIF (normally the same BIF that you extracted them from).

This is because BifReader 2.1 identifies the "Colour Mode" of existing BIFs to be x"FFFF" - which is good. If you open BifReader 2.1 for a new file you will get a "Colour Mode" of x"7FFF" - which is bad!

Therefore, extracting the frames in a BIF to BMP files, using 'Extract All Frames' is not a problem. After amending the extracted 'BMP' files you must first open the existing BIF that you extracted the files from. Then use the "Import All Frames" option (the existing/current frames in the BIF will be overwritten - but at least you will retain the correct Colour Code).

Bohemond
11-03-2002, 22:53
Thank you very much .. this was what I was looking for .. somehow it didn't come to my mind that there are more than one frame in castleflag.bif, though I knew about the fact that bif's sometimes have frames!!

Now I could finish my mod "The Teutonic Knights" and have all flags for the Order correct. (its already available in the Unit Stats/Mod section)

Your reply was very helpful. I didn't export the file as a bmp however, as bifreader can be used for simple editing as well.

Lord Krazy
11-04-2002, 06:55
Just to point out 7FFF is not
suitable to amend MTW pallets
if you get 7FFF diplayed for
a shogun bif this is ok however.
Unless it goes green or yellow
or blue you get the idea.
so this is not a constant for
bifs that come from Shogun.
I just thought I point
that out http://www.totalwar.org/ubb/smile.gif
In case anyboby edits a shogun bif and sees
7FFF do not delete it's ok http://www.totalwar.org/ubb/biggrin.gif

LK