[GS] Modding help - Custom Buildings

Shadow_Wing

Chieftain
Joined
Dec 29, 2019
Messages
4
Hi there.
So i have been busy for hours non stop to make a custom building just 1 out of the few i would like to make.
HOWEVER after several hours of trying i just CANNOT get the mod to work!
while everything should be fine....
Spoiler :

Code:
<?xml version="1.0" encoding="utf-8" ?>
<GameData>
  <!-- Almost all gameplay types should first be added to the types table. -->
  <!-- This serves as a central way to reference any type -->
  <Types>
    <Row Type="BUILDING_TEST" Kind="KIND_BUILDING" />
  </Types>

  <!-- Define the building here. For examples of additional properties and values, look at Buildings.xml in /Base/Assets/Gameplay/Data/-->
  <Buildings>
    <Row BuildingType="BUILDING_TEST" Name="LOC_BUILDING_TEST_NAME" PrereqDistrict="DISTRICT_CITY_CENTER" PurchaseYield="YIELD_GOLD" Cost="50" GoldMaintenance="2" AdvisorType="ADVISOR_GENERIC" TraitType="TRAIT_RADIO_ORANJE"/>
  </Buildings>
  <Building_YieldChanges>
    <Row BuildingType="BUILDING_TEST" YieldType="YIELD_GOLD" YieldChange="25"/>
  </Building_YieldChanges>
</GameData>

This is 1 of them i have been making.
Can i get some help with this why it does not work?
Would be Nice Thanks.
 
What is in Database.log ?
Where is "TRAIT_RADIO_ORANJE" defined ?

Database.log is found at location
~\Documents\My Games\Sid Meier's Civilization VI\Logs

Without the mod itself to look at there is no further advice that can really be given.

My Boiler-Plate Response in Such Situations: Add Your Mod to A Forum Post (Civ6):
  1. It's better to just take the mod from the game's MODS folder, zip it, and attach the result directly to a post. It is far easier to look at your actual code and the actual structure of the mod as it is being seen by the game than any attempt to determine what you are doing wrong by analyzing descriptions of the problem, or out-of-context snippets of the code.
  2. Very often what a new modder thinks the problem is and what the problem actually is are two different things. Having the actual mod as you are currently trying to use it allows us to look for the actual problem, and if all else fails to simply drop the mis-behaving mod into our MODS folder and run the mod to see what the game tells us.
  3. Zip the version of the mod the game is actually trying to use, which will be found as a sub-folder in ~\Documents\My Games\Sid Meier's Civilization VI\Mods. Zip the whole sub-folder for your mod.
    • Do not (unless specifically asked by someone trying to help diagnose your problem) zip the modbuddy project folder
      Spoiler why not :
      1. This is useless in most cases and requires us to dump it into our modbuddy folder and then start modbuddy and then attempt to analyse what you are doing wrong.
      2. If we cannot spot the issue we then have to create the built and usable version of the mod on our end, which is what we really needed in the 1st place.
      3. And in all this process we have to hope that we are not wasting our time in the event the modbuddy project does not contain the same code as the built version of the mod that is non-functional
      4. People completely corrupt via fix-attempts the built version of the mod in the game's MODS folder and then package and send the modbuddy solution all the time. This results in what we see being different from what the novice mod-maker is seeing in-game.
  4. To attach the zip to a forum post, look for a button called Upload A File when composing your thread reply: this button opens a browse menu where you can select the zipped folder to attach directly to a forum post.
  5. If the zipped folder is too large for the forum to accept then upload the zipped mod to a file-sharing site such as dropbox and provide a link where the mod can be downloaded.
    • Mediafire is not really a very good choice any more because they have become rife with spam and malware, as well as attempts to get you to download unwanted and uneeded kludge by confusing the layout of the download pages. You'll note for example that Mediafire links are no longer allowed on Steam, whereas CFC (this site) and dropbox links are still allowed.
 
This is in Database.log:
Spoiler :

Code:
[1395500.729] [Localization]: StartupErrorMessages.xml
[1395500.729] [Localization]: Input XML does not contain database entry tags. GameData, GameInfo or Database
[1395502.978] [Localization]: Validating Foreign Key Constraints...
[1395502.978] [Localization]: Passed Validation.
[1395502.988] [Configuration]: Validating Foreign Key Constraints...
[1395502.988] [Configuration]: Passed Validation.
[1395509.940] [FullTextSearch]: Initializing FullTextSearch
[1395510.435] [Gameplay]: Validating Foreign Key Constraints...
[1395510.445] [Gameplay]: Passed Validation.
[1395510.933] [Configuration]: Validating Foreign Key Constraints...
[1395510.933] [Configuration]: Passed Validation.
[1395515.037] [HallofFame]: Database found. Checking versions...
[1395515.038] [HallofFame]: Database is up-to-date!
[1395529.060] [FullTextSearch]: FTS - Creating Context
[1395546.641] [Configuration]: Validating Foreign Key Constraints...
[1395546.641] [Configuration]: Passed Validation.
[1395552.293] [Gameplay] ERROR: no such table: TM_UserSettings
[1395552.343] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1395552.343] [Gameplay]: While executing - 'UPDATE Route_ValidBuildUnits SET "UnitType" = ? WHERE "RouteType" = ?;'
[1395552.343] [Gameplay] ERROR: Database::XMLSerializer (BIM_Builders.xml): There was an error executing the update statement! See Database.log for details.
[1395552.343] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1395552.343] [Gameplay]: In XMLSerializer while updating table Route_ValidBuildUnits from file BIM_Builders.xml.
[1395552.344] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1395552.344] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1395552.379] [Gameplay]: Validating Foreign Key Constraints...
[1395552.398] [Gameplay]: Passed Validation.
[1395564.394] [FullTextSearch]: FTS - Creating Context
[1395564.395] [FullTextSearch]: FTS - Creating Context
[1395564.615] [FullTextSearch]: FTS - Creating Context
[1395565.466] [FullTextSearch]: FTS - Creating Context
[1395566.875] [FullTextSearch]: FTS - Creating Context
[1396111.406] [Configuration]: Validating Foreign Key Constraints...
[1396111.407] [Configuration]: Passed Validation.
[1396112.139] [FullTextSearch]: FTS - Creating Context
[1396117.485] [FullTextSearch]: FTS - Creating Context
[1398107.871] [Configuration]: Validating Foreign Key Constraints...
[1398107.871] [Configuration]: Passed Validation.
[1398165.372] [Configuration]: Validating Foreign Key Constraints...
[1398165.372] [Configuration]: Passed Validation.
[1398171.525] [Gameplay] ERROR: no such table: LocalizedText
[1398171.525] [Gameplay]: In Query - insert into LocalizedText('Tag', 'Language', 'Text') values (?, ?, ?);
[1398171.525] [Gameplay]: In XMLSerializer while updating table LocalizedText from file ImprovedPoldersExtended_Text.xml.
[1398171.560] [Gameplay] ERROR: no such table: TM_UserSettings
[1398171.583] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1398171.583] [Gameplay]: While executing - 'UPDATE Route_ValidBuildUnits SET "UnitType" = ? WHERE "RouteType" = ?;'
[1398171.583] [Gameplay] ERROR: Database::XMLSerializer (BIM_Builders.xml): There was an error executing the update statement! See Database.log for details.
[1398171.583] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1398171.583] [Gameplay]: In XMLSerializer while updating table Route_ValidBuildUnits from file BIM_Builders.xml.
[1398171.583] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1398171.583] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1398171.621] [Gameplay]: Validating Foreign Key Constraints...
[1398171.643] [Gameplay]: Passed Validation.
[1398297.338] [FullTextSearch]: FTS - Creating Context
[1398297.338] [FullTextSearch]: FTS - Creating Context
[1398297.545] [FullTextSearch]: FTS - Creating Context
[1398298.445] [FullTextSearch]: FTS - Creating Context
[1398299.804] [FullTextSearch]: FTS - Creating Context
[1398437.342] [Configuration]: Validating Foreign Key Constraints...
[1398437.343] [Configuration]: Passed Validation.
[1398443.078] [Gameplay] ERROR: no such table: LocalizedText
[1398443.078] [Gameplay]: In Query - insert into LocalizedText('Tag', 'Language', 'Text') values (?, ?, ?);
[1398443.078] [Gameplay]: In XMLSerializer while updating table LocalizedText from file ImprovedPoldersExtended_Text.xml.
[1398443.109] [Gameplay] ERROR: no such table: TM_UserSettings
[1398443.131] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1398443.131] [Gameplay]: While executing - 'UPDATE Route_ValidBuildUnits SET "UnitType" = ? WHERE "RouteType" = ?;'
[1398443.131] [Gameplay] ERROR: Database::XMLSerializer (BIM_Builders.xml): There was an error executing the update statement! See Database.log for details.
[1398443.131] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1398443.131] [Gameplay]: In XMLSerializer while updating table Route_ValidBuildUnits from file BIM_Builders.xml.
[1398443.131] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1398443.131] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1398443.167] [Gameplay]: Validating Foreign Key Constraints...
[1398443.186] [Gameplay]: Passed Validation.
[1398561.906] [FullTextSearch]: FTS - Creating Context
[1398561.907] [FullTextSearch]: FTS - Creating Context
[1398562.116] [FullTextSearch]: FTS - Creating Context
[1398563.029] [FullTextSearch]: FTS - Creating Context
[1398564.466] [FullTextSearch]: FTS - Creating Context
[1399871.796] [Configuration]: Validating Foreign Key Constraints...
[1399871.796] [Configuration]: Passed Validation.
[1399877.465] [Gameplay] ERROR: no such table: LocalizedText
[1399877.465] [Gameplay]: In Query - insert into LocalizedText('Tag', 'Language', 'Text') values (?, ?, ?);
[1399877.465] [Gameplay]: In XMLSerializer while updating table LocalizedText from file ImprovedPoldersExtended_Text.xml.
[1399877.495] [Gameplay] ERROR: no such table: TM_UserSettings
[1399877.514] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1399877.514] [Gameplay]: While executing - 'UPDATE Route_ValidBuildUnits SET "UnitType" = ? WHERE "RouteType" = ?;'
[1399877.514] [Gameplay] ERROR: Database::XMLSerializer (BIM_Builders.xml): There was an error executing the update statement! See Database.log for details.
[1399877.514] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1399877.514] [Gameplay]: In XMLSerializer while updating table Route_ValidBuildUnits from file BIM_Builders.xml.
[1399877.515] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1399877.515] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1399877.551] [Gameplay]: Validating Foreign Key Constraints...
[1399877.570] [Gameplay]: Passed Validation.
[1400008.555] [FullTextSearch]: FTS - Creating Context
[1400008.555] [FullTextSearch]: FTS - Creating Context
[1400008.757] [FullTextSearch]: FTS - Creating Context
[1400009.675] [FullTextSearch]: FTS - Creating Context
[1400011.230] [FullTextSearch]: FTS - Creating Context
[1400238.096] [Configuration]: Validating Foreign Key Constraints...
[1400238.097] [Configuration]: Passed Validation.
[1400244.145] [Gameplay] ERROR: no such table: LocalizedText
[1400244.145] [Gameplay]: In Query - insert into LocalizedText('Tag', 'Language', 'Text') values (?, ?, ?);
[1400244.145] [Gameplay]: In XMLSerializer while updating table LocalizedText from file ImprovedPoldersExtended_Text.xml.
[1400244.176] [Gameplay] ERROR: no such table: TM_UserSettings
[1400244.195] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1400244.195] [Gameplay]: While executing - 'UPDATE Route_ValidBuildUnits SET "UnitType" = ? WHERE "RouteType" = ?;'
[1400244.195] [Gameplay] ERROR: Database::XMLSerializer (BIM_Builders.xml): There was an error executing the update statement! See Database.log for details.
[1400244.195] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1400244.195] [Gameplay]: In XMLSerializer while updating table Route_ValidBuildUnits from file BIM_Builders.xml.
[1400244.196] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1400244.196] [Gameplay] ERROR: UNIQUE constraint failed: Route_ValidBuildUnits.RouteType, Route_ValidBuildUnits.UnitType
[1400244.233] [Gameplay]: Validating Foreign Key Constraints...
[1400244.252] [Gameplay]: Passed Validation.
[1400363.508] [FullTextSearch]: FTS - Creating Context
[1400363.509] [FullTextSearch]: FTS - Creating Context
[1400363.740] [FullTextSearch]: FTS - Creating Context
[1400364.668] [FullTextSearch]: FTS - Creating Context
[1400366.316] [FullTextSearch]: FTS - Creating Context
here is it all as asked.
 

Attachments

  • Test.rar
    1.6 KB · Views: 31
You have an identical issue as the OP on this thread https://forums.civfanatics.com/threads/mods-dont-have-any-effects-in-game.653178/

Your mod is not actually doing anything. The error messages in your database.log file have nothing whatever to do with your mod or your issue. You are running other mods which are generating these errors.

Shut off all mods which are not 100% necessary in order for your mod to run properly. This is basic debugging procedure -- why chase an error that has nothing at all to do with your mod ?
 
i did re-name the files to like Test.Art.xml & Test_Gameplay.xml
As well did i add them to in-game actions but the mod still does not work in-game
 
Top Bottom