Adding leader heads and icons?

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.
 
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.

For every civ where you are changing something from the Firaxis-supplied code, you will need an <Update> -- </Update> pair for that <Row> within the <Civilizations> table. You can update multiple columns within the same row within the same Update:

Code:
<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>
This is the same as structuring it as:
Code:
<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>
But you must have an individual <Update> -- </Update> for Rome, and a second individual one for Germany. You could not profitably combine the two. Obviously I just "made-up" the info shown for those update examples.

My understanding is that the Portrait Index # has to be the same for the IconAtlas & AlphaIconAtlas. At least, I've never seen it done any other way.

There are additional rules-of-thumb that apply to changing info as supplied by Firaxis, but none of those would seem to apply given that you are trying to alter the Firaxis-made civilizations. The most basic rule-of-thumb, though, is that if you are alterring existing information within a given game-table, you need an <Update>: otherwise you would use a <Row>. For the Civilizations table since you are wanting to alter the information for the existing Civ CIVILIZATION_GERMANY which has already been defined within the Civilizations table, you need an <Update>.
 
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.

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.
 
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.
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.
 
Thanks I appreciate it LeeS. I figured I am doing something wrong.
 
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:
Spoiler :
Code:
<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>
(remember that the rule of thumb is whether or not the original information within the given game table was provided by Firaxis or by you the modder. If by Firaxis, you will need "Update"; if originally given by you, then you need "Row".)

-----------------------------------------------------------------------------------------------------------------------------

This part should be good because within the table <Leaders> there is already a <Row> that defines a leader called LEADER_BISMARCK. So in order to get the pre-existing LEADER_BISMARCK to use the new Icon for Hitler, you need to use an <Update> to the information the game already has for LEADER_BISMARCK:
Code:
<GameData>
	<Leaders>
		<Update>
			<Where Type="LEADER_BISMARCK" />
			<Set>
				<PortraitIndex>4</PortraitIndex>
				<IconAtlas>GERMANY_ATLAS</IconAtlas>
			</Set>
		</Update>
	</Leaders>
</GameData>
Note however that PortraitIndex # 4 in a 2x2 set of icon images is probably wrong. Where there are four total images, the images (PortraitIndex #) should start with "0" and go to "3".

-------------------------------------------------------------------------------------------------------------------------------

Setting all the xxxx.DDS files to VFS=true in ModBuddy allows the game to "find" all the DDS files, but without the <IconTextureAtlases> table additions telling the game into which "Atlases" to stick those DDS files, nothing observable will happen. You need three things in order for an icon to show-up in-game:
  1. All the required Icon Size xxxx.DDS files must be present and set VFS=true
  2. There must be a valid Atlas defined within the <IconTextureAtlases> table telling the game which files belong to which Atlas, and for which size of Icon within that Atlas. The XML (or SQL) file where this definition of the Atlas appears must have an "OnModActivated > UpdateDataBase" action within Modbuddy.
  3. Some element of the game that requires an Icon must reference the Atlas mentioned in #2 with the Atlas Name and a PortraitIndex #. By "element" I mean a leader or a building, or a unit, or a civ, etc. The XML (or SQL) file where this reference to the Atlas and PortraitIndex # appears must also have an "OnModActivated > UpdateDataBase" action within Modbuddy.
    Code:
    <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:

Ok I have the leader icon working now. Checking the rest now.

The other icons are not working. I was able to associate the Hitler Icon to Bismarck, but how do I do the same with the German Cross with the Swastika? The Swastika won't show up for some reason. It should be portraitindex 4, instead it is an American symbol.

This is the code I am using.

Code:
         <Civilizations>
		<Update>
			<Where Type="CIVILIZATION_GERMANY" />
			<Set>
				<PortraitIndex>4</PortraitIndex>
				<IconAtlas>GERMANY_ATLAS</IconAtlas>
				<AlphaIconAtlas>GERMANY_ATLAS</AlphaIconAtlas>
			</Set>
		</Update>
	</Civilizations>
It should work but it is not for some reason. GERMANY_ATLAS has all the alpha dds files in it.
 
I was able to associate the Hitler Icon to Bismarck, but how do I do the same with the German Cross with the Swastika?
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.)
And how do I associate the Wehrmacht flag with a unit?
[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.

For whatever unit you want to use with the Wermacht unit flag:
Code:
<GameData>
	<Units>
		<Update>
			<Where Type="UNIT_SOMETHING_OR_OTHER" />
			<Set>
				<UnitFlagAtlas>GERMAN_WEHRMACHT_FLAG</UnitFlagAtlas>
				<UnitFlagIconOffset>0</UnitFlagIconOffset>
			</Set>
		</Update>
	</Units>
</GameData>
You'll need to deal with the Strategic View Unit Flag Icon, but that's a bit more complicated. Get the rest of everything working and then come back to that.
 
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.).

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.

Yep it was portraitindex 0. Now it works. I could use the Wehrmacht flag, but it is just a scenario. After this I still have to add the other civs and create a great generals mod. I want to thank you for all your help.

Thinking to myself, a later project could be the Civil War. I'd have to somehow get the new civil war units, they created for that scenario.
 
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.
The portrait index numbers are as:
Code:
0	1
2	3
He's using #0 for the Civ Icon.
#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 are as:
Code:
0	1
2	3
He's using #0 for the Civ Icon.
#1 should be for Hitler as leader.
#2 looks to be a 'regular' soldier
#3 looks to be an SS or Gestapo guy.

Good to go thanks a lot LeeS. Now I have some balancing issues. Those are always fun to deal with.
 
The portrait index numbers

I have one last issue. The swastika icon is not showing up on the map next to the city names. There is just a black circle there. JFD added a PlayerColours.sql file.

Code:
--==========================================================================================================================
-- 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');
--==========================================================================================================================	
--==========================================================================================================================

I tried to change the code to this but it did not work. Not sure if I have to add anything else. In the games program files I could not find anything about player colors. So, I have nothing to use for reference. Nazi Germany is missing a JFD_NaziGermanyAlphaAtlas_22.dds. I made one and applied it, but that did not work either. Anyway this is the last thing I would like to fix. Let me know what you think and thanks.
 
In his Civilization SQL he has DefaultPlayerColor set to value of ('PLAYERCOLOR_JFD_NAZI_GERMANY')

In his PlayerColours.SQL he has this to match up with it:
Code:
--==========================================================================================================================
-- 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');
--==========================================================================================================================	
--==========================================================================================================================
Not sure if the settings and values are the same as those you were showing in your last post, but I think your issue there is that you are trying to pass in the information the same as if you had done it in XML using <Row>, and that probably will not work since there's already a <DefaultPlayerColor>PLAYERCOLOR_GERMANY</DefaultPlayerColor> with a matching PLAYERCOLOR_GERMANY defined under the PlayerColors table. So to change the RGB values for PLAYERCOLOR_GERMANY under the PlayerColors table you would need an <Update> if you were using XML. The equivalent command exists in SQL but I am not sure exactly how you structure an UPDATE in SQL.

I am still having trouble reading SQL "at-a-glance" so I kind of have to make sure everything is aligned with the columns and such and then I have to spend a while making sense of it all. Problem goes back to gradeschool when I had horrible trouble understanding what it was charts and graphs were supposed to be telling me (stuff like grade-school multiplication tables defeated me for years before I learned to "see" the relationships in my head in terms of 5x5 is actually 5 groups of 5).

I see now I missed the bit about the 22-size dds file. Hmmm -- JFD has files for the Alpha Atlas for dds sizes of 16, 24, 32, 48, 64, and 128. He has this in his definition of the Alpha Atlas:
Spoiler :
Code:
--==========================================================================================================================	
-- 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);
--==========================================================================================================================	
--==========================================================================================================================
According to FramedArchitect's Pixel Dimensions Reference Tutorial you only need the Alpha Sizes of 64, 48, 32, and 24. Remember that these numbers we are speaking about are not the pixel size of the icon circle's diameter, but are the size of the somewhat-larger square box those icon circles have to fit into. So a size 64 icon has an overall outside square size of 64x64 pixels, but the smaller circular icon that has to fit into that square with room to spare has to be of a diameter of 43 pixels.
 
I see the icon now, but it is very dark. I'll just let it go at that for now.
 
More dark than the icon as it is showing here in the city-view ?
 

Attachments

  • hitler_city.jpg
    hitler_city.jpg
    86.3 KB · Views: 190
Top Bottom