Major Bugs & Errors with my First mod (and help needed)

CharZ

Chieftain
Joined
Mar 3, 2017
Messages
31
What I want for this Civ is:
Leader: Johan de Witt
Unique District: VOC Have (Harbor replacement. Available at currency; Provides an extra trade route, Great Scientist points, Great Artist points, and better adjacency bonuses)
Unique Improvement: Windmill (+1 food per adjacent [improved] wheat/farm, +1 production for adjacent windmills, +1 food and +2 production to tile, +1 production (or food) if built on marsh
Civ Ability: Colonial Trade (Settlers embark at Shipbuilding/Foreign Trade/Currency, Naval coastal tiles are better)
Leader Ability: Golden Age (Domestic Trade routes provide +1 food to both cities, Other civ's trade route to Netherlands provide +2 gold and +1 Production to them, and +2 gold +1 culture to Netherlands)
Unique Agenda: Grand Pensionary of Holland (Likes Civs with high gold, dislikes civs weaker in gold, tries to accumulate as much gold as possible)

The mod is quite functional except for a few issues.

Currently Experiencing These Issues
  • VOC is accessable by Germany (and probably other civs as well) [The MAJOR Bug]
  • Leader Ability doesn't work (Tried copying and modifying Cleopatras)
  • Leader Select Screen is broken (again)

Database.log:
[3182454.244] [Localization]: Validating Foreign Key Constraints...
[3182454.244] [Localization]: Passed Validation.
[3182454.252] [Configuration]: Validating Foreign Key Constraints...
[3182454.252] [Configuration]: Passed Validation.
[3182465.528] [FullTextSearch]: Initializing FullTextSearch
[3182466.046] [Gameplay]: Validating Foreign Key Constraints...
[3182466.058] [Gameplay]: Passed Validation.
[3182466.503] [Configuration]: Validating Foreign Key Constraints...
[3182466.503] [Configuration]: Passed Validation.
[3182484.703] [FullTextSearch]: FTS - Creating Context
[3182499.517] [Configuration]: Validating Foreign Key Constraints...
[3182499.517] [Configuration]: Passed Validation.
[3182499.945] [Gameplay] ERROR: table Modifiers has no column named Row
[3182499.945] [Gameplay]: In Query - insert into Modifiers('ModifierId', 'ModifierType', 'Row') values (?, ?, ?);
[3182499.945] [Gameplay]: In XMLSerializer while updating table Modifiers from file TheNetherlands_Leaders.xml.
[3182499.973] [Gameplay]: Validating Foreign Key Constraints...
[3182499.985] [Gameplay]: Passed Validation.
[3182510.105] [FullTextSearch]: FTS - Creating Context
[3182510.341] [FullTextSearch]: FTS - Creating Context
[3182511.074] [FullTextSearch]: FTS - Creating Context
[3192227.559] [FullTextSearch]: FullTextSearch - Shutting down

Need Help With:
  • Unique Agenda
  • Icons
  • Balancing
 

Attachments

  1. Your district is not assigned to a TraitType:
    Code:
    <Row DistrictType="DISTRICT_BATH" Name="LOC_DISTRICT_BATH_NAME"
    	Description="LOC_DISTRICT_BATH_DESCRIPTION" PrereqTech="TECH_ENGINEERING" PlunderType="PLUNDER_GOLD"
    	PlunderAmount="50" AdvisorType="ADVISOR_GENERIC" Cost="25" CostProgressionModel="COST_PROGRESSION_GAME_PROGRESS"
    	CostProgressionParam1="1000" RequiresPlacement="true" RequiresPopulation="false" Aqueduct="true" NoAdjacentCity="false"
    	InternalOnly="false" ZOC="false" CaptureRemovesBuildings="false" CaptureRemovesCityDefenses="false" MilitaryDomain="NO_DOMAIN"
    	Housing="2" Entertainment="1"
    	TraitType="TRAIT_CIVILIZATION_DISTRICT_BATH"/>
    You need this in addition to the entry in the <DistrictReplaces> table.
  2. You do not look to be posting a runable mod from the game's MODS folder. You are still posting folders with CharZTheNetherlands.civ6proj files in it. No mod created in modbuddy will have both a xxx.modinfo file and a xxxx.civ6proj within the mod sent to the game's MODS folder at C:\Users\UserName\Documents\My Games\Sid Meier's Civilization VI\Mods\
  3. Your modinfo file is using designations from a manually-created mod, yet you have a CharZTheNetherlands.civ6proj file. The only way you can have a CharZTheNetherlands.civ6proj file is from running modbuddy.
  4. Your modinfo file is not structured correctly. Icon files require activation via one of the following two methods:
    • Manually-Created Mod:
      Code:
      <Components>
      	<Icons id="BASE_GAMEPLAY_ICONS">
      		<Items>
      			<File>XML/Buildng_Icons.xml</File>
      		</Items>
      	</Icons>
      </Components>
    • ModBuddy-Created Mod:
      Code:
      <InGameActions>
      	<UpdateIcons id="IconDefinitions">
      		<File>XML/Buildng_Icons.xml</File>
      	</UpdateIcons>
      </InGameActions>
      Modbuddy will automatically generate this code into the modinfo file so long as the file is setup to have an <UpdateIcons> action-type in the In-Game Actions tab of the Mod's Properties, with file XML/Buildng_Icons.xml listed under that action.
  5. Syntax error here
    Code:
    	<Modifiers>
    		<Row>
    			<ModifierId>TRAIT_INCOMING_TRADE_GAIN_GOLD_N</ModifierId>
    			<ModifierType>MODIFIER_PLAYER_CITIES_ADJUST_TRADE_ROUTE_YIELD_FROM_OTHERS</ModifierType>
    		</Row>
    		<Row>
    			<ModifierId>TRAIT_INCOMING_TRADE_GAIN_CULTURE</ModifierId>
    			<ModifierType>MODIFIER_PLAYER_CITIES_ADJUST_TRADE_ROUTE_YIELD_FROM_OTHERS</ModifierType>
    		</Row>
    		<Row>
    			<ModifierId>TRAIT_INCOMING_TRADE_OFFER_GOLD_N</ModifierId>
    			<ModifierType>MODIFIER_PLAYER_CITIES_ADJUST_TRADE_ROUTE_YIELD_TO_OTHERS</ModifierType>
    			<Row>
    				<ModifierId>TRAIT_INCOMING_TRADE_OFFER_PRODUCTION</ModifierId>
    				<ModifierType>MODIFIER_PLAYER_CITIES_ADJUST_TRADE_ROUTE_YIELD_TO_OTHERS</ModifierType>
    			</Row>
    		</Row>
    	</Modifiers>
    Your final row here has another Row embedded within it. This is not allowed, and will cause anything lower-down in the file than the error to be discarded.
 
I manually created a .modinfo file in modbuddy (I had no idea what I was doing) and if I remove it my mod will not work. This is because the Modbuddy Modinfo still talks about the template civ, I've tried replacing it but when I build my mod it reverts to an incorrect set of data.
I also haven't gotten into making or defining/adding/etc the icons yet; I want to know how to do it first.
 
Back
Top Bottom