How to change unique building type?

StackofAxemen

Chieftain
Joined
Jan 9, 2009
Messages
7
Location
New York
I want to make the Chinese Pavilion a barracks that gives you +2 culture. This would fit better with Qin since Qin is perhaps the most militaristic dynasty in China's history. I made changes to the buildinfo.xml and civilizationinfo.xml but that doesn't seem to work. Barracks are not replaced by Pavilions in game.

Experts, care to shed some light?:D
 
I got it to show up as barracks in civipedia. But once I start a game, the barracks is still not replaced by the pavillion. And in the tech tree, the pavillion goes back to be under drama. I must be missing something...
 
Does this section in XML/Civilizations/CivilizationInfos.xml look like this?

Code:
			<Buildings>
				<Building>
					<BuildingClassType>BUILDINGCLASS_BARRACKS</BuildingClassType>
					<BuildingType>BUILDING_CHINESE_PAVILLION</BuildingType>
				</Building>
			</Buildings>
 
Yes, it does. My xml files are in the custom assets folder. For some reason, I can see the modifications in civpedia in the start menu but once I start the game, I still get the old barracks. I only need to change it in buildinginfo.xml and civilizationinfo.xml, right?

There's a file related to art style called artcitypl.xml. Is it because Pavillion can only occur in classical and beyond but barracks can be had from the start?
 
Is the <BuildingCLass> entry of Pavilion set to:

<BuildingClass>BUILDINGCLASS_BARRACKS</BuildingClass>
 
Also, the building has a

<PrereqTech> tab, which says TECH_DRAMA. Simply replace that with NONE so it looks like this:

<PreReqTech>NONE</PreReqTech>.

Or somethine; im not at my Civ computer, so i cant check the XML, so im not quite sure that that is the tag, but it should be right.
 
Back
Top Bottom