TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    unitInitialize

    Scheduled Pinned Locked Moved Map Making
    5 Posts 4 Posters 1.1k Views 4 Watching
    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 Offline
      andrewthree Lobby 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 Offline
        Cernel Moderators Lobby Moderators @andrewthree
        last edited by

        @andrewthree Change >> to >.

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

          @andrewthree said in unitInitialize:

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

          More specifically that line.

          TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

          1 Reply Last reply Reply Quote 1
          • A Offline
            andrewthree Lobby 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 Offline
              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Powered by NodeBB Forums