@Joecoolyo- I hope this helps. You just have to edit two files. Please download the zip files attached to this post, it contains the two files from our mod that you have to use.
Adding a unique building:
Download and install
notepad++ (or jedit if you use a Mac)
Open the following file:
assets/XML/Buildings/Civ4buildingsInfos.xml
this will be referred to as the buildinginfos file.
Search for the building your unique building will replace. You want to find it inside <type> tags. So if your unique building replaces the library, you want to find this:
<Type>BUILDING_LIBRARY</Type>
This is the entry you want to copy, which you will then modify to create your building. Copy all of the data between the <BuildingInfo> and </BuildingInfo> tags.
Go to the bottom of the file, and paste it in right above the </BuildingInfos> tag.
It is very important to copy everything perfectly.
The top few lines of your new entry will look like this:
Code:
<BuildingInfo>
<BuildingClass>BUILDINGCLASS_LIBRARY</BuildingClass>
<Type>BUILDING_LIBRARY</Type>
<SpecialBuildingType>NONE</SpecialBuildingType>
<Description>TXT_KEY_BUILDING_LIBRARY</Description>
<Civilopedia>TXT_KEY_BUILDING_LIBRARY_PEDIA</Civilopedia>
<Strategy>TXT_KEY_BUILDING_LIBRARY_STRATEGY</Strategy>
<Advisor>ADVISOR_SCIENCE</Advisor>
<ArtDefineTag>ART_DEF_BUILDING_LIBRARY</ArtDefineTag>
Change this to something like this:
Code:
<BuildingInfo>
<BuildingClass>BUILDINGCLASS_[COLOR="Blue"]LIBRARY[/COLOR]</BuildingClass>
<Type>BUILDING_[COLOR="Red"]YOURUB[/COLOR]</Type>
<SpecialBuildingType>NONE</SpecialBuildingType>
<Description>TXT_KEY_BUILDING_[COLOR="Red"]YOURUB[/COLOR]</Description>
<Civilopedia>TXT_KEY_BUILDING_[COLOR="Red"]YOURUB[/COLOR]_PEDIA</Civilopedia>
<Strategy>TXT_KEY_BUILDING_[COLOR="Red"]YOURUB[/COLOR]_STRATEGY</Strategy>
<Advisor>ADVISOR_SCIENCE</Advisor>
<ArtDefineTag>ART_DEF_BUILDING_[COLOR="BLUE"]LIBRARY[/COLOR]</ArtDefineTag>
The instances of LIBRARY that are in blue, you leave alone. Do not edit the BUILDINGCLASS tag, or the ArtDefineTag for now!
Where you see the red, you put in the name you give your building. Not the name as displayed in the game, so all caps and no spaces. for example, NEWLIBRARY.
Once you have done this, you have created a second building, with the same proprieties as a library.
Now you want to make the improvements to the building. That is what the rest of the tags are for. I won't try to explain them all here, the best place to go to find what you need to know about these is
here.
If you want, for the first buildings you try, you can tell me the improvements you want to make, and then I can tell you what tags you have to change.
After you get that done, all you have to do is define the text tags. That is where the second file you have to edit comes in. Open the file:
assets/XML/Text/World2009_Buildings_CIV4GameText.xml
Scroll to the bottom. Right above the </Civ4GameText>, paste in this:
Code:
<TEXT>
<Tag>TXT_KEY_BUILDING_[COLOR="Red"]YOURUB[/COLOR]</Tag>
<English>[COLOR="green"]In game building name[/COLOR]</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_BUILDING_[COLOR="Red"]YOURUB[/COLOR]_PEDIA</Tag>
<English>[COLOR="green"]civilopedia entry[/COLOR]</English>
</TEXT>
<TEXT>
<Tag>TXT_KEY_BUILDING_[COLOR="Red"]YOURUB[/COLOR]_STRATEGY</Tag>
<English>[COLOR="green"]Unique BUilding strategy.[/COLOR]</English>
</TEXT>
Change all the red text to what you have named your building. The first green text is what you want your building to be called in the game. The second is the civilopedia entry. The third is strategy, which generally describes the extra bonuses the building gets. You don't have to do all the civilopedia entries right away, you can leave them just saying "civilopedia entry", but all these tags have to be in the file.
I hope that makes sense.