
TOAWxml Editor
RE: TOAW XML Editor
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...


- Attachments
-
- eqpvalues.jpg (134.67 KiB) Viewed 187 times
- cathar1244
- Posts: 1298
- Joined: Sat Sep 05, 2009 2:16 am
RE: TOAW XML Editor
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
sorry, I didn't even see that rating in the eqp files, although I didn't examine every piece of equipment.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.
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?
- cathar1244
- Posts: 1298
- Joined: Sat Sep 05, 2009 2:16 am
RE: TOAW XML Editor
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

Cheers

RE: TOAW XML Editor
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?
************
<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
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
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]
ne nothi tere te deorsum (don't let the bastards grind you down)
If duct tape doesn't fix it then you are not using enough duct tape.
Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
If duct tape doesn't fix it then you are not using enough duct tape.
Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
- larryfulkerson
- Posts: 42791
- Joined: Sat Apr 16, 2005 9:06 pm
- Location: Tucson, AZ,usa,sol, milkyway
- Contact:
RE: TOAW XML Editor
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.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.

- Attachments
-
- temp.jpg (130.14 KiB) Viewed 187 times
Russia’s 41st Army COLLAPSED in Pokrovsk — 25,000 Soldiers KILLED After a RIDICULOUS Russian Assault
https://www.youtube.com/watch?v=T_CtW3GqPQg
https://www.youtube.com/watch?v=T_CtW3GqPQg
RE: TOAW XML Editor
Great, thanks, will take a look.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.
RE: TOAW XML Editor
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.ORIGINAL: larryfulkerson
...I think one of them might be the index to the picture of the equipment used in the inventory report panel.
- larryfulkerson
- Posts: 42791
- Joined: Sat Apr 16, 2005 9:06 pm
- Location: Tucson, AZ,usa,sol, milkyway
- Contact:
RE: TOAW XML Editor
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.ORIGINAL: 76mmThanks 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.ORIGINAL: larryfulkerson
...I think one of them might be the index to the picture of the equipment used in the inventory report panel.
Russia’s 41st Army COLLAPSED in Pokrovsk — 25,000 Soldiers KILLED After a RIDICULOUS Russian Assault
https://www.youtube.com/watch?v=T_CtW3GqPQg
https://www.youtube.com/watch?v=T_CtW3GqPQg
RE: TOAW XML Editor
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).
- larryfulkerson
- Posts: 42791
- Joined: Sat Apr 16, 2005 9:06 pm
- Location: Tucson, AZ,usa,sol, milkyway
- Contact:
RE: TOAW XML Editor
I've got a tiny suggestion that I think might just be unworkable.


- Attachments
-
- temp.jpg (198.74 KiB) Viewed 187 times
Russia’s 41st Army COLLAPSED in Pokrovsk — 25,000 Soldiers KILLED After a RIDICULOUS Russian Assault
https://www.youtube.com/watch?v=T_CtW3GqPQg
https://www.youtube.com/watch?v=T_CtW3GqPQg
- cathar1244
- Posts: 1298
- Joined: Sat Sep 05, 2009 2:16 am
RE: TOAW XML Editor
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):
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
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?
- larryfulkerson
- Posts: 42791
- Joined: Sat Apr 16, 2005 9:06 pm
- Location: Tucson, AZ,usa,sol, milkyway
- Contact:
RE: TOAW XML Editor
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>
Russia’s 41st Army COLLAPSED in Pokrovsk — 25,000 Soldiers KILLED After a RIDICULOUS Russian Assault
https://www.youtube.com/watch?v=T_CtW3GqPQg
https://www.youtube.com/watch?v=T_CtW3GqPQg
RE: TOAW XML Editor
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.ORIGINAL: larryfulkerson
I've got a tiny suggestion that I think might just be unworkable.
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
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
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):
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.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.
RE: TOAW XML Editor
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...

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...

- Attachments
-
- unitreport.jpg (160.26 KiB) Viewed 187 times
RE: TOAW XML Editor
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.
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.
ne nothi tere te deorsum (don't let the bastards grind you down)
If duct tape doesn't fix it then you are not using enough duct tape.
Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
If duct tape doesn't fix it then you are not using enough duct tape.
Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
RE: TOAW XML Editor
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.


- Attachments
-
- XMLEd3.jpg (54.05 KiB) Viewed 187 times


