# CIV IV modding question

**URL:** <https://boards.straightdope.com/t/civ-iv-modding-question/574423>\
**Category:** The Game Room\
**Created:** [March 12, 2011, 5:06pm UTC](https://boards.straightdope.com/t/civ-iv-modding-question/574423 "2011-03-12T17:06:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sitnam](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sitnam](https://boards.straightdope.com/u/Sitnam)\
**Post date:** [March 12, 2011, 5:06pm UTC](https://boards.straightdope.com/t/civ-iv-modding-question/574423/1 "2011-03-12T17:06:51Z")

</div>

In [this thread](http://boards.straightdope.com/sdmb/showthread.php?t=508378) Lungfish really helped me out by helping me change the speed of the naval units.

It worked.

Now I need to change the movement requirements of ocean square spaces to 1/2 a movement point leaving coastal spaces at 1.

Changing the terrain code to;

\<iMoves\>1/2\</iMoves\>  
or  
\<iMoves\>.5\</iMoves\>

doesn’t work. I could just make the ocean spaces 1 and the coastal spaces 2 and double the ship movement, but that’ll affect everything that goes over water (aircraft etc.) and I don’t want to do that.

I looked into Rhye’s and Fall of Civilization mod (that has sea movement like this) the terrain is the same, but the code for movement for say the galleon is;

\<!-- Rhye –\>  
\<iMoves\>6\</iMoves\>  
I’m sure the “\<!-- Rhye –\>” part calls up some other code affecting this, but I don’t know where it is or how to write my own.

Perhaps you can help me.

---

<div class="post-metadata">

**Author:** ![twickster](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@twickster](https://boards.straightdope.com/u/twickster)\
**Post date:** [March 12, 2011, 9:09pm UTC](https://boards.straightdope.com/t/civ-iv-modding-question/574423/2 "2011-03-12T21:09:09Z")

</div>

Moved Cafe Society --\> the Game Room.

---

<div class="post-metadata">

**Author:** ![DETXL](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/detxl/32/19366_2.png) [@DETXL](https://boards.straightdope.com/u/DETXL)\
**Post date:** [March 14, 2011, 5:02am UTC](https://boards.straightdope.com/t/civ-iv-modding-question/574423/3 "2011-03-14T05:02:33Z")

</div>

In Rhye’s mod, this is done by making changes to the SDK; it’s not something that can be done easily through just the XML. Are you sure that you can’t just double the movement costs of coasts and then double the movement abilities of ships? That shouldn’t impact aircraft; as far as I know their range is defined by \<iAirRange/\> in the Civ4UnitInfos XML file.

You would think that you could also accomplish this by adding the ocean terrain type to \<TerrainDoubleMoves /\> in Civ4PromotionInfos, but I just tried that and it doesn’t work. So this may be something hard-coded in the DLL file.

---

<div class="post-metadata">

**Author:** ![Sitnam](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sitnam](https://boards.straightdope.com/u/Sitnam)\
**Post date:** [March 15, 2011, 3:01pm UTC](https://boards.straightdope.com/t/civ-iv-modding-question/574423/4 "2011-03-15T15:01:10Z")

</div>

Thank you, I’ll do that.
