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.
    • FrostionF Offline
      Frostion Admin
      last edited by Frostion

      @redrum
      Instead of calling the property "MovementCost" 1 could it not be named a bit different. I don't think that the movementCost definition is self explanatory. Also, maybe the concept could be expanded or made ready to also allow movement modifiers upon exit from territory. Maybe:

      "EntryMovementCostModifier" "1" If it would cost an extra move to move into. And "-1" if it was free of cost to move into. Who knows, maybe units/maps/mapmakers would have reasons to let a unit pass into specific territories for free or less cost.

      "ExitMovementModifier" "1" or "-1" with the same logic as above, if this was also implemented.

      Also, what are your thoughts about fuel consumption when affected? Would it make sense to just make fuel follow the moves, meaning if it cost extra move then it cost extra fuel. Less move would mean less fuel. Free move would be no fuel?

      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

      1 Reply Last reply Reply Quote 0
      • HeppsH Offline
        Hepps Moderators
        last edited by

        I had originally posted this with the intention that if we implemented this as a terrain effect it would be consistent with how it already works... having the movement cost (or limitation) imposed up-front when (attempting) entering the territory in question with a negative effect.

        As has been pointed out the issue with having an exit cost is if you have units with a single movement point... then you run the risk of having territories that units can never escape from. This of course can be dealt with by making a much more complex movement system where units start with higher base movement values... and where terrain and infrastructure affects their mobility to a lesser degree (incrementally)...but my suggestion was really (or at least initially) meant to address units with multiple movement values in a way that is simple and in keeping with the existing game structure.

        This is not to say I do not value the dialog... examining and developing a workable model for a system with lots of flexibility is an awesome goal.

        "A joyous heart sours with the burden of expectation"
        Hepster

        1 Reply Last reply Reply Quote 1
        • SchulzS Offline
          Schulz
          last edited by Schulz

          Armours have already minimal roles in most of big maps and it would even worsened inf spawn issue. Because the main problem is better stats are no better than cheap cannan fodders in most cases since fighters are already provide enormous ground support also unlike tanks they can't be destroyed regularly.

          I would accept it only if slow units also get some penalties in bad terrains.

          1 Reply Last reply Reply Quote 0
          • CrazyGC Offline
            CrazyG Moderators
            last edited by

            I did discover a strange "work around" for this. Let's say you want Germany to connect to Switzerland, but you want entering Switzerland to take 2 movement.

            What you can do is create a dummy territory, call it Dummy 1. It has center data, but just a 1 pixel polygon file.

            Germany connects to Dummy 1, Dummy 1 connects to Switzerland. Germany DOES NOT connect to Switzerland. A human player can't actually enter Dummy 1. Now when Germany moves into Switzerland, he needs two movement.

            There are a ton of issues here though. AI will be able to end movement in Dummy 1, units with only 1 movement can never enter Switzerland, and you are forced to have all unit types face the 2 movement penalty.

            On the idea being developed, ideally there would be a property we could set as true false. Something like "A Unit needs the full movement amount to enter rough terrain".
            So it its true, a tank with 1 movement left cannot enter a forest that needs 2 movement.
            If its false, a tank with 1 movement could enter a mountain that requires 200 movement (like in Civilization 5).

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

              @CrazyG Yeah, RSOC essentially did that for trains. Its a pretty big hack and causes lots of side effects like you mention. It also requires a lot of work to do it at a large scale.

              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
              • FrostionF Offline
                Frostion Admin
                last edited by Frostion

                @Hepps If a unit on a map could not exit a territory, it can only be because the mapmaker intended this specific situation for this specific type of unit, maybe some kind of special unit, special situation or the unit is a control/settings unit of some sort that should be able to move into a specific spot but not out. I can't see the problem here.
                If if was possible to make a system that also could prevent units from leaving or inhibit movement, I would really like this, and it could be used in future maps.
                Edit: And wouldn't an exit movement also be "upfront" payment?

                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

                HeppsH 1 Reply Last reply Reply Quote 0
                • HeppsH Offline
                  Hepps Moderators @Frostion
                  last edited by

                  @Frostion Very true, Both valid points. I suppose I was caught in a perspective blindness. After reading your post I can see that now. 😃

                  "A joyous heart sours with the burden of expectation"
                  Hepster

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

                    The thing of creating territories in between to define connection related movement costs can be legitimized by adding an option for a territory to be transitable only, meaning units can move through this territory, but never end their movement in it. That way you would not need to make that territory non-clickable, to achieve the same result, that is a hack and fails for the AI. Then, you could just make maps with small territories, like circles, in between of two proper territories, that would have the function of taking movement, and may have a territory effect image in them, that clarifies the movement cost for each.

                    This could also have other implementations. For example, you could make a "Strait of Dover" sea zone with the property of being transitable only and with a Neutral unit in it, that makes AA shots at any units passing by.

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

                      Another matter is how would retreat be handled?

                      If the cost is for entering, the retreat cost, if any, would be dependent on the territories you retreat to (not the one you retreat from, I suppose), albeit it would be also possible to assume that retreat is always free of charge, as the nonsense of expanding your movement capabilities by retreating is nothing new, as this is allowed also by the basic rules.

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

                        @Cernel Most likely retreat would stay free. Otherwise I think you ended up with a very complicated move system that probably doesn't add much depth.

                        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 A way to keep it free and keep down complexity, while still making sense, may be to say that movement cost is paid for exiting in all cases, but, only when you enter a hostile territory you cannot blitz, you have, instead, also to pay for entering. That way, you would have already paid for the ability to possibly retreat, using it or not. This would also assure that retreating won't expand your movement abilities over what you could do if everything would be friendly, and create a system by which you substantially have equal or higher non combat than combat movement.

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

                            "the nonsense of expanding your movement capabilities by retreating is nothing new"

                            If you look at retreat the following way, it should not be nonsense:
                            An army in one territory wants to move into and attack another territory, but other territory is defended by an enemy.
                            Attacking army moves into other territory, using 1 fuel as it costs 1 to move 1, but attacker crosses the border (or around the border area) they are halted by the enemy. Attacker realizes that he must retreat and that he cannot finish what he started (alias cant move into and freely around the new territory to take control. Most likely he also wanted to reach the center of the territory)
                            The attacker turns back having only used around half the fuel expected, but still ends up using all fuel as he must backtrack to starting position.

                            Thinking like this it makes good sense that retreating/turning back does not cost extra fuel. Kind of the same way embarking onto a ship, that is essentially located at territory border, paying full fuel, removes the need to charge fuel again when disembarking / completing the second half of a fuel using attack.

                            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

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

                              @Frostion I thought it was obvious I was talking about the units retreating somewhere else but where they came from, not the ones going back whence they came. So, nothing of what you are saying, aside from attacks coming from 1 territory only.

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

                                @Frostion I guess I should not have assumed that the matter was clear to everyone, as I was not being very clear in the first place, and not talking about retreat in general, but about some situations that may verify for some units under the current retreat rules for land units. So I will detail what I was talking about more specifically.

                                Let's take the "World War II Classic" game.

                                1. The simplest example of retreat is if I attack Anglo Sudan Egypt from Libya only, and retreat. In this case, retreating make some, or even enough, sense, as you can assume attacking the British units on the border of Anglo Sudan Egypt and retreating, likely after having gone only a little inside enemy territory, may be about as much movement expensive as destroying all British units and taking over the territory.

                                2. A more complex situation is, in the same case as above, if I blitz French Equatorial Africa (obviously a nonsense move on its own right, as you would not go taking Nigeria for free before attacking enemy forces in Egypt; but this is another matter, and blitz is not even a default ability) with the Armour, then attack Anglo Sudan Egypt from Libya and French Equatorial Africa, only. In this case, I'm allowed to retreat either to Libya or to French Equatorial Africa, with all my units. This is a borderline situation as, in either cases, since the multiple territories I'm coming from (and can retreat to) were in reach of Non Combat Movement from all units involved in the attack, while the total movement are expanding my movement capabilities on a strict sense (either the Armour goes from Libya to French Equatorial Africa, from French Equatorial Africa to Anglo Sudan Egypt, and from Anglo Sudan Egypt to Libya, moving into a total of 3 different territories (more than its movement 2 ability), or the Infantry goes from Libya to Anglo Sudan Egypt, and from Anglo Sudan Egypt to French Equatorial Africa, moving into a total of 2 different territories (more than its movement 1 ability)), all the final possibilities, attacking units can reach to, are at least destination they could have moved to without any retreat involved (in this case, either by just moving all units from Libya to French Equatorial Africa, or by just blitzing French Equatorial Africa back to Libya).

                                3. The case of retreating absolutely increasing your maximum movement abilities, that is the one I was referring to, can be exemplified by Japanese attacking Americans in China with Infantry units from Manchuria and French Indo China (only), then retreating all to either of those territories. For example, I could attack China with 5 Japanese Infantry units and, if having no losses, retreat all 5 Japanese Infantry units to French Indo China. In this case, I have 3 Japanese Infantry units that started their turn in Manchuria and ended their turn in French Indo China, without any transporting involved, that is a movement that they can not achieve on their own, during Non Combat Movement, not even if Americans would be an Allied player, allowing Non Combat Movement through China.

                                So, when I said "the nonsense of expanding your movement capabilities by retreating is nothing new", I was not referring to something like the first case, that I understand it is what you have in mind, but I was referring to something like the third case. And, even in the third case, I was not referring to all 5 retreating infantries, but only to the 3 coming from Manchuria (and retreating to French Indo China).

                                I suppose what you are describing could apply if we would have a property to oblige any offensives each coming from 1 territory only (but this would be a nonsensical limit) or a property that makes every units retreat whence they came (instead of all to a same place) (but this would have some issues or challenges, especially in the moment of selecting casualties).

                                I hope to have been totally clear now, relatively to what I was referring to. Substantially, the nonsense consists in the fact a hostile territory can allow you to move more than if that same territory would be friendly (allied owned) to you, and what I was pointing out is that this already existent dynamic is liable to become more problematic (bigger) in the moment you have different movement costs per territory, and especially if you pay for entering, rather than for exiting, territories. An example may be that I attack a same movement cost 1 territory from two non-adjacent other territories, one of movement cost 1 and the other one of movement cost 5, then retreat all into the movement cost 5 one, thus obtaining, at the price of 1 movement point, a movement that would cost a total of 6, if the attacked territory would have been a transitable allied or owned one, and I would have just non-combat moved over it, rather than strafing the same. The matter, of course, impacts on fuel too, if movement costs apply there as well (as they likely should).

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

                                  @Cernel I really think you are getting into a completely different issue at this point. Having alternative retreat rules would be a good feature request to discuss and I think most people agree the standard A&A ones leave a lot to be desired especially around your case #3.

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

                                    I've kept thinking about this feature on and off, especially now with territory effects discussions, and especially for the case in which a tick forests should slow down cavalry. I think the best map on which to theorically apply (were it non abandoned) this feature would be Jurassic, where something like this is partially reproduced by just having the dinosaurs receiving movement bonuses upon starting on favourable terrains (an incomplete solution).

                                    I still tend to think that charging upon exiting would be the best (and also consistent with how fuel cost currently works), but I can see pros and cons, for a number of scenarios. The main example I can think of for charging upon exiting is this case:

                                    You have a "forests_deep" terrain that it is supposed to be bad for cavalry.
                                    This terrain gives combat maluses to cavalry and slows it down (I really don't care about blitz).

                                    You have three possible situations, when you are on the offensive (on the defensive it matters little, as you will have defensive combat maluses for statically defending in the forests):
                                    Your cavalry moves through a deep forest.
                                    Your cavalry starts outside a deep forest and enters a deep forest.
                                    Your cavalry starts inside a deep forest and moves outside a deep forest.

                                    In the first case, it doesn't matter if we charge the malus upon entering or exiting.
                                    In the second case, if we enter the deep forest to do battle, the cavalry already has all the combat maluses, so the terrain issue is already felt, even if it doesn't immediately impact on movement.
                                    In the third case, if the movement malus is given upon entering, being in a deep forest makes absolutely no impact, as you are not going to make combat in it nor be slowed down for exiting it. I don't think anyone would place its strategic reserves in the worst possible terrain for them to move, but with this system that would be not even a problem at all.
                                    So I think charging upon exiting would be preferable to assure the deep forest will have an impact both in the second and the third case. In the second case, it will have an impact because I will have combat maluses (albeit no movement maluses) for invading a deep forest. In the third case, it will have an impact because I will have movement maluses (albeit no combat maluses) for launching an invasion from a deep forest.

                                    Of course, one could give maluses for exiting territory effects by putting a unit in there, giving such maluses if you start in it, but, then, it would be very punitive if coupled with additional costs upon entering. In the example, if a deep forest would give -1 and you would have to pay an additional 1 for entering a deep forest, a cavalry that moves 2 would be completely unable to move from a deep forest into another deep forest.

                                    As long as the binary matter of charging on entering/exiting, I would actually definitely suggest having a property for setting that. This is also the fairest way to settle the matter, leaving the mapmakers the ability to decide whether entering or exiting is the best for what they are doing. If, after some years, it would look like everyone is using one of the two options, and no one the other one, the property can always be removed (and the behaviour changed to the chosen one, if it was not the default) with no issues at all (you just need to run a search to verify who has set that property one way or the other).

                                    I tend to think that a poll about it would probably end up in the entering option winning, though, just because it is the most intuitive of the two. So, I'm not surprised that a number of other games go that way, as well.

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

                                      @Cernel IMO, you are overthinking the issue as a game is always going to be somewhat abstract anyways. Almost every TBS game I've ever played charged the movement cost when you enter a territory so that is naturally what players expect.

                                      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 3
                                      • C Offline
                                        Cernel Moderators @redrum
                                        last edited by

                                        @redrum Well, rather than charging upon exiting only, I'm rather in favour having a Boolean option for that, then the default can be charging upon entering, as I agree that is the most intuitive behaviour.

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

                                          If instead of territory effects, this feature would be units based, it would seem obvious to have it working upon exiting and consisting of positive bonues (that you can turn negative, by defining them as such), as this is how it practically already works, for units giving movement modifiers to other units, except only for the added limitation of effecting only units starting their turn in the same territory (or next to it, for sea units) (most likely this is just due to the fact that the feature was intended only for air and sea units).

                                          In general, I think it is intuitive the most if positive bonuses are given upon exiting and negative ones are gives upon entering. I think this is pretty obvious. Of course, what is intuitive the most is not necessarily realistic the most, and if the feature would be settable both as positive and negative, it wouldn't matter, at the end, for the user, if the default is giving or taking away.

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

                                            So I've decided to give this a go...

                                            My thought is focus on territory effects first and have the movement costs be modifiers (additive) with base movement per territory always being 1. Movement modifier can be any positive/negative decimal value. While I don't really think decimal values will be that useful for territory effects as you'll usually have positive integer modifiers but for future proofing if movementCostModifiers is added to things like units then roads/rails/etc could do something like movementCostModifier=-0.5 so that a unit only spends 0.5 per territory (could do this with territory effects as well but then roads/rails would be hard coded).

                                            Example 1 - Mountains

                                            <attachment name="territoryEffectAttachment" attachTo="mountain" javaClass="TerritoryEffectAttachment" type="territoryEffect">
                                                    <option name="movementCostModifier" value="artillery" count="1.5"/>
                                            	<option name="movementCostModifier" value="tank:heavyTank" count="2"/>
                                            </attachment>
                                            

                                            So this would mean the following:

                                            • artillery takes 2.5 movement to enter mountains
                                            • tank/heavyTank takes 3 movement to enter mountains
                                            • infantry (no modifier) takes 1 movement (normal) to enter mountains

                                            Example 2 - Forest

                                            <attachment name="territoryEffectAttachment" attachTo="forest" javaClass="TerritoryEffectAttachment" type="territoryEffect">
                                            	<option name="movementCostModifier" value="tank:heavyTank" count="1"/>
                                            </attachment>
                                            

                                            So this would mean the following:

                                            • artillery (no modifier) takes 1 movement (normal) to enter forest
                                            • tank/heavyTank takes 2 movement to enter forest
                                            • infantry (no modifier) takes 1 movement (normal) to enter forest

                                            Example 3 - Mountain/Forest

                                            <attachment name="territoryEffectAttachment" attachTo="mountain" javaClass="TerritoryEffectAttachment" type="territoryEffect">
                                                    <option name="movementCostModifier" value="artillery" count="1.5"/>
                                            	<option name="movementCostModifier" value="tank:heavyTank" count="2"/>
                                            </attachment>
                                            <attachment name="territoryEffectAttachment" attachTo="forest" javaClass="TerritoryEffectAttachment" type="territoryEffect">
                                            	<option name="movementCostModifier" value="tank:heavyTank" count="1"/>
                                            </attachment>
                                            

                                            So this would mean the following:

                                            • artillery takes 2.5 movement to enter mountain/forest
                                            • tank/heavyTank takes 4 (1 base + 2 + 1) movement to enter mountain/forest
                                            • infantry (no modifier) takes 1 movement (normal) to enter mountain/forest

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

                                            LaFayetteL C 2 Replies Last reply Reply Quote 3

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