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

Anieu

Clan Mother Managan
15 Badges
Feb 16, 2017
11
0
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Mount & Blade: Warband
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
Hello,

I am very new to modding, this will be my first mod ever created and while I think I am starting to grasp some of the most basic of the concept I am having trouble getting all of the functions I want from my first mod to cooperate.

I was hopeful that perhaps someone here with more experience could help provide me with some answers and pointers for modding, at least perhaps this mod to begin with.

I am trying to re-create the Elder Scrolls solar system for role-playing purposes, but only the planet "Nirn" and the correct star are showing up when I load the system start in to a new game.

If it makes sense in the .txt file, I want there to be numerous planets with a couple of them having their own named moons, but nothing is showing up. Is this only a formatting issue? I am somewhat new to coding but very new to creating my own mods.

Hopefully this is the correct place to ask these questions, if any help can be provided I'd love to learn.

Thanks!
 

Attachments

  • Mundus System.txt
    3,6 KB · Views: 0
Are you playing on an old version of Stellaris? It doesn't use tiles anymore, so I'd imagine that would be causing some issues if you're trying to use this initializer with the current version.

There are definitely some formatting issues bugs though. Julianos is missing a closing quotation mark after pc_gas_giant, and there are a couple closing brackets that come before moons and random_neighboring_tiles that they should be coming after.
 
Are you playing on an old version of Stellaris? It doesn't use tiles anymore, so I'd imagine that would be causing some issues if you're trying to use this initializer with the current version.

There are definitely some formatting issues bugs though. Julianos is missing a closing quotation mark after pc_gas_giant, and there are a couple closing brackets that come before moons and random_neighboring_tiles that they should be coming after.
I'm playing on Orion v3.6.1, what's the initializer ?

If you have made any similar mods, could you upload the .txt so I can try to study and recreate it but with my content?
 
I'm playing on Orion v3.6.1, what's the initializer ?

If you have made any similar mods, could you upload the .txt so I can try to study and recreate it but with my content?
The 'initializer' is a section of code that creates a single system. So "mundus_system" is an initializer that creates the Mundus system.


I'd suggest looking at the contents of C:\Program Files (x86)\Steam\steamapps\common\Stellaris\common\solar_system_initializers\sol_initializers.txt (path may be a little different if you're not on Windows).

Quickly going over the mundus initializer you provided to fix some bugs gives this:
Bash:
@base_moon_distance = 10 # Added: Standard
@jumps = 3 # Added: Standard

## Mundus System
mundus_system = {
    name = "Mundus"
    class = "sc_g"
    asteroid_belt = { # Replaced: asteroids_distance = 30
        type = rocky_asteroid_belt
        radius = 30
    }

    flags = { empire_home_system } # Added: Required for starting systems

    usage = custom_empire

    init_effect = { # Added: Required for starting systems
        every_neighbor_system = {
            set_star_flag = empire_cluster
            every_neighbor_system = {
                set_star_flag = empire_cluster
            }
        }

        generate_home_system_resources = yes
    }
    
    planet = {
        name = "Mundus"
        class = "pc_g_star"
        orbit_distance = 0
        orbit_angle = 1
        size = 20
        has_ring = no
    }
    
    planet = {
        name = "Nirn"
        class = "pc_continental" # Replaced: ideal_planet_class
        orbit_distance = 60
        orbit_angle = 120
        size = 20
        starting_planet = yes
        has_ring = no
        entity = "continental_planet_01_entity"   
        deposit_blockers = none # Replaced: tile_blockers = none
        modifiers = none

        init_effect = {
            generate_empire_home_planet = yes # Added
            prevent_anomaly = yes
        }

        # init_effect = { # Removed: Obsolete
            # random_tile = {
            #     limit = { has_blocker = no has_building = no num_adjacent_tiles > 3 }
            #     set_building = "building_capital_1"
            #     add_resource = {
            #         resource = food
            #         amount = 2
            #         replace = yes
            #     }   
            #     add_resource = {
            #         resource = minerals
            #         amount = 2
            #     }                   
            #     random_neighboring_tile = {
            #         limit = { has_blocker = no has_building = no }
            #         set_building = "building_hydroponics_farm_1"
            #         add_resource = {
            #             resource = food
            #             amount = 2
            #             replace = yes
            #         }                       
            #     }
            # # } # Removed: Misplaced bracket
            #     random_neighboring_tile = {
            #         limit = { has_blocker = no has_building = no }
            #         set_building = "building_power_plant_1"
            #         add_resource = {
            #             resource = energy
            #             amount = 2
            #             replace = yes
            #         }
            #     }
            #     random_neighboring_tile = {
            #         limit = { has_blocker = no has_building = no }
            #         set_building = "building_mining_network_1"
            #         add_resource = {
            #             resource = minerals
            #             amount = 2
            #             replace = yes
            #         }                       
            #     }
            # } # Added: Missing bracket
        # }

        change_orbit = @base_moon_distance # Added

        moon = {
            name = "Massar"
            class = "pc_barren"
            size = 5
            orbit_distance = 5 # Replaced: 18
            orbit_angle = 100
            has_ring = no
        }
        
        moon = {
            name = "Secunda"
            class = "pc_barren"
            size = 3
            orbit_distance = 5 # Replaced: 21
            orbit_angle = 120
            has_ring = no
        }
    }
    
    planet = {
        name = "Julianos"
        class = "pc_gas_giant" # Added missing "
        orbit_distance = 80 # Total distance: 140
        orbit_angle = 40
        size = 48 # Technically allowed, but will be larger than the sun.
        has_ring = no
        
        # } # Removed: Misplaced bracket
                
        moon = {
            name = "Stendarr"
            class = "pc_barren"
            size = 5
            orbit_distance = 18
            orbit_angle = 100
            has_ring = no
        } # Added: Missing bracket
    }
    
    planet = {
        name = "Arkay"
        class = "pc_barren"
        orbit_distance = 65 # Total distance: 205
        orbit_angle = 340
        size = 14
        has_ring = no
    }
    
    planet = {
        name = "Kynareth"
        class = "pc_molten"
        orbit_distance = 20 # Total distance: 225
        orbit_angle = 290
        size = 16
        has_ring = no
    }
    
    planet = {
        name = "Akatosh"
        class = "pc_frozen"
        orbit_distance = 60 # Total distance: 285
        orbit_angle = 210
        size = 19
        has_ring = no
    }
    
    planet = {
        name = "Zenithar"
        class = "pc_gas_giant"
        orbit_distance = 80 # Total distance: 365
        orbit_angle = 110
        size = 52 # Technically allowed, but will be larger than the sun.
        has_ring = no

        change_orbit = @base_moon_distance # Added

        moon = {
            name = "Mara"
            class = "pc_frozen"
            size = 7
            orbit_distance = 5 # Replaced: 18
            orbit_angle = 100
            has_ring = no
        }
        
        moon = {
            name = "Dibella"
            class = "pc_frozen"
            size = 3
            orbit_distance = 5 # Replaced: 20
            orbit_angle = 160
            has_ring = no
        }
    }

    neighbor_system = {
        trigger = { num_guaranteed_colonies >= 2 } # Fixed
        hyperlane_jumps = { min = 1 max = @jumps } # Replaced: distance = { min = 10 max = @distance }
        initializer = "neighbor_t1"
    }
    neighbor_system = {
        trigger = { num_guaranteed_colonies >= 2 } # Fixed
        hyperlane_jumps = { min = 1 max = @jumps } # Replaced: distance = { min = 10 max = @distance }
        initializer = "neighbor_t1_first_colony"
    }
}