Unit Counters

Post discussions and advice on TOAW scenario design here.

Moderators: JAMiAM, ralphtricky

Post Reply
User avatar
Catch21
Posts: 526
Joined: Thu Apr 13, 2006 8:57 pm
Location: Dublin Ireland/Toulouse France

Unit Counters

Post by Catch21 »

In an XML Scenario Dump, for each unit you get a 'color' value, which I assume represents a particular unit counter color scheme. Note that this is separate from unit type, which would be a subset of the unit color scheme- in other words each counter sheet. For instance look at units_1_gray_0.png in the TOAW Graphics sub-directory, where the sheet consists of all unit types with the same color.

I know folks (for instance with the BioEd program) have managed to link 2D and 3D graphics to numbers from the equipment file to be able to display what goes in as a graphic in the Inventory & Replacements screen for example.

If anyone has managed to deduce some form of matching screen, I'd be grateful of any details. The alternative is to try to figure it out from scratch, and if someone has already been there, why reinvent the wheel? Thanks.

Tactics are based on Weapons... Strategy on Movement... and Movement on Supply. (J. F. C. Fuller 1878-1966)
ogar
Posts: 297
Joined: Sun Sep 06, 2009 8:31 pm

RE: Unit Counters

Post by ogar »

This may be a start - at least with unit colors/formation colors/cooperation.

tm.asp?m=3148131
kmitahj
Posts: 100
Joined: Sun Apr 24, 2011 10:31 pm

RE: Unit Counters

Post by kmitahj »

Not sure if it fits your needs but below I attached zip file containg two text files:
one which maps COLOR ids form xml file to names of files with corresponding color schema bitmap sheets ('h_' or 's_' to be prefixed when needed and 'png' or 'bmp' extensions to be appended whichever is available)
second maps unit icon positions within given color schema bitmap to string form ICON attribute in xml file. Note that there are cases when given string maps to more then one icon position in bitmap (example: 'Headquartes', 'Coastal Artillery', 'Transport', 'Fighter' etc.) However so far in all such cases xml file I looked in contains additional ICONID attribute which points directly which icon is to be used.
Attachments
iconmappings.zip
(1.67 KiB) Downloaded 45 times
Post Reply

Return to “Scenario Design”