Cannot start new game

Code:
  <FrontEndActions>
    <UpdateDatabase id="Config">
      <File>Warren_Config.xml</File>
    </UpdateDatabase>
    <UpdateText id="ConfigText">
      <File>Warren_Config_Text.xml</File>
    </UpdateText>
  </FrontEndActions>
    <UpdateIcons id="ConfigIcons">
      <File>Warren_Building_Icons.xml</File>
      <File>Warren_Civilizations_Icons.xml</File>
      <File>Warren_Leader_Icons.xml</File>
      <File>Warren_Unit_Icons.xml</File>
    </UpdateIcons>  
  <InGameActions>
Your <UpdateIcons id="ConfigIcons"> is neither under <FrontEndActions> nor <InGameActions>. It is between the two and therefore is never activated by the game.

Also, it needs to be under <InGameActions> for the icon designations to work properly in-game. You may also need to add the same files into an action that is done under <FrontEndActions> but the reality is the game is seriously wierd in the way it wants things presented for <FrontEndActions> IMO. Look at one of JFD's mods to see how he handles the issue of Icon Activations re the <FrontEndActions> vs <InGameActions> issues.

  • ICON_CIVILIZATION_CHINA has already been defined for the game.
  • ICON_BUILDING_MONUMENT has already been defined for the game.
  • You are calling your building BUILDING_WARRENSOULSTONE, so you need this
    Code:
    <GameInfo>
    	<IconDefinitions>
    		<Row Name="ICON_BUILDING_WARRENSOULSTONE" Atlas="ICON_ATLAS_BUILDINGS" Index="0"/>
    		<Row Name="ICON_BUILDING_WARRENSOULSTONE_FOW" Atlas="ICON_ATLAS_BUILDINGS_FOW" Index="0"/>
    	</IconDefinitions>
    </GameInfo>
  • This works fine because you are using the same icons the monument building, settler unit, and builder unit provided by Firaxis use:
    Code:
    	<PlayerItems>
    		<Row>
    			<Domain>StandardPlayers</Domain>
    			<CivilizationType>CIVILIZATION_WARREN</CivilizationType>
    			<LeaderType>LEADER_WARREN</LeaderType>
    			<Type>UNIT_HELPER</Type>
    			<Name>LOC_UNIT_HELPER_NAME</Name>
    			<Description>LOC_UNIT_HELPER_DESCRIPTION</Description>
    			<Icon>ICON_UNIT_BUILDER</Icon>
    			<SortIndex>10</SortIndex>
    		</Row>
    		<Row>
    			<Domain>StandardPlayers</Domain>
    			<CivilizationType>CIVILIZATION_WARREN</CivilizationType>
    			<LeaderType>LEADER_WARREN</LeaderType>
    			<Type>UNIT_TRAILBLAZER</Type>
    			<Name>LOC_UNIT_TRAILBLAZER_NAME</Name>
    			<Description>LOC_UNIT_TRAILBLAZER_DESCRIPTION</Description>
    			<Icon>ICON_UNIT_SETTLER</Icon>
    			<SortIndex>10</SortIndex>
    		</Row>		
    		<Row>
    			<Domain>StandardPlayers</Domain>
    			<CivilizationType>CIVILIZATION_WARREN</CivilizationType>
    			<LeaderType>LEADER_WARREN</LeaderType>
    			<Type>BUILDING_WARRENSOULSTONE</Type>
    			<Name>LOC_BUILDING_WARRENSOULSTONE_NAME</Name>
    			<Description>LOC_BUILDING_WARRENSOULSTONE_DESCRIPTION</Description>
    			<Icon>ICON_BUILDING_MONUMENT</Icon>
    			<SortIndex>20</SortIndex>
    		</Row>
    	</PlayerItems>
  • This is no good because the game already has information for ICON_UNIT_BUILDER and ICON_UNIT_SETTLER and you have neither defined ICON_ATLAS_WARREN_UNITS nor added the needed dds art files to import new icons into the game:
    Code:
    <GameInfo>
    	<IconDefinitions>
    		<Row Name="ICON_UNIT_BUILDER" Atlas="ICON_ATLAS_WARREN_UNITS" Index="1"/>
    		<Row Name="ICON_UNIT_SETTLER" Atlas="ICON_ATLAS_WARREN_UNITS" Index="0"/>
    	</IconDefinitions>
    </GameInfo>
    You need
    Code:
    <GameInfo>
    	<IconDefinitions>
    		<Row Name="ICON_UNIT_HELPER" Atlas="ICON_ATLAS_UNITS" Index="1"/>
    		<Row Name="ICON_UNIT_TRAILBLAZER" Atlas="ICON_ATLAS_UNITS" Index="0"/>
    	</IconDefinitions>
    </GameInfo>
 
Got it. I've done everything, but still no changes. All the icons are still missing, and the Helper (builder) is still not able to perform any of the usual actions. Maybe I inserted the build action parameters in the wrong place?

Thanks very much, LeeS.
 

Attachments

Database.log error:
Code:
[3297533.875] [Gameplay] ERROR: Database::XMLSerializer (Warren_Units.xml): 'Row' or 'Delete' expected, got 'Improvement_ValidBuildUnits'.
[3297533.875] [Gameplay]: In XMLSerializer while updating table GameInfo from file Warren_Units.xml.
The problem is here:
Code:
	<UnitAIInfos>
		<Row UnitType="UNIT_HELPER" AiType="UNITAI_BUILD"/>
		<Row UnitType="UNIT_HELPER" AiType="UNITTYPE_CIVILIAN"/>
		<Row UnitType="UNIT_TRAILBLAZER" AiType="UNITAI_SETTLE"/>
		<Row UnitType="UNIT_TRAILBLAZER" AiType="UNITTYPE_CIVILIAN"/>		
	</UnitAIInfos>
	<GameInfo>
	<Improvement_ValidBuildUnits>
		<Replace ImprovementType="IMPROVEMENT_FARM" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_MINE" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_QUARRY" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_FISHING_BOATS" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_PASTURE" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_PLANTATION" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_CAMP" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_LUMBER_MILL" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_OIL_WELL" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_OFFSHORE_OIL_RIG" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_BEACH_RESORT" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_FORT" UnitType="UNIT_MILITARY_ENGINEER"/>
		<Replace ImprovementType="IMPROVEMENT_AIRSTRIP" UnitType="UNIT_MILITARY_ENGINEER"/>
		<Replace ImprovementType="IMPROVEMENT_MISSILE_SILO" UnitType="UNIT_MILITARY_ENGINEER"/>
		<!--Unique Improvements -->
		<Replace ImprovementType="IMPROVEMENT_CHATEAU" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_COLOSSAL_HEAD" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_GREAT_WALL" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_KURGAN" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_MISSION" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_ROMAN_FORT" UnitType="UNIT_ROMAN_LEGION"/>
		<Replace ImprovementType="IMPROVEMENT_SPHINX" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_STEPWELL" UnitType="UNIT_HELPER"/>
		<Replace ImprovementType="IMPROVEMENT_ZIGGURAT" UnitType="UNIT_HELPER"/>
	</Improvement_ValidBuildUnits>
	</GameInfo>	
	<Tags>
		<Row Tag="CLASS_HELPER" Vocabulary="ABILITY_CLASS"/>
		<Row Tag="CLASS_TRAILBLAZER" Vocabulary="ABILITY_CLASS"/>		
	</Tags>
You copied and pasted everything, including the <GameInfo> wraps. Just delete the <GameInfo> and </GameInfo> from this chunk of code.

Modding.log:
Code:
[3297462.980] Status: Loading Mod - C:/Users/Lee/Documents/My Games/Sid Meier's Civilization VI/Mods/Warren Of Neo China v5/Warren.modinfo
[3297462.993] ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - Warren_Building_Icons.xml
[3297462.993] ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - Warren_Civilizations_Icons.xml
[3297462.994] ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - Warren_Leader_Icons.xml
[3297462.994] ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - Warren_Unit_Icons.xml
[3297462.994] ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - Warren_Building_Icons.xml
[3297462.994] ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - Warren_Civilizations_Icons.xml
[3297462.994] ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - Warren_Leader_Icons.xml
[3297462.994] ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - Warren_Unit_Icons.xml
[3297462.995] ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - Warren_Improvements.xml
  1. You don't need this file <File>Warren_Improvements.xml</File> since you put all the needed code within file <File>Warren_Units.xml</File>
  2. You get a double-listing in the error report for the _Icons.xml files because you have them listed in both <FrontEndActions> and <InGameActions> and the game cannot find them either time because you have not added the files to the list in this part of the modinfo file
    Code:
      <Files>
        <File>Warren_Buildings.xml</File>
        <File>Warren_Civilizations.xml</File>
        <File>Warren_Colours.xml</File>
        <File>Warren_Config.xml</File>
        <File>Warren_Config_Text.xml</File>
        <File>Warren_DiplomacyText.xml</File>
        <File>Warren_Gossip.xml</File>
        <File>Warren_Leaders.xml</File>
        <File>Warren_PediaText.xml</File>
        <File>Warren_PlayerColours.xml</File>
        <File>Warren_Text.xml</File>
        <File>Warren_Units.xml</File>
      </Files>
  3. All files that are to be part of the mod need to be listed in the <Files> section of the modinfo file.
  4. So, change to:
    Code:
      <Files>
        <File>Warren_Buildings.xml</File>
        <File>Warren_Civilizations.xml</File>
        <File>Warren_Colours.xml</File>
        <File>Warren_Config.xml</File>
        <File>Warren_Config_Text.xml</File>
        <File>Warren_DiplomacyText.xml</File>
        <File>Warren_Gossip.xml</File>
        <File>Warren_Leaders.xml</File>
        <File>Warren_PediaText.xml</File>
        <File>Warren_PlayerColours.xml</File>
        <File>Warren_Text.xml</File>
        <File>Warren_Units.xml</File>
          <File>Warren_Building_Icons.xml</File>
          <File>Warren_Civilizations_Icons.xml</File>
          <File>Warren_Leader_Icons.xml</File>
          <File>Warren_Unit_Icons.xml</File>
      </Files>
The attached version of the mod fixes many of these issues but you still have some outstanding issues such as the citypanel not showing the unit-icon properly when you select the unit for production. Nor is the unit-portrait correct in the unit action-panel for the unit once the unit is constructed. I think this is because the actual portrait of the unit that shows in the unit-panel and in the city production panel may depend on the unit's artdef, blp, and tex files, none of which you have for these units.
 

Attachments

After doing some more research in the game's base files I see that you will also need these definitions:
Code:
  <IconDefinitions>
		<Row Name="ICON_UNIT_TRAILBLAZER_PORTRAIT" Atlas="ICON_ATLAS_UNIT_PORTRAITS" Index="0"/>
		<Row Name="ICON_UNIT_HELPER_PORTRAIT" Atlas="ICON_ATLAS_UNIT_PORTRAITS" Index="1"/>
  </IconDefinitions>
You can add these two rows to your existing Warren_Unit_Icons.xml file like this:
Code:
<GameInfo>
	<IconDefinitions>
		<Row Name="ICON_UNIT_HELPER" Atlas="ICON_ATLAS_UNITS" Index="1"/>
		<Row Name="ICON_UNIT_TRAILBLAZER" Atlas="ICON_ATLAS_UNITS" Index="0"/>
		<Row Name="ICON_UNIT_TRAILBLAZER_PORTRAIT" Atlas="ICON_ATLAS_UNIT_PORTRAITS" Index="0"/>
		<Row Name="ICON_UNIT_HELPER_PORTRAIT" Atlas="ICON_ATLAS_UNIT_PORTRAITS" Index="1"/>
	</IconDefinitions>
</GameInfo>
There is also ethnicity for these unit portraits, but I am not sure if this will be what you want to add:
Code:
    <Row Name="ICON_ETHNICITY_ASIAN_UNIT_TRAILBLAZER_PORTRAIT"                      Atlas="ICON_ATLAS_ASIAN_UNIT_PORTRAITS"   Index="0"/>
    <Row Name="ICON_ETHNICITY_ASIAN_UNIT_HELPER_PORTRAIT"                      Atlas="ICON_ATLAS_ASIAN_UNIT_PORTRAITS"   Index="1"/>
I assume your Neo China would still be "Asian" ethniticity.

The differences are that this is only for the unit's "flag":
Code:
<Row Name="ICON_UNIT_HELPER" Atlas="ICON_ATLAS_UNITS" Index="1"/>
And this is for the actual circular icon portrait that shows in the unit action-panel and a few other places
Code:
<Row Name="ICON_UNIT_HELPER_PORTRAIT" Atlas="ICON_ATLAS_UNIT_PORTRAITS" Index="1"/>
 
I've done everything you've mentioned, LeeS, and I am delighted to report that the icons for the Helper, Trailblazer and Soul Stone are now working! Thank you so much!

Now onto the matter of the civilisation icon and the leader art. It's still showing as a "?" in the civilopedia. After the loading screen (where it's portrayed as Roosevelt), in-game, I'm portrayed as Hatshepsut, for some reason.

Any ideas?
 

Attachments

there were a couple of threads about that. Not sure if there is anything in Tutorials and References. But you've banged against the limits of my knowledge re artwork and how it works in civ6.
 
I see. At any rate, thank you so much for your help, LeeS. I would not have been able to do this alone. If there is any way I can help out in the future, please do let me know.

Good day! :D
 
By the way, LeeS, I notice that my Helper units (worker) cannot embark onto water tiles to harvest seafood resources even after I've researched Sailing. Is there something I am missing here from my code?

And I'm seeing my citizen names come up on the screen as LOC_CITIZEN_WARREN_MALE_1. Is there any way I can give them names so that they don't come up as strings of coding?

Many thanks!
 
Back
Top Bottom