• 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
55 Badges
Sep 5, 2012
87
80
  • War of the Vikings
  • Crusader Kings II
  • Magicka
  • Heir to the Throne
  • Stellaris: Synthetic Dawn
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Stellaris: Humanoids Species Pack
  • Shadowrun Returns
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • BATTLETECH
  • Crusader Kings III
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Crusader Kings II: Reapers Due
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Stellaris: Federations
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Prison Architect: Psych Ward
  • Tyranny: Gold Edition
  • Stellaris: Necroids
  • Island Bound
  • 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
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
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:
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
 
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.
 
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.
 
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.
 
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