Re-coloring the TOAW IV Counters

Graphics, sound, and database mods.

Scenarios should still be posted in the main 'Mods and Scenarios' forum below
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

[center]Re-coloring the TOAW IV Counters[/center]

Previous versions of TOAW counters were re-colorized by graphically editing the counter graphics files themselves. But the TOAW IV counters are derived from graphics files that are, themselves, without color. Colors are now added after the fact via the TOAW software from instructions contained in the new .col file. So, re-colorizing these new counters must involve editing the .col file.

The first step in editing that file is to obtain a copy of the un-edited version of it. This is acquired by using the “X” key within the Editor while the desired scenario is loaded. This invokes the “Dump Unit Colors” dialog:


Image

Just save the .col file indicated.
Attachments
DumpUnit..sdialog.jpg
DumpUnit..sdialog.jpg (82.19 KiB) Viewed 2224 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Now, open the file in XMLPad:

Image

Note the labels:

MainBackground: This is the main color of the counter.
Background: This is the color of the central icon’s background of the counter.
Foreground: This is the color of the central icon’s lines and symbols.
Numbers: This is the color of the strength, deployment, size, and tolerance of the counter.

Also note that Ralph has chosen, in his infinite wisdom, to use decimal notation for the values – instead of hexadecimal. This will require some special handling in the editing process.

Finally, note that the “ID” is the number of the counter color set. It starts with 0 and runs to 109. That is a total of 22 columns of 5 color sets each. To edit the counters, you have to know the correct sets your scenario uses.
Attachments
COLfilecontents.jpg
COLfilecontents.jpg (308.37 KiB) Viewed 2218 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Here’s how the various counter sets are numbered in the .col file:

Image

(Thanks to Steve Sill for making this display - my attempt was an abortion).
Attachments
SetUnitColors3.jpg
SetUnitColors3.jpg (145.9 KiB) Viewed 2225 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Here’s the example I’m starting from. This is my Killer Angels 1863 scenario. The un-edited counter colors just aren’t good enough for me.

Image
Attachments
Uneditedc..rcolors.jpg
Uneditedc..rcolors.jpg (342.38 KiB) Viewed 2209 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Here are the target colors. Note that in this case, I have existing color selections from older versions of TOAW. If you are starting from scratch, you’ll have to first refer to earlier counter re-colorizing documents I’ve made to get that, preliminary, step completed.

Image
Attachments
Targetcou..rcolors.jpg
Targetcou..rcolors.jpg (324.86 KiB) Viewed 2207 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Since I have existing artwork done for this scenario already, I can pick the color values from that. To make the picks, I’m using The Gimp – a free graphics system I’ve used in my previous graphics mod articles.

After running The Gimp, open the existing artwork that you will make the picks from – be sure it is a .bmp file. If you use a .jpg file you will only pick approximations of the colors you want.

From the Tools pulldown, select the Color Picker.

Image
Attachments
ColorPickerTool.jpg
ColorPickerTool.jpg (182.13 KiB) Viewed 2208 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Click on the main body of a counter in the artwork. Note the value that is obtained: 223756. Be aware that this is in Hexadecimal. It must be converted to decimal later on.

Image
Attachments
Union back..ck value.jpg
Union back..ck value.jpg (180.49 KiB) Viewed 2207 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Now pick a spot inside the icon of the counter. Note the pick value is shown as 4660aa. Again, this is hexadecimal.

Image
Attachments
Unionicon..ckvalue.jpg
Unionicon..ckvalue.jpg (179.59 KiB) Viewed 2207 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Now I’ve opened the CSA artwork and clicked on the body of a counter. Note the value is 777e98.

Image
Attachments
Confederat..ckvalue.jpg
Confederat..ckvalue.jpg (175.68 KiB) Viewed 2207 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Finally, pick a spot within the icon of the CSA counters. The value is shown as ae874e.

Image
Attachments
Confederat..ckvalue.jpg
Confederat..ckvalue.jpg (173.75 KiB) Viewed 2207 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Now we have to convert the hexadecimal values to decimal before we can inject them into the .col file. The built-in Windows Calculator has a “Programmer” mode that will allow this. Make that selection, as shown.

Image
Attachments
Calculatormode.jpg
Calculatormode.jpg (62.91 KiB) Viewed 2272 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Now enter the hexadecimal value that was picked for the Union main background:

Image
Attachments
Calculatorhexvalue.jpg
Calculatorhexvalue.jpg (64.33 KiB) Viewed 2272 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Then, just switch the mode from “Hex” to “Dec”. The value is converted from hexadecimal to decimal.

Image
Attachments
Calculator..alvalue.jpg
Calculator..alvalue.jpg (59.31 KiB) Viewed 2272 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

After doing this for all the values picked, I get these conversions:

Image
Attachments
Colorconversions.jpg
Colorconversions.jpg (19.84 KiB) Viewed 2274 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

Now I go back to XMLPad and edit the file in the appropriate locations:

Image
Attachments
XMLedits.jpg
XMLedits.jpg (323.13 KiB) Viewed 2273 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

After placing the edited .col file in the scenario folder with the Killer Angels 1863 scenario and saving the scenario, this is the result. As good as in previous versions:

Image

Happy counter re-colorizing!
Attachments
KillerAng..olormod.jpg
KillerAng..olormod.jpg (295.17 KiB) Viewed 2277 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Redmarkus5
Posts: 4454
Joined: Sat Dec 01, 2007 1:59 pm
Location: 0.00

RE: Re-coloring the TOAW IV Counters

Post by Redmarkus5 »

Jeez... Thanks for the detailed walk-through, but why couldn't they just leave the unit graphics as they were - graphics we could edit. They look exactly as they used to on the map but I can't envision many people wanting to jump through those hoops just to change light blue to dark blue...
WitE2 tester, WitW, WitP, CMMO, CM2, GTOS, GTMF, WP & WPP, TOAW4, BA2
User avatar
Curtis Lemay
Posts: 13870
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Re-coloring the TOAW IV Counters

Post by Curtis Lemay »

ORIGINAL: redmarkus4

Jeez... Thanks for the detailed walk-through, but why couldn't they just leave the unit graphics as they were - graphics we could edit. They look exactly as they used to on the map but I can't envision many people wanting to jump through those hoops just to change light blue to dark blue...
It was easy to mod the .bmp counters - if you didn't mind the crappy results (compare post #5 with post #16). The face of the counter is one color and easy to change. But the edge is a color gradient and very difficult to mod.

The TOAW III .png counters were very hard to mod, since they had a color gradient even across their face. (See the document I wrote on that and the gymnastics required to mod).

Now you just have to change a number. You don't really even have to have a graphics package. The game takes care of any color gradients in the base counter. You automatically get a perfect result.
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Redmarkus5
Posts: 4454
Joined: Sat Dec 01, 2007 1:59 pm
Location: 0.00

RE: Re-coloring the TOAW IV Counters

Post by Redmarkus5 »

OK. It looks intimidating at first glance. I guess you're right, but... Jeez. (LOL)
WitE2 tester, WitW, WitP, CMMO, CM2, GTOS, GTMF, WP & WPP, TOAW4, BA2
User avatar
Lobster
Posts: 5301
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

RE: Re-coloring the TOAW IV Counters

Post by Lobster »

Can this be made sticky?
http://www.operationbarbarossa.net/

Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein

Q: What do you call a boomerang that doesn’t come back?
A: A stick.
Post Reply

Return to “Mods”