Hi
I've been trying to add a new building; an improved barracks that gives the combat1 promotion, requires a barracks and can be built once construction has been investigated. The game crashes though
. This is what I did:
CIV4BuildingInfos.xml
Copied the existing barracks and made edits in the follwing lines:
<BuildingClass>BUILDINGCLASS_IMP_BARRACKS</BuildingClass>
<Type>BUILDING_IMP_BARRACKS</Type>
...
<Description>TXT_KEY_BUILDING_IMP_BARRACKS</Description>
...
<PrereqTech>TECH_CONSTRUCTION</PrereqTech>
...
<FreePromotion>PROMOTION_COMBAT1</FreePromotion>
...
<BuildingClassNeededs>
<BuildingClassNeeded>
<BuildingClassType>BUILDINGCLASS_BARRACKS</BuildingClassType>
<bNeededInCity>1</bNeededInCity>
</BuildingClassNeeded>
</BuildingClassNeededs>
CIV4BuildingClassInfos.xml
Copied the existing barracks and made edits in the follwing lines:
<Type>BUILDINGCLASS_IMP_BARRACKS</Type>
<Description>TXT_KEY_BUILDING_IMP_BARRACKS</Description>
...
<DefaultBuilding>BUILDING_IMP_BARRACKS</DefaultBuilding>
CIV4GameTextInfos_Objects.xml
Copied the existing barracks and made edits in the follwing lines:
<Tag>TXT_KEY_BUILDING_IMP_BARRACKS</Tag>
<English>Improved Barracks</English>
As I said it crashes so I must be doing something wrong. Anyone got any ideas?
BTW: Couldn't believe this hadn't been discussed (maybe its too basic?) but I did do a search
\Skodkim
I've been trying to add a new building; an improved barracks that gives the combat1 promotion, requires a barracks and can be built once construction has been investigated. The game crashes though

CIV4BuildingInfos.xml
Copied the existing barracks and made edits in the follwing lines:
<BuildingClass>BUILDINGCLASS_IMP_BARRACKS</BuildingClass>
<Type>BUILDING_IMP_BARRACKS</Type>
...
<Description>TXT_KEY_BUILDING_IMP_BARRACKS</Description>
...
<PrereqTech>TECH_CONSTRUCTION</PrereqTech>
...
<FreePromotion>PROMOTION_COMBAT1</FreePromotion>
...
<BuildingClassNeededs>
<BuildingClassNeeded>
<BuildingClassType>BUILDINGCLASS_BARRACKS</BuildingClassType>
<bNeededInCity>1</bNeededInCity>
</BuildingClassNeeded>
</BuildingClassNeededs>
CIV4BuildingClassInfos.xml
Copied the existing barracks and made edits in the follwing lines:
<Type>BUILDINGCLASS_IMP_BARRACKS</Type>
<Description>TXT_KEY_BUILDING_IMP_BARRACKS</Description>
...
<DefaultBuilding>BUILDING_IMP_BARRACKS</DefaultBuilding>
CIV4GameTextInfos_Objects.xml
Copied the existing barracks and made edits in the follwing lines:
<Tag>TXT_KEY_BUILDING_IMP_BARRACKS</Tag>
<English>Improved Barracks</English>
As I said it crashes so I must be doing something wrong. Anyone got any ideas?
BTW: Couldn't believe this hadn't been discussed (maybe its too basic?) but I did do a search
\Skodkim