[HELP] Mod Building Icon not showing up in technology tree

blitzscrank

Chieftain
Joined
Aug 26, 2016
Messages
5
This mod I'm working on adds a new civilization and leader. I'm almost done, however I can't figure out why there's no icon for the custom units or buildings in the technology tree.

The custom icon art shows up in other places, like the civilopedia, or when selecting the unit.


Blank Icon in Technology
Spoiler :

No icon
qLBOIaf.jpg


Icon shows up when selecting the unit
4fqNheB.jpg


Icon shows up in civilopedia
5g9oPkH.jpg


Art files x256,x128,x80 etc
JgCHaiW.png



I've searched online for answers but I can't figure out what could be causing this issue. :(
If you need to look at the XML files, I'll send PM you them.

I am running BNW and G&K.
 

Attachments

I found my mistake. I accidentally saved all the dds files as DXT1 as default instead of A8R8G8B8. It's working perfectly fine now! And thanks for linking that reference chart, it will be helpful in the future. :)
 
  1. This is not necessary and needs to be eliminated
    Code:
    <UpdateDatabase>art/Ryoma_Scene.xml</UpdateDatabase>
    Leader fallback scene xml's are only ever used as "Import Into VFS = true", they are never used as an <UpdateDatabase>
  2. You have this in the Ryoma.xml file
    Code:
    	<Traits>
    		<Row>
    			<Type>TRAIT_HOSHIDAN_UNITY</Type>
    			<Description>TXT_KEY_TRAIT_HOSHIDAN_UNITY</Description>
    			<ShortDescription>TXT_KEY_TRAIT_HOSHIDAN_UNITY_SHORT</ShortDescription>
    		</Row>
    	</Traits>
    And this in the HoshidanUnity.xml file, which loads into the game after the Ryoma.xml and thereby fails entirely because you cannot try to add the same trait into the <Traits> table twice:
    Code:
    <GameData>
    	<Traits>
    		<Row>
    			<Type>TRAIT_HOSHIDAN_UNITY</Type>
    			<Description>TXT_KEY_TRAIT_HOSHIDAN_UNITY</Description>
    			<ShortDescription>TXT_KEY_TRAIT_HOSHIDAN_UNITY_SHORT</ShortDescription>
    			.....etc.........
    You need to eliminate the specified chunk of code from the Ryoma.xml file
  3. You have an entire IconSize that is no good. The Hot Springs icon does not show correctly in the city Production lists, nor when you select it on the main-map city-display. I am not sure which Icon Size is messed up.You appear to have found your trouble here.
  4. One of your promotions (ASTRA) is showing an invalid reference for an Icon. You are using <PortraitIndex> #59 for atlas EXPANSION2_PROMOTION_ATLAS but the highest number Firaxis used that I have found so far for that particular Atlas is '11'
I am famously no good at creating artwork but I always start with the 256-size icons and once I have a good set of icons I export to dds format, resize and export for the next smaller size, and keep repeating until I have all the icon sizes needed.
 
You have this in the Ryoma.xml file
Code:
	<Traits>
		<Row>
			<Type>TRAIT_HOSHIDAN_UNITY</Type>
			<Description>TXT_KEY_TRAIT_HOSHIDAN_UNITY</Description>
			<ShortDescription>TXT_KEY_TRAIT_HOSHIDAN_UNITY_SHORT</ShortDescription>
		</Row>
	</Traits>
And this in the HoshidanUnity.xml file, which loads into the game after the Ryoma.xml and thereby fails entirely because you cannot try to add the same trait into the <Traits> table twice:
Code:
<GameData>
	<Traits>
		<Row>
			<Type>TRAIT_HOSHIDAN_UNITY</Type>
			<Description>TXT_KEY_TRAIT_HOSHIDAN_UNITY</Description>
			<ShortDescription>TXT_KEY_TRAIT_HOSHIDAN_UNITY_SHORT</ShortDescription>
			.....etc.........
You need to eliminate the specified chunk of code from the Ryoma.xml file

You solved my other problem with the trait not working too! Thanks! I started learning how to mod 2 days ago so I keep making these dumb mistakes. :p
 
Back
Top Bottom