XML Tags descriptions (Full Version)

All Forums >> [New Releases from Matrix Games] >> The Operational Art of War IV >> Mods and Scenarios



Message


John T_MatrixForum -> XML Tags descriptions (12/31/2017 10:47:11 AM)

Hi

In the OOB XML
Some Units have a NEXT tag

What does that mean ?
the order units are shown ?


Is there a documentation of the XM structures (Most make sense but some are harder to guess)

AND Is there a log of the OOB load procedure ?
Right now I have a OOB file that just locks the editor.
Sometimes it gives very good errormessages but sometimes it just disapear into oblivion




Oberst_Klink -> RE: XML Tags descriptions (12/31/2017 12:02:09 PM)


quote:

ORIGINAL: John T_MatrixForum

Hi

In the OOB XML
Some Units have a NEXT tag

What does that mean ?
the order units are shown ?


Is there a documentation of the XM structures (Most make sense but some are harder to guess)

AND Is there a log of the OOB load procedure ?
Right now I have a OOB file that just locks the editor.
Sometimes it gives very good errormessages but sometimes it just disapear into oblivion

Alter Schwede,

dump the .XML or .OOB here or somewhere into the cloud. sometimes there are parsing errors because of some syntax and tags missing. Also have a look at the Tutorial '42- Editor sandbox scenario where I explained how to work with Notepad++ and Andy's Editor to create .TOW, .UNIT, .FORCE, .OOB files.

Tutorial '41: http://www.matrixgames.com/forums/tm.asp?m=4382552
Tutorial '42: http://www.matrixgames.com/forums/tm.asp?m=4387818
Tutorial '42 - Editor: http://www.matrixgames.com/forums/tm.asp?m=4401098
Tutorial '43: http://www.matrixgames.com/forums/tm.asp?m=4390285
Tutorial '43 - Combat: http://www.matrixgames.com/forums/tm.asp?m=4394374
Tutorial '44: http://www.matrixgames.com/forums/tm.asp?m=4397183

Klink, Oberst




John T_MatrixForum -> RE: XML Tags descriptions (1/5/2018 7:50:17 PM)


The pure crashes are slightly frustrating but with NP++ and an the compare plugin
you can move forward stepwise and find the error within reasonable time.

I still don't get how to install Andys editor
(Reinstalled TOAW III and the editor there after but still don't get it)


Anyhow what I was looking for was the meaning of tags in the XML file
Formation is rather selfexplanatory:

quote:


<xs:element minOccurs="0" maxOccurs="unbounded" name="FORMATION">
<xs:attribute name="ID" type="xs:unsignedByte" use="optional" />
<xs:attribute name="NAME" type="xs:string" use="optional" />
<xs:attribute name="PROFICIENCY" type="xs:unsignedByte" use="optional" />
<xs:attribute name="SUPPLY" type="xs:unsignedByte" use="optional" />
<xs:attribute name="SUPPORTSCOPE" type="xs:string" use="optional" />
<xs:attribute name="ORDERS" type="xs:string" use="optional" />
<xs:attribute name="EMPHASIS" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>


But I have more problem with Unit:


quote:

<xs:element minOccurs="0" maxOccurs="unbounded" name="UNIT">
<xs:complexType>
<xs:attribute name="ID" type="xs:unsignedShort" use="optional" />
<xs:attribute name="NAME" type="xs:string" use="optional" />
<xs:attribute name="ICON" type="xs:string" use="optional" />
<xs:attribute name="ICONID" type="xs:unsignedByte" use="optional" />
<xs:attribute name="COLOR" type="xs:unsignedByte" use="optional" />
<xs:attribute name="SIZE" type="xs:string" use="optional" />
<xs:attribute name="EXPERIENCE" type="xs:string" use="optional" />
<xs:attribute name="CHARACTERISTICS" type="xs:string" use="optional" />
<xs:attribute name="PROFICIENCY" type="xs:unsignedByte" use="optional" />
<xs:attribute name="READINESS" type="xs:unsignedByte" use="optional" />
<xs:attribute name="SUPPLY" type="xs:unsignedByte" use="optional" />
<xs:attribute name="GOINGTOX" type="xs:unsignedByte" use="optional" />
<xs:attribute name="GOINGTOY" type="xs:unsignedShort" use="optional" />

<xs:attribute name="EMPHASIS" type="xs:string" use="optional" />
<xs:attribute name="STATUS" type="xs:unsignedByte" use="optional" />
<xs:attribute name="ENTRY" type="xs:unsignedShort" use="optional" />
<xs:attribute name="REPLACEMENTPRIORITY" type="xs:unsignedByte" use="optional" />
<xs:attribute name="SECONDARYICON" type="xs:string" use="optional" />
<xs:attribute name="X" type="xs:unsignedByte" use="optional" />
<xs:attribute name="Y" type="xs:unsignedShort" use="optional" />
<xs:attribute name="NEXT" type="xs:unsignedShort" use="optional" />
<xs:attribute name="CHARACTERISTICS2" type="xs:unsignedInt" use="optional" />

<xs:attribute name="PARENT" type="xs:unsignedShort" use="optional" />
</xs:complexType>
</xs:element>


CHARACTERISTICS - the bitpattern of the units all equipment capabilities ?


What is the difference between GOINGTOX and X ?

NEXT seems to point to another unit in the same formation but I don't see the logic

CHARACTERISTICS2 ???

PARENT -seems to be the same unit or if the unit are divided ?



Cheers
/John






Lobster -> RE: XML Tags descriptions (1/5/2018 8:26:13 PM)

Why are you even using this???? [:D]

The game editor does all of this.




Oberst_Klink -> RE: XML Tags descriptions (1/5/2018 8:46:03 PM)


quote:

ORIGINAL: John T_MatrixForum


The pure crashes are slightly frustrating but with NP++ and an the compare plugin
you can move forward stepwise and find the error within reasonable time.

I still don't get how to install Andys editor
(Reinstalled TOAW III and the editor there after but still don't get it)


Anyhow what I was looking for was the meaning of tags in the XML file
Formation is rather selfexplanatory:

quote:


<xs:element minOccurs="0" maxOccurs="unbounded" name="FORMATION">
<xs:attribute name="ID" type="xs:unsignedByte" use="optional" />
<xs:attribute name="NAME" type="xs:string" use="optional" />
<xs:attribute name="PROFICIENCY" type="xs:unsignedByte" use="optional" />
<xs:attribute name="SUPPLY" type="xs:unsignedByte" use="optional" />
<xs:attribute name="SUPPORTSCOPE" type="xs:string" use="optional" />
<xs:attribute name="ORDERS" type="xs:string" use="optional" />
<xs:attribute name="EMPHASIS" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>


But I have more problem with Unit:


quote:

<xs:element minOccurs="0" maxOccurs="unbounded" name="UNIT">
<xs:complexType>
<xs:attribute name="ID" type="xs:unsignedShort" use="optional" />
<xs:attribute name="NAME" type="xs:string" use="optional" />
<xs:attribute name="ICON" type="xs:string" use="optional" />
<xs:attribute name="ICONID" type="xs:unsignedByte" use="optional" />
<xs:attribute name="COLOR" type="xs:unsignedByte" use="optional" />
<xs:attribute name="SIZE" type="xs:string" use="optional" />
<xs:attribute name="EXPERIENCE" type="xs:string" use="optional" />
<xs:attribute name="CHARACTERISTICS" type="xs:string" use="optional" />
<xs:attribute name="PROFICIENCY" type="xs:unsignedByte" use="optional" />
<xs:attribute name="READINESS" type="xs:unsignedByte" use="optional" />
<xs:attribute name="SUPPLY" type="xs:unsignedByte" use="optional" />
<xs:attribute name="GOINGTOX" type="xs:unsignedByte" use="optional" />
<xs:attribute name="GOINGTOY" type="xs:unsignedShort" use="optional" />

<xs:attribute name="EMPHASIS" type="xs:string" use="optional" />
<xs:attribute name="STATUS" type="xs:unsignedByte" use="optional" />
<xs:attribute name="ENTRY" type="xs:unsignedShort" use="optional" />
<xs:attribute name="REPLACEMENTPRIORITY" type="xs:unsignedByte" use="optional" />
<xs:attribute name="SECONDARYICON" type="xs:string" use="optional" />
<xs:attribute name="X" type="xs:unsignedByte" use="optional" />
<xs:attribute name="Y" type="xs:unsignedShort" use="optional" />
<xs:attribute name="NEXT" type="xs:unsignedShort" use="optional" />
<xs:attribute name="CHARACTERISTICS2" type="xs:unsignedInt" use="optional" />

<xs:attribute name="PARENT" type="xs:unsignedShort" use="optional" />
</xs:complexType>
</xs:element>


CHARACTERISTICS - the bitpattern of the units all equipment capabilities ? My guess, too.


What is the difference between GOINGTOX and X ? Position of the unit x/y hex on map

NEXT seems to point to another unit in the same formation but I don't see the logic Don't have this string in my .OOB dumps.

CHARACTERISTICS2 ??? Linked to the alternate icon, my guess.

PARENT -seems to be the same unit or if the unit are divided ? YES



Cheers
/John




See above in bold.

Klink, Oberst




John T_MatrixForum -> RE: XML Tags descriptions (1/5/2018 8:58:27 PM)


quote:

ORIGINAL: Lobster

Why are you even using this???? [:D]

The game editor does all of this.


The User interface is as bad as ever but that seems to be by design so you have to live with it
(but it sucks)


First,
What Version of the software do you use?

For me The game editor is not stable (in plain language - does not work)
Sometimes it crashes to desktop,
Cut and paste a formation and the display of what formation a unit belongs to screws up.

I dont trust it and it is simply not in a state of a release candidate for professional software.



Secondly
I load the .gam file into A SQL Server so I can manipulate the OOB.

I working with the WeserUbung 5.2 and added Swedish units from my previous go at Weserubung 4.9
and checked the data from my original try at Weerubung 2.6

And then it is quite convenient to be able to change the unit ID Offset at one place and regenate the OOB.

And then it makes sense to understand how it is implemented.


Cheers
/John T




Oberst_Klink -> RE: XML Tags descriptions (1/5/2018 9:12:39 PM)


quote:

ORIGINAL: John T_MatrixForum


quote:

ORIGINAL: Lobster

Why are you even using this???? [:D]

The game editor does all of this.


The User interface is as bad as ever but that seems to be by design so you have to live with it
(but it sucks)


First,
What Version of the software do you use?

For me The game editor is not stable (in plain language - does not work)
Sometimes it crashes to desktop,
Cut and paste a formation and the display of what formation a unit belongs to screws up.

I dont trust it and it is simply not in a state of a release candidate for professional software.



Secondly
I load the .gam file into A SQL Server so I can manipulate the OOB.

I working with the WeserUbung 5.2 and added Swedish units from my previous go at Weserubung 4.9
and checked the data from my original try at Weerubung 2.6

And then it is quite convenient to be able to change the unit ID Offset at one place and regenate the OOB.

And then it makes sense to understand how it is implemented.


Cheers
/John T

DO NOT manipulate the .GAM; that's where you sooner or later encounter parsing errors 'en mass! Dump only the .OOB as .OOB extension. Re-importing the .GAM, the OOB or the whole scenario part, I do NOT advise at all.

Klink, Oberst




John T_MatrixForum -> RE: XML Tags descriptions (1/5/2018 9:15:28 PM)


quote:

ORIGINAL: Oberst_Klink


See above in bold.

Klink, Oberst

Thanks
/John




Lobster -> RE: XML Tags descriptions (1/5/2018 10:23:32 PM)


quote:

ORIGINAL: John T_MatrixForum


quote:

ORIGINAL: Lobster

Why are you even using this???? [:D]

The game editor does all of this.


The User interface is as bad as ever but that seems to be by design so you have to live with it
(but it sucks)


First,
What Version of the software do you use?

For me The game editor is not stable (in plain language - does not work)
Sometimes it crashes to desktop,
Cut and paste a formation and the display of what formation a unit belongs to screws up.

I dont trust it and it is simply not in a state of a release candidate for professional software.



Secondly
I load the .gam file into A SQL Server so I can manipulate the OOB.

I working with the WeserUbung 5.2 and added Swedish units from my previous go at Weserubung 4.9
and checked the data from my original try at Weerubung 2.6

And then it is quite convenient to be able to change the unit ID Offset at one place and regenate the OOB.

And then it makes sense to understand how it is implemented.


Cheers
/John T


I see. I didn't realize the problem was with your machine. It all works fine for me and I can throw together an OOB with no problems. For me I can place a unit anyplace in an OOB no troubles. Sorry for your problems. Machine dependent bugs suck.




John T_MatrixForum -> RE: XML Tags descriptions (1/6/2018 1:26:43 AM)


quote:

ORIGINAL: Oberst_Klink

DO NOT manipulate the .GAM; that's where you sooner or later encounter parsing errors 'en mass! Dump only the .OOB as .OOB extension. Re-importing the .GAM, the OOB or the whole scenario part, I do NOT advise at all.

Klink, Oberst


I see, thanks for the advice.
So far I only generated parts of a OOB - Formation - Unit - Equipment
And I have to admit it isn't always easy to get it right.


But my favorite movie quote are "I ain't go myself a name being reasonable"
[:)]
/John




76mm -> RE: XML Tags descriptions (5/28/2018 10:50:22 PM)

quote:

ORIGINAL: Oberst_Klink
DO NOT manipulate the .GAM; that's where you sooner or later encounter parsing errors 'en mass! Dump only the .OOB as .OOB extension. Re-importing the .GAM, the OOB or the whole scenario part, I do NOT advise at all.

Hi Oberst, just want to make sure I understand your concern with manipulating and re-importing the .gam file--you say never do it?

So far, albeit with rather simple modifications (changing some equipment quantity numbers, the dates, and adding one unit), I haven't encountered any problems with making changes to a scenario .gam file. Is it just a matter of being extremely careful, or is it more complicated than that?

Also, what does the "status" tag indicate for units? From what I've seen so far, values are typically in the 7-9 range.
<UNIT ID="3" NAME="1/2" ICON="Infantry" COLOR="20" SIZE="Regiment" EXPERIENCE="veteran" CHARACTERISTICS="E0002009" PROFICIENCY="81" READINESS="33" SUPPLY="1" X="13" Y="4" EMPHASIS="Minimize Losses" NEXT="9973" STATUS="9" REPLACEMENTPRIORITY="0">




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.71875