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

craftomega

Sergeant
50 Badges
Sep 5, 2012
87
80
  • Europa Universalis III
  • War of the Vikings
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Stellaris: Synthetic Dawn
  • Crusader Kings II
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • BATTLETECH
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Crusader Kings II: Reapers Due
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Leviathans Story Pack
  • The Showdown Effect
  • War of the Roses
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Sword of Islam
  • Stellaris: Megacorp
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
I am looking to either create a mod myself or if someone else knows how that would be fine. I want to create a mod that allows you to have more core planets based on the size of your empire EX: Per 1 planet gain 0.1 Core Cap.

I am looking at the n "Stellaris\common\defines\00_defines.lua" and I see

Code:
CORE_SECTOR_PLANET_CAP           = 5,   -- Too many planets in core sector will apply modifier inefficient_planet_management.
     SECTOR_CAP                 = 2,   -- Too many sectors will apply modifier inefficient_sector_management.
     SECTOR_CAP_INCR               = 0.25,   -- 0.25 means that for every four planets an extra sector can be created.
     SECTOR_SUPPORT_RESOURCE_AMOUNT       = 100,    -- How much resources each click will give the sector.
     SECTOR_REVOKE_PLANET_COST         = 25,   -- Influence cost for revoking a planet from a sector
     DELETE_SECTOR_COST             = 100,   -- Influence cost for deleting a sector

and in the "Stellaris\common\governments\00_governments.txt" you have

Code:
# Spiritualist Democracy
theocratic_republic = {
   potential = {
     hidden_trigger = { NOT = { is_country_type = fallen_empire } }
   }

   ethics = {
     OR = {
       has_ethic = "ethic_spiritualist"
       has_ethic = "ethic_fanatic_spiritualist"
     }
     NOT = { has_ethic = "ethic_collectivist" }
     NOT = { has_ethic = "ethic_fanatic_collectivist" }
   }
  
   modifier = {
     pop_ethic_shift = -0.1
     country_core_sector_planet_cap = 2
   }

So it should be possible to set up a script that allows you to change the amount based on the amount of worlds you have. Thoughts?
 
Last edited:

GrafKeks

General
98 Badges
Dec 15, 2009
1.992
1.812
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Arsenal of Democracy
  • Knights of Pen and Paper +1 Edition
  • Legio
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • King Arthur II
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • War of the Vikings
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Reapers Due
  • Knights of Pen and Paper 2
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Sons of Abraham
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Hearts of Iron III
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • For the Motherland
  • For The Glory
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Third Rome
  • Divine Wind
  • Europa Universalis III
  • Commander: Conquest of the Americas
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Victoria 2
  • Crusader Kings II: Way of Life
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Horse Lords
I am looking to either create a mod myself or if someone else knows how that would be fine. I want to create a mod that allows you to have more core planets based on the size of your empire EX: Per 1 planet gain 0.1 Core Cap.

I am looking at the n "Stellaris\common\defines\00_defines.lua" and I see

Code:
CORE_SECTOR_PLANET_CAP           = 5,   -- Too many planets in core sector will apply modifier inefficient_planet_management.
     SECTOR_CAP                 = 2,   -- Too many sectors will apply modifier inefficient_sector_management.
     SECTOR_CAP_INCR               = 0.25,   -- 0.25 means that for every four planets an extra sector can be created.
     SECTOR_SUPPORT_RESOURCE_AMOUNT       = 100,    -- How much resources each click will give the sector.
     SECTOR_REVOKE_PLANET_COST         = 25,   -- Influence cost for revoking a planet from a sector
     DELETE_SECTOR_COST             = 100,   -- Influence cost for deleting a sector

and in the "Stellaris\common\governments\00_governments.txt" you have

Code:
# Spiritualist Democracy
theocratic_republic = {
   potential = {
     hidden_trigger = { NOT = { is_country_type = fallen_empire } }
   }

   ethics = {
     OR = {
       has_ethic = "ethic_spiritualist"
       has_ethic = "ethic_fanatic_spiritualist"
     }
     NOT = { has_ethic = "ethic_collectivist" }
     NOT = { has_ethic = "ethic_fanatic_collectivist" }
   }
 
   modifier = {
     pop_ethic_shift = -0.1
     country_core_sector_planet_cap = 2
   }

So it should be possible to set up a script that allows you to change the amount based on the amount of worlds you have. Thoughts?

If u get it to work props would you mind sharing
 

AKjeldsen

Transnational Progressive
104 Badges
Oct 21, 2003
924
125
endlessimmensity.wordpress.com
  • Cities: Skylines
  • Majesty 2
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris: Necroids
  • Diplomacy
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Deus Vult
  • Hearts of Iron II: Armageddon
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
I am looking to either create a mod myself or if someone else knows how that would be fine. I want to create a mod that allows you to have more core planets based on the size of your empire EX: Per 1 planet gain 0.1 Core Cap.

The best way to do that is probably to call an event from on_colonized in /common/on_actions/00_on_actions.txt.
 

Vihar

Recruit
3 Badges
May 13, 2016
1
0
  • Crusader Kings II
  • Stellaris
  • BATTLETECH
First: Hi!
Second: I have no idea how to mod.
Third: I did this.

I made an event that triggers on colonisation and gives a static modifier to the planet. It does not work with core planets as you can see. Guess I need to refer to the owner of the planet somehow, not sure if thats possible from a modifier. Right now I just want a mod that gives me an extra core for some time (like 10 years) for each new colony, so I dont have to worry about sector ai doing sector ai things to my precious new colonies.
 

craftomega

Sergeant
50 Badges
Sep 5, 2012
87
80
  • Europa Universalis III
  • War of the Vikings
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Stellaris: Synthetic Dawn
  • Crusader Kings II
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • BATTLETECH
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Crusader Kings II: Reapers Due
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Leviathans Story Pack
  • The Showdown Effect
  • War of the Roses
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Sword of Islam
  • Stellaris: Megacorp
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
IIRCm a repeating tech which does this, "administrative efficiency" perhaps just change its frequency? by adding modifiers, etc.

That gave me an idea, I'm going to test out if I can increase the weight based on the amount of planets you have, and decrease it by the amount of core sectors you have.
 

black_imperator

Corporal
108 Badges
Mar 5, 2012
48
18
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Cities in Motion
  • Rome Gold
  • Semper Fi
  • Stellaris: Synthetic Dawn
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • Warlock 2: Wrath of the Nagas
  • Victoria: Revolutions
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Pillars of Eternity
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Reapers Due
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Crusader Kings II: Sword of Islam
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Magicka
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: El Dorado
  • Stellaris: Necroids
  • Crusader Kings II: Way of Life
  • Europa Universalis IV
First: Hi!
Second: I have no idea how to mod.
Third: I did this.

I made an event that triggers on colonisation and gives a static modifier to the planet. It does not work with core planets as you can see. Guess I need to refer to the owner of the planet somehow, not sure if thats possible from a modifier. Right now I just want a mod that gives me an extra core for some time (like 10 years) for each new colony, so I dont have to worry about sector ai doing sector ai things to my precious new colonies.


what you can do in your event is to switch the scope by using
Code:
OWNER = {


}

and then add your modifier in that scope to have it effect your empire