Custom Civ UB

Bonyduck Campersang

The Anti Amadeus
Joined
Dec 11, 2022
Messages
4,345
I've been following whowards's Standard Civ templates to create a custom civ. I've done the first part, which is adding unique unit and building by copying and replacing existing uniques. The unit part is fine, I can create the unit and control it, but the building is giving me problems. Although it shows up in the uniques in the pre-game screen, it doesn't show up in the game, either in the technology section or in the production section.

The building uses the template for the Celts' Ceilidh Hall. The Ceilidh Hall replaces the Opera House, and requires the Amphitheatre. I can see that in the mod files as well. But when I go to the Civilopedia I see that my building both replaces and requires the Amphitheatre. Now this may explain why I can't produce the building (even though I can see in the xml files it appears to be otherwise) but it doesn't explain why I can't see it in the tech screen.

Mod attached
 

Attachments

  • MyFirstCiv - Buyids (v 1).zip
    358.4 KB · Views: 16
I think I found the issue for the building both requiring and replacing the Amphitheatre :blush::confused:

From Civilization.xml:

XML:
<Civilization_BuildingClassOverrides>
    <Row>
      <CivilizationType>CIVILIZATION_BUYIDS</CivilizationType>
      <BuildingClassType>BUILDINGCLASS_AMPHITHEATER</BuildingClassType>
      <BuildingType>BUILDING_DARVAZEH</BuildingType>
    </Row>
  </Civilization_BuildingClassOverrides>

From Buildings.xml:
XML:
<BuildingClass>BUILDINGCLASS_OPERA_HOUSE</BuildingClass>
<ArtDefineTag>OPERA_HOUSE</ArtDefineTag>

<Building_ClassesNeededInCity>
    <Row>
      <BuildingType>BUILDING_DARVAZEH</BuildingType>
      <BuildingClassType>BUILDINGCLASS_AMPHITHEATER</BuildingClassType>
    </Row>
 
I think I found the issue for the building both requiring and replacing the Amphitheatre :blush::confused:

From Civilization.xml:

XML:
<Civilization_BuildingClassOverrides>
    <Row>
      <CivilizationType>CIVILIZATION_BUYIDS</CivilizationType>
      <BuildingClassType>BUILDINGCLASS_AMPHITHEATER</BuildingClassType>
      <BuildingType>BUILDING_DARVAZEH</BuildingType>
    </Row>
  </Civilization_BuildingClassOverrides>
so yeah I realise now that the Darvazeh isn't replacing the Amphitheatre here
 
Top Bottom