Get the inside scoop on my doings at Stardock.
There are no prairies on Mars
Published on February 16, 2006 By CaretFarmer In Modding

Preamble: This is a (slightly edited and updated) repost of an article I posted to one of the restricted forums.  I'm reposting it here so that everyone can read it.  When I originally wrote this article, I discovered that some of the functionality needed to make it work wasn't implemented in the game; these problems have been fixed in version 1.0.2, so most of you reading this article won't be able to try it out until you can get your hands on an updated version of the game.  Anyway, here we go!

If you've had a chance to play GalCiv2, you've probably noticed that while planets in the game may look different, the game uses the same terminology to describe the different quadrants of every planet's surface.  For example, every usable quadrant of every planet in the galaxy is called a prairie.  Well, Mars doesn't have prairies.  If this bugs you to the point that you'd change it if you could, read on!

In CustomPlanets.xml, you'll see that Mars uses the RedPlanet terrain palette.  In PlanetDescriptions.xml, you'll find the RedPlanet planet description which (despite the difference in nomenclature) is what the TerrainPalette tag in CustomPlanets.xml is referring to.  In turn, the RedPlanet planet description refers to the RedPlanet1 color scheme, which is defined in TerrainColorSchemes.xml.  If you add a TerrainName tag to the the Override node of RedPlanet1's color scheme, you're telling the game the name of the string resource to use when naming that type of terrain in the game.  So, if you add a TerrainName tag with a value of "MarsTerrainTypePrairie", the game will look for a string tag of the same name in the PlanetWnd section of strings.str.  If it finds it, it will use the associated string instead of the usual "Prairie".  To recap:

1. Add "<TerrainName>MarsTerrainTypePrairie</TerrainName>" to the Override node of the RedPlanet1 color scheme in TerrainColorSchemes.xml.

2. Add "[MarsTerrainTypePrairie] Usable Red Mud" to the PlanetWnd section of screens.str.

Voila!  Now, next time you run the game (assuming you've gotten the next version with the fix that enables this mod), when you click on a usable tile on Mars (or any other planet that uses the RedPlanet1 color scheme), it will be identified as "Usable Red Mud" instead of "Prairie".

The basic process is the same for renaming other terrain types, though you'll have to create additional Override tags for each terrain type you're renaming.  The comments at the top of TerrainColorSchemes.xml gives additional information about doing this, but you can simply copy the existing Override node, strip out the ColorDef tags and then edit the TerrainType, TerrainName and QueryPicture tags accordingly.

While this article doesn't spell out every last detail, hopefully it's enough to get you started.   And, if you get stuck, you can always post a call for help in the modding forum.

Mod on!


Comments
on Feb 16, 2006
Excellent job at finding that!
on Feb 16, 2006
So like... do you guys ever planning on adressing this issue for everyone in an update? That would be great, because that will really annoy me when I get to playing it.
on Feb 17, 2006

do you guys ever planning on adressing this issue for everyone in an update?

What issue are you referring to?  If you mean the bug that makes it so that this doesn't work in version 1.0, then, yes, the issue is already fixed.  Version 1.0.2 should have this fix and that version (or even a later one) will be the one available for download/update on Feb. 21.  This is really only an issue for folks that have one of the betas or gammas.

on Feb 17, 2006
I think he meant will you ever get around to switching the names for each tile in an official fix. As in making "Red Mud" the name that Martian tiles will have by default without a player having to change the files.
on Feb 17, 2006
Ah!  Right, well, yes, that would seem like a good idea.  It certainly would be easy enough to do.
on Feb 17, 2006
Sometimes we all miss the forest for the trees.

Chris.
on Feb 21, 2006
Yea, the tile descriptions is what I was referring to. But yes, when you guys get around to it, I think it would be a nice change to see in an update.
on Mar 02, 2006
I definetly agree that the descriptions and/or the pictures assocaited with them need to be fixed in some manner. Looking at a planet that in the zoom looks all green and lush, only to find that there is an ocean in a ? forested tile, and arctic in another forested tile and a desert in a (surprise) a forested tile.... well its slightly odd. Maybe if the map used on a planet reflected the actual types of landscapes that were available to that planet.
on Sep 12, 2006
well if someone who is bothered by this would write down all the tile names we could make a mod and upload it to the library
on Sep 13, 2006
...march 2...did you searched the forums...?