Scenario XML

The sequel of the legendary wargame with a complete graphics and interface overhaul, major new gameplay and design features such as full naval combat modelling, improved supply handling, numerous increases to scenario parameters to better support large scenarios, and integrated PBEM++.
Post Reply
Ratbag55
Posts: 67
Joined: Fri Jun 16, 2006 6:48 am

Scenario XML

Post by Ratbag55 »

I am looking at the exported XML file from a scenario I am developing, and a code entry appears inconsistantly for "NEXT". Why do some units in some formations have the code NEXT?

See example below.

Many thanks
Ratbag



</UNIT>
<UNIT ID="59" NAME="288 TyGABr" ICON="Armored Artillery" COLOR="24" SIZE="Brigade" EXPERIENCE="untried" CHARACTERISTICS="A0020008" PROFICIENCY="70" READINESS="90" SUPPLY="100" X="174" Y="173" EMPHASIS="Limit Losses" STATUS="8" REPLACEMENTPRIORITY="0">
<EQUIPMENT ID="1" NAME="2S5 152mm SP Gun" NUMBER="72" MAX="72" DAMAGE="0"/>
<EQUIPMENT ID="2" NAME="ZU-23 Dual 23mm AA Gun" NUMBER="8" MAX="8" DAMAGE="0"/>
<EQUIPMENT ID="3" NAME="SA-14/16 MPSAM" NUMBER="75" MAX="75" DAMAGE="0"/>
<EQUIPMENT ID="4" NAME="BTR-80 APC" NUMBER="4" MAX="4" DAMAGE="0"/>
<EQUIPMENT ID="5" NAME="Truck" NUMBER="72" MAX="72" DAMAGE="0"/>
</UNIT>
<UNIT ID="60" NAME="303 GvPABr" ICON="Armored Artillery" COLOR="24" SIZE="Brigade" EXPERIENCE="untried" CHARACTERISTICS="A0004008" PROFICIENCY="70" READINESS="90" SUPPLY="100" X="158" Y="140" EMPHASIS="Limit Losses" STATUS="8" REPLACEMENTPRIORITY="0">
<EQUIPMENT ID="1" NAME="2S5 152mm SP Gun" NUMBER="72" MAX="72" DAMAGE="0"/>
<EQUIPMENT ID="2" NAME="ZU-23 Dual 23mm AA Gun" NUMBER="8" MAX="8" DAMAGE="0"/>
<EQUIPMENT ID="3" NAME="SA-14/16 MPSAM" NUMBER="75" MAX="75" DAMAGE="0"/>
<EQUIPMENT ID="4" NAME="BTR-80 APC" NUMBER="4" MAX="4" DAMAGE="0"/>
<EQUIPMENT ID="5" NAME="Truck" NUMBER="72" MAX="72" DAMAGE="0"/>
</UNIT>
<UNIT ID="61" NAME="307 RABr" ICON="Motor Rocket" COLOR="24" SIZE="Brigade" EXPERIENCE="untried" CHARACTERISTICS="A0020008" PROFICIENCY="70" READINESS="90" SUPPLY="100" X="174" Y="173" EMPHASIS="Limit Losses" NEXT="59" STATUS="8" REPLACEMENTPRIORITY="0">
<EQUIPMENT ID="1" NAME="BM-9A52-2 300mm SPMRL" NUMBER="72" MAX="72" DAMAGE="0"/>
<EQUIPMENT ID="2" NAME="ZU-23 Dual 23mm AA Gun" NUMBER="6" MAX="6" DAMAGE="0"/>
<EQUIPMENT ID="3" NAME="SA-14/16 MPSAM" NUMBER="75" MAX="75" DAMAGE="0"/>
<EQUIPMENT ID="4" NAME="BTR-80 APC" NUMBER="8" MAX="8" DAMAGE="0"/>
<EQUIPMENT ID="5" NAME="Truck" NUMBER="72" MAX="72" DAMAGE="0"/>
</UNIT>
<UNIT ID="62" NAME="122 PTABr" ICON="Armored Antitank" COLOR="24" SIZE="Brigade" EXPERIENCE="untried" CHARACTERISTICS="A0040008" PROFICIENCY="70" READINESS="90" SUPPLY="100" X="189" Y="162" EMPHASIS="Limit Losses" STATUS="8" REPLACEMENTPRIORITY="0">
<EQUIPMENT ID="1" NAME="BRDM-2 Sagger SPATGM" NUMBER="12" MAX="12" DAMAGE="0"/>
<EQUIPMENT ID="2" NAME="125mm AT Gun" NUMBER="12" MAX="12" DAMAGE="0"/>
<EQUIPMENT ID="3" NAME="BRDM-2 Scout" NUMBER="4" MAX="4" DAMAGE="0"/>
<EQUIPMENT ID="4" NAME="BTR-80 APC" NUMBER="1" MAX="1" DAMAGE="0"/>
<EQUIPMENT ID="5" NAME="Tracked tractor" NUMBER="12" MAX="12" DAMAGE="0"/>
</UNIT>



User avatar
76mm
Posts: 4768
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: Scenario XML

Post by 76mm »

Next is the Unit ID for the "next" unit in the stack; if there is only a single unit in the hex, there is no stack, so no Next entry. At least that is my understanding, I actually haven't played around with this setting at all. Not sure if "Next" is the unit above, or below, or whether it cycles around, but that should be easy to figure out.
Ratbag55
Posts: 67
Joined: Fri Jun 16, 2006 6:48 am

RE: Scenario XML

Post by Ratbag55 »

Of course! That makes complete sense.

Thanks
Ratbag
Post Reply

Return to “The Operational Art of War IV”