Change Icons For Bacterial And Corrosive Planet Types v3.96

As you have probably noticed, Bacterial, Corrosive and Toxic planets have the same icon in the strategic view (a green icon, Toxic sign).

Did someone say lazy? :|





So I tried to replace the Bacterial and Corrosive icons with new icons by modding.

I created an "Icon Mod" folder in the "Mods" folder
...\GC3Crusade\Mods\Icon Mod

Then I added the files:
GC3_Extreme_Bacterial_32.dds
GC3_Extreme_Bacterial_32.png
GC3_Extreme_Corrosive_32.dds
GC3_Extreme_Corrosive_32.png
in the "Hud" folder
...\GC3Crusade\Mods\Icon Mod\Gfx\Icons\Hud

And the modified file:
PlanetTraitDefs.xml
<PlanetTrait>
    <InternalName>BacterialWorld</InternalName>
    <DisplayName>BacterialWorld_Name</DisplayName>
    <Description>BacterialWorld_Dec</Description>
    <HUDIcon>GC3_Extreme_Bacterial_32.png</HUDIcon>
...

<PlanetTrait>
    <InternalName>CorrosiveWorld</InternalName>
    <DisplayName>CorrosiveWorld_Name</DisplayName>
    <Description>CorrosiveWorld_Dec</Description>
    <HUDIcon>GC3_Extreme_Corrosive_32.png</HUDIcon>
...

in the "Game" folder
...\GC3Crusade\Mods\Icon Mod\Game

I activated the mod in the game (Enable Mods), and I got this result:
The new icon is displayed above the two types of planets, but the icon has not been changed in the planet tooltip or in the list of planets.





I remember having had another try some time before and having obtained the opposite effect, the icon changed in the tooltip and not above the planet.

I remembered that I had downloaded (thanks Horemvore) the Horems Community Patch (I am playing without mod for now), I looked in the folder "UCP_Planet Traits" and I noticed that there was a file "UCP_FactionAssets. xml "which refers to the .png file for the type of planets.
So I copied this file and modified it as follows:

<?xml version="1.0" encoding="utf-8"?>

<AssetTable
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/Lib/AssetTableDef.xsd">
<!-- FactionAssets.XML -->

    <Asset>
        <Tag>CorrosiveWorldIcon</Tag>
        <Filename>GC3_Extreme_Corrosive_32.png</Filename>
    </Asset>
   
    <Asset>
        <Tag>BacterialWorldIcon</Tag>
        <Filename>GC3_Extreme_Bacterial_32.png</Filename>
    </Asset>

</AssetTable>

and I put the renamed file "Icon_FactionAssets.xml" in the "Core" folder
...\GC3Crusade\Mods\Icon Mod\Core

But the result was the same:



So I replaced my mod with the "UCP_Planet Traits" mod and then I replaced the icons in the "UCP_Planet Traits" mod folder with mine and this time it worked.



Conclusion: Horemvore knows what he is doing. :)  
So I missed something, what is it?

The simplest solution would be for Stardock to add two specific icons for these types of planets.
Two small icons of thirty two pixels by thirty two pixels.
It is not asking for the moon. It is ? :D  

5,012 views 3 replies
Reply #1 Top

1st. I was to lazy to read entire thing... but...

2nd. my sollution

in Core mod folder new file

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<AssetTable
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/Lib/AssetTableDef.xsd">

    <Asset>
        <Tag>CorrosiveWorldIcon</Tag>
        <Filename>Corrosive_World_Icon.png</Filename>
    </Asset>

    <Asset>
        <Tag>BacterialWorldIcon</Tag>
        <Filename>Bacterial_World_Icon.png</Filename>
    </Asset>

</AssetTable>

 

in Text mod folder, file "PlanetTraitText"

(...)

  <StringTable>
    <Label>CorrosiveWorld_Name</Label>
    <String>[ICON=CorrosiveWorldIcon] Corrosive World</String>
  </StringTable>
 
  <StringTable>
    <Label>CorrosiveWorld_Dec</Label>
    <String>Acidic lakes and storms makes this world unsuitable for colonization by non-carbon lifeforms.</String>
  </StringTable>
 
  <StringTable>
    <Label>BacterialWorld_Name</Label>
    <String>[ICON=BacterialWorldIcon] Bacterial World</String>
  </StringTable>
 
  <StringTable>
    <Label>BacterialWorld_Dec</Label>
    <String>This world has microbes that are deadly to organic life forms.</String>
  </StringTable>

(...)

an of course appropriate changes in Game mod folder "PlanetTraitDefs"

    <HUDIcon>Corrosive_World_Icon.png</HUDIcon>

 

Reply #2 Top

Thanks, it works. :)  
Good to know that you have to put the text file "PlanetTraitText.XML" in the mod folder for it to work, even if you don't change anything, the icon in the tooltip being considered as text, a little strange and counter intuitive however.
A guide for modding is missing.

Nice icons.

 

 

Reply #3 Top

I had a similar problem with three. With two the icon was red if you couldn't colonise the planet. You could see it without highlighting the planet. Yellow if you couldn't fully colonise it, and green if you could without any penalty to production. That made it easier.

In three the icons are different for each type of planet, which is not as good as before. I don't care about the type of planet only if it is colonisable or not.