Navigation

    TripleA Logo

    TripleA Forum

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

    TripleA freezes with movementCostModifier

    Map Making
    3
    12
    40
    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.
    • VictoryFirst
      VictoryFirst last edited by

      I have the following territoryEffectAttachment:

      <attachment name="territoryEffectAttachment" attachTo="Convoy" javaClass="TerritoryEffectAttachment" type="territoryEffect">
        <option name="movementCostModifier" value="UK-scoutcar" count="-3"/>
      </attachment>
      

      UK-scoutcar has a movement of 4, so the intention with this is if this unit starts the turn inside a territory with territory effect "Convoy", it only has a movement of 1.

      Now unfortunately what happens currently is that I can select the unit, and once the cursor crosses the border of the territory while trying to move to another territory, TripleA freezes. My PC is becoming louder and I am unable to do anything. I have to force quit tripleA using Task Manager.

      If I set "count" to "-1", I can avoid this, but then there is no effect on the movement. So the machine does not freeze but the movement is still 4 for some reason. If it's any other number, the game freezes.

      What causes this behavior? And what should I do to get this to work as I want?

      One more special thing to note is that there is water between the territories, even though a connection is specified between these territories. Another thing is that both Atlantic Ocean Convoy and Indian Ocean Convoy have the territory effect "Convoy", although the behavior also comes up when moving from a convoy to a standard territory.
      caefd6d4-a85c-4c2f-8ed2-23219b2410d2-image.png

      B TheDog 2 Replies Last reply Reply Quote 0
      • B
        beelee @VictoryFirst last edited by

        @victoryfirst

        Does it throw a error or just freeze ? Are you in edit when it happens ?

        I know the Paras and LCVs kinda nutup sometimes in HRE

        VictoryFirst 1 Reply Last reply Reply Quote 0
        • TheDog
          TheDog @VictoryFirst last edited by

          @victoryfirst said in TripleA freezes with movementCostModifier:

          <option name="movementCostModifier" value="UK-scoutcar" count="-3"/>

          Try
          <option name="movementCostModifier" value="UK-scoutcar" count="3"/>

          AFAIK 2 is the extra cost to move into.

          VictoryFirst 1 Reply Last reply Reply Quote 1
          • VictoryFirst
            VictoryFirst @beelee last edited by

            @beelee No error at all, just the game freezing. I am also not in edit mode.

            1 Reply Last reply Reply Quote 1
            • VictoryFirst
              VictoryFirst @TheDog last edited by VictoryFirst

              Try

              <option name="movementCostModifier" value="UK-scoutcar" count="3"/>

              AFAIK 2 is the extra cost to move into.thedog

              I tried this and it worked!!!

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

                @victoryfirst

                RightArm.png

                1 Reply Last reply Reply Quote 0
                • VictoryFirst
                  VictoryFirst last edited by

                  Update,

                  so it works completely correctly when both starting in a "convoy" and moving to a "convoy". However if you start in a convoy and move to a regular territory there is no effect on the movement. How do I solve that?

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

                    @victoryfirst 😲

                    I have no idea 🙂 Hows java school coming along ? 🙂

                    1 Reply Last reply Reply Quote 0
                    • VictoryFirst
                      VictoryFirst last edited by

                      I think movementCostModifier only applies when moving to the territory, not moving from it. Is there a way to get around this?

                      @beelee Java school is not going well, I am still at 5% of completing the course...

                      B TheDog 2 Replies Last reply Reply Quote 0
                      • B
                        beelee @VictoryFirst last edited by beelee

                        @victoryfirst

                        😞

                        Edit
                        well lets ping wc @wc_sumpton

                        1 Reply Last reply Reply Quote 0
                        • TheDog
                          TheDog @VictoryFirst last edited by

                          @victoryfirst said in TripleA freezes with movementCostModifier:

                          I think movementCostModifier only applies when moving to the territory, not moving from it. Is there a way to get around this?

                          Yes, only moving to the territory.
                          AFAIK, no way round this.

                          TheDog 1 Reply Last reply Reply Quote 1
                          • TheDog
                            TheDog @TheDog last edited by

                            @VictoryFirst

                            I did some research on this, see here
                            https://forums.triplea-game.org/topic/2892/how-i-am-using-movementcostmodifier

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