Page 11 of 31

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 1:54 pm
by 76mm
One more addition: a panel with the various unit values. GUI is pretty cramped at this point, don't think I can add any more...



Image

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 3:00 pm
by cathar1244
One more addition: a panel with the various unit values. GUI is pretty cramped at this point, don't think I can add any more...

Hmm, too bad the anti-shipping rating can't be squeezed in. It is tied to the AP rating, but is invisible unless one produces test units in the equipment file and views the equipment file in the scenario editor.

Cheers

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 3:09 pm
by 76mm
ORIGINAL: cathar1244
Hmm, too bad the anti-shipping rating can't be squeezed in. It is tied to the AP rating, but is invisible unless one produces test units in the equipment file and views the equipment file in the scenario editor.
sorry, I didn't even see that rating in the eqp files, although I didn't examine every piece of equipment.

Don't think it would be a technical issue to add it, but I'm kind of out of room. There is a decent chance I'll rejigger the GUI over time, so I will put this on my wishlist.

Also, I'm more of a WWII kind of guy, and the SAM Range is only used for post-war stuff, so maybe I could bump SAM Range off the list...

in the meantime, can you post an extract from an eqp file showing a piece of equipment with this rating in this thread, so that I can see the exact format?

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 3:40 pm
by cathar1244
This is what I mentioned. It is an attribute automatically generated by the game on the basis of the magnitude of the anti-personnel value. Edit to add: And it probably manifests only in the case of units capable of ranged fire (guess).

Cheers

Image

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 4:53 pm
by 76mm
Hmmm, the problem is that I don't see that figure (720) in the eqp file at all. Here is the eqp file entry for the A-6 in the default database:
************
<ITEM_1832>
<NAME>A-6 Intruder</NAME>
<COUNTRY>United States - 1961</COUNTRY>
<EQUIP1>257</EQUIP1>
<EQUIP2>356</EQUIP2>
<AT>4</AT>
<AP>54</AP>
<AA>14</AA>
<DF>21</DF>
<ARTY_RNG>1440</ARTY_RNG>
<EARLY_RNG>0</EARLY_RNG>
<SAM_RNG>0</SAM_RNG>
<NUKE>75000</NUKE>
<VOL>999</VOL>
<WEIGHT>0</WEIGHT>
<SHELL_W>250</SHELL_W>
<ARMOR>1</ARMOR>
<DEFENDER>0</DEFENDER>
<FLAG0>0</FLAG0>
<FLAG1>32</FLAG1>
<FLAG2>36</FLAG2>
<FLAG3>3</FLAG3>
<FLAG4>120</FLAG4>
<FLAG5>2</FLAG5>
<FLAG6>0</FLAG6>
<FLAG7>0</FLAG7>
</ITEM_1832>
************
There is no "Anti-Shipping" value here? The "Anti-Shipping" flag will be indicated in the box in the upper right corner, but that does not display a value, only that equipment has anti-shipping capability. Can you send me the eqp file extract for the A-6 from your eqp file? Other ideas?

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 4:56 pm
by 76mm
While we're at it, any idea what the EQUIP1 and EQUIP2 lines are for? I have no idea, most of them are zero, so I've ignored them for now.

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 5:09 pm
by Lobster
ORIGINAL: 76mm

Generally I'm pretty pleased with how this turned out--let me know if you have any suggestions based on what you've seen so far...

I need to deal with a few other things before releasing this version (see my other thread on unit characteristics), but hopefully soon...

A secretary to do all the typing. Has to be a good looking one otherwise why bother. Can you fit that in too? [:D]

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 7:56 pm
by larryfulkerson
ORIGINAL: 76mm

While we're at it, any idea what the EQUIP1 and EQUIP2 lines are for? I have no idea, most of them are zero, so I've ignored them for now.
I'm not sure but I think one of them might be the index to the picture of the equipment used in the inventory report panel. The picture of the equipment on the far left edge of the inventory dialog. Equipment256.png I think.

Image

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 9:01 pm
by 76mm
ORIGINAL: larryfulkerson
I'm not sure but I think one of them might be the picture of the equipment used in the inventory report panel. The picture of the equipment on the far left edge of the inventory dialog. Equipment256.png I think.
Great, thanks, will take a look.

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 10:02 pm
by 76mm
ORIGINAL: larryfulkerson
...I think one of them might be the index to the picture of the equipment used in the inventory report panel.
Thanks again, Larry. After poking around a bit, I can confirm that UNIT1 is the ID for the unit silhouette, and UNIT2 is the ID for the 3D image.

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 10:06 pm
by larryfulkerson
ORIGINAL: 76mm
ORIGINAL: larryfulkerson
...I think one of them might be the index to the picture of the equipment used in the inventory report panel.
Thanks again, Larry. After poking around a bit, I can confirm that UNIT1 is the ID for the unit silhouette, and UNIT2 is the ID for the 3D image.
Great ! You've made me very happy that I could help out a little bit. I'm not sure how you might use that information now that you know what they stand for but I'm pretty sure you'll find a way.

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 10:28 pm
by 76mm
ORIGINAL: larryfulkerson
I'm not sure how you might use that information now that you know what they stand for but I'm pretty sure you'll find a way.

Actually, now that I know what it is, I will completely ignore this data! I will rely on the DB creators/editors to get the 2D/3D images right in the eqp files (and I don't need the 2D images at all in any event).

RE: TOAW XML Editor

Posted: Sun Apr 21, 2019 10:41 pm
by larryfulkerson
I've got a tiny suggestion that I think might just be unworkable.

Image

RE: TOAW XML Editor

Posted: Mon Apr 22, 2019 4:35 am
by cathar1244
Hi 76mm,

I have to test this, but I think the relationship is, if a unit is capable of ranged fire (aircraft / artillery), then the anti-shipping is calculated something like this (not sure if this is accurate or not):

Code: Select all

 AP value    Anti-Shipping value
 
 01-05       120
 06-10       240
 11-15       360
 16-20       480
 
 etc.
 

You are correct, it is not explicitly stated in the equipment file -- it is generated by the game on the basis of the antipersonnel rating.

Another attribute like this that would be useful to depict would be the transportation cost (weight) of equipment and units. It is another auto-generated characteristic.

Cheers
There is no "Anti-Shipping" value here? The "Anti-Shipping" flag will be indicated in the box in the upper right corner, but that does not display a value, only that equipment has anti-shipping capability. Can you send me the eqp file extract for the A-6 from your eqp file? Other ideas?

RE: TOAW XML Editor

Posted: Mon Apr 22, 2019 4:43 am
by larryfulkerson

from TOAWEquipment.eqp:

<ITEM_1832>
<NAME>A-6 Intruder</NAME>
<COUNTRY>United States - 1961</COUNTRY>
<EQUIP1>257</EQUIP1>
<EQUIP2>356</EQUIP2>
<AT>4</AT>
<AP>54</AP>
<AA>14</AA>
<DF>21</DF>
<ARTY_RNG>1440</ARTY_RNG>
<EARLY_RNG>0</EARLY_RNG>
<SAM_RNG>0</SAM_RNG>
<NUKE>75000</NUKE>
<VOL>999</VOL>
<WEIGHT>0</WEIGHT>
<SHELL_W>250</SHELL_W>
<ARMOR>1</ARMOR>
<DEFENDER>0</DEFENDER>
<FLAG0>0</FLAG0>
<FLAG1>32</FLAG1>
<FLAG2>36</FLAG2>
<FLAG3>3</FLAG3>
<FLAG4>120</FLAG4>
<FLAG5>2</FLAG5>
<FLAG6>0</FLAG6>
<FLAG7>0</FLAG7>
</ITEM_1832>


from TOAW4 Database v4

<NAME>A-6 Intruder</NAME>
<COUNTRY>United States - 1961</COUNTRY>
<EQUIP1>257</EQUIP1>
<EQUIP2>356</EQUIP2>
<AT>4</AT>
<AP>54</AP>
<AA>14</AA>
<DF>21</DF>
<ARTY_RNG>1440</ARTY_RNG>
<EARLY_RNG>0</EARLY_RNG>
<SAM_RNG>0</SAM_RNG>
<NUKE>75000</NUKE>
<VOL>999</VOL>
<WEIGHT>0</WEIGHT>
<SHELL_W>250</SHELL_W>
<ARMOR>1</ARMOR>
<FLAG0>0</FLAG0>
<FLAG1>32</FLAG1>
<FLAG2>36</FLAG2>
<FLAG3>3</FLAG3>
<FLAG4>120</FLAG4>
<FLAG5>2</FLAG5>
<FLAG6>0</FLAG6>
<FLAG7>0</FLAG7>
</ITEM_3848>


from equipment.eqp TOAW III

<ITEM_1832>
<NAME>A-6 Intruder</NAME>
<COUNTRY>United States - 1961</COUNTRY>
<EQUIP1>257</EQUIP1>
<EQUIP2>356</EQUIP2>
<AT>4</AT>
<AP>54</AP>
<AA>14</AA>
<DF>21</DF>
<ARTY_RNG>1440</ARTY_RNG>
<EARLY_RNG>0</EARLY_RNG>
<SAM_RNG>0</SAM_RNG>
<NUKE>75000</NUKE>
<VOL>999</VOL>
<WEIGHT>0</WEIGHT>
<SHELL_W>250</SHELL_W>
<ARMOR>1</ARMOR>
<FLAG0>0</FLAG0>
<FLAG1>32</FLAG1>
<FLAG2>36</FLAG2>
<FLAG3>3</FLAG3>
<FLAG4>120</FLAG4>
<FLAG5>2</FLAG5>
<FLAG6>0</FLAG6>
<FLAG7>0</FLAG7>
</ITEM_1832>




RE: TOAW XML Editor

Posted: Mon Apr 22, 2019 9:15 am
by 76mm
ORIGINAL: larryfulkerson
I've got a tiny suggestion that I think might just be unworkable.
Larry, hopefully I'll get to this one day but anything involving graphics, especially the map, is a whole other level of complexity, so I've got to put it off for now.

Personally for now I would just jot down all the objectives with analog pen and paper while you've got TOAW open...

RE: TOAW XML Editor

Posted: Mon Apr 22, 2019 9:20 am
by 76mm
ORIGINAL: cathar1244
I have to test this, but I think the relationship is, if a unit is capable of ranged fire (aircraft / artillery), then the anti-shipping is calculated something like this (not sure if this is accurate or not):
OK, if we can figure out the formula with certainty, I will try to get it in. But I wonder if it is more complicated than that...for instance, what if equipment has both the "Anti-Shipping" and "Torpedo Bomber" flags--will it have a higher anti-ship rating than just "Anti-Shipping"? Could Shell Weight also have an effect?
ORIGINAL: cathar1244
Another attribute like this that would be useful to depict would be the transportation cost (weight) of equipment and units. It is another auto-generated characteristic.
I've already included Weight (for equipment)? As noted in my post below, I have not yet figured out (or even really thought about) how to translate equipment characteristics/values into the data/values in Unit Reports.

RE: TOAW XML Editor

Posted: Mon Apr 22, 2019 9:28 am
by 76mm
A whole 'nother kettle of fish is how to translate equipment characteristics (Flags) into "Special Abilities" in the Unit Report (see below):

Several issues here:
--how are the % figures calculated?
--where do some of the special abilities ("Minor Ferry") come from?
--some Special Abilities (Headquarters) seem to be conferred by the unit icon rather than by flags.

I'll probably leave this kind of unit report alone unless/until we somehow get a comprehensive understanding of how all of that works...

Image

RE: TOAW XML Editor

Posted: Mon Apr 22, 2019 10:20 am
by Lobster
As far as I've been able to determine every engineer squad has minor ferry ability. It's associated with the engineer flag. To have the major ferry ability the Major Ferry flag has to be checked in the equipment editor. Just a guess but I would guess percentage of ability has to do with the number of engineer squads to total number of equipment in a unit.

At a guess I would say that the majority of the special abilities are flags set in the equipment editor and the percentage ability is based on equipment numbers as a percentage of the whole unit.

RE: TOAW XML Editor

Posted: Mon Apr 22, 2019 10:38 am
by sPzAbt653
I don't think the total number of equipment has a bearing. Below I changed Heavy Rifle Squads from 4000 to 40 and it had no effect on Engineering ability.

Image