• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Vielmann

Sergeant
27 Badges
Oct 17, 2018
78
141
  • Stellaris: Federations
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Age of Wonders III
  • Stellaris: Lithoids
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Cities: Skylines - After Dark
  • Stellaris: Necroids
  • Pillars of Eternity
  • Cities: Skylines
  • Teleglitch: Die More Edition
  • Stellaris: Nemesis
  • Stellaris: Synthetic Dawn
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Magicka 2
  • Magicka
I made a mod that reworks how expertise traits work. A part of that mod is the specialist trait.
Code:
leader_trait_specialist = {

    leader_trait_type = veteran

    custom_tooltip = leader_trait_specialist_tooltip

    inline_script = {

        script = trait/icon

        CLASS = scientist

        ICON = "GFX_leader_trait_specialist"

        RARITY = veteran

        COUNCIL = yes

        TIER = 1

    }

    leader_potential_add = {

        has_paragon_dlc = yes

        has_trait = subclass_scientist_councilor

    }

    leader_class = { scientist }

    ai_weight = 100

    selectable_weight = {

        weight = @subclass_trait_weight

        inline_script = paragon/council_weight_mult

    }

}

leader_trait_specialist_2 = {

    leader_trait_type = veteran

    custom_tooltip = leader_trait_specialist_2_tooltip

    replace_traits = { "leader_trait_specialist" }

    inline_script = {

        script = trait/icon

        CLASS = scientist

        ICON = "GFX_leader_trait_specialist"

        RARITY = veteran

        COUNCIL = yes

        TIER = 2

    }

    leader_class = { scientist }

    ai_weight = 100


}

leader_trait_specialist_3 = {

    leader_trait_type = veteran

    custom_tooltip = leader_trait_specialist_3_tooltip

    replace_traits = { "leader_trait_specialist_2" }

    inline_script = {

        script = trait/icon

        CLASS = scientist

        ICON = "GFX_leader_trait_specialist"

        RARITY = veteran

        COUNCIL = yes

        TIER = 3

    }

    leader_class = { scientist }

    ai_weight = 100

}

It is supposed to do nothing as it's effect is implemented in the expertise traits. I edited the file for the intelligent species trait and put it in the "expertiseRework\gfx\interface\icons\traits\leader_trait_icons" folder as "leader_trait_specialist.dds". Ingame the icon looks like this:

1709207511734.png
The dds file looks like this in paint.net:
1709207597779.png
Obviously this is not what I intended to do. I created a sprite file in "expertiseRework\gfx\interface". The content of that file is
Code:
spriteTypes = {
    spriteType = {
        name = "GFX_leader_trait_specialist"
        texturefile = "gfx/interface/icons/traits/leader_traits/leader_trait_specialist.dds"
    }
}
How can I make the icon show up ingame?