TOAWxml Editor

Post new mods and scenarios here
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Tom,

I have had 3 crashes. It happens when you create a new unit in the game and assign it to a formation (after you have already built stuff) and then you use your tool and load it up and set starting position (x,y) and then save. Then you change it from mobile to turn reinforcement it gives you the default '---' for turn. If you don't input a turn and then save it and then reload it and try to enter a turn it crashes. But the work around is to open the XML and set this value to something for your scenario:

Code: Select all

ENTRY="19"
once you do that and then reload the XML into your tool you can now change that field.

Hope that makes sense.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
sPzAbt653
Posts: 10112
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: TOAW XML Editor

Post by sPzAbt653 »

Thanks very much for the latest version!

I know you are aware but I will mention it once more and will not again so as not to become the nag, can the color coding maybe be turned off by option? I can barely see the red, green, blue and gray.

What is that DIVIDED SUBUNIT message?

How do I delete an equipment item from a unit?

How do I copy equipment from one unit and paste it into another? [The function of the original 'G' and 'A' keys].

Image
Attachments
XMLEd7.jpg
XMLEd7.jpg (120.15 KiB) Viewed 396 times
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 can't think of seeing a scenario that uses @ for anything, so '@' as a replacement for the gibberish seems ok. But how do I search for stuff with this program? I hit Ctrl F and it brought up some scary looking propagation dialog.
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Steve,

To delete equipment just select and expand a unit, then you’ll see all the equipment it has. You can right click and select delete or add and a dialog will pop up and you’ll have to load your eqp on first load. Then you can filter and select the system you want, add the max # in lower right and then double click the newly selected system to set the assigned #. Last click the add equipment button.

I love the red and green it looks great in normal windows (white back ground) but your screen shot shows your using a non-standard theme for windows.

That said it may be a feature to add theming?

Suggest the dialing app can be double clicked to make bigger and increase the view point.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

The Divide Subunit should allow you to split a unit down (2 or 3) like on the game. I have not tried that feature yet.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

A basic walk-through with images:

Select and expand:
Image

Right click and add new:
Image

The new add dialog (note you'll have to double click the item you want to add):
Image

To delete just right click and delete:
Image
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
sPzAbt653
Posts: 10112
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: TOAW XML Editor

Post by sPzAbt653 »

Thanks Don. As you can see in the screenshot I posted above, the Add Equipment is not available [nor is the Delete Equipment]. I can, however, hit Ctrl + Delete and it will delete stuff.
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

No problem Steve, Tom will have to help in your other issue.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: sPzAbt653
I know you are aware but I will mention it once more and will not again so as not to become the nag, can the color coding maybe be turned off by option? I can barely see the red, green, blue and gray.
hmmm, I already made them bold for you. If that didn't help, I will think about creating an option for turning off color-coding, but no promises...
ORIGINAL: sPzAbt653
What is that DIVIDED SUBUNIT message?
Should indicate the "child" of a divided unit. If that unit is not such a child, it means I missed something in the code.
ORIGINAL: sPzAbt653
How do I delete an equipment item from a unit?
Select the equipment item in the TreeView, right-click and select Delete...
ORIGINAL: sPzAbt653
How do I copy equipment from one unit and paste it into another? [The function of the original 'G' and 'A' keys].
Select the equipment in the TreeView, right-click, select Copy, then drag the resulting copy (just below the copied equipment) to the unit where you want it.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: sPzAbt653
But how do I search for stuff with this program? I hit Ctrl F and it brought up some scary looking propagation dialog.
Now you need to do your searching in Notepad++ or similar. I recognize the utility of a search function, but have no idea how hard it would be to implement...it is on the list!
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Zovs
Suggest the dialing app can be double clicked to make bigger and increase the view point.
Sorry, no comprende?
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Zovs
The Divide Subunit should allow you to split a unit down (2 or 3) like on the game. I have not tried that feature yet.
It does!
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: sPzAbt653
Thanks Don. As you can see in the screenshot I posted above, the Add Equipment is not available [nor is the Delete Equipment]. I can, however, hit Ctrl + Delete and it will delete stuff.
Steve, the fact that the "Divided Subunit" message is showing and those three menu options are disabled would seem to indicate that that unit is in fact a divided subunit (you can't add or delete equipment from divided subunits, and to re-unite a unit you right-click on the parent). Is the unit color-coded blue (I can't tell in your screenie because the unit is selected).

Even if you don't think it should be a divided subunit, it might be a divided subunit in the game (I've come across this before in some scenarios). Best way to tell is to look at the line in the XML file for that unit--if the line has a PARENT attribute, then it is a divided subunit. If you send me the gam file, I can check.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Zovs
I have had 3 crashes. It happens when you create a new unit in the game and assign it to a formation (after you have already built stuff) and then you use your tool and load it up and set starting position (x,y) and then save. Then you change it from mobile to turn reinforcement it gives you the default '---' for turn. If you don't input a turn and then save it and then reload it and try to enter a turn it crashes.
Thanks Don, this is a helpful description, I will take a look. I do all of my testing with scenarios included with the game, so issues seems to arise with newly-created scenarios. I try to validate all data but seem to have missed this one, so will take a look.

This will be top-priority for a fix, although I'm out of pocket tomorrow, so won't have a chance to take a look until Sunday!
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Zovs
The new add dialog (note you'll have to double click the item you want to add):
Actually you shouldn't have to double-click; just click, enter the Max Qty, then the Current Qty, then the Add Equipment button.
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Unless I am doing something wrong, for me I have to first select a new system from the list, then inputs max qty, the current qty is in-selectable until I double on the new system again, which opens up the current qty for me to edit.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
Lobster
Posts: 5542
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

RE: TOAWxml Editor

Post by Lobster »

What is meant by a Locked Formation?
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
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
ORIGINAL: sPzAbt653
Thanks Don. As you can see in the screenshot I posted above, the Add Equipment is not available [nor is the Delete Equipment]. I can, however, hit Ctrl + Delete and it will delete stuff.
Steve, the fact that the "Divided Subunit" message is showing and those three menu options are disabled would seem to indicate that that unit is in fact a divided subunit (you can't add or delete equipment from divided subunits, and to re-unite a unit you right-click on the parent). Is the unit color-coded blue (I can't tell in your screenie because the unit is selected).

Even if you don't think it should be a divided subunit, it might be a divided subunit in the game (I've come across this before in some scenarios). Best way to tell is to look at the line in the XML file for that unit--if the line has a PARENT attribute, then it is a divided subunit. If you send me the gam file, I can check.

It appears that all of the Soviet (Force 2) units are marked as Divided Subunit. And the XML file has them all, 1225 of them, marked as a parent unit. Yet in the game Deployment mode I can divide the units.

<UNIT ID="1225" NAME="6-41 MC Mcyc Rgt" ICON="Motorcycle" COLOR="105" SIZE="Regiment" EXPERIENCE="untried" PROFICIENCY="33" READINESS="100" SUPPLY="100" EMPHASIS="Limit Losses" PARENT="1225" STATUS="0" REPLACEMENTPRIORITY="0">
<EQUIPMENT ID="1" NAME="Light Machinegun DP 1928" NUMBER="192" MAX="192" DAMAGE="0"/>
<EQUIPMENT ID="2" NAME="Lt Motorcycle Squad" NUMBER="87" MAX="87" DAMAGE="0"/>
<EQUIPMENT ID="3" NAME="Motorcycle Squad" NUMBER="45" MAX="45" DAMAGE="0"/>
<EQUIPMENT ID="4" NAME="BA-10 AC" NUMBER="17" MAX="17" DAMAGE="0"/>
<EQUIPMENT ID="5" NAME="50mm Mortar" NUMBER="24" MAX="24" DAMAGE="0"/>
<EQUIPMENT ID="6" NAME="Medium Machinegun Maxim 1910" NUMBER="16" MAX="16" DAMAGE="0"/>
<EQUIPMENT ID="7" NAME="45mm AT" NUMBER="6" MAX="6" DAMAGE="0"/>
<EQUIPMENT ID="8" NAME="Lt Engineer Squad" NUMBER="4" MAX="4" DAMAGE="0"/>
<EQUIPMENT ID="9" NAME="Truck" NUMBER="15" MAX="15" DAMAGE="0"/>
<EQUIPMENT ID="10" NAME="Tractor" NUMBER="2" MAX="2" DAMAGE="0"/>
<EQUIPMENT ID="11" NAME="Light Transport" NUMBER="1" MAX="1" DAMAGE="0"/>
</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
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Zovs
Unless I am doing something wrong, for me I have to first select a new system from the list, then inputs max qty, the current qty is in-selectable until I double on the new system again, which opens up the current qty for me to edit.
Actually, to enable the Current Qty box the plan was to tab out of the Max Qty, then tab out to the Add Equipment button.

This was an attempt to prevent incorrect quantities from being entered, but I myself have found it rather awkward and think I've come up with a better way to handle this in the next version.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAWxml Editor

Post by 76mm »

ORIGINAL: Lobster
What is meant by a Locked Formation?
Formations with Static, Wait, Delay, Hold, or Garrison orders (ie, formations which cannot move).

One problem with these formations is that the XML does not expose a way to "unlock" them...
Post Reply

Return to “Mods and Scenarios”