Re-coloring the TOAW IV Counters
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
Re-coloring the TOAW IV Counters
[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:
Just save the .col file indicated.
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:
Just save the .col file indicated.
- Attachments
-
- DumpUnit..sdialog.jpg (82.19 KiB) Viewed 2224 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
Now, open the file in XMLPad:
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.
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 (308.37 KiB) Viewed 2218 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
Here’s how the various counter sets are numbered in the .col file:
(Thanks to Steve Sill for making this display - my attempt was an abortion).
(Thanks to Steve Sill for making this display - my attempt was an abortion).
- Attachments
-
- SetUnitColors3.jpg (145.9 KiB) Viewed 2225 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
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.
- Attachments
-
- Uneditedc..rcolors.jpg (342.38 KiB) Viewed 2209 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
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.
- Attachments
-
- Targetcou..rcolors.jpg (324.86 KiB) Viewed 2207 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
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.
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.
- Attachments
-
- ColorPickerTool.jpg (182.13 KiB) Viewed 2208 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
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.
- Attachments
-
- Union back..ck value.jpg (180.49 KiB) Viewed 2207 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
Now pick a spot inside the icon of the counter. Note the pick value is shown as 4660aa. Again, this is hexadecimal.
- Attachments
-
- Unionicon..ckvalue.jpg (179.59 KiB) Viewed 2207 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
Now I’ve opened the CSA artwork and clicked on the body of a counter. Note the value is 777e98.
- Attachments
-
- Confederat..ckvalue.jpg (175.68 KiB) Viewed 2207 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
Finally, pick a spot within the icon of the CSA counters. The value is shown as ae874e.
- Attachments
-
- Confederat..ckvalue.jpg (173.75 KiB) Viewed 2207 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
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.
- Attachments
-
- Calculatormode.jpg (62.91 KiB) Viewed 2272 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
Now enter the hexadecimal value that was picked for the Union main background:
- Attachments
-
- Calculatorhexvalue.jpg (64.33 KiB) Viewed 2272 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
Then, just switch the mode from “Hex” to “Dec”. The value is converted from hexadecimal to decimal.
- Attachments
-
- Calculator..alvalue.jpg (59.31 KiB) Viewed 2272 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
After doing this for all the values picked, I get these conversions:
- Attachments
-
- Colorconversions.jpg (19.84 KiB) Viewed 2274 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
Now I go back to XMLPad and edit the file in the appropriate locations:
- Attachments
-
- XMLedits.jpg (323.13 KiB) Viewed 2273 times
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
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:
Happy counter re-colorizing!
Happy counter re-colorizing!
- Attachments
-
- KillerAng..olormod.jpg (295.17 KiB) Viewed 2277 times
- Redmarkus5
- Posts: 4454
- Joined: Sat Dec 01, 2007 1:59 pm
- Location: 0.00
RE: Re-coloring the TOAW IV Counters
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
- Curtis Lemay
- Posts: 13870
- Joined: Fri Sep 17, 2004 3:12 pm
- Location: Houston, TX
RE: Re-coloring the TOAW IV Counters
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.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...
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.
- Redmarkus5
- Posts: 4454
- Joined: Sat Dec 01, 2007 1:59 pm
- Location: 0.00
RE: Re-coloring the TOAW IV Counters
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
RE: Re-coloring the TOAW IV Counters
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.
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.