[BNW] Unique unit and building not showing up and a host of other problems

Grey Ackerman

Chieftain
Joined
May 6, 2018
Messages
21
Problems include:
-Unique unit and building not appearing anywhere
-Tech tree only shows the ancient era
-Can only choose civ through advanced setup
-Emblem art has a black box
-Can't choose production after researching bronze working

Any help would be welcome

-Grey-
 

Attachments

Last edited:
  1. You have these listed both within your civ's xml-file, and within your respective building and unit xml-files
    Code:
    <Civilization_BuildingClassOverrides>
    	<Row>
    		<CivilizationType>CIVILIZATION_ACKERIA</CivilizationType>
    		<BuildingClassType>BUILDINGCLASS_BARRACKS</BuildingClassType>
    		<BuildingType>BUILDING_KASERNE</BuildingType>
    	</Row>
    </Civilization_BuildingClassOverrides>
    <Civilization_UnitClassOverrides>
    	<Row>
    		<CivilizationType>CIVILIZATION_ACKERIA</CivilizationType>
    		<UnitClassType>UNITCLASS_COMPOSITE_BOWMAN</UnitClassType>
    		<UnitType>UNIT_FEILZIG</UnitType>
    	</Row>
    </Civilization_UnitClassOverrides>
    Eliminate the repeats of these overrides and only list them in the civ file or in the respective building/unit file where you are defining the building / unit.
  2. This is a fatal syntax error and causes the game to reject your entire unit file
    Code:
    <Trait_FreePromotionUnitCombats>
    	<Row>
    		<UnitType>UNIT_FEILZIG</UnitType>
    		<PromotionType>PROMOTION_OPEN_TERRAIN</PromotionType>
    	</Row>
    	<Row>
    		<UnitType>UNIT_FEILZIG</UnitType>
    		<PromotionType>PROMOTION_MUST_SET_UP</PromotionType>
    	</Row>
    </Trait_FreePromotionUnitCombats>
    • There is no such column called "UnitType" in table <Trait_FreePromotionUnitCombats>
    • The definition of the table is as follows:
      Code:
      <Table name="Trait_FreePromotionUnitCombats">
      	<Column name="TraitType" type="text" reference="Traits(Type)"/>
      	<Column name="UnitCombatType" type="text" reference="UnitCombatInfos(Type)"/>
      	<Column name="PromotionType" type="text" reference="UnitPromotions(Type)"/>
      </Table>
    • You are therefore missing the required Trait designation, as well as attempting to specify an individual unit rather than a UnitCombat Type
    • This error has a cascading effect of making the civ not have the minimum two uniques, which causes the inability to scroll (and therefore select) in the civilization/leader selection screen
  3. Free Promotions for individual Units is done under table <Unit_FreePromotions>, which has this table definition
    Code:
    <Table name="Unit_FreePromotions">
    	<Column name="UnitType" type="text" reference="Units(Type)"/>
    	<Column name="PromotionType" type="text" reference="UnitPromotions(Type)"/>
    </Table>
    Change your erroneous code in the unit file to use this table-name instead of <Trait_FreePromotionUnitCombats>
  4. You have no Alpha icon for your civ. An alpha icon is an outline shape of the civ's icon "symbol" rather than a "full-color" image as you are using. It needs to be defined within its own Atlas rather than sharing an Atlas name with the "full-color" image of the icon.
  5. You have no Dawn of Man image specified, nor a leader fallback scene
  6. I have not looked to see if your dds files appear to be exported properly into dds format
  7. enable error logging and inspect the contents of Database.log after fixing the code errors I've outlined.whoward69's enable error logging tutorial
    • any error message that mentions any of your mod's xml file-names means that you still have code errors in the xml, and you need to fix these before tackling anything else.
 
The only error related database entry is:
Invalid Reference on Unit_Flavors.FlavorType - "FLAVOR_OFFENCE" does not exist in Flavors
Invalid Reference on Unit_Flavors.FlavorType - "FLAVOR_DEFENCE" does not exist in Flavors
 
You are missing
Code:
Description>TXT_KEY_UNIT_FEILZIG</Description>
and
Code:
<Description>TXT_KEY_BUILDING_KASERNE</Description>
in your definitions of the unit and the building. Without these <Description> tags the game does not know how to deal with showing these items properly on the civ selection screens, etc., and so vomits but does not make a Database error since there is no actual XML/SQL syntax-error issue.

"S" is the correct spelling, not "C":
Code:
FLAVOR_OFFENSE
FLAVOR_DEFENSE

--------------

And without a DawnOfManImage specification in table <Civilizations> you will get the half-blank ugly-bob screen once you click "Start Game"
 
Back
Top Bottom