Hmm, Hydro posted me a building tutorial once that I can't find anymore...
If you want a quick guide:
Open your C2C folder, then Assets -> Modules -> Costum_Religions -> Andean.
If you want to adjust buildings, look for the XXX_CIV4Building
Infos; not the Building
ClassInfos. This file contains more or less all pieces of a building (and many more unused as well. If you see this structure:
<BuildingInfos>
it is a "tag". The < and > indicate start and end of the tagname. If you forgot one of them then the whole module won't load
Tags go open <XXX> then there is something in there yyy and then they close again </XXX>. (they can also be empty or closed tags <XXX/>):
the yyy can be a number or a word, depending on the type of the tag. A (almost) full list of tags for buildings and other things can be found here:
http://modiki.civfanatics.com/index.php/Civ4BuildingInfos
It sounds more complicated then it is (or I suck at explaining things
) so for example:
Code:
<iHappiness>1</iHappiness>
We see the tag "iHappiness". The i indicates that it is an integer, so yyy would be a number. Indeed, we find a number in between. The modiki page tells us that this tag changes happiness in your city. So if we put a 1 here, it means if you build this building, it has the +1
. If we put 0 in or leave it empty, nothing happens. If we put in a negative like -2, your city gets +2
from it.
"b", for example "bRiver" indicates it is a boolean: 0 means no and 1 means yes.
If you want to edit yields
food:
) or commerces
science:
:espionage) it is a bit "tricky". You will see this:
Code:
<CommerceChanges>
<iCommerce>0</iCommerce>
<iCommerce>2</iCommerce>
<iCommerce>3</iCommerce>
<iCommerce>4</iCommerce>
</CommerceChanges>
We have 4 identical tags iCommerce here. The first changes
, the second
the 3rd
and the last
.
Yields are the same; the order is
. Best you write it down somewhere, I can never remember which is which and had to check some buildings to see it...)
Note that there is a difference between CommerceChanges and CommerceModifier: The first gives flat values (+25, -19 etc...) while the latter gives percentages (+1%; -27%...)
It's probably a good idea to just play around with these, save the file (make a safety copy before that
) and look it up ingame.
Other religious buildings (the basic ones) can be found in Assets -> XML -> Buildings -> BuildingInfos. And you find civics main files in the XML -> Gameinfo.
Civics are basically the same; but here you find a more modular system where only parts of the civics code is in a folder. Open the Andean_CIV4CivicInfos file. You find this:
Code:
<CivicInfo>
<CivicOptionType>CIVICOPTION_RELIGION</CivicOptionType>
<Type>CIVIC_STATE_CHURCH</Type>
<BuildingCommerceModifiers>
<BuildingCommerceModifier>
<BuildingType>BUILDING_ANDEAN_SHRINE</BuildingType>
<CommerceModifiers>
<iCommerce>25</iCommerce>
<iCommerce>0</iCommerce>
<iCommerce>25</iCommerce>
</CommerceModifiers>
</BuildingCommerceModifier>
</BuildingCommerceModifiers>
</CivicInfo>
You can probably already guess what it does. If not, try it before reading further.
CivicInfo tells the game: Here starts a new piece of code for a civic.
CivicOptionType: In which category belongs the civic?
Type: One specific civic.
BuildingCommerceModifier: A tag that will Modify (percentage!) a commerce value
gold:
) on a Building.
BuildingType: What building?
CommerceModifiers: opens a list of different commerces available.
iCommerce: We had this one already. It does the same here.
So what it does is: If you have the religion civic "State Church" active, then your Andean Shrine will give 25% more
(1st) and 25% more
(3rd). Note that it only has 3 iCommerces. If you see that it sets the forth to 0. If you have only one iCommerce then this is always
and the rest is 0.
Sadly, over the years names changed and it's exhausting changing all tags as well. You will find tags that are not used in game under that name, but a different one. The only thing that helps is look on what they do and compare them to ingame buildings/civics etc. Or ask in the Forums.
Once you adjusted what you wanna do, save it and see if it works in game. Only thing you need is notepad or editor or something to edit it.
I hope I didn't confuse you too much :/ If you have any questions, no matter if you think it's a dump one, just ask (probably better via PM). I most certainly asked the same questions when I first try to do things here