Custom Civ not showing on leader screen.

why instead of my dummy building I'm getting floating gardens, which is an interesting bug to say the least.

Commonly seen - floating gardens (building id of 0) is what you get if the new building doesn't exist in the database, check your database.log and check for typos connecting the building - eg BUILDING_DUMMY1 and BUILDING_DUMMY_1
 
That's helpful, thank you. I'm going to need to look into the issue of why instead of my dummy building I'm getting floating gardens, which is an interesting bug to say the least.
either your dummy building is not structured correctly (or there is a fatal syntax error in the file) and the game is rejecting it, or you are not referencing the dummy building correctly (either in other XML or in lua). Floating Gardens is Building #0 in the XML, so will be the default fall-back the game uses when the reference to some other building fails for some reason.

huh! Ninja2!
 
Your dummy building is missing the <Buildings> tag, and check that you've added the buildingclass as noted in an earlier post (and updated the <BuildingClass> line to match).

Spoiler :
Code:
<GameData>
    [COLOR="red"]<Buildings>[/COLOR]
	<Row>
		<Type>BUILDING_MAGICAL_FUEL</Type>
		<BuildingClass>BUILDINGCLASS_LIBRARY</BuildingClass>
		<Cost>-1</Cost>
		<GreatWorkCount>-1</GreatWorkCount>
		<Help>TXT_KEY_BUILDING_MAGICAL_FUEL_HELP</Help>
		<Description>TXT_KEY_BUILDING_MAGICAL_FUEL_DESC</Description>
		<Civilopedia>TXT_KEY_BUILDING_MAGICAL_FUEL_PEDIA</Civilopedia>
		<Strategy>TXT_KEY_BUILDING_MAGICAL_FUEL_STRATEGY</Strategy>
		<ArtDefineTag>ART_DEF_BUILDING_MAGICAL_FUEL</ArtDefineTag>
		<MinAreaSize>-1</MinAreaSize>
	     <ConquestProb>66</ConquestProb>
		<HurryCostModifier>25</HurryCostModifier>
		<IconAtlas>BW_ATLAS_1</IconAtlas>
		<PortraitIndex>59</PortraitIndex>
		<SpecialistType>SPECIALIST_SCIENTIST</SpecialistType>
		<GreatPeopleRateChange>3</GreatPeopleRateChange>
	</Row>
    [COLOR="Red"]</Buildings>[/COLOR]
</GameData>

Note that you should remove the <ConquestProb> line and replace it with <NeverCapture>true</NeverCapture>, or someone conquering your city will get the bonus.
 
Amazing! It currently works! It might need some tweaks so it's not as powerful, but functionality is the first step, the only problem now is one of my icons is being tricky and refusing to work.

Edit - Ignore everything I just said about the Icon, it was just a daft mistake on my part.
 

Attachments

  • 2015-03-23_00001.jpg
    2015-03-23_00001.jpg
    393.4 KB · Views: 63
Top Bottom