• 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
 
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 :/
 
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:
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, 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.
 
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.
 
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.
 
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.