View Full Version : Adding an "Idle" building


OnmyojiOmn
Aug 05, 2008, 08:50 PM
I'd like to add an "Idle" building assignment for cities, for the rare occasion that I can't build Research or Wealth and I don't want to build anything at all, even units. All production would be completely wasted, but the city governor would automatically avoid working production tiles while still taking the city's focus (hammers, beakers, etc.) into account. I've modded other games, but not Civ4. Can anybody point me in the right direction?

Thanks

Dryhad
Aug 05, 2008, 11:02 PM
Well I don't know how to get the governor on side (if he isn't automatically, it will most likely require an SDK mod) but the place to start would be CIV4ProcessInfo.xml (found in the GameInfo folder). Just make an entry with no tech requirement (<TechPrereq>NONE</TechPrereq>) which doesn't convert production to any kind of commerce (set all those <iProductionToCommerceModifier>s to 0). That should give you the "building" you want.

OnmyojiOmn
Aug 05, 2008, 11:55 PM
That's what I ended up doing, as a module. It seems to work fine, and the city governor does adapt without any other changes. I just need an icon for it. Does anyone know if there's something like a red X that's already in the game?

Dresden
Aug 06, 2008, 12:19 AM
There's a red circle with a slash through it used for "No State Religion" on the religion advisor; no clue whether it can be used for your needs, though.

OnmyojiOmn
Aug 06, 2008, 02:51 AM
There's a red circle with a slash through it used for "No State Religion" on the religion advisor; no clue whether it can be used for your needs, though.
I was able to modify that, it looks great. I guess I'm done! Thanks for the replies.

Yakk
Aug 06, 2008, 12:43 PM
Did you post it as a mod component? :-)

OnmyojiOmn
Aug 06, 2008, 05:55 PM
Did you post it as a mod component? :-)

Posted here (http://forums.civfanatics.com/showthread.php?p=7113398#post7113398). :)