Page 17 of 31
RE: TOAW XML Editor
Posted: Fri May 03, 2019 6:24 pm
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:
once you do that and then reload the XML into your tool you can now change that field.
Hope that makes sense.
RE: TOAW XML Editor
Posted: Fri May 03, 2019 6:33 pm
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].

RE: TOAW XML Editor
Posted: Fri May 03, 2019 6:46 pm
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.
RE: TOAW XML Editor
Posted: Fri May 03, 2019 7:09 pm
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.
RE: TOAW XML Editor
Posted: Fri May 03, 2019 7:11 pm
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.
RE: TOAW XML Editor
Posted: Fri May 03, 2019 7:30 pm
by Zovs
A basic walk-through with images:
Select and expand:
Right click and add new:
The new add dialog (note you'll have to double click the item you want to add):
To delete just right click and delete:

RE: TOAW XML Editor
Posted: Fri May 03, 2019 7:34 pm
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.
RE: TOAW XML Editor
Posted: Fri May 03, 2019 7:56 pm
by Zovs
No problem Steve, Tom will have to help in your other issue.
RE: TOAW XML Editor
Posted: Fri May 03, 2019 8:09 pm
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.
RE: TOAW XML Editor
Posted: Fri May 03, 2019 8:11 pm
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!
RE: TOAW XML Editor
Posted: Fri May 03, 2019 8:12 pm
by 76mm
ORIGINAL: Zovs
Suggest the dialing app can be double clicked to make bigger and increase the view point.
Sorry, no comprende?
RE: TOAW XML Editor
Posted: Fri May 03, 2019 8:13 pm
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!
RE: TOAW XML Editor
Posted: Fri May 03, 2019 8:21 pm
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.
RE: TOAW XML Editor
Posted: Fri May 03, 2019 8:26 pm
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!
RE: TOAW XML Editor
Posted: Fri May 03, 2019 8:36 pm
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.
RE: TOAW XML Editor
Posted: Fri May 03, 2019 10:47 pm
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.
RE: TOAWxml Editor
Posted: Fri May 03, 2019 11:13 pm
by Lobster
What is meant by a Locked Formation?
RE: TOAW XML Editor
Posted: Fri May 03, 2019 11:23 pm
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>
RE: TOAW XML Editor
Posted: Sat May 04, 2019 8:14 am
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.
RE: TOAWxml Editor
Posted: Sat May 04, 2019 8:19 am
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...