TOAWxml Editor

Post new mods and scenarios here
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post 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
Attachments
eqpvalues.jpg
eqpvalues.jpg (134.67 KiB) Viewed 187 times
User avatar
cathar1244
Posts: 1298
Joined: Sat Sep 05, 2009 2:16 am

RE: TOAW XML Editor

Post 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
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post 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?
User avatar
cathar1244
Posts: 1298
Joined: Sat Sep 05, 2009 2:16 am

RE: TOAW XML Editor

Post 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
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post 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?
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post 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.
User avatar
Lobster
Posts: 5542
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

RE: TOAW XML Editor

Post 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]
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.
User avatar
larryfulkerson
Posts: 42791
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: TOAW XML Editor

Post 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
Attachments
temp.jpg
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
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post 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.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post 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.
User avatar
larryfulkerson
Posts: 42791
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: TOAW XML Editor

Post 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.
Russia’s 41st Army COLLAPSED in Pokrovsk — 25,000 Soldiers KILLED After a RIDICULOUS Russian Assault
https://www.youtube.com/watch?v=T_CtW3GqPQg
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post 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).
User avatar
larryfulkerson
Posts: 42791
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: TOAW XML Editor

Post by larryfulkerson »

I've got a tiny suggestion that I think might just be unworkable.

Image
Attachments
temp.jpg
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
User avatar
cathar1244
Posts: 1298
Joined: Sat Sep 05, 2009 2:16 am

RE: TOAW XML Editor

Post 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?
User avatar
larryfulkerson
Posts: 42791
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: TOAW XML Editor

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



Russia’s 41st Army COLLAPSED in Pokrovsk — 25,000 Soldiers KILLED After a RIDICULOUS Russian Assault
https://www.youtube.com/watch?v=T_CtW3GqPQg
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post 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...
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post 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.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post 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
Attachments
unitreport.jpg
unitreport.jpg (160.26 KiB) Viewed 187 times
User avatar
Lobster
Posts: 5542
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

RE: TOAW XML Editor

Post 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.
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.
User avatar
sPzAbt653
Posts: 10112
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: TOAW XML Editor

Post 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
Attachments
XMLEd3.jpg
XMLEd3.jpg (54.05 KiB) Viewed 187 times
Post Reply

Return to “Mods and Scenarios”