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

    Canal Bug

    Scheduled Pinned Locked Moved Bug Reports
    7 Posts 4 Posters 2.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.
    • SchulzS Offline
      Schulz
      last edited by Schulz

      Triplea engine does not allow using one sea zone for two different canal. For example in Crazy Europe's map I am not allowed to create Bosphorus and Dardanelles at the same time because they have both the same sea zone (Sea Zone 190 aka Sea of Marmara)

      redrumR C 2 Replies Last reply Reply Quote 0
      • redrumR Offline
        redrum Admin @Schulz
        last edited by

        @schulz Can you post the map zip?

        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 0
        • C Offline
          Cernel Moderators Lobby Moderators @Schulz
          last edited by

          @schulz I believe this would be an invalid bug report.

          However, I suppose you are supposed to paste the code you are trying to use, if referring to an availabe game, or your entire map, otherwise, and the eventual error you are getting, for the bug report to be actually verifiable, specifically.

          Try using (pasting in your game xml) this code and let us know if it works:

          	<attachment name="canalAttachmentTurkey 02 - Turkey 06" attachTo="Sea Zone 184" javaClass="games.strategy.triplea.attachments.CanalAttachment" type="territory">
          		<option name="canalName" value="the Dardanelles strait"/>
          		<option name="landTerritories" value="Turkey 02:Turkey 06"/>
          	</attachment>
          	<attachment name="canalAttachmentTurkey 02 - Turkey 06" attachTo="Sea Zone 190" javaClass="games.strategy.triplea.attachments.CanalAttachment" type="territory">
          		<option name="canalName" value="the Dardanelles strait"/>
          		<option name="landTerritories" value="Turkey 02:Turkey 06"/>
          	</attachment>
          
          	<attachment name="canalAttachmentTurkey 03 - Turkey 04" attachTo="Sea Zone 190" javaClass="games.strategy.triplea.attachments.CanalAttachment" type="territory">
          		<option name="canalName" value="the Bosphorus strait"/>
          		<option name="landTerritories" value="Turkey 03:Turkey 04"/>
          	</attachment>
          	<attachment name="canalAttachmentTurkey 03 - Turkey 04" attachTo="Sea Zone 191" javaClass="games.strategy.triplea.attachments.CanalAttachment" type="territory">
          		<option name="canalName" value="the Bosphorus strait"/>
          		<option name="landTerritories" value="Turkey 03:Turkey 04"/>
          	</attachment>
          
          SchulzS General_ZodG 2 Replies Last reply Reply Quote 1
          • SchulzS Offline
            Schulz @Cernel
            last edited by

            @cernel

            Thank you. Problem is solved. I have forgot to give different attachment numbers to canals.

            1 Reply Last reply Reply Quote 0
            • General_ZodG Offline
              General_Zod Lobby Moderators @Cernel
              last edited by General_Zod

              @cernel

              Does it work with actual spaces and - , in the attachment names? I think this format can cause problems down the line if your using spaces across the board.

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                Cernel Moderators Lobby Moderators @General_Zod
                last edited by

                @general_zod If you mean the "name", of course not. That just needs to be different if attached to a same sea zone, and, beside assuring this, it has no use.

                I could have called the first two ones "canalAttachment1" and the last two ones "canalAttachment2", or whatever, as long as not the same.

                General_ZodG 1 Reply Last reply Reply Quote 0
                • General_ZodG Offline
                  General_Zod Lobby Moderators @Cernel
                  last edited by

                  @cernel

                  Yes I was referring to attachment names. I've noticed that certain features do not even acknowledge the attachment if formatted badly.

                  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