Star/Planet Creation
Posted: Sun Dec 04, 2016 11:06 pm
I've built a quick little script to rapidly build out star systems according to the ruleset in the Galaxies document.
Couple of things I noticed.
1) Not sure how to call a system importance on the first star generated. There are certainly chances that the extra stars built will be much more attractive than the first star generated.
2) Also seems hard to make sure that the planets that generate will be according to the system importance guide.
3) Jump lanes looks like they are determined based on the first star's characteristics. Because each star is randomly spun up, is that how it should be done? I suppose we could compound the jump lane modifiers from the Luminosity Class Table for each star? (Note, the python script isn't doing jump lanes yet.)
For example, here's a sample output run from the Python script.
M:\python\sg>python initialstargeneration.py
How many star systems?" 10
Orion is a single star system located at (177,300,9) with 2 jumppoints.
Orion prime, a Class B Bright Blue Class IV Subgiant (Unimportant) with a planet.
outer: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
Andromeda is a trinary star system located at (188,256,8) with 1 jumppoints.
Andromeda gamma, a Class M Red Class V Main Sequence (Unimportant) with a planet.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
Andromeda beta, a Class M Red Class III Giant (Minor) with 5 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Dead) size: 4, BIO: 0, RAW: 1
middle: planet(Barren) size: 6, BIO: 1, RAW: 2
inner: planet(Garden) size: 8, BIO: 3, RAW: 4
Andromeda prime, a Class G Yellow Class V Main Sequence (Minor) with 6 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
inner: planet(Hothouse) size: 2, BIO: 0, RAW: 2
inner: planet(Hothouse) size: 2, BIO: 0, RAW: 2
Orion is a single star system located at (396,422,11) with 2 jumppoints.
Orion prime, a Class G Yellow Class V Main Sequence (Major) with 10 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Barren) size: 6, BIO: 1, RAW: 2
middle: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
inner: planet(Garden) size: 8, BIO: 3, RAW: 4
inner: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
inner: planet(Dead) size: 4, BIO: 0, RAW: 1
inner: planet(Dead) size: 4, BIO: 0, RAW: 1
Rana is a single star system located at (134,343,3) with 2 jumppoints.
Rana prime, a Class T Brown Class IV Subgiant (Unimportant) with 4 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Dead) size: 4, BIO: 0, RAW: 1
middle: planet(Barren) size: 6, BIO: 1, RAW: 2
inner: planet(Dead) size: 4, BIO: 0, RAW: 1
Malus is a single star system located at (400,13,4) with 2 jumppoints.
Malus prime, a Class M Red Class V Main Sequence (Minor) with 6 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Dead) size: 4, BIO: 0, RAW: 1
middle: planet(Dead) size: 4, BIO: 0, RAW: 1
inner: planet(Dead) size: 4, BIO: 0, RAW: 1
inner: planet(Hothouse) size: 2, BIO: 0, RAW: 2
Gallus is a binary star system located at (396,404,12) with 1 jumppoints.
Gallus beta, a Class K Orange Class I Supergiant (Minor) with 8 planets.
outer: planet(Dead) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Dead) size: 4, BIO: 0, RAW: 1
middle: planet(Barren) size: 6, BIO: 1, RAW: 2
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
inner: planet(Superterrestrial) size: 6, BIO: 1, RAW: 2
inner: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
Gallus prime, a Class K Orange Class V Main Sequence (Minor) with 6 planets.
outer: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Barren) size: 6, BIO: 1, RAW: 2
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
inner: planet(Garden) size: 8, BIO: 3, RAW: 4
inner: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
Centauri is a single star system located at (112,270,11) with 5 jumppoints.
Centauri prime, a Class D White Class VII White Dwarf (Unimportant) with 3 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
inner: planet(Hothouse) size: 2, BIO: 0, RAW: 2
Leo is a single star system located at (424,53,15) with 3 jumppoints.
Leo prime, a Class K Orange Class V Main Sequence (Minor) with 7 planets.
outer: planet(Dead) size: 4, BIO: 0, RAW: 1
outer: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Dead) size: 4, BIO: 0, RAW: 1
middle: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
inner: planet(Garden) size: 8, BIO: 3, RAW: 4
inner: planet(Superterrestrial) size: 6, BIO: 1, RAW: 2
Malus is a single star system located at (446,106,5) with 5 jumppoints.
Malus prime, a Class M Red Class VI Subdwarf (Unimportant) with a planet.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
Draconis is a single star system located at (70,224,3) with 2 jumppoints.
Draconis prime, a Class K Orange Class V Main Sequence (Unimportant) with 2 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
M:\python\sg>
Couple of things I noticed.
1) Not sure how to call a system importance on the first star generated. There are certainly chances that the extra stars built will be much more attractive than the first star generated.
2) Also seems hard to make sure that the planets that generate will be according to the system importance guide.
3) Jump lanes looks like they are determined based on the first star's characteristics. Because each star is randomly spun up, is that how it should be done? I suppose we could compound the jump lane modifiers from the Luminosity Class Table for each star? (Note, the python script isn't doing jump lanes yet.)
For example, here's a sample output run from the Python script.
M:\python\sg>python initialstargeneration.py
How many star systems?" 10
Orion is a single star system located at (177,300,9) with 2 jumppoints.
Orion prime, a Class B Bright Blue Class IV Subgiant (Unimportant) with a planet.
outer: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
Andromeda is a trinary star system located at (188,256,8) with 1 jumppoints.
Andromeda gamma, a Class M Red Class V Main Sequence (Unimportant) with a planet.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
Andromeda beta, a Class M Red Class III Giant (Minor) with 5 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Dead) size: 4, BIO: 0, RAW: 1
middle: planet(Barren) size: 6, BIO: 1, RAW: 2
inner: planet(Garden) size: 8, BIO: 3, RAW: 4
Andromeda prime, a Class G Yellow Class V Main Sequence (Minor) with 6 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
inner: planet(Hothouse) size: 2, BIO: 0, RAW: 2
inner: planet(Hothouse) size: 2, BIO: 0, RAW: 2
Orion is a single star system located at (396,422,11) with 2 jumppoints.
Orion prime, a Class G Yellow Class V Main Sequence (Major) with 10 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Barren) size: 6, BIO: 1, RAW: 2
middle: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
inner: planet(Garden) size: 8, BIO: 3, RAW: 4
inner: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
inner: planet(Dead) size: 4, BIO: 0, RAW: 1
inner: planet(Dead) size: 4, BIO: 0, RAW: 1
Rana is a single star system located at (134,343,3) with 2 jumppoints.
Rana prime, a Class T Brown Class IV Subgiant (Unimportant) with 4 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Dead) size: 4, BIO: 0, RAW: 1
middle: planet(Barren) size: 6, BIO: 1, RAW: 2
inner: planet(Dead) size: 4, BIO: 0, RAW: 1
Malus is a single star system located at (400,13,4) with 2 jumppoints.
Malus prime, a Class M Red Class V Main Sequence (Minor) with 6 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Dead) size: 4, BIO: 0, RAW: 1
middle: planet(Dead) size: 4, BIO: 0, RAW: 1
inner: planet(Dead) size: 4, BIO: 0, RAW: 1
inner: planet(Hothouse) size: 2, BIO: 0, RAW: 2
Gallus is a binary star system located at (396,404,12) with 1 jumppoints.
Gallus beta, a Class K Orange Class I Supergiant (Minor) with 8 planets.
outer: planet(Dead) size: 4, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
outer: planet(Dead) size: 4, BIO: 0, RAW: 1
middle: planet(Barren) size: 6, BIO: 1, RAW: 2
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
inner: planet(Superterrestrial) size: 6, BIO: 1, RAW: 2
inner: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
Gallus prime, a Class K Orange Class V Main Sequence (Minor) with 6 planets.
outer: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Barren) size: 6, BIO: 1, RAW: 2
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
inner: planet(Garden) size: 8, BIO: 3, RAW: 4
inner: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
Centauri is a single star system located at (112,270,11) with 5 jumppoints.
Centauri prime, a Class D White Class VII White Dwarf (Unimportant) with 3 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
inner: planet(Hothouse) size: 2, BIO: 0, RAW: 2
Leo is a single star system located at (424,53,15) with 3 jumppoints.
Leo prime, a Class K Orange Class V Main Sequence (Minor) with 7 planets.
outer: planet(Dead) size: 4, BIO: 0, RAW: 1
outer: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Dead) size: 4, BIO: 0, RAW: 1
middle: planet(Asteroid Belt) size: 2, BIO: 0, RAW: 1
inner: planet(Garden) size: 8, BIO: 3, RAW: 4
inner: planet(Superterrestrial) size: 6, BIO: 1, RAW: 2
Malus is a single star system located at (446,106,5) with 5 jumppoints.
Malus prime, a Class M Red Class VI Subdwarf (Unimportant) with a planet.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
Draconis is a single star system located at (70,224,3) with 2 jumppoints.
Draconis prime, a Class K Orange Class V Main Sequence (Unimportant) with 2 planets.
outer: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
middle: planet(Gas Giant) size: 4, BIO: 0, RAW: 1
M:\python\sg>