Help - Corporation modding

ledat

Chieftain
Joined
Feb 13, 2008
Messages
43
Hello everyone. I'm a longtime lurker, but first time poster.

I have a few questions regarding corporation modding. First, is there a reference/tutorial for modding corporations? If there is, I can't seem to find it.

Failing the first, could someone help me understand the structure for corporations? I found the CIV4CorporationInfo.xml file. Most of the values seem pretty self-explanatory. I'm not entirely sure what is going on with the <CommercesProduced> and <YieldsProduced> though. I assume these give food, culture, etc. bonuses, but what is the order, and what unit of measure is the number? Also, what about things like happiness/health: is there a way for a corporation to add (fractional) amounts of health/unhealth or happiness/unhappiness per resource consumed?

Also, am I correct in thinking that, since founding a corporation is a matter of building its HQ, that the prereq techs in CIV4BuildingInfos.xml are the ones that are the real prereqs for the corporation in question? If so, does the order matter? (I see <PrereqTech> first, followed by <TechTypes> which contains multiple <PrereqTech>)

If it helps, my intentions are to simply change the currently existing corporations in terms of resources consumed and benefits provided (and probably name/civilopedia/graphics, but that can wait till later). I don't want to add extra corporations or anything fancy like that.

Thanks in advance :)
 
You should have been able to guess commerce and yield order from examples or experimentation.

YIELD_FOOD
YIELD_PRODUCTION
YIELD_COMMERCE

COMMERCE_GOLD
COMMERCE_RESEARCH
COMMERCE_CULTURE
COMMERCE_ESPIONAGE

Order of <PrereqTech> doesn't matter
 
What do you have to change to raise/lower the amount of gold that a city is charged for having a corp(not the corp HQ) in the city?
 
Thanks for the replies, that is pretty much what I needed to know. Having said that, there's not an easy way for corporations to affect health or happiness, then, right?

@Jeckel
I think (though I'm probably the last person you'd want to ask, and haven't tested it either) that <iMaintenance> in CIV4CorporationInfo.xml is the value for that.



*Edit* Also, is 5 resources the limit a corporation can use? I can't see a way around this, but I'm probably not looking in the right place.
 
I'm coming at this late, and haven't done more than look at the new corp. stuff, but I'd think to affect happiness/health you should be able to do that through the buildinginfo xml file, just like any other building...

if I'm wrong blame innocence (and the arrogance that I thought I guessed right) :)
 
Back
Top Bottom