Improving a Galaxy Generation algorithm

This topic is 3833 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hello there, I'm developing a 4x Space Opera game. For my galaxy generation algorithm I'm using an improved version of the "Accrete" one, which I'm sure some of you may have heard. It generates fairly believable planets. Rocky ones are placed in the inner system, while gas giants in the outer zones. There are howewer three problems with that. 1) It is not possibile to influence the number of planets generated. While in a game this would be required. As it is now it generates an average of 9 planets per system. Players may want to play with a smaller amount of planets. 2) It doesn't work very well to simulate the accretion of satellites. So as a solution of the first problem I was trying to try to estabilish whether some planets would capture other, smaller, planets as satellites. Simulating a complex gravitational system would be ephemeral I think.. So I'd just need some way to simulate whether a planet could capture another. Is there some kind of calculation that I could use? 3) The algorithm does not generate epistellar gas giants. If I understood correctly those are gas giants who migrate inward. Is there some way to estimate whether one could do so? Randomly? I was hoping for some pseudo-scientific calculations, so that my conscience would feel good :) From current results, on 500 planets, only 3-4 on average of "Terrestrial class" (there are also some of "desrtic" or "ocean" types that are not counted as "terran"). Surprisingly (or maybe not so), there are more planets that could sustain ammonia based lifeforms that terran ones. Venusian like worlds also seemed to be rarer. Only 20 on average, with half of them being "wet" greenhouse system with vast oceans. More than 200 of them were uninteresting rocky planets completely frozen over. Another hundred, barren planets a-la Mars. For completeness, I'm including a sample "interesting" system generated by the algorithm. The bodies are not sorted by distance.. They appear as they were generated. I have yet to refine the algorithm. Where it says "Non un numero reale", that's italian for "not a real number". It means that that celestial body is a Gas Giant (as you can see from the mass) and therefore certain calculations are not done. Legend: (Stars) A semimajor axis B semiminor E eccentricity M mass D density T Orbital Period L luminosity MBol bolometric magnitude Teff Effective temperature R Solar Radii (Planets) To - Orbital Period - Td Rotation Period G gravity D density AT Axial TIlt R radius in Km EV escape velocity Al albedo OZ "Orbital Zone" P pressure MWR molecular weight retained T surface temperature ExoT exospheric temperature WBP water boiling point mT minTemp MT max Temp NT night Temp DT day temp H hydrographic K cloud I ice - coverage in %

Yildun A - Yellow Dwarf
F7 V: Age:1,14 GY
A: 0,00 AU - B: 0,00 AU - E: 0,000
M: 1,28 D:686,71 Kg/Km3 T:0,000 Yrs
L: 2,22 MBol: 3,88
Teff: 6376 °K
R: 1,38

Yildun A 1
A:38,40 AU E:0,05 To:210,01 Yrs Td: 20,53 Days
M:4,77 EM G:0,54 EG D: 0,65 g/cc AT:44,00°
R:21906,00 Km EV:13,18 Km/sec Al:0,48 OZ:External
P:Non un numero reale mB EA MWR:0,00
T:Non un numero reale °K ExoT:1,92 °K WBP: Non un numero reale
mT:0,00 °K MT:0,00 °K NT:0,00 °K DT:0,00 °K
H:Non un numero reale% K:0,00% I:0,00%

Yildun A 2
A:53,19 AU E:0,14 To:342,36 Yrs Td: 29,64 Days
M:0,11 EM G:0,27 EG D: 2,24 g/cc AT:60,00°
R:4179,63 Km EV:4,68 Km/sec Al:0,07 OZ:External
P:0,02 mB EA MWR:0,03
T:46,27 °K ExoT:1,00 °K WBP: 207,12
mT:26,63 °K MT:65,53 °K NT:40,39 °K DT:52,24 °K
H:0,00% K:0,00% I:0,00%

Yildun A 2
Size: Medium Density: IcyCore
Gravity: Low AtmDensity: None
Temperature: Frozen
Composition:
H: 99,99
He: 0,01
Ne: 0,00

Yildun A 3
A:8,80 AU E:0,01 To:23,03 Yrs Td: 5,71 Days
M:1235,46 EM G:0,08 EG D: 1,87 g/cc AT:48,00°
R:97958,02 Km EV:100,28 Km/sec Al:0,47 OZ:Outer
P:Non un numero reale mB EA MWR:0,00
T:Non un numero reale °K ExoT:36,51 °K WBP: Non un numero reale
mT:0,00 °K MT:0,00 °K NT:0,00 °K DT:0,00 °K
H:Non un numero reale% K:0,00% I:0,00%

Yildun A 4
A:20,30 AU E:0,07 To:80,69 Yrs Td: 9,33 Days
M:163,12 EM G:0,14 EG D: 1,18 g/cc AT:37,00°
R:58183,22 Km EV:47,28 Km/sec Al:0,51 OZ:Outer
P:Non un numero reale mB EA MWR:0,00
T:Non un numero reale °K ExoT:6,87 °K WBP: Non un numero reale
mT:0,00 °K MT:0,00 °K NT:0,00 °K DT:0,00 °K
H:Non un numero reale% K:0,00% I:0,00%

Yildun A 5
A:2,20 AU E:0,08 To:2,88 Yrs Td: 7,34 Days
M:211,16 EM G:0,31 EG D: 2,13 g/cc AT:35,00°
R:52131,24 Km EV:56,83 Km/sec Al:0,48 OZ:Snowline
P:Non un numero reale mB EA MWR:0,00
T:Non un numero reale °K ExoT:584,19 °K WBP: Non un numero reale
mT:0,00 °K MT:0,00 °K NT:0,00 °K DT:0,00 °K
H:Non un numero reale% K:0,00% I:0,00%

Yildun A 6
A:3,84 AU E:0,08 To:6,64 Yrs Td: 11,10 Days
M:36,27 EM G:0,55 EG D: 1,48 g/cc AT:20,00°
R:32662,85 Km EV:29,75 Km/sec Al:0,48 OZ:Snowline
P:Non un numero reale mB EA MWR:0,00
T:Non un numero reale °K ExoT:192,17 °K WBP: Non un numero reale
mT:0,00 °K MT:0,00 °K NT:0,00 °K DT:0,00 °K
H:Non un numero reale% K:0,00% I:0,00%

Yildun A 7
A:6,03 AU E:0,01 To:13,07 Yrs Td: 17,43 Days
M:4,99 EM G:1,14 EG D: 1,03 g/cc AT:39,00°
R:19022,04 Km EV:14,47 Km/sec Al:0,48 OZ:Outer
P:Non un numero reale mB EA MWR:0,00
T:Non un numero reale °K ExoT:77,84 °K WBP: Non un numero reale
mT:0,00 °K MT:0,00 °K NT:0,00 °K DT:0,00 °K
H:Non un numero reale% K:0,00% I:0,00%

Yildun A 8
A:1,46 AU E:0,04 To:1,55 Yrs Td: 15,94 Days
M:0,79 EM G:0,92 EG D: 5,47 g/cc AT:24,00°
R:5916,15 Km EV:10,34 Km/sec Al:0,28 OZ:Snowline
P:521,87 mB EA MWR:7,46
T:291,65 °K ExoT:1331,91 °K WBP: 355,91
mT:260,05 °K MT:321,57 °K NT:285,11 °K DT:297,83 °K
H:0,54% K:0,51% I:0,02%

Yildun A 8
Climate: Terran
Size: Large Density: LargeIronCore
Gravity: Average AtmDensity: Standard
Temperature: Temperate
Composition:
N: 39,39
O: 60,47
F: 0,00
Ne: 0,00
Cl: 0,01
Ar: 0,10
Kr: 0,00
Xe: 0,00
NH3: 0,00
CO2: 0,01
O3: 0,00
CH4: 0,01

Yildun A 9
A:0,81 AU E:0,04 To:0,64 Yrs Td: 14,98 Days
M:1,13 EM G:1,04 EG D: 5,51 g/cc AT:26,00°
R:6641,06 Km EV:11,66 Km/sec Al:0,07 OZ:Snowline
P:166396,41 mB EA MWR:18,90
T:937,18 °K ExoT:4305,17 °K WBP: 599,41
mT:930,37 °K MT:939,46 °K NT:933,86 °K DT:936,02 °K
H:0,00% K:0,00% I:0,00%

Yildun A 9
Climate: Cytherean
Size: Large Density: LargeIronCore
Gravity: Average AtmDensity: Superdense
Temperature: Extreme
Composition:
F: 0,00
Ne: 0,08
Cl: 0,00
Ar: 87,35
Kr: 1,40
Xe: 0,16
CO2: 11,01
O3: 0,00

Yildun A 10
A:1,06 AU E:0,09 To:0,96 Yrs Td: 25,45 Days
M:0,05 EM G:0,36 EG D: 5,33 g/cc AT:19,00°
R:2379,93 Km EV:4,11 Km/sec Al:0,05 OZ:Snowline
P:0,00 mB EA MWR:89,56
T:326,77 °K ExoT:2536,61 °K WBP: 0,00
mT:257,05 °K MT:395,33 °K NT:289,88 °K DT:363,23 °K
H:0,00% K:0,00% I:0,00%

Yildun A 10
Climate: Arean
Size: Small Density: LargeIronCore
Gravity: Low AtmDensity: None
Temperature: VeryHot

Yildun A 11
A:0,34 AU E:0,06 To:0,18 Yrs Td: 20,23 Days
M:0,20 EM G:0,57 EG D: 5,37 g/cc AT:17,00°
R:3739,01 Km EV:6,48 Km/sec Al:0,08 OZ:Snowline
P:0,00 mB EA MWR:338,40
T:567,55 °K ExoT:23831,59 °K WBP: 0,00
mT:474,95 °K MT:655,45 °K NT:515,39 °K DT:617,38 °K
H:0,00% K:0,00% I:0,00%

Yildun A 11
Climate: Hephaestian
Size: Medium Density: LargeIronCore
Gravity: Low AtmDensity: None
Temperature: Extreme

Yildun A 12
A:0,68 AU E:0,01 To:0,50 Yrs Td: 21,35 Days
M:0,14 EM G:0,51 EG D: 5,36 g/cc AT:24,00°
R:3363,46 Km EV:5,82 Km/sec Al:0,07 OZ:Snowline
P:0,00 mB EA MWR:106,61
T:404,48 °K ExoT:6059,93 °K WBP: 0,00
mT:333,43 °K MT:473,87 °K NT:365,46 °K DT:442,77 °K
H:0,00% K:0,00% I:0,00%

Yildun A 12
Climate: Hephaestian
Size: Medium Density: LargeIronCore
Gravity: Low AtmDensity: None
Temperature: Extreme



• What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 11
• 15
• 11
• 11
• 9
• Forum Statistics

• Total Topics
634151
• Total Posts
3015825
×