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

Martyr of May

Recruit
May 7, 2019
1
0
Hi

So far I've been following the code and mod structure of other mods to create lifestyles for my own mods. Ive had success for most of the way (such as making the icons work), but now I can't get the lifestyle backgrounds to work.

My mod structure is

ModTesting
-common
--lifestyles
---00_lifestyles.txt
-gfx
--interface
---icons
----lifestyles_background
-----visionary_lifestyle.dds

In 00_lifestyles.txt my code for the visionary lifestyle is
Code:
visionary_lifestyle = {

        is_highlighted = {
                OR = {
                    has_trait = brave
                    has_trait = dilligent
                    has_trait = ambitious
                }
        }

        icon = visionary_lifestyle
       
        xp_per_level = 1000
        base_xp_gain = 25
}

whats weird is ive inserted the code for lifestyle from other working mod + their dds background from other working mod (that i downloaded) into my own mod and their background doesn't work either. So not sure what i'm doing wrong, is there some factor i'm missing out on?

Thanks