Announcement

Collapse
No announcement yet.

Changing Movement Rate

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing Movement Rate

    I've started playing with the XML files to change the game behavior. I want to change the road and railroad movements. I'd like to be able to make the road movement vary between from 3 to at least 5, depending on the scenario I'm setting up. I'd like to make the railroad infinite ( or at least larger than the size of the map). I found the file CIV4RouteInfos.xml, but there aren't the parameters I'd expect (the default values are 2 and 10 spaces for roads and railroads respectively, those two values aren't there), so what values do I change to change movement rates?

    If I can improve my request, please let me know how, this is my first post.

    Thanks,
    Bruce

  • #2
    I was trying to come up with the formula to fit the movement and flatmovement values in the CIV4RouteInfos.xml last week. But then I gave up on it and started work on my terraform mod. While modding I came across an interesting value in GlobalDefines.xml. MOVE_DENOMINATOR which is equal to 60. I made a note of it. After I finished my mod, I saw your post, and went back to trying to come up with a formula. And I just figured it out.

    The Formula to Determine movement cost
    MovementCost = 1/MOVE_DENOMINATOR * Minimum(Movement/#ofmoves, FlatMovement)

    Or The Formula to determine number of tiles a unit can travel along the road/railroad
    #OfTiles = RoundUp(MOVE_DENOMINATOR * Maximum(#ofmoves/Movement , 1/FlatMovement))
    Last edited by tywiggins; November 16, 2005, 05:21.

    Comment


    • #3
      Thank you very much. By raising MOVE_DENOMINATOR I was able to make the railroad movement basically infinite. I really appreciate your response

      Comment


      • #4
        No problem. One additional note: The formulas I gave were for numbers greater than 0. I believe if either movement or flatmovent is 0, then the formulas are:

        MovementCost = 1/(MOVE_DENOMINATOR*#ofmoves)
        #ofTiles = MOVE_DENOMINATOR*#ofmoves

        Comment


        • #5
          If you raise MOVE_DENOMINATOR I to make the railroad movement infinite, does it change the road or regular terrain movent rate too?

          Comment


          • #6
            Yes it would. Here's what I would do: Set MOVE_DENOMINATOR to the number of tiles you want to move along a railroad. Leave railroad movement at 20, and change flatmovement to 1. If you want to keep roads at 1/2 movement point, 1/3 movement point after you have Engineering here is what you need to do: Set the road movement and the road flatmovement to 1/2 * your new MOVE_DENOMINATOR. Then change movementchange to -1/6 * new MOVE_DENOMINATOR.

            Here's an example. Set MOVE_DENOMINATOR to 600.
            Rail movement = 20, rail flatmovement = 1
            Road movement = 300, road flatmovement = 300
            movementchange = -100

            Comment


            • #7
              Gunship movement

              Could someone tell me how to change the Gunship movement? I would like:

              1) To make it move across the otherwise impassable peaks.
              2) To enable it to move in water tiles with the limitations of the ironclad, that is, yes into the coastal sea tiles but not into the ocean.

              I would like it to attack ships in the coastal tiles, but I am not sure if it could upset some balance regarding the naval forces.

              Thanks

              Comment

              Working...
              X