Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

XML Tags descriptions

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> The Operational Art of War IV >> Mods and Scenarios >> XML Tags descriptions Page: [1]
Login
Message << Older Topic   Newer Topic >>
XML Tags descriptions - 12/31/2017 10:47:11 AM   
John T_MatrixForum

 

Posts: 62
Joined: 8/7/2000
From: Stockholm Sweden
Status: offline
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

< Message edited by John T_MatrixForum -- 12/31/2017 10:51:35 AM >


_____________________________

/John T
Post #: 1
RE: XML Tags descriptions - 12/31/2017 12:02:09 PM   
Oberst_Klink

 

Posts: 3807
Joined: 2/10/2008
From: Germany
Status: online

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

_____________________________

My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.

(in reply to John T_MatrixForum)
Post #: 2
RE: XML Tags descriptions - 1/5/2018 7:50:17 PM   
John T_MatrixForum

 

Posts: 62
Joined: 8/7/2000
From: Stockholm Sweden
Status: offline

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



(in reply to Oberst_Klink)
Post #: 3
RE: XML Tags descriptions - 1/5/2018 8:26:13 PM   
Lobster


Posts: 2258
Joined: 8/8/2013
From: Third rock from the Sun.
Status: offline
Why are you even using this????

The game editor does all of this.

_____________________________

http://www.operationbarbarossa.net/

"Getting back to reality...I'll only go as a tourist!"

(in reply to John T_MatrixForum)
Post #: 4
RE: XML Tags descriptions - 1/5/2018 8:46:03 PM   
Oberst_Klink

 

Posts: 3807
Joined: 2/10/2008
From: Germany
Status: online

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

_____________________________

My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.

(in reply to John T_MatrixForum)
Post #: 5
RE: XML Tags descriptions - 1/5/2018 8:58:27 PM   
John T_MatrixForum

 

Posts: 62
Joined: 8/7/2000
From: Stockholm Sweden
Status: offline

quote:

ORIGINAL: Lobster

Why are you even using this????

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

(in reply to Lobster)
Post #: 6
RE: XML Tags descriptions - 1/5/2018 9:12:39 PM   
Oberst_Klink

 

Posts: 3807
Joined: 2/10/2008
From: Germany
Status: online

quote:

ORIGINAL: John T_MatrixForum


quote:

ORIGINAL: Lobster

Why are you even using this????

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

_____________________________

My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.

(in reply to John T_MatrixForum)
Post #: 7
RE: XML Tags descriptions - 1/5/2018 9:15:28 PM   
John T_MatrixForum

 

Posts: 62
Joined: 8/7/2000
From: Stockholm Sweden
Status: offline

quote:

ORIGINAL: Oberst_Klink


See above in bold.

Klink, Oberst

Thanks
/John

(in reply to Oberst_Klink)
Post #: 8
RE: XML Tags descriptions - 1/5/2018 10:23:32 PM   
Lobster


Posts: 2258
Joined: 8/8/2013
From: Third rock from the Sun.
Status: offline

quote:

ORIGINAL: John T_MatrixForum


quote:

ORIGINAL: Lobster

Why are you even using this????

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.

_____________________________

http://www.operationbarbarossa.net/

"Getting back to reality...I'll only go as a tourist!"

(in reply to John T_MatrixForum)
Post #: 9
RE: XML Tags descriptions - 1/6/2018 1:26:43 AM   
John T_MatrixForum

 

Posts: 62
Joined: 8/7/2000
From: Stockholm Sweden
Status: offline

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

(in reply to Oberst_Klink)
Post #: 10
RE: XML Tags descriptions - 5/28/2018 10:50:22 PM   
76mm


Posts: 3342
Joined: 5/2/2004
From: Washington, DC
Status: offline
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">

(in reply to Oberst_Klink)
Post #: 11
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> The Operational Art of War IV >> Mods and Scenarios >> XML Tags descriptions Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.127