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

Hansatron

Captain
20 Badges
Mar 30, 2020
443
1.286
  • Stellaris: Humanoids Species Pack
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Cities: Skylines
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Mass Transit
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Cities: Skylines - After Dark
  • Stellaris: Synthetic Dawn
IIRC it is actually not possible to add new living standards to the game. You can, however, edit the existing ones.

The relevant files you would need to edit/add to are:
- /common/species_rights/01_living_standards - this controls the conditions for using this standard, the pop happiness effects, political power, and any other bonuses like +10% research under Academic Privilege or the pop demotion time from Shared Burdens.
-/common/pop_categories/00_social_classes - this is where the per pop trade value from living standards, as well as per pop consumer goods/food/minerals/energy upkeep is applied. Most of the values are actually scripted variables you can find in /common/scripted_variables, although you could type in a number instead of a variable if you wanted. In order to properly set what trade value and upkeep to use, each living standard is assigned a set of triggers. So for a totally custom one, or to modify what exists (say you want specialist pops under academic privilege to have 0.5x CG upkeep instead of 1.0, aka high upkeep vs very high as the game calls it) you need to go to
-/common/scripted_triggers/01_scripted_triggers_jobs - the living standards triggers are defined halfway through, around line 135.

So all together you have the living standard policy itself, then you define triggers, then you apply effects to pops via the triggers.

Hope that helps!
 

Hansatron

Captain
20 Badges
Mar 30, 2020
443
1.286
  • Stellaris: Humanoids Species Pack
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Cities: Skylines
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Mass Transit
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Cities: Skylines - After Dark
  • Stellaris: Synthetic Dawn
Oh, and of course, you'd need to add localisation support in your preferred language for the name, description, and effects.

BTW in case you aren't aware, if you navigate to wherever stellaris is installed, often SteamLibrary/steamapps/common/Stellaris/, the stellaris folder itself has subfolders called /common/, /localisation/, /gfx/, /events/, etc. When you make a mod you copy this structure, so for example to add a new building via a mod, you'd make the file defining the building, then recreate the folder structure in your mod folder.
In this example, "MyModBuilding.txt" would go in MyModFolder/common/buildings/, that way the game knows to put the file in with the base game data in Stellaris/common/buildings/.
 

Jer.Kaff van Hiderman

Corporal
17 Badges
Feb 10, 2016
45
19
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Victoria 2
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Age of Wonders III
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
IIRC it is actually not possible to add new living standards to the game. You can, however, edit the existing ones.

The relevant files you would need to edit/add to are:
- /common/species_rights/01_living_standards - this controls the conditions for using this standard, the pop happiness effects, political power, and any other bonuses like +10% research under Academic Privilege or the pop demotion time from Shared Burdens.
-/common/pop_categories/00_social_classes - this is where the per pop trade value from living standards, as well as per pop consumer goods/food/minerals/energy upkeep is applied. Most of the values are actually scripted variables you can find in /common/scripted_variables, although you could type in a number instead of a variable if you wanted. In order to properly set what trade value and upkeep to use, each living standard is assigned a set of triggers. So for a totally custom one, or to modify what exists (say you want specialist pops under academic privilege to have 0.5x CG upkeep instead of 1.0, aka high upkeep vs very high as the game calls it) you need to go to
-/common/scripted_triggers/01_scripted_triggers_jobs - the living standards triggers are defined halfway through, around line 135.

So all together you have the living standard policy itself, then you define triggers, then you apply effects to pops via the triggers.

Hope that helps!

Thanks!
One more question,are common policies(like trade policies and war policies) impossible to add new options in current version?
 
Last edited:

Ryika

Field Marshal
52 Badges
Apr 16, 2018
2.813
8.356
Thanks!
One more question,are common policies(like trade policies and war policies) impossible to add new options in current version?
Policies can be found in:
common\policies

That's where you can add new options.

The actual implementation of those policies are often found in other files, usually "linked" to with policy_flags.

So in that case, grab a program that allows you to open multiple text files at once (such as Notepad++), drag the whole common folder into it and do a mass search for the policy_flag in question.
 

Jer.Kaff van Hiderman

Corporal
17 Badges
Feb 10, 2016
45
19
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Victoria 2
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Age of Wonders III
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
Policies can be found in:
common\policies

That's where you can add new options.

The actual implementation of those policies are often found in other files, usually "linked" to with policy_flags.

So in that case, grab a program that allows you to open multiple text files at once (such as Notepad++), drag the whole common folder into it and do a mass search for the policy_flag in question.
thx!