my custom civ keeps crashing to main menu

godofrage1

Chieftain
Joined
Sep 21, 2017
Messages
13
this is my first civ ive been working on I'm trying to make the traits give a bonus to all yields and also border expansion but I just cant seem to actually get it to work. I had the regular traits from the template I used previous and it would load but I cant seem to get it to work with these traits can someone help or tell me where I messed up?

alternatively if nobody can get it to work can someone input montezumas leader trait and the mother Russia civ trait from peter. and see if that works? nothing seems to work for me.
 

Attachments

  1. What you attached was not a mod, but rather a project from which ModBuddy generates a mod
  2. You should always 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.
  3. I had to do a lot of futzing around in Modbuddy with what you attached before I could build a mod that would then be usable in-game to tell me what you are doing wrong.
  4. In your FrontEnd actions you are attempting to load the icon file via an "UpdateText" type of action. You need "UpdateIcons" as the type of action for file Joshs_Template_Icons.xml
  5. You have a fatal syntax error being reported in Database.log
    Code:
    [4229560.267] [Gameplay] ERROR: near "5": syntax error
    The time-stamp "4229560.267" tracks to this in the Modding.log file
    Code:
    [4229560.263] Status: UpdateDatabase - Loading Core/Joshs_Template_GameDefines.sql
    [4229560.267] Warning: UpdateDatabase - Error Loading SQL.
    Which means that file Joshs_Template_GameDefines.sql is only partially being loaded.
  6. These are all missing a comma seperator between 'Amount' and 5
    Code:
    INSERT INTO ModifierArguments
    (ModifierId, Name, Value)
    VALUES ('JRA_LEADER_CUSTOM_CITY_GOLD', 'YieldType', 'YIELD_GOLD'),
    ('JRA_LEADER_CUSTOM_CITY_GOLD', 'Amount' 5),
    ('JRA_LEADER_CUSTOM_CITY_SCIENCE', 'YieldType', 'YIELD_SCIENCE'),
    ('JRA_LEADER_CUSTOM_CITY_SCIENCE', 'Amount' 5),
    ('JRA_LEADER_CUSTOM_CITY_PRODUCTION', 'YieldType', 'YIELD_PRODUCTION'),
    ('JRA_LEADER_CUSTOM_CITY_PRODUCTION', 'Amount' 5),
    ('JRA_LEADER_CUSTOM_CITY_CULTURE', 'YieldType', 'YIELD_CULTURE'),
    ('JRA_LEADER_CUSTOM_CITY_CULTURE', 'Amount' 5),
    ('JRA_LEADER_CUSTOM_CITY_FOOD', 'YieldType', 'YIELD_FOOD'),
    ('JRA_LEADER_CUSTOM_CITY_FOOD', 'Amount' 5),
    ('JRA_LEADER_CUSTOM_CITY_FAITH', 'YieldType', 'YIELD_FAITH'),
    ('JRA_LEADER_CUSTOM_CITY_FAITH', 'Amount' 5);
    • Once you fix these errors this may reveal more errors further down in the file.
    • The game only reads into a file so long as it does not encounter a fatal syntax error.
    • Whenever it encounters a fatal error in a file, it keeps everything it has read previously in the file and ignores everything at and following the error within that file.
    • Modbuddy does not really tell you whether you have problems with the code in your file, and does an especially bad job at this for SQL files.
  7. You are still loading file Joshs_Template_Buildings.xml into the game's database, but you are not defining "TRAIT_CIVILIZATION_BUILDING_JRA_CUSTOM" anywhere, so this leads to an invalid reference error in the Database.log, which shoves you back to the main menu
    Code:
    [4229560.270] [Gameplay] ERROR: Invalid Reference on Buildings.TraitType - "TRAIT_CIVILIZATION_BUILDING_JRA_CUSTOM" does not exist in Traits
  8. You have other issues with art and icons but you need to fix the Database issues first
 
i just removed the building xml altogether because I wasn't using it and I added the commas as you said. and I was able to load up the mod with the traits working correctly. thanks you. I do not however know what the issue is with the art not loading up
 
you'll have to look through the titorials on art in the tutorials and references sub-forum for clues what you may be doing wrong with the art since I am notoriously art-unenabled.


But make sure your references to Buildings and the like conform to Firaxis expectations for assigning an Icon. For example in table <IconDefinitions> if a Building is called "BUILDING_EARLYBUMP1" in the xml, the game is expecting its associated icon reference to be "ICON_BUILDING_EARLYBUMP1"
 
Back
Top Bottom