LeeS, I can do this but when updating everything to database in modbuddy...do I have to update every single row, with [UPDATE][/UPDATE] tags? I also have to have an ALPHA_ATLAS as well, correct? All of the civs I want to use, have Alpha dds files.
<GameData>
<Civilizations>
<Update>
<Where Type="CIVILIZATION_ROME" />
<Set>
<PortraitIndex>0</PortraitIndex>
<IconAtlas>MY_FAKE_ATLAS_NAME</IconAtlas>
<AlphaIconAtlas>MY_FAKE_ALPHA_ATLAS_NAME</AlphaIconAtlas>
<DawnOfManImage>DOM_Mousollini.dds</DawnOfManImage>
</Set>
</Update>
<Update>
<Where Type="CIVILIZATION_GERMANY" />
<Set>
<PortraitIndex>1</PortraitIndex>
<IconAtlas>MY_FAKE_ATLAS_NAME</IconAtlas>
<AlphaIconAtlas>MY_FAKE_ALPHA_ATLAS_NAME</AlphaIconAtlas>
<DawnOfManImage>DOM_Hitler.dds</DawnOfManImage>
</Set>
</Update>
</Civilizations>
</GameData>
<GameData>
<Civilizations>
<Update>
<Where Type="CIVILIZATION_ROME" />
<Set PortraitIndex="0" IconAtlas="MY_FAKE_ATLAS_NAME" AlphaIconAtlas="MY_FAKE_ALPHA_ATLAS_NAME" DawnOfManImage="DOM_Mousollini.dds" />
</Update>
<Update>
<Where Type="CIVILIZATION_GERMANY" />
<Set PortraitIndex="1" IconAtlas="MY_FAKE_ATLAS_NAME" AlphaIconAtlas="MY_FAKE_ALPHA_ATLAS_NAME" DawnOfManImage="DOM_Hitler.dds" />
</Update>
</Civilizations>
</GameData>
Civs use the Alpha Atlas (as I understand it) as a sort of "shadow outline" for the civ's "symbol", so the game knows where to make the foreground and background colors of the civ show through in the icon.
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 2/26/2015 5:12:22 PM -->
<GameData>
<IconTextureAtlases>
<Update>
<Where Atlas="GERMANY_ATLAS" />
<Set>
<IconSize>256</IconSize>
<Filename>JFD_NaziGermanyAtlas_256.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ATLAS" />
<Set>
<IconSize>128</IconSize>
<Filename>JFD_NaziGermanyAtlas_128.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ATLAS" />
<Set>
<IconSize>80</IconSize>
<Filename>JFD_NaziGermanyAtlas_80.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ATLAS" />
<Set>
<IconSize>64</IconSize>
<Filename>JFD_NaziGermanyAtlas_64.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ATLAS" />
<Set>
<IconSize>45</IconSize>
<Filename>JFD_NaziGermanyAtlas_45.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ATLAS" />
<Set>
<IconSize>32</IconSize>
<Filename>JFD_NaziGermanyAtlas_32.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ALPHA_ATLAS" />
<Set>
<IconSize>128</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_128.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ALPHA_ATLAS" />
<Set>
<IconSize>64</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_64.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ALPHA_ATLAS" />
<Set>
<IconSize>48</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_48.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ALPHA_ATLAS" />
<Set>
<IconSize>32</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_32.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ALPHA_ATLAS" />
<Set>
<IconSize>24</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_24.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMANY_ALPHA_ATLAS" />
<Set>
<IconSize>16</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_16.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Set>
</Update>
<Update>
<Where Atlas="GERMAN_WEHRMACHT_FLAG" />
<Set>
<IconSize>32</IconSize>
<Filename>Unit_Wehrmacht_Flag_32.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Set>
</Update>
</IconTextureAtlases>
<Leaders>
<Update>
<Where Type="LEADER_BISMARCK" />
<Set>
<PortraitIndex>4</PortraitIndex>
<IconAtlas>GERMANY_ATLAS</IconAtlas>
</Set>
</Update>
</Leaders>
</GameData>
<Update>
<Where Type="CIVILIZATION_GERMANY" />
<Set>
<Atlas>GERMANY_ATLAS</Atlas>
<IconSize>256</IconSize>
<Filename>JFD_NaziGermanyAtlas_256.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Set>
</Update>
You've still got some basic misunderstandings going on there. I'll have to respond in more detail when I get back to my computer this evening/late afternoon. Got a bunch of "stuff" I have to do real life for the rest of the morning and afternoon/early evening. Unless someone else does so before then, of course.Alright here goes. Let's begin. Thanks for all the help LeeS.
Does this look correct...
Code:<?xml version="1.0" encoding="utf-8"?> <!-- Created by ModBuddy on 2/26/2015 5:12:22 PM --> <GameData> <IconTextureAtlases> <Update> <Where Atlas="GERMANY_ATLAS" /> <Set> <IconSize>256</IconSize> <Filename>JFD_NaziGermanyAtlas_256.dds</Filename> <IconsPerRow>2</IconsPerRow> <IconsPerColumn>2</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ATLAS" /> <Set> <IconSize>128</IconSize> <Filename>JFD_NaziGermanyAtlas_128.dds</Filename> <IconsPerRow>2</IconsPerRow> <IconsPerColumn>2</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ATLAS" /> <Set> <IconSize>80</IconSize> <Filename>JFD_NaziGermanyAtlas_80.dds</Filename> <IconsPerRow>2</IconsPerRow> <IconsPerColumn>2</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ATLAS" /> <Set> <IconSize>64</IconSize> <Filename>JFD_NaziGermanyAtlas_64.dds</Filename> <IconsPerRow>2</IconsPerRow> <IconsPerColumn>2</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ATLAS" /> <Set> <IconSize>45</IconSize> <Filename>JFD_NaziGermanyAtlas_45.dds</Filename> <IconsPerRow>2</IconsPerRow> <IconsPerColumn>2</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ATLAS" /> <Set> <IconSize>32</IconSize> <Filename>JFD_NaziGermanyAtlas_32.dds</Filename> <IconsPerRow>2</IconsPerRow> <IconsPerColumn>2</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ALPHA_ATLAS" /> <Set> <IconSize>128</IconSize> <Filename>JFD_NaziGermanyAlphaAtlas_128.dds</Filename> <IconsPerRow>1</IconsPerRow> <IconsPerColumn>1</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ALPHA_ATLAS" /> <Set> <IconSize>64</IconSize> <Filename>JFD_NaziGermanyAlphaAtlas_64.dds</Filename> <IconsPerRow>1</IconsPerRow> <IconsPerColumn>1</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ALPHA_ATLAS" /> <Set> <IconSize>48</IconSize> <Filename>JFD_NaziGermanyAlphaAtlas_48.dds</Filename> <IconsPerRow>1</IconsPerRow> <IconsPerColumn>1</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ALPHA_ATLAS" /> <Set> <IconSize>32</IconSize> <Filename>JFD_NaziGermanyAlphaAtlas_32.dds</Filename> <IconsPerRow>1</IconsPerRow> <IconsPerColumn>1</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ALPHA_ATLAS" /> <Set> <IconSize>24</IconSize> <Filename>JFD_NaziGermanyAlphaAtlas_24.dds</Filename> <IconsPerRow>1</IconsPerRow> <IconsPerColumn>1</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMANY_ALPHA_ATLAS" /> <Set> <IconSize>16</IconSize> <Filename>JFD_NaziGermanyAlphaAtlas_16.dds</Filename> <IconsPerRow>1</IconsPerRow> <IconsPerColumn>1</IconsPerColumn> </Set> </Update> <Update> <Where Atlas="GERMAN_WEHRMACHT_FLAG" /> <Set> <IconSize>32</IconSize> <Filename>Unit_Wehrmacht_Flag_32.dds</Filename> <IconsPerRow>1</IconsPerRow> <IconsPerColumn>1</IconsPerColumn> </Set> </Update> </IconTextureAtlases> <Leaders> <Update> <Where Type="LEADER_BISMARCK" /> <Set> <PortraitIndex>4</PortraitIndex> <IconAtlas>GERMANY_ATLAS</IconAtlas> </Set> </Update> </Leaders> </GameData>
Or is this correct...
Code:<Update> <Where Type="CIVILIZATION_GERMANY" /> <Set> <Atlas>GERMANY_ATLAS</Atlas> <IconSize>256</IconSize> <Filename>JFD_NaziGermanyAtlas_256.dds</Filename> <IconsPerRow>2</IconsPerRow> <IconsPerColumn>2</IconsPerColumn> </Set> </Update>
What I did was in modbuddy add a folder called Atlases. Inside that folder I added all the dds files and changed VFS to true. So, will the game find GERMANY_ATLAS? I think I have the code wrong so I will wait for you to get back to me.
<GameData>
<IconTextureAtlases>
<Row>
<Atlas>GERMANY_ATLAS</Atlas>
<IconSize>256</IconSize>
<Filename>JFD_NaziGermanyAtlas_256.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ATLAS</Atlas>
<IconSize>128</IconSize>
<Filename>JFD_NaziGermanyAtlas_128.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ATLAS</Atlas>
<IconSize>80</IconSize>
<Filename>JFD_NaziGermanyAtlas_80.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ATLAS</Atlas>
<IconSize>64</IconSize>
<Filename>JFD_NaziGermanyAtlas_64.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ATLAS</Atlas>
<IconSize>45</IconSize>
<Filename>JFD_NaziGermanyAtlas_45.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ATLAS</Atlas>
<IconSize>32</IconSize>
<Filename>JFD_NaziGermanyAtlas_32.dds</Filename>
<IconsPerRow>2</IconsPerRow>
<IconsPerColumn>2</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ALPHA_ATLAS</Atlas>
<IconSize>128</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_128.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ALPHA_ATLAS</Atlas>
<IconSize>64</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_64.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ALPHA_ATLAS</Atlas>
<IconSize>48</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_48.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ALPHA_ATLAS</Atlas>
<IconSize>32</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_32.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ALPHA_ATLAS</Atlas>
<IconSize>24</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_24.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMANY_ALPHA_ATLAS</Atlas>
<IconSize>16</IconSize>
<Filename>JFD_NaziGermanyAlphaAtlas_16.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>GERMAN_WEHRMACHT_FLAG</Atlas>
<IconSize>32</IconSize>
<Filename>Unit_Wehrmacht_Flag_32.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
</IconTextureAtlases>
</GameData>
<GameData>
<Leaders>
<Update>
<Where Type="LEADER_BISMARCK" />
<Set>
<PortraitIndex>4</PortraitIndex>
<IconAtlas>GERMANY_ATLAS</IconAtlas>
</Set>
</Update>
</Leaders>
</GameData>
<GameData>
<Leaders>
<Update>
<Where Type="LEADER_BISMARCK" />
<Set>
[color="blue"]<PortraitIndex>4</PortraitIndex>
<IconAtlas>GERMANY_ATLAS</IconAtlas>[/color]
</Set>
</Update>
</Leaders>
</GameData>
Currently in the game as made by Firaxis, there is no such thing within the <IconTextureAtlases> table as an Atlas called GERMANY_ATLAS, GERMANY_ALPHA_ATLAS, or GERMAN_WEHRMACHT_FLAG, so for the <IconTextureAtlases> table <Update> cannot be used, you must use <Row> because for that table you are giving the game new information:
<Civilizations>
<Update>
<Where Type="CIVILIZATION_GERMANY" />
<Set>
<PortraitIndex>4</PortraitIndex>
<IconAtlas>GERMANY_ATLAS</IconAtlas>
<AlphaIconAtlas>GERMANY_ATLAS</AlphaIconAtlas>
</Set>
</Update>
</Civilizations>
Refer to Post #22. You want to do an <Update> under the <Civilizations> table to CIVILIZATION_GERMANY.I was able to associate the Hitler Icon to Bismarck, but how do I do the same with the German Cross with the Swastika?
[edit] Following assumes you are changing the unit flag for an existing unit. If you are adding a new unit you just include those two columns directly in the definition of the new unit.And how do I associate the Wehrmacht flag with a unit?
<GameData>
<Units>
<Update>
<Where Type="UNIT_SOMETHING_OR_OTHER" />
<Set>
<UnitFlagAtlas>GERMAN_WEHRMACHT_FLAG</UnitFlagAtlas>
<UnitFlagIconOffset>0</UnitFlagIconOffset>
</Set>
</Update>
</Units>
</GameData>
Refer to Post #22. You want to do an <Update> under the <Civilizations> table to CIVILIZATION_GERMANY.
You want to <Set> new data for Germany for <PortraitIndex>, <IconAtlas>, and <AlphaIconAtlas>. (I'm assuming you borrowed JFD's Icon Files for his Hitler mod so you will need the same <PortraitIndex> setting he used.).
The portrait index numbers are as:I am not sure what portrait setting JFD used. Either way there are only 4. I got 3 to show up except portrait index 4 which is the swastika. It's really odd. It could be 0 I will check.
0 1
2 3
The portrait index numbers are as:
He's using #0 for the Civ Icon.Code:0 1 2 3
#1 should be for Hitler as leader.
#2 looks to be a 'regular' soldier
#3 looks to be an SS or Gestapo guy.
The portrait index numbers
--==========================================================================================================================
-- Colors
--==========================================================================================================================
INSERT INTO Colors
(Type, Red, Green, Blue, Alpha)
VALUES ('COLOR_PLAYER_GERMANY_ICON', 0, 0, 0, 1),
('COLOR_PLAYER_GERMANY_BACKGROUND', 0.588, 0, 0, 1);
--==========================================================================================================================
-- PlayerColors
--==========================================================================================================================
INSERT INTO PlayerColors
(Type, PrimaryColor, SecondaryColor, TextColor)
VALUES ('PLAYERCOLOR_GERMANY', 'COLOR_PLAYER_GERMANY_ICON', 'COLOR_PLAYER_GERMANY_BACKGROUND', 'COLOR_PLAYER_WHITE_TEXT');
--==========================================================================================================================
--==========================================================================================================================
--==========================================================================================================================
-- Colors
--==========================================================================================================================
INSERT INTO Colors
(Type, Red, Green, Blue, Alpha)
VALUES ('COLOR_PLAYER_JFD_NAZI_GERMANY_ICON', 0, 0, 0, 1),
('COLOR_PLAYER_JFD_NAZI_GERMANY_BACKGROUND', 0.588, 0, 0, 1);
--==========================================================================================================================
-- PlayerColors
--==========================================================================================================================
INSERT INTO PlayerColors
(Type, PrimaryColor, SecondaryColor, TextColor)
VALUES ([COLOR="Blue"]'PLAYERCOLOR_JFD_NAZI_GERMANY'[/COLOR], 'COLOR_PLAYER_JFD_NAZI_GERMANY_ICON', 'COLOR_PLAYER_JFD_NAZI_GERMANY_BACKGROUND', 'COLOR_PLAYER_WHITE_TEXT');
--==========================================================================================================================
--==========================================================================================================================
--==========================================================================================================================
-- IconTextureAtlases
--==========================================================================================================================
INSERT OR REPLACE INTO IconTextureAtlases
(Atlas, IconSize, Filename, IconsPerRow, IconsPerColumn)
VALUES ('JFD_JAEGER_ATLAS', 256, 'JFD_Jaeger_256.dds', 1, 1),
('JFD_JAEGER_ATLAS', 128, 'JFD_Jaeger_128.dds', 1, 1),
('JFD_JAEGER_ATLAS', 80, 'JFD_Jaeger_80.dds', 1, 1),
('JFD_JAEGER_ATLAS', 45, 'JFD_Jaeger_45.dds', 1, 1),
('JFD_JAEGER_ATLAS', 64, 'JFD_Jaeger_64.dds', 1, 1),
('JFD_JAEGER_ATLAS', 32, 'JFD_Jaeger_32.dds', 1, 1),
('JFD_NAZI_GERMANY_ATLAS', 256, 'JFD_NaziGermanyAtlas_256.dds', 2, 2),
('JFD_NAZI_GERMANY_ATLAS', 128, 'JFD_NaziGermanyAtlas_128.dds', 2, 2),
('JFD_NAZI_GERMANY_ATLAS', 80, 'JFD_NaziGermanyAtlas_80.dds', 2, 2),
('JFD_NAZI_GERMANY_ATLAS', 45, 'JFD_NaziGermanyAtlas_45.dds', 2, 2),
('JFD_NAZI_GERMANY_ATLAS', 64, 'JFD_NaziGermanyAtlas_64.dds', 2, 2),
('JFD_NAZI_GERMANY_ATLAS', 32, 'JFD_NaziGermanyAtlas_32.dds', 2, 2),
[COLOR="blue"] ('JFD_NAZI_GERMANY_ALPHA_ATLAS', 128, 'JFD_NaziGermanyAlphaAtlas_128.dds', 1, 1),
('JFD_NAZI_GERMANY_ALPHA_ATLAS', 80, 'JFD_NaziGermanyAlphaAtlas_80.dds', 1, 1),
('JFD_NAZI_GERMANY_ALPHA_ATLAS', 64, 'JFD_NaziGermanyAlphaAtlas_64.dds', 1, 1),
('JFD_NAZI_GERMANY_ALPHA_ATLAS', 48, 'JFD_NaziGermanyAlphaAtlas_48.dds', 1, 1),
('JFD_NAZI_GERMANY_ALPHA_ATLAS', 45, 'JFD_NaziGermanyAlphaAtlas_45.dds', 1, 1),
('JFD_NAZI_GERMANY_ALPHA_ATLAS', 32, 'JFD_NaziGermanyAlphaAtlas_32.dds', 1, 1),
('JFD_NAZI_GERMANY_ALPHA_ATLAS', 24, 'JFD_NaziGermanyAlphaAtlas_24.dds', 1, 1),
('JFD_NAZI_GERMANY_ALPHA_ATLAS', 16, 'JFD_NaziGermanyAlphaAtlas_16.dds', 1, 1),[/COLOR]
('UNITS_JFD_JAEGER_FLAG_ATLAS', 32, 'Unit_Jaeger_Flag_32.dds', 1, 1),
('UNITS_JFD_WEHRMACHT_FLAG_ART_ATLAS', 32, 'Unit_Wehrmacht_Flag_32.dds', 1, 1);
--==========================================================================================================================
--==========================================================================================================================
More dark than the icon as it is showing here in the city-view ?