• 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
PLEASE IGNORE THERE IS A STUPID ERROR. WILL REPORT FOR DELETING


I'm trying to set up a static galaxy with a minor amount of randomisation of position, purely to give a slightly different look to the galaxy each time. So I use this command (for example):

system = { position = { x = { min = -76 max = -74 } y = { min -78 max = -76 } } initializer = test_initializer }

Now I'd expect x to be picked between -74 and -76 and y to be picjed between -76 and -78. But what happens is that the system is all over the place.

What I've found is that the x axis position is always the same, i.e. there is no randomisation at all. And the y-axis position can be varied over a range of about 1-15.

Is there something wrong with my code, or have I misunderstood the way this works? If not, then there seems to be a bug with it.

Incidentally, note that I was not using any coordinate transform, and in any event my tests were used with the above system as system 0 and then I compared the relative position with subsequent fixed systems, which did maintain the correct orientation.

For completeness, the code I was testing with is set out below, in case anyone can spot a stupid error on my part in it:

Code:
static_galaxy_scenario = {
    name = "static_galaxy_test"
    priority = -1
    default = yes
 
    colonizable_planet_odds = 1.0
 
    num_empires = { min = 1 max = 9 }    #limits player customization
    num_empire_default = 1
    advanced_empire_default = 0
 
    core_radius = 200
 
    random_hyperlanes = yes
 
system = { position = { x = { min = -76 max = -74 } y = { min -78 max = -76 } } initializer = test_initializer }
system = { position = { x = -71 y = -89 } initializer = test_initializer }
system = { position = { x = -65 y = -101 } initializer = test_initializer }
system = { position = { x = -57 y = -112 } initializer = test_initializer }
system = { position = { x = -48 y = -123 } initializer = test_initializer }
system = { position = { x = -37 y = -133 } initializer = test_initializer }
system = { position = { x = -24 y = -142 } initializer = test_initializer }
system = { position = { x = -11 y = -150 } initializer = test_initializer }
system = { position = { x = 5   y = -156 } initializer = test_initializer }
system = { position = { x = 22  y = -161 } initializer = test_initializer }

}