I'd kill for a mod disabling alternative jerseys

Weraptor

King
Joined
Dec 17, 2017
Messages
711
Setting the same color combinations for all jerseys doesn't seem to work
 
it's better in my quick test, but still missing some, and use a lot of "default" (ie not civ-defined) alternate jersey.

you've set different colors schemes too ?
 
it's better in my quick test, but still missing some, and use a lot of "default" (ie not civ-defined) alternate jersey.

you've set different colors schemes too ?
I've set defined color palettes for each Civ. For example with Suleiman:
Code:
INSERT INTO Colors
            (Type,                                Color)
VALUES      ('COLOR_SULEIMAN_PRIMARY',            '245, 233, 214, 255'),
            ('COLOR_SULEIMAN_SECONDARY',          '135, 14, 14, 255');

UPDATE      PlayerColors
SET         PrimaryColor         =    'COLOR_SULEIMAN_PRIMARY',
            SecondaryColor       =    'COLOR_SULEIMAN_SECONDARY',
            Alt1PrimaryColor     =    'COLOR_SULEIMAN_PRIMARY',
            Alt1SecondaryColor   =    'COLOR_SULEIMAN_SECONDARY',
            Alt2PrimaryColor     =    'COLOR_SULEIMAN_PRIMARY',
            Alt2SecondaryColor   =    'COLOR_SULEIMAN_SECONDARY',
            Alt3PrimaryColor     =    'COLOR_SULEIMAN_PRIMARY',
            Alt3SecondaryColor   =    'COLOR_SULEIMAN_SECONDARY'
WHERE       Type                 =    'LEADER_SULEIMAN';
There's maybe a more efficient way to code this, but I think it works well enough. For me this was a better solution than sticking with FXS alternate jersey colors and adding my own additional defined colors.
 
Last edited:
my quick test was
UPDATE PlayerColors SET Alt1PrimaryColor = PrimaryColor, Alt2PrimaryColor = PrimaryColor, Alt3PrimaryColor = PrimaryColor, Alt1SecondaryColor = SecondaryColor, Alt2SecondaryColor = SecondaryColor, Alt3SecondaryColor = SecondaryColor;

so still the new colors.

you've restored the old colors schemes ?
 
my quick test was
UPDATE PlayerColors SET Alt1PrimaryColor = PrimaryColor, Alt2PrimaryColor = PrimaryColor, Alt3PrimaryColor = PrimaryColor, Alt1SecondaryColor = SecondaryColor, Alt2SecondaryColor = SecondaryColor, Alt3SecondaryColor = SecondaryColor;
so still the new colors.

you've restored the old colors schemes ?
No, because I have my own color palettes that I prefer and are easier for me to see. I would think if you wanted to restore the original Civ colors you could try replacing the entries in the Primary & Secondary Color columns with the original Types. For example Germany:
Code:
UPDATE      PlayerColors
SET         PrimaryColor         =    'COLOR_PLAYER_GERMANY_PRIMARY',
            SecondaryColor       =    'COLOR_PLAYER_GERMANY_SECONDARY',
            Alt1PrimaryColor     =    'COLOR_PLAYER_GERMANY_PRIMARY',
            Alt1SecondaryColor   =    'COLOR_PLAYER_GERMANY_SECONDARY',
            Alt2PrimaryColor     =    'COLOR_PLAYER_GERMANY_PRIMARY',
            Alt2SecondaryColor   =    'COLOR_PLAYER_GERMANY_SECONDARY',
            Alt3PrimaryColor     =    'COLOR_PLAYER_GERMANY_PRIMARY',
            Alt3SecondaryColor   =    'COLOR_PLAYER_GERMANY_SECONDARY'
WHERE       Type                 =    'LEADER_SULEIMAN';
All those Types/Colors are still defined in the game files.
 
I've set defined color palettes for each Civ. For example with Suleiman:
Code:
INSERT INTO Colors
            (Type,                                Color)
VALUES      ('COLOR_SULEIMAN_PRIMARY',            '245, 233, 214, 255'),
            ('COLOR_SULEIMAN_SECONDARY',          '135, 14, 14, 255');

UPDATE      PlayerColors
SET         PrimaryColor         =    'COLOR_SULEIMAN_PRIMARY',
            SecondaryColor       =    'COLOR_SULEIMAN_SECONDARY',
            Alt1PrimaryColor     =    'COLOR_SULEIMAN_PRIMARY',
            Alt1SecondaryColor   =    'COLOR_SULEIMAN_SECONDARY',
            Alt2PrimaryColor     =    'COLOR_SULEIMAN_PRIMARY',
            Alt2SecondaryColor   =    'COLOR_SULEIMAN_SECONDARY',
            Alt3PrimaryColor     =    'COLOR_SULEIMAN_PRIMARY',
            Alt3SecondaryColor   =    'COLOR_SULEIMAN_SECONDARY'
WHERE       Type                 =    'LEADER_SULEIMAN';
There's maybe a more efficient way to code this, but I think it works well enough. For me this was a better solution than sticking with FXS alternate jersey colors and adding my own additional defined colors.

you have helped me before but quick questions I play on iPad and have limited ability to mod but can I add this code into any mod or does it need to be in a particular .sql or .? Type file? And second is with this code does that mean if I replace the name of leader and the color code I could pick colors of my own for every leader correct?
 
Top Bottom