AmrasKuthalion
Chieftain
- Joined
- Jul 31, 2012
- Messages
- 6
Apologize in advance for being totally new at this...
Anyways, so I'm creating a custom civ (again im really new), and I'm taking it steps at a time. I've got the civ created, and its there in-game (even though its right now practically a duplicate of Austria), and im working on changing the unique building to a building of my own. I created the building (supposed to be a different version of stone-works), heres some code for it:
I have that all in the same XML file just btw.
I've also added it so that its in the "replace buildings" section of the new civ xml thing. heres that portion of code:
Now, when i go in game, i choose my mod, etc etc, and in game setup, i choose to play as my civ, and during the loading screen, when they read the DOM quote, you know, it still has Austria's unique unit (I havent changed that yet), but it actually shows my unique building(the construction camp) rather then Austria's, so its good that far.
Problem is, when i start playing, the tech tree says its just a stone works, I played through a little, and yep, i went to build it, and it really is just the stone works, when i wanted it to be updated to the construction camp.
I've read multiple adding buildings tutorials, and cant seem to find what im doing wrong.
Help anyone?
(And i *think i posted this in the right forum this time... o.O)
***edit: kay, im still trying to figure this out, and trying to think of things i might be doing wrong. so when i created this new building, i created a whole new xml file to put that first portion of spoiler code into. was i supposed to do that? or was i supposed to put that code directly into the CIVBuildings.xml that comes with the game. Wouldnt that alter the original game and affect, like, gameplay when not using the mod? idk. just wondering. help?
***edit #2: does naming files matter? that XML that i wrote all of the new building code, does it matter what its named? right now its just named constructioncamp.xml. should it be CIV5Buildings.xml? does that matter? still trying to think of ways to maybe fix it...
Anyways, so I'm creating a custom civ (again im really new), and I'm taking it steps at a time. I've got the civ created, and its there in-game (even though its right now practically a duplicate of Austria), and im working on changing the unique building to a building of my own. I created the building (supposed to be a different version of stone-works), heres some code for it:
Spoiler :
<GameData>
<Buildings>
<Row>
<Type>BUILDING_CONSTRUCTION_CAMP</Type>
<BuildingClass>BUILDINGCLASS_STONE_WORKS</BuildingClass>
<Cost>50</Cost>
<GoldMaintenance>0</GoldMaintenance>
<PrereqTech>TECH_CALENDAR</PrereqTech>
<Help>TXT_KEY_BUILDING_CONSTRUCTION_CAMP_HELP</Help>
<Description>TXT_KEY_BUILDING_CONSTRUCTION_CAMP</Description>
<Civilopedia>TXT_KEY_CIV5_BUILDINGS_CONSTRUCTION_CAMP_TEXT</Civilopedia>
<Strategy>TXT_KEY_BUILDING_CONSTRUCTION_CAMP_STRATEGY</Strategy>
<ArtDefineTag>ART_DEF_BUILDING_FORGE</ArtDefineTag>
<MinAreaSize>-1</MinAreaSize>
<ConquestProb>66</ConquestProb>
<HurryCostModifier>0</HurryCostModifier>
<IconAtlas>NEW_BLDG_ATLAS2_DLC</IconAtlas>
<PortraitIndex>1</PortraitIndex>
</Row>
</Buildings>
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_CONSTRUCTION_CAMP</BuildingType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>5</Yield>
</Row>
</Building_YieldChanges>
</GameData>
<Buildings>
<Row>
<Type>BUILDING_CONSTRUCTION_CAMP</Type>
<BuildingClass>BUILDINGCLASS_STONE_WORKS</BuildingClass>
<Cost>50</Cost>
<GoldMaintenance>0</GoldMaintenance>
<PrereqTech>TECH_CALENDAR</PrereqTech>
<Help>TXT_KEY_BUILDING_CONSTRUCTION_CAMP_HELP</Help>
<Description>TXT_KEY_BUILDING_CONSTRUCTION_CAMP</Description>
<Civilopedia>TXT_KEY_CIV5_BUILDINGS_CONSTRUCTION_CAMP_TEXT</Civilopedia>
<Strategy>TXT_KEY_BUILDING_CONSTRUCTION_CAMP_STRATEGY</Strategy>
<ArtDefineTag>ART_DEF_BUILDING_FORGE</ArtDefineTag>
<MinAreaSize>-1</MinAreaSize>
<ConquestProb>66</ConquestProb>
<HurryCostModifier>0</HurryCostModifier>
<IconAtlas>NEW_BLDG_ATLAS2_DLC</IconAtlas>
<PortraitIndex>1</PortraitIndex>
</Row>
</Buildings>
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_CONSTRUCTION_CAMP</BuildingType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>5</Yield>
</Row>
</Building_YieldChanges>
</GameData>
I have that all in the same XML file just btw.
I've also added it so that its in the "replace buildings" section of the new civ xml thing. heres that portion of code:
Spoiler :
<Civilization_BuildingClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_CARDOLAN</CivilizationType>
<BuildingClassType>BUILDINGCLASS_STONEWORKS</BuildingClassType>
<BuildingType>BUILDING_CONSTRUCTION_CAMP</BuildingType>
</Row>
</Civilization_BuildingClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_CARDOLAN</CivilizationType>
<BuildingClassType>BUILDINGCLASS_STONEWORKS</BuildingClassType>
<BuildingType>BUILDING_CONSTRUCTION_CAMP</BuildingType>
</Row>
</Civilization_BuildingClassOverrides>
Now, when i go in game, i choose my mod, etc etc, and in game setup, i choose to play as my civ, and during the loading screen, when they read the DOM quote, you know, it still has Austria's unique unit (I havent changed that yet), but it actually shows my unique building(the construction camp) rather then Austria's, so its good that far.
Problem is, when i start playing, the tech tree says its just a stone works, I played through a little, and yep, i went to build it, and it really is just the stone works, when i wanted it to be updated to the construction camp.
I've read multiple adding buildings tutorials, and cant seem to find what im doing wrong.
Help anyone?
(And i *think i posted this in the right forum this time... o.O)
***edit: kay, im still trying to figure this out, and trying to think of things i might be doing wrong. so when i created this new building, i created a whole new xml file to put that first portion of spoiler code into. was i supposed to do that? or was i supposed to put that code directly into the CIVBuildings.xml that comes with the game. Wouldnt that alter the original game and affect, like, gameplay when not using the mod? idk. just wondering. help?
***edit #2: does naming files matter? that XML that i wrote all of the new building code, does it matter what its named? right now its just named constructioncamp.xml. should it be CIV5Buildings.xml? does that matter? still trying to think of ways to maybe fix it...