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

Lucre

Second Lieutenant
87 Badges
Mar 19, 2012
144
79
  • Crusader Kings II: Monks and Mystics
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Knights of Honor
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Charlemagne
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Pre-order
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Tyranny: Archon Edition
  • Cities: Skylines - Snowfall
  • Stellaris
  • Majesty 2 Collection
  • Crusader Kings II
  • 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
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • 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
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Crusader Kings III
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Stellaris: Galaxy Edition
In static galaxies can you selectively pick, on a random basis, certain star systems to spawn?

For example, if I have these three systems:

system = { position = { x = -19 y = -62 } initializer = test_initializer }
system = { position = { x = -7 y = -60 } initializer = test_initializer }
system = { position = { x = 6 y = -56 } initializer = test_initializer }

is there a way to randomly select only one of them to spawn?

Lucre
 

Retalyx

Private
19 Badges
May 16, 2016
15
18
  • Magicka
  • Stellaris - Path to Destruction bundle
  • Prison Architect
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Apocalypse
  • Cities: Skylines - Green Cities
  • Age of Wonders
  • Surviving Mars
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines
  • The Showdown Effect
  • Stellaris
  • Cities: Skylines Deluxe Edition
You can set a galaxy as a spawn by adding

spawn_weight = {
base = 0
}

BUT this will not be random, the empires will always spawn in the same order, following the system ID order

So the first player will always spawn in the spawn system with the smallest ID, second player in the next smallest ID, and again, and again

I don't know how to make specific spawn location, with random spawning order :/
 

poopchute

Sergeant
25 Badges
Dec 19, 2013
89
6
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Cities in Motion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Leviathan: Warships
  • Magicka
  • Stellaris - Path to Destruction bundle
  • Imperator: Rome
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Surviving Mars
  • BATTLETECH
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Way of Life
  • Warlock: Master of the Arcane
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
Maybe try something like:
system = { position = { x = -19 y = -62 } initializer = {
random_list = {
33 = { test_initializer }
33 = { test_initializer2 }
34 = { test_initializer3 } } }

I think with this kind of random rather than a weighting it is a percentage, so should add up to 100.

It seems the human player 1 appears somewhere random no matter what, unless someone has figured a workaround. For the other species, you can create them inside the system initializers with an init_effect = {} event rather than letting the game spawn them in randomly.

Oh re-re-edit if you only want one of three systems in different locations to spawn, it would be something like:

system = {
random_list = {
33 = { position = { x = -19 y = -62} initializer = test1 }

etc.
 
Last edited:

Lucre

Second Lieutenant
87 Badges
Mar 19, 2012
144
79
  • Crusader Kings II: Monks and Mystics
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Knights of Honor
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Charlemagne
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Pre-order
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Tyranny: Archon Edition
  • Cities: Skylines - Snowfall
  • Stellaris
  • Majesty 2 Collection
  • Crusader Kings II
  • 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
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • 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
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Crusader Kings III
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Stellaris: Galaxy Edition
Poopchute, it is possible to get the player to spawn at a particular spot, you just need to set a flag in the prescripted_countries file, the map file and the system initializer.

However, your random list suggestion does not work, unfortunately. I have tried every way I could think of writing it, but none of them worked.

You can spawn other species in a variety of ways (Retalyx has a system for that in his galaxy generator, although it seems you have to play with a specific number of other empires for it to work best), but there doesn't seem to be any way to have other empires spawn at random places in a static galaxy. Hopefully that will be addressed soon, but it looks like it didn't make it into Asimov.
 

poopchute

Sergeant
25 Badges
Dec 19, 2013
89
6
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Cities in Motion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Leviathan: Warships
  • Magicka
  • Stellaris - Path to Destruction bundle
  • Imperator: Rome
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Surviving Mars
  • BATTLETECH
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Way of Life
  • Warlock: Master of the Arcane
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
Poopchute, it is possible to get the player to spawn at a particular spot, you just need to set a flag in the prescripted_countries file, the map file and the system initializer.

However, your random list suggestion does not work, unfortunately. I have tried every way I could think of writing it, but none of them worked.

You can spawn other species in a variety of ways (Retalyx has a system for that in his galaxy generator, although it seems you have to play with a specific number of other empires for it to work best), but there doesn't seem to be any way to have other empires spawn at random places in a static galaxy. Hopefully that will be addressed soon, but it looks like it didn't make it into Asimov.


Does it give any error, crash to desktop, or leave anything in error.log?

I think maybe you have to use the spawn_weight system if you are doing it in the mode where the engine just scans the file and makes stuff, the random_list probably only works inside events. Good to know someone figured out how to control player spawn location. It makes sense you would have to have a fixed number of empires to be able to control where they all spawn.
 

Anthropoid

Major Game Slut
58 Badges
Sep 30, 2008
3.014
1.076
  • Crusader Kings II
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Mount & Blade: Warband
  • Victoria 2: A House Divided
  • Supreme Ruler 2020
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Charlemagne
  • Arsenal of Democracy
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III Complete
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Deus Vult
  • East India Company Collection
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Parklife
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Rise of Prussia
  • Cities: Skylines Industries
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Check out my thread for my mod. I have succeeded in creating a custom solar system "Yggdrasil System," but only managed to get it to function by also creating a custom empire that corresponded to it, with it as its homeworld. It should still function as an alternate start for any faction the player chooses though. Feel free to get hold of that code and play with it.
 

poopchute

Sergeant
25 Badges
Dec 19, 2013
89
6
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Cities in Motion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Leviathan: Warships
  • Magicka
  • Stellaris - Path to Destruction bundle
  • Imperator: Rome
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Surviving Mars
  • BATTLETECH
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Way of Life
  • Warlock: Master of the Arcane
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
Check out my thread for my mod. I have succeeded in creating a custom solar system "Yggdrasil System," but only managed to get it to function by also creating a custom empire that corresponded to it, with it as its homeworld. It should still function as an alternate start for any faction the player chooses though. Feel free to get hold of that code and play with it.


Getting a custom system for a custom empire is one thing. What OP seems to want is to have a static galaxy, except with permutations. So sometimes some systems would be there, and sometimes other systems in different places would be there.

I think if you spawned in three systems in your map as normal, then in a startup event have it randomly pick one of those three and re-writes that system with the custom initializer, and then that initializer has an init_effect that creates the empire inside it.
 

Lucre

Second Lieutenant
87 Badges
Mar 19, 2012
144
79
  • Crusader Kings II: Monks and Mystics
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Knights of Honor
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Charlemagne
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Pre-order
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Tyranny: Archon Edition
  • Cities: Skylines - Snowfall
  • Stellaris
  • Majesty 2 Collection
  • Crusader Kings II
  • 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
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • 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
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Crusader Kings III
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Stellaris: Galaxy Edition
That's right poopchute, I can do a custom system for a custom empire. Unfortunately, I'm not competent to write events at present, so I was hoping to be able to avoid that.

Thanks for the suggestions.