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:
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 }
}