unitInitialize
-
I am trying to make a map and when I open Triplea and try to select the map to test it I get the message:
Apr 04, 2020 10:05:14 PM games.strategy.engine.data.GameParser parseMapProperties
SEVERE: SAXParseException: game: struggle_for_europe, line: 7151, column: 22, error: The content of element type "unitInitialize" must match "(unitPlacement*,heldUnits*)".From the XML file:
<unitInitialize>
<!-- German Unit Placements -->
<unitPlacement unitType="Infantry" territory="264 lz" quantity="1" owner="Germans"/>
<unitPlacement unitType="Infantry" territory="308 lz" quantity="1" owner="Germans"/>
<unitPlacement unitType="Infantry" territory="Saarbrucken" quantity="1" owner="Germans"/>
<unitPlacement unitType="Armor" territory="Prague" quantity="1" owner="Germans"/>
<unitPlacement unitType="Fleet" territory="124 sz" quantity="1" owner="Germans"/>
<unitPlacement unitType="U-boat" territory="246 sz" quantity="1" owner="Germans"/>
<unitPlacement unitType="Air" territory="Berlin" quantity="1" owner="Germans"/>
<unitPlacement unitType="Air" territory="Prague" quantity="1" owner="Germans"/>
<unitPlacement unitType="Factory" territory="Berlin" quantity="1" owner="Germans"/>
<unitPlacement unitType="Factory" territory="Hamburg" quantity="1" owner="Germans"/>
<unitPlacement unitType="Factory" territory="Cologne" quantity="1" owner="Germans"/>
<unitPlacement unitType="Infantry" territory="Rome" quantity="1" owner="Italians"/>
<unitPlacement unitType="Fleet" territory="364 sz" quantity="1" owner="Italians"/>
<unitPlacement unitType="Factory" territory="Rome" quantity="1" owner="Italians"/>
<unitPlacement unitType="Infantry" territory="291 lz" quantity="1" owner="Russians"/>
<unitPlacement unitType="Infantry" territory="Minsk" quantity="1" owner="Russians"/>
<unitPlacement unitType="Infantry" territory="Leningrad" quantity="1" owner="Russians"/>
<unitPlacement unitType="Infantry" territory="201 lz" quantity="1" owner="Russians"/>
<unitPlacement unitType="Factory" territory="Moscow" quantity="1" owner="Russians"/>
<unitPlacement unitType="Factory" territory="Leningrad" quantity="1" owner="Russians"/>
<unitPlacement unitType="Infantry" territory="London" quantity="1" owner="British"/>
<unitPlacement unitType="Fleet" territory="147 sz" quantity="1" owner="British"/>
<unitPlacement unitType="Fleet" territory="282 sz" quantity="1" owner="British"/>
<unitPlacement unitType="Air" territory="London" quantity="1" owner="British"/>
<unitPlacement unitType="Factory" territory="Manchester" quantity="1" owner="British"/>
<unitPlacement unitType="Factory" territory="London" quantity="1" owner="British"/>
<unitPlacement unitType="Infantry" territory="312 lz" quantity="1" owner="French"/>
<unitPlacement unitType="Infantry" territory="Rheims" quantity="1" owner="French"/>
<unitPlacement unitType="Infantry" territory="Paris" quantity="1" owner="French"/>
<unitPlacement unitType="Factory" territory="Paris" quantity="1" owner="French"/>
<unitPlacement unitType="Infantry" territory="Warsaw" quantity="1"/>>
<unitPlacement unitType="Infantry" territory="Kalisz" quantity="1"/>
<unitPlacement unitType="Factory" territory="Warsaw" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Antwerp" quantity="1"/>
<unitPlacement unitType="Infantry" territory="344 lz" quantity="1"/>
<unitPlacement unitType="Infantry" territory="325 lz" quantity="1"/>
<unitPlacement unitType="Factory" territory="Bucharest" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Sofia" quantity="1"/>
<unitPlacement unitType="Infantry" territory="135 lz" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Stockholm" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Zagreb" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Belgrade" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Athens" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Istanbul" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Izmir" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Ankara" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Malaga" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Madrid" quantity="1"/>
<unitPlacement unitType="Infantry" territory="Bern" quantity="1"/>
</unitInitialize>Can anyone tell me what is wrong?
-
@andrewthree Change
>>
to>
. -
@andrewthree said in unitInitialize:
<unitPlacement unitType="Infantry" territory="Warsaw" quantity="1"/>>
More specifically that line.
-
Thank you both! It's amazing how you can be looking right at something and not see it.
-
@andrewthree said in unitInitialize:
Thank you both! It's amazing how you can be looking right at something and not see it.
Heh heh It's got me many a time