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

    Terrain Effects for movement

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    92 Posts 10 Posters 41.4k Views 10 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.
    • W Offline
      wc_sumpton
      last edited by

      @Cernel Yes, as long as the first territory moved into was not another mountain territory. If the first move were to enter the mountain territory the cost would be 2 and the armor would not be able to continue movement.

      I understand what you are saying, my suggestion is just an option for the map makers. If the mountain territory is set to '2' and not '2-1' then the armor would only be able to enter as its only move.

      Hope this help explain my suggestion.

      Cheers...

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

        @wc_sumpton I'm thinking about whether units can enter territories when they have remaining movement points but not enough for that territory. My thought is to have an XML property which controls whether they can or can't rather than doing a range on each individual territory effect. So something like:

            <property name="Units Can Enter Territories With Higher Movement Costs Then Remaining Moves" value="false" editable="true">
              <boolean/>
            </property>
        

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

        C 2 Replies Last reply Reply Quote 4
        • C Offline
          Cernel Moderators @redrum
          last edited by

          @redrum This property would indirectly allow charging upon exiting. You just need to have in each territory a unit giving (at start turn) the exact same modifiers as given by the territory effects, then the practical behaviour would be exactly the same as charging upon exiting.

          I indirectly agree to this.

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

            @redrum I also think this would be good for defining territories you cannot move through, but you can move into. Sort of no blitz territories, except that it applies also to non combat movement. Currently you either have fully passable or fully impassable territories, while there is not an option for a territory to be accessible but not transitable. So, yeah, I think this is a good property to have. I can think of some uses, also for triggering territory effects during the course of the game.

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

              And it starts to become a reality...
              ec074339-1b5d-4677-b7ec-d29f43258b01-image.png

              XML

                      <attachment name="territoryEffectAttachment" attachTo="Mountain" javaClass="TerritoryEffectAttachment" type="territoryEffect">
                          <option name="movementCostModifier" value="germanStrategicBomber" count="5"/>
                      </attachment>
              

              Showing that a strat bomber that has 6 movement can't enter Austria as it would cost: 1 first move + 6 (1 base + 5 mountain) = 7.
              39a29390-1ebf-4ec0-b292-0dd04e9948f5-image.png

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

              C 1 Reply Last reply Reply Quote 5
              • C Offline
                Cernel Moderators @redrum
                last edited by

                @redrum Please clarify if movement value 0 and remaining movement 0 units can enter a movement cost 0 or less territory, or, probably better, have a property for defining it. This is quite important to settle a matter.

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

                  @Cernel I'm still deciding if its going to be feasible to allow 0 movement left units to continue to move. Due to how units work today, once they hit 0 movement they can't move any more.

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

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

                    @redrum My suggestion is having a property for it (could be removed if we sort out we really want one or the other). If not, I tend to think that this can be bundled with the property for entering with partial movement left. If that is true, then you can enter 0 with 0, otherwise you cannot.

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

                      And allowing bombers to have free movement into urban territories:

                              <attachment name="territoryEffectAttachment" attachTo="Urban" javaClass="TerritoryEffectAttachment" type="territoryEffect">
                                  <option name="movementCostModifier" value="germanStrategicBomber" count="-1"/>
                              </attachment>
                      

                      Bomber with 0 movement left can move to a urban territory
                      03864eac-859c-4ca2-a547-1d9122e5c305-image.png

                      Bomber with 0 movement left can't move to a non-urban territory
                      42380c92-495e-4fa7-b936-af1a676048b3-image.png

                      @Cernel I think I'm going to always allow units with 0 movement to move into adjacent territories that have movement cost of 0. I think that is the most natural approach and the way route finding is done, it would cause weirdness if you couldn't. Example if we allowed using all my movement points to move next to a territory with 0 movement cost and then not allowing moving into it in a separate move vs moving to the 0 movement cost territory in the original route would be allowed. This means if you have 0 movement cost territories, then 0 move units could move into them if they are adjacent. Generally, 0 movement cost or negative movement cost will be possible but in most cases isn't advisable unless you are essentially considering those territories as kind of "part of certain adjacent territories" or maybe like a wormhole.

                              <attachment name="territoryEffectAttachment" attachTo="Urban" javaClass="TerritoryEffectAttachment" type="territoryEffect">
                                  <option name="movementCostModifier" value="germanAntiAirGun" count="-1"/>
                              </attachment>
                      

                      af68d377-2066-4d05-9c96-c43e1179ddc7-image.png

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

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

                        And an example of fractional movement cost. Here we assigned coast to only have a movement cost of 0.5 for infantry so they can move 2 only across coast:

                                <attachment name="territoryEffectAttachment" attachTo="Coast" javaClass="TerritoryEffectAttachment" type="territoryEffect">
                                    <option name="movementCostModifier" value="germanInfantry" count="-0.5"/>
                                </attachment>
                        

                        9f7d74a9-0cb3-4b87-b374-19a242b9f056-image.png

                        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 @redrum
                          last edited by

                          @redrum Ok, so it is official that I can have "production" units that have basic movement 0 and if I assign -1 for them on sea zones, then I can load them on transports without requiring any land transport units to go into the transport too?

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

                            @Cernel Yep. Here is an example:

                            
                                    <attachment name="territoryEffectAttachment" attachTo="Sea" javaClass="TerritoryEffectAttachment" type="territoryEffect">
                                        <option name="movementCostModifier" value="germanAntiAirGun" count="-1"/>
                                    </attachment>
                            

                            62dae7b1-9b0e-433d-9428-3203c6fb3070-image.png

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

                            C 1 Reply Last reply Reply Quote 2
                            • FrostionF Offline
                              Frostion Admin
                              last edited by Frostion

                              @redrum How much fuel will be used? Will there be decimal fuel used? And will the player's fuel in bank also be like 102.75 fuel left?

                              Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

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

                                @Frostion I'm not changing any of the fuel logic with this initial implementation. It will still just be based on the number of territories moved through. But if a map is going to use fuel and movementCost then I'll take a look at updating fuel cost to be based on movementCost instead.

                                But to your point, one of the issues is that resources don't support decimals at the moment so that would either need to be changed or fuel would have to round up/down.

                                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
                                • redrumR Offline
                                  redrum Admin @Frostion
                                  last edited by

                                  @Frostion Actually taking a quick look at the fuel logic, I don't think its much effort to update it as well. The only limitation is I'm not going to update resources to allow decimals yet so fuel will have to round off. So my proposal is the fuel cost will be based on movement cost of the route (doesn't change for maps without territory effect movement costs) but will round the amount used up (the reason not to round down is that you could potentially game the system by moving 1 territory at a time). So an example would be lets say I have a tank where it costs 1 fuel per move and it has 2 moves (so costs 2 fuel total to move 2 territories in a turn with no territory effects). Now let's say I add Road territory effects so that territories only cost 0.5 to move across. Now a tank could move a max of 4 Road territories (would be charged 4 fuel without these fuel updates) but here would be the fuel charges that I'm proposing:

                                  • Moves 1 Road territory - costs 1 fuel (0.5 movement cost rounded up)
                                  • Moves 2 Road territories - cost 1 fuel (1 movement cost)
                                  • Moves 3 Road territory - costs 2 fuel (1.5 movement cost rounded up)
                                  • Moves 4 Road territories - cost 2 fuel (2 movement cost)

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

                                  C 1 Reply Last reply Reply Quote 2
                                  • C Offline
                                    Cernel Moderators @redrum
                                    last edited by Cernel

                                    @redrum To avoid having to make all movement 0 units selectable (this should have really been a setting per unit, not general) can I, instead:
                                    1: Make the unit movement 1 and give +1 movement cost for it in any land territories (no effects for sea zones), so it can only go into sea zones. In particular, a land unit offloading into a territory will always do it without any movement cost implied, so that it doesn't matter if that land territory would normally be movement cost 1 or 2 or whatever, for it?
                                    2: Make the unit movement 1 and giving -1 movement to self, and -1 movement cost in sea zones only. So, this way it will work just like if it would be a simple movement 0 units (but I can keep the other actual movement 0 units non selectable).

                                    C redrumR 3 Replies Last reply Reply Quote 0
                                    • C Offline
                                      Cernel Moderators @Cernel
                                      last edited by

                                      @Cernel Assuming you'll confirm it, the fact that movement cost is never applied for offloading units (offloading always being an exactly cost 0 movement) should be documented in pos2, especially with reference also to the fact that offloading into a territory increasing your movement would not do it (as also per the general rule that you cannot move after offloading). Confirmed?

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

                                        @Cernel Finally, a land/air transported unit will ignore whatever movement costs to self, both the basic 1 and any modifiers from territory effects, correct?

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

                                          @Cernel All 0 movement units are already selectable so nothing changing there.

                                          Correct, unloading units doesn't check movement and ensures any unloaded units can't move any further.

                                          Land/air transported units shouldn't be impacted at all since they don't check movement and just like unloaded units can't move any further.

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

                                          C 1 Reply Last reply Reply Quote 2
                                          • C Offline
                                            Cernel Moderators @redrum
                                            last edited by

                                            @redrum said in Terrain Effects for movement:

                                            @Frostion Actually taking a quick look at the fuel logic, I don't think its much effort to update it as well. The only limitation is I'm not going to update resources to allow decimals yet so fuel will have to round off. So my proposal is the fuel cost will be based on movement cost of the route (doesn't change for maps without territory effect movement costs) but will round the amount used up (the reason not to round down is that you could potentially game the system by moving 1 territory at a time). So an example would be lets say I have a tank where it costs 1 fuel per move and it has 2 moves (so costs 2 fuel total to move 2 territories in a turn with no territory effects). Now let's say I add Road territory effects so that territories only cost 0.5 to move across. Now a tank could move a max of 4 Road territories (would be charged 4 fuel without these fuel updates) but here would be the fuel charges that I'm proposing:

                                            • Moves 1 Road territory - costs 1 fuel (0.5 movement cost rounded up)
                                            • Moves 2 Road territories - cost 1 fuel (1 movement cost)
                                            • Moves 3 Road territory - costs 2 fuel (1.5 movement cost rounded up)
                                            • Moves 4 Road territories - cost 2 fuel (2 movement cost)

                                            I'm thinking, also, but not only, for consistency, probably you shouldn't have any possible non integer movement left for the remaining movement either. You are supposed to make all your movement in 1 go, so you can sum it all up, round it up, and apply it to the unit always as integer. Players are not really supposed to make multiple moves with the same unit, but rather use Ctrl to set the path, if needed (I know many casual players don't realize there is this possibility, but we can assume maps with non integer costs will be played by the fanatics). Unless in future there will be a way for non air units to move both in combat and non combat (which may be cool, especially for land raiding), the matter is current truly relevant only for air units, that would have their movement cost rounded up to integer at the end of their combat move, thus possibly moving less then what they could (for example, a fighter that moves through cost 2.5, would have only 1 movement left in non combat movement, instead of 1.5). So, how about being consistent between movement and fuel costs, and always rounding all up to integer at the end of the single (possibly multi territories) movement? It really impacts only on air units, currently, and only on any units able to move both in combat and non combat, in case this might be extended outside air units only, in the future.

                                            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
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 4 / 5
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums