Improvment tech question

micmc

Warlord
Joined
Apr 17, 2004
Messages
179
Location
atlanta ga usa
okay I want to add an Improvement,
just something simple based on the other artwork, so like a "horse pasture" based on "pasture".

Short of getting one of the big hoses with the lights and camera and looking at the files' teeth from the backside once I've gone through it's digestive track, I can't find where "improvements techs" are controlled. Where "pasture" is related to animal husbandry in other words.

Since I'm not really interesting in finding palaps, and I know that most files are splatterers by their nature, can someone tell me where to look before I get out the elbow long rubber gloves?

and some goggles?
 
Phew! I feel like I just went to the doctor for my annual physical.

I believe you need to modify four different files in order to add an improvement and build it. As always, never modify the original game files but instead modify the ones in your mod. The files are:

Assets\XML\Art\CIV4ArtDefines_Improvement.xml (tells Civ4 what art files to use for the improvement)

Assets\XML\Terrain\CIV4ImprovementInfos.xml (tells Civ4 what the improvement does)

Assets\XML\Units\CIV4BuildInfos.xml (tells Civ4 what improvements your workers can build & what icon to use for the build command)

Assets\XML\Units\CIV4UnitInfos.xml (you need to add the improvement to the "builds" section under any "UNITCLASS_WORKER" unit so that they are able to build it. Usually "UNIT_WORKER" and "UNIT_INDIAN_FAST_WORKER"

Good luck
 
Thanks Amra,

Your instructions were easier than a sorority sister at a peach shnapps factory, and they didn't make me clean up my passenger side floorboard. It was really great of you to take the time to give the mini-tutorial to a new modder.

I'm finding that most of the xml stuff is pretty straight forward once you know what does what and where to put it, the python stuff, I'm still trying to get a handle on enough to start fiddling.

It's nice to see someone take the time to help out folks, I guess the expierenced modders figure they'd end up feeding kittens, which just gets you more kittens.
 
Back
Top Bottom