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

Ghellis

Technocrat
16 Badges
Jun 15, 2017
14
0
  • Stellaris: Galaxy Edition
  • Stellaris: Distant Stars Pre-Order
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Synthetic Dawn
Hello! I am trying to add specific planet modifiers through modding but all i get is a default logo with the message _desc i have tried every combination and looked through a lot of forums to try answer my problem and nothing has worked.
The most popular lines of code i have found is

add_modifier = {
modifier = "example_modifier"
days = -1
}


add_modifier = {
modifier = "pm_example_modifier"
days = -1
}

none of these work if anyone has a solution would appreciate the help!
 
Hi, let me assist :)

Lets use "example_modifier" as the modifier we want to add trough an event. A modifier that spawns with galaxy generation needs an additional file but I'll get to that in the end of the post.

Following files are required:
(do call them something unique for your mod unless you want to overwrite game files)

common/static_modifiers/static_modifiers.txt
Code:
example_modifier = {
    pop_happiness = 0.10
    icon = "gfx/interface/icons/planet_modifiers/pm_lush.dds"
    icon_frame = 1
}

then we need to make sure it has localisation:
localisation/your_mod_name_l_english.txt
Code:
l_english:
 example_modifier:0 "Example Modifier"
 example_modifier_desc:0 "This world has an example modifier."

If you want to have a custom icon, these will need to be placed in the following location and called in the static modifiers file that I mentioned above:
gfx/interface/icons/planet_modifiers


To add it trough an event it is done like this: (you had this correct)
Code:
add_modifier = { modifier = example_modifier days = -1 }

----------
If it's a modifier that has to spawn on planets at the start of the game you'll need the following file:
common/planet_modifiers/00_planet_modifiers.txt
 
Hi, let me assist :)

Lets use "example_modifier" as the modifier we want to add trough an event. A modifier that spawns with galaxy generation needs an additional file but I'll get to that in the end of the post.

Following files are required:
(do call them something unique for your mod unless you want to overwrite game files)

common/static_modifiers/static_modifiers.txt
Code:
example_modifier = {
    pop_happiness = 0.10
    icon = "gfx/interface/icons/planet_modifiers/pm_lush.dds"
    icon_frame = 1
}

then we need to make sure it has localisation:
localisation/your_mod_name_l_english.txt
Code:
l_english:
 example_modifier:0 "Example Modifier"
 example_modifier_desc:0 "This world has an example modifier."

If you want to have a custom icon, these will need to be placed in the following location and called in the static modifiers file that I mentioned above:
gfx/interface/icons/planet_modifiers


To add it trough an event it is done like this: (you had this correct)
Code:
add_modifier = { modifier = example_modifier days = -1 }

----------
If it's a modifier that has to spawn on planets at the start of the game you'll need the following file:
common/planet_modifiers/00_planet_modifiers.txt

Thank you for your reply! Unfortunately i still get the same results, just an empty icon that says _desc it seems it is struggling to find the file location. Appreciate the help though.
 
Addition to localisation instructions: Remember to save it with UTF-8-BOM encoding, otherwise it probably won't work.
 
Hi, let me assist :)

Lets use "example_modifier" as the modifier we want to add trough an event. A modifier that spawns with galaxy generation needs an additional file but I'll get to that in the end of the post.

Following files are required:
(do call them something unique for your mod unless you want to overwrite game files)

common/static_modifiers/static_modifiers.txt
Code:
example_modifier = {
    pop_happiness = 0.10
    icon = "gfx/interface/icons/planet_modifiers/pm_lush.dds"
    icon_frame = 1
}

then we need to make sure it has localisation:
localisation/your_mod_name_l_english.txt
Code:
l_english:
 example_modifier:0 "Example Modifier"
 example_modifier_desc:0 "This world has an example modifier."

If you want to have a custom icon, these will need to be placed in the following location and called in the static modifiers file that I mentioned above:
gfx/interface/icons/planet_modifiers


To add it trough an event it is done like this: (you had this correct)
Code:
add_modifier = { modifier = example_modifier days = -1 }

----------
If it's a modifier that has to spawn on planets at the start of the game you'll need the following file:
common/planet_modifiers/00_planet_modifiers.txt

Just wanted to give you an update i have finally fixed the issue! Thank you for your help in spending the time to type this step by step guide.
 
Just wanted to give you an update i have finally fixed the issue! Thank you for your help in spending the time to type this step by step guide.

Np! Glad you found the issue! Sorry I didn't check back earlier. Sort of have been a bit busy and missed the update on the thread. Glad you managed to fix it though :)

Have fun!
 
I will do i also checked the game event files and i hadn't realised it removes planet modifiers from any planets within a starting system so i had to remove them as well. :)
 
I will do i also checked the game event files and i hadn't realised it removes planet modifiers from any planets within a starting system so i had to remove them as well. :)
Oh my golly, would you be so kind as to share any info on how you did this? Many thanks in advance! (it's been driving me crazy haha)