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

Illanair

Space Duck
83 Badges
Feb 28, 2011
6.346
686
  • Victoria 2
  • Knights of Pen and Paper +1 Edition
  • Leviathan: Warships
  • Magicka
  • March of the Eagles
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Sword of the Stars
  • Sword of the Stars II
  • The Showdown Effect
  • Cities in Motion
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock 2: The Exiled
  • War of the Vikings
  • Stellaris - Path to Destruction bundle
  • Age of Wonders III
  • Stellaris
  • Stellaris: Galaxy Edition
  • A Game of Dwarves
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Republic
  • Heir to the Throne
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Cities: Skylines - Snowfall
  • Stellaris: Galaxy Edition
  • Magicka 2 - Signup Campaign
  • Warlock: Master of the Arcane
  • Pillars of Eternity
  • Victoria 2 Beta
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: Pre-order
  • 500k Club
  • War of the Roses
  • Victoria 3 Sign Up
  • Europa Universalis III Complete
  • Europa Universalis IV
Howdy Y'all.

I'm having some issues getting the game to adjust Habitat sizes - In particular the three starting habitats for the Void Dweller origin.
It seems that no matter what I tweak, the three habitats Void Dweller origin empires start out with remain the same size 6,4,4 and at this point I feel like I'm hitting a wall.

I've made a custom mod and copied the following files (shorthand for paths for brevity)
gov/civ/00_origins.txt
megastructures/habitats.txt
sol_inits/fed_init.txt

In the fed_init file there are two home system setups. The regular one for Void Dwellers, and the Sol variant.

Code:
moon = {
            name = "NAME_Earth_Habitat"
            class = pc_habitat
            orbit_angle = { min = 90 max = 270 }
            orbit_distance = 5
            size = 20
            starting_planet = yes
            flags = {
                void_dweller_habitat_1
                special_start_planet
                megastructure habitat
                research_habitat
            }
            deposit_blockers = none
        }

No matter if I change the size here around, or even comment out an entire habitat (to see if anything "sticks" and actually changes), I always end up with the three habitats with the size 6 capital. I'm beginning to suspect there's some kind of post-generation script running for this Origin to change values after the fact? Seems odd since they are specific to Void Dwellers to begin with, but I can't seem to find anywhere else this is being affected by.

I just want to be able to change the initial sizes (and number) of habitats for this Origin.
 
Void dweller adjustments (including setting the habitat sizes) happen in:
common\scripted_effects\01_start_of_game_effects.txt
Starting at line 1869.

Should run for the normal and the Sol variant.
 
There it is! What an ... interesting decision. Good to know I wasn't going crazy. Cheers!
 
I think the decision to set the VD habitat size in the scripted_effects has something to do with the fact that they are given advanced habitats (instead of the basic ones you first get via manual construction) - which is a *property* of a habitat and not a separate planet_class or whatever.

If you really want to mod the size of a habitat in a way that is the most compatible with stuff, I suggest you just make an event that adds a deposit for +districts to every habitat owned by a VD empire at the game start (district count is based on the planet size, but doesn't have to be equal to it).
 
It's the way they handle it that bugs me. They don't add size to the habitats, they define the size of them and slap the advanced hab tag on the capital. So regardless of what the Void (Sol) scripts say in Init, they're ignored and overwritten by the start_effects code.

Already sorted it by changing the start_effects sizes for the initial habitats and then matching the general habitat size to match the non-advanced one.
 
Yes - Less so that it has Void Dweller specific defines in sol_init...whose sole purpose is never to be used as they are overwritten.