Help with Building bonuses?

jython234

Chieftain
Joined
Aug 13, 2014
Messages
2
Hello everyone,

First of all, I couldn't find a "help" section on the forums, so I decided to post here. If there is a correct place for this, please move it there.

I have been writing a "No happiness mod" that disables happiness for a while. The first part that actually disabled it was written long ago, but now I would like to replace building bonuses (such as the colosseum). I have followed a tutorial I found here, but it is to create a new building. I have tried importing into VFS, so don't say that is the problem.
My code is below:
HTML:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 8/13/2014 5:11:40 PM -->
<GameData>
	
	<!--Building Classes-->
	<BuildingClasses>
		<Row>
			<Type>BUILDINGCLASS_COLOSSEUM</Type>
			<DefaultBuilding>BUILDING_COLOSSEUM</DefaultBuilding>
			<Description>TXT_KEY_BUILDING_COLOSSEUM</Description>
		</Row>
	</BuildingClasses>
	<!--End Building Classes-->
	
	<!--Building Data-->
	<Buildings>
		<Row>
			<Type>BUILDING_COLOSSEUM</Type>
			<BuildingClass>BUILDINGCLASS_COLOSSEUM</BuildingClass>
			<FreeStartEra>ERA_INDUSTRIAL</FreeStartEra>
			<Cost>100</Cost>
			<GoldMaintenance>0</GoldMaintenance>
			<PrereqTech>TECH_CONSTRUCTION</PrereqTech>
			<Help>TXT_KEY_BUILDING_COLOSSEUM_STRATEGY</Help>
			<Description>TXT_KEY_BUILDING_COLOSSEUM</Description>
			<Civilopedia>TXT_KEY_CIV5_BUILDINGS_COLISEUM_TEXT</Civilopedia>
			<Strategy>TXT_KEY_BUILDING_COLOSSEUM_STRATEGY</Strategy>
			<ArtDefineTag>COLESSEUM</ArtDefineTag>
			<MinAreaSize>-1</MinAreaSize>
			<ConquestProb>100</ConquestProb>
			<HurryCostModifier>25</HurryCostModifier>
			<DisplayPosition>2</DisplayPosition>
			<ArtInfoCulturalVariation>true</ArtInfoCulturalVariation>
			<IconAtlas>BW_ATLAS_1</IconAtlas>
			<PortraitIndex>23</PortraitIndex>
		</Row>
	</Buildings>
	<!--End Building Data-->
	
	<!--Building Yields/Flavors-->
	<Building_YieldChanges>
		<Row>
			<BuildingType>BUILDING_COLOSSEUM</BuildingType>
			<YieldType>YIELD_GOLD</YieldType>
			<Yield>2</Yield>
		</Row>
	</Building_YieldChanges>
	
	<Building_Flavors>
		<Row>
			<BuildingType>BUILDING_COLOSSEUM</BuildingType>
			<FlavorType>FLAVOR_COLOSSEUM</FlavorType>
			<Flavor>7</Flavor>
		</Row>
	</Building_Flavors>
	<!--End Building Yields/Flavors-->
	
	<!--Building Docs-->
	<Language_en_US>
		<Row Tag="TXT_KEY_BUILDING_COLOSSEUM">
			<Text>Colosseum</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_COLOSSEUM_HELP">
			<Text>The Colosseum adds +2 [ICON_GOLD] Gold.</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_COLOSSEUM_STRATEGY">
			<Text>The Colosseum provides gold for the nation.</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_COLOSSEUM_Text">
			<Text>The Colosseum allows the city to present gladiator battles, or special events, which yield entry fees, that give the nation gold.</Text>
		</Row>
	</Language_en_US>
	<!--End Building Docs-->
	
  
</GameData>

Moderator Action: Welcome to CivFanatics. Questions belong in the main forum, so this thread has been moved there. Happy posting.
 
BUILDING_COLOSSEUM already exists in the game, since your <Type> line isn't unique, the whole file is ignored by the game.
You need to use <Update> (which I'm not very comfortable with in order to help you) when making changes (differently from making additions). The same for the BuildingClass, that whole snippet of information already exists in-game.

Take a look at Kael's guide, right here, it definetively has <Update> lessons that will help you in this case, as well as being a very thorough modding guide for beginners! After you feel more comfortable with basic modding, LeeS has a seriously good advanced tutorial for buildings.
Also, enabling logging would give you an error guiding you to the solution I presented; this will help you immensely in regards to modding. :)
 
I'd love to become a modding vigilante as well, if I wasn't so bad at it myself. :(
I can give advice on all things modding except lua. And DLL. And also artwork. :p
 
Top Bottom