[GS] DLC Modifiers in base game

Riker13

King
Joined
Nov 9, 2001
Messages
853
Location
UK
Hi all,
I am trying to use some modifiers from [GS] a unit promotion and reduction of damage, now I cannot see why they should not work but they don't and I was wondering if I need to add anything to tell it that the code is from the Gathering Storm DLC.

Any advice would be great.

Regards
Riker13:crazyeye:
 
If you have no LoadOrder value set in your mod's UpdateDatabase action-type, you are probably running into load order issues. Other than that, the first place to look is Database.log for error message regarding an invalid reference but also for a syntax error message in case you simply have a typo of some kind.

If you have an SQLite database viewer program you can also open the database after it is constructed from starting or loading a game to see if your code is being implemented, rejected, or what. If the table(s) you are writing to aren't showing your rows then you aren't getting your code properly entered into the game.

If you haven't already done so you can turn on the GameEffects.log by opening the UserOptions.txt file at
Code:
C:\Users\[YourUserName]\Documents\My Games\Sid Meier's Civilization VI
and then scroll down to this setting and change the default value of '0' to '4':
Code:
;Game Effects logging level, 0 = off, 1 = Minimal, 2 = Normal, Detailed = 3, Diagnostic = 4
GameEffectsLogLevel 4
This will turn on the GameEffects.log in the logs folder, and you will get reports on which modifiers, requirementsets, etc., are valid, and which modifiers are being applied when and to what, like here for founding the city of London:
Code:
[2985214.470] [Turn: 1] Applying effect from <338:TRAIT_ACCUMULATE_MORE_COAL> to <City (65536), Owner: 0, Name: LOC_CITY_NAME_LONDON>
[2985214.471] [Turn: 1] Applying effect from <339:TRAIT_ACCUMULATE_MORE_IRON> to <City (65536), Owner: 0, Name: LOC_CITY_NAME_LONDON>
[2985214.471] [Turn: 1] Applying effect from <344:TRAIT_POWERED_BUILDINGS_MORE_CULTURE> to <City (65536), Owner: 0, Name: LOC_CITY_NAME_LONDON>
[2985214.471] [Turn: 1] Applying effect from <345:TRAIT_POWERED_BUILDINGS_MORE_GOLD> to <City (65536), Owner: 0, Name: LOC_CITY_NAME_LONDON>
[2985214.471] [Turn: 1] Applying effect from <346:TRAIT_POWERED_BUILDINGS_MORE_PRODUCTION> to <City (65536), Owner: 0, Name: LOC_CITY_NAME_LONDON>
[2985214.471] [Turn: 1] Applying effect from <347:TRAIT_POWERED_BUILDINGS_MORE_SCIENCE> to <City (65536), Owner: 0, Name: LOC_CITY_NAME_LONDON>
[2985214.474] [Turn: 1] Building Constructed - Attaching modifiers to <District: 65536, Owner: 0, SubType: 1, SubValue: 373747371, City: 65536>
[2985214.474] [Turn: 1] Attaching Modifier <915:PALACE_ADJUST_GARRISON_STRENGTH> to <District: 65536, Owner: 0, SubType: 1, SubValue: 373747371, City: 65536>
[2985214.474] [Turn: 1] Arguments:
[2985214.474] [Turn: 1] Amount: 3
[2985214.474] [Turn: 1] Applying effect from <915:PALACE_ADJUST_GARRISON_STRENGTH> to <District: 65536, Owner: 0, SubType: 1, SubValue: 373747371, City: 65536>
[2985214.475] [Turn: 1] Unit Destroyed - Detaching modifiers from <Unit: 65536, Owner: 0, SubType: 0, SubValue: 0, Type: 0 Position: 61x9>
[2985214.475] [Turn: 1] Detaching Modifier <830:MANA_EMBARKED_EXTRA_MOVEMENT> from <Unit: 65536, Owner: 0, SubType: 1, SubValue: -62070907, Type: 0 Position: 61x9>
[2985214.475] [Turn: 1] Removing effect of <342:TRAIT_DELTA_DIPLO_VISIBILITY_COMBAT_MODIFIER> from <Unit: 65536, Owner: 0, SubType: 0, SubValue: 0, Type: 0 Position: 61x9>.
You'll have to restart the game for the log to take effect. Also this log records a lot of information, so you may have to look through it carefully to find the modifier you are looking for.

The removing modifier and detaching modifier from unit # 65536 were for the elimination of my starting settler as a result of founding the city of London.
 
Last edited:
Hi LeeS, I have done what you have suggested.
First I did find this in my Database.log:
[3018709.200] [Localization] ERROR: near "(": syntax error
[3018714.122] [Gameplay]: Atlantian_UnitAbilities_Text.xml
[3018714.122] [Gameplay]: Input XML does not contain database entry tags. GameData, GameInfo or Database
The Syntax error as you mentioned.
Now in GameEffects it says [3018715.534] [Turn: 1] Modifier <RONIN_FREE_PROMOTION> is valid.
So does that mean it is receiving the code from the GS dlc?
FYI I added
<Properties>
<LoadOrder>1</LoadOrder>
</Properties>
to the GameActions, not sure if that is high enough?

Thanks.
 
Since RONIN_FREE_PROMOTION ins't part of the base game I can't be sure. But if you are getting a message for it being valid that should be ok.

As long as your load order setting is greater than '0' you should be ok as well on that, though I usually use 1000 because a couple of the Vanilla DLC / Scenarios as I recall had values of '100' or '200' at one time as I recall.


But you've got at least one fatal syntax error being reported
Code:
[3018709.200] [Localization] ERROR: near "(": syntax error
and since the message "leader" is [Localization] it means the error is in a file attempting to add or alter in-game text.

This is also of concern
Code:
[3018714.122] [Gameplay]: Atlantian_UnitAbilities_Text.xml
 [3018714.122] [Gameplay]: Input XML does not contain database entry tags. GameData, GameInfo or Database
because it is reporting a mod-file with an xml extension that does not contain proper <GameData> or <GameInfo> wraps. But the filename specified looks to be a text file, which ought not to be loaded via an UpdateDataBase type of action.
 
Also I think I may have misunderstood your original question. Are you attempting to use witihn Vanilla a ModifierType and/or EffectType and/or RequirementType that was introduced by Gathering Storm? If so, then the answer is almost certainly "nope". I had interpretted your question as you were having trouble when running under Gathering Storm with getting some of its stuff to "talk-to" as it were, your mod.
 
Hi LeeS,
Sorry I think I phrased what I was after incorrectly but your second point is correct, I have GS and have added the modifier which gives a free promotion to my unit Ronin but it does not work. I was going along the !ines that my mod was not taking in the new GS data, then you mentioned loadorder.
I added a 5000 loadorder but that did not work.
I fixed the text issue but the syntex issue seems to be coming from UI/Text/Localisation not sure where that is as it's not from my mod?
 
I will give it another going over today and if I cant fix it I will hand over the code to you so you can do your magic. :)
 
Well I have fixed the issue, it seems I must have made some errors in the modifiers, it never came up in the Database.log but after fiddling with it a bit more I got it to work but I expect your suggestion of LoadOrder helped as well. The localization issue was from a Steam Workshop mod.
The only error I have now is with my Colors, they work fine but I keep getting this:

[3116668.004] [Configuration]: In Query - insert into Colors('Type', 'Color') values (?, ?);
[3116668.004] [Configuration]: In XMLSerializer while updating table Colors from file Atlantian_Colors.xml.
[3116669.886] [Configuration]: Validating Foreign Key Constraints...
[3116669.886] [Configuration]: Passed Validation.

Thanks for your help again LeeS.
 
I think that set of errors has to do with the new jersey system and whatever the game does with player colors and the colors table in order to implement the jersey system. Other than that I currently have complete ignorance (and therefore bliss) regarding the jersey system and the player color issues this has created for madders to deal with.
 
I see well I won't worry about that for the moment unless it causes me grief.
Thanks again LeeS.
 
Top Bottom