Question about buildings

totg_kabu

Chieftain
Joined
Nov 19, 2005
Messages
17
Location
Scotland
I am working on a mod with no tech tree, where to build advanced buildings requires prerequisite buildings, units require specific buildings etc.

So far I have stripped down many of the xml files to hold no information and am now working on adding all the buildings and units back in.

The problem I have is while my building hierarchy works fine all my buildings are listed as national wonders, I have checked through the original files a few times but I must have gone blind as I can't find any way to distinguish wonders, buildings or national wonders. Any help is appreciated

Also on a side note is there any way to hide buildings you do not have the prereq's for on the build list until you have the prereq's required?
 
I haven't found out... and I looked. But, if nothing else, you can go into globaldefines.xml and increase the number of national wonders allowed per city, so your cities won't be limited to 2 buildings each.

I assume you copied one of the existing building entries to serve as a template for your new ones... Are you by any change using the existing entry for a wonder?

Or, it could be that the only buildings in Civ that have a building requirement are currently wonders, so it's just making an assumption that, since your buildings require prerequisite buildings, they simply MUST be wonders.
 
I used the barracks as a template and it is also now listed as a national wonder and is one of the buildings without prereq's, the barracks entry was not changed in any way. The globaldefines is my temp workaround.:confused:
 
you might be able to hide buildings by making it so when you build certain buildings they give you a special tech which unlocks the new buildings. I believe buildings are revealed only as you have the tech.
 
That would only work the first time they are built, the tech would then be available in other cities, and you can't obsolete the tech because that would halt production in other cities. (already tried just in case :P )
 
You must have some bad values in BuildingClassInfos.xml. For each building entry, you should have a MaxGlobalInstances, MaxPlayerInstances, MaxTeamInstances, or something to that effect.

Set them all to -1 to make them normal buildings. A Max Global instance of 1 makes them a wonder. A max player instance of 1 makes it a national wonder.
 
Thanks, I knew I was being blind :)
Now it's just hiding the buildings that don't have prereq's, I'll search through the python folder later, the popup menu is fine so the solution should be in there.
Think I might work on a building/unit editor for the next few days, will make life so much easier.
 
Back
Top Bottom