[SOLVED] Civ Colors not appearing in Pre-Game Menu

MoaiGangsta

Chieftain
Joined
Feb 27, 2021
Messages
17
Hi all, I've been having trouble getting my custom civ's colors to appear in the Create Game menu.

When I first start up Civ VI and go to create a game, the civ's colors appear blank/white.
9yt7Uq2.png


If I hover over any other civ in the list, then hover back over my custom civ, their color changes to the last working civ I hovered over (in this case, Lautaro)
9DOJtxE.png


Lastly, if I start a game with a custom civ, their jersey color works fine while in-game; and if I exit out back to the main menu and go back into Create Game, their colors shows correctly.
Nu1dLoR.png


Would anyone have any idea why this is? Does it have something to do with how my Front-End/In-Game actions are set up in Mod Buddy? Any insight would be greatly appreciated please, as this has stumped me for quite a while!
 
I am having the exact same issue with a mod I'm trying to create. First I thought it was because my civ colors were conflicting with the colors already in the game (especially Brazil colors, since my mod is an alternate version of Brazil led by Dilma Rousseff), but after testing a lot of different and random RGBA combinations of colors I just don't know what it is. I even created a new XML file indicating colors (because originally in the template I'm using the colors are specified in GameDefines.xml) and ordered the mod to load it in the FrontEnd actions, didn't work either. Do you still have the logs of your mod (inside the folder Documents/My Games/Sid Meier's Civilization VI/Logs)? Maybe if we compare them with mine there's a chance to figure out what is this.
 
Sure, here's the logs when the game is booted with the mod enabled, prior to actually starting a game. Hopefully they might give you some sort of clue; it would be great to finally have this figured out!
 

Attachments

Code:
[1842047.039] [ColorManager] ERROR: no such table: Types
So a file from some mod that is attempting to give data to the color manager system via an UpdateColors action is attempting to use table "Types". The error is being reported from both the front end and the in game side so far as I can tell from your database log. The following message is also being spitted into database log at the same time
Code:
[1842047.039] [ColorManager]: ../../../DLC/TeddyRoosevelt/Data/TeddyRoosevelt_Colors.xml
That file in the DLC folders does not contain any attempt to write to table "Types" so (a) what are you naming your "colors" file in your mod, (b) how are you activating it, and (c) what is the actual content of the file?
 
A) For my situation, my colors file in my mod is under GameDefines.sql
B) I have it activating UpdateColors on FrontEnd and In-game, referencing the GameDefines.sql; if that's what you mean by activating it.
C) Below is the code that I have in GameDefines.sql which gives the civs their colors
Code:
INSERT INTO PlayerColors  
        (Type,                Usage,            PrimaryColor,                                         SecondaryColor,                                            TextColor)
VALUES    ('LEADER_MG_YUDHI',    'Unique',        'COLOR_PLAYER_MG_GILDEDROSE_YUDHI_PRIMARY',        'COLOR_PLAYER_MG_GILDEDROSE_YUDHI_SECONDARY',         'COLOR_PLAYER_WHITE_TEXT'),
        ('LEADER_MG_SUNNY',    'Unique',        'COLOR_PLAYER_MG_GILDEDROSE_SUNNY_PRIMARY',        'COLOR_PLAYER_MG_GILDEDROSE_SUNNY_SECONDARY',         'COLOR_PLAYER_WHITE_TEXT'),
        ('LEADER_MG_LIOR',    'Unique',        'COLOR_PLAYER_MG_GILDEDROSE_LIOR_PRIMARY',        'COLOR_PLAYER_MG_GILDEDROSE_LIOR_SECONDARY',         'COLOR_PLAYER_WHITE_TEXT'),
        ('LEADER_MG_NORAEL','Unique',        'COLOR_PLAYER_MG_GILDEDROSE_NORAEL_PRIMARY',    'COLOR_PLAYER_MG_GILDEDROSE_NORAEL_SECONDARY',         'COLOR_PLAYER_WHITE_TEXT');  

INSERT INTO Colors
        (Type,                                                             Red,        Green,        Blue,        Alpha)
VALUES    ('COLOR_PLAYER_MG_GILDEDROSE_YUDHI_PRIMARY',                    0.364,        0.635,        1,            1),
        ('COLOR_PLAYER_MG_GILDEDROSE_YUDHI_SECONDARY',                     0.145,        0.149,        0.807,        1),
        ('COLOR_PLAYER_MG_GILDEDROSE_SUNNY_PRIMARY',                    1,            0.552,        0.313,        1),
        ('COLOR_PLAYER_MG_GILDEDROSE_SUNNY_SECONDARY',                    1,            0.964,        0.8,        1),
        ('COLOR_PLAYER_MG_GILDEDROSE_LIOR_PRIMARY',                        0.439,        0.411,        0.372,        1),
        ('COLOR_PLAYER_MG_GILDEDROSE_LIOR_SECONDARY',                     0.968,        0.850,        0.458,        1),
        ('COLOR_PLAYER_MG_GILDEDROSE_NORAEL_PRIMARY',                    0,            0.094,        0.247,        1),
        ('COLOR_PLAYER_MG_GILDEDROSE_NORAEL_SECONDARY',                 0,            0.956,        1,            1);

Thanks for the reply; let me know if there is anything else you might need to see that would help!
 
There are actually two tables called PlayerColors
  • One is part of the InGame Database and is defined in an XML file as
    Code:
    	<Table name="PlayerColors">
    		<Column name="Type" type="text" notnull="true" primarykey="true" />
    		<Column name="Usage" type="text" notnull="true" />
    		<Column name="PrimaryColor" type="text" notnull="true" />
    		<Column name="SecondaryColor" type="text" notnull="true" />
    		<Column name="TextColor" type="text" />
    	</Table>
    See C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VI\Base\Assets\Gameplay\Data\Schema/Color_Tables.xml

    However if you look at the database, this table is left empty by Firaxis since it has been superceded by the color manager jersey system
  • The tables used in the Color Manager system are defined as
    Code:
    PRAGMA user_version = 1;
     
    CREATE TABLE 'Colors'(
    	'Type' TEXT NOT NULL,
    	'Color' TEXT NOT NULL,
    	PRIMARY KEY('Type')
    );
    
    CREATE TABLE 'PlayerColors'(
    	'Type' TEXT NOT NULL, 
    	'Usage' TEXT NOT NULL, 
    	'PrimaryColor' TEXT NOT NULL, 
    	'SecondaryColor' TEXT NOT NULL, 
    	'Alt1PrimaryColor' TEXT,
    	'Alt1SecondaryColor' TEXT,
    	'Alt2PrimaryColor' TEXT,
    	'Alt2SecondaryColor' TEXT,
    	'Alt3PrimaryColor' TEXT,
    	'Alt3SecondaryColor' TEXT,
    	PRIMARY KEY ('Type')
    );
    These definitions are found in file C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VI\Base\Assets\Database\ColorManager.sql

    These tables are written to using the UpdateColors action and any file listed within such an action cannot contain any other table data.
 
Hi Lee, great tips!

I cut my code out of my GameDefine.sql and created a new seperate sql just for the PlayerColors code. I also decided to forego adding custom colors and just used Civ's base jersey colors, utilizing the code below:
Code:
INSERT INTO PlayerColors
        (Type,                Usage,            PrimaryColor,                SecondaryColor,                Alt1PrimaryColor,            Alt1SecondaryColor,            Alt2PrimaryColor,            Alt2SecondaryColor,            Alt3PrimaryColor,            Alt3SecondaryColor)
VALUES    ('LEADER_MG_YUDHI',        'Unique',        'COLOR_STANDARD_BLUE_MD',    'COLOR_STANDARD_AQUA_LT',    'COLOR_STANDARD_BLUE_MD',    'COLOR_STANDARD_BLUE_LT',    'COLOR_STANDARD_AQUA_LT',    'COLOR_STANDARD_BLUE_MD',    'COLOR_STANDARD_BLUE_LT',    'COLOR_STANDARD_BLUE_MD'),
        ('LEADER_MG_SUNNY',        'Unique',        'COLOR_STANDARD_ORANGE_MD',    'COLOR_STANDARD_YELLOW_LT',    'COLOR_STANDARD_ORANGE_MD',    'COLOR_STANDARD_WHITE_LT',    'COLOR_STANDARD_YELLOW_LT',    'COLOR_STANDARD_ORANGE_MD',    'COLOR_STANDARD_WHITE_LT',    'COLOR_STANDARD_ORANGE_MD'),
        ('LEADER_MG_LIOR',        'Unique',        'COLOR_STANDARD_WHITE_MD',    'COLOR_STANDARD_YELLOW_LT',    'COLOR_STANDARD_WHITE_MD',    'COLOR_STANDARD_WHITE_LT',    'COLOR_STANDARD_YELLOW_LT',    'COLOR_STANDARD_WHITE_MD',    'COLOR_STANDARD_WHITE_LT',    'COLOR_STANDARD_WHITE_MD'),
        ('LEADER_MG_NORAEL',    'Unique',        'COLOR_STANDARD_BLUE_DK',    'COLOR_STANDARD_AQUA_LT',    'COLOR_STANDARD_BLUE_DK',    'COLOR_STANDARD_YELLOW_LT',    'COLOR_STANDARD_AQUA_LT',    'COLOR_STANDARD_BLUE_DK',    'COLOR_STANDARD_YELLOW_LT',    'COLOR_STANDARD_BLUE_DK');
The colors now show up on the civ selection screen correctly, working as intended. Thanks for the help!
 
Back
Top Bottom