Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    unitInitialize

    Map Making
    4
    5
    436
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      andrewthree Moderators last edited by

      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?

      C 1 Reply Last reply Reply Quote 0
      • C
        Cernel Moderators @andrewthree last edited by

        @andrewthree Change >> to >.

        1 Reply Last reply Reply Quote 1
        • redrum
          redrum Admin last edited by

          @andrewthree said in unitInitialize:

          <unitPlacement unitType="Infantry" territory="Warsaw" quantity="1"/>>

          More specifically that line.

          1 Reply Last reply Reply Quote 1
          • A
            andrewthree Moderators last edited by

            Thank you both! It's amazing how you can be looking right at something and not see it.

            B 1 Reply Last reply Reply Quote 1
            • B
              beelee @andrewthree last edited by

              @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 🙂

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums