Random Dungeons & Dragons Scripts

I love D&D. I've made a bunch of random generators that aren't quite covered with other websites.

Star System Generator

Star System Generator

PLEASE NOTE: The sheer amount of information here makes it impossible to format the system generator for small screens. Please use this on a medium or higher screen for best display results.

I've been involved in star system generation code for quite a while. There was one in particular that offered everything I needed: Aina's Star Generator.

Unfortunately Aina stopped updating the code over twenty years ago and can no longer be reached. He published his code base online back in the day so others could use and improve it.

Here we are in the here and now. I've updated his code to work with php and have made quite a number of modifications. The goal is to make a few tweaks here and there and test out the random generator in a gravity simulator like Universe Sandbox 2 to see just how viable these star systems are.

temperatures: planet temperatures are seriously out of whack. I've left them in until I can figure out the problem.

System Summary

orbit description mass radius ecc inc moons
primaryG1V : Yellow Dwarf (M-S)1.0231 sol2.033 sol
0.695 auHot House2.46745 earth7,893 km0.18 0
1.528 auRock0.01249 earth1,532 km0.16 3
5.349 auDesert0.39449 earth6,346 km0.18 4
7.489 auIce Ball1.39720 earth10,646 km0.05 0
14.228 auFailed Core6.26858 earth10,770 km0.13 17° 3
25.611 auIce Ball1.53716 earth9,270 km0.03 1

Full System Details

Star 1: G1 V Yellow Dwarf (M-S)

Mass 1.0231 sol
Diameter 2.033 sol
Temp 5,862°K (Lux: 1.0957 sol)
Age 9,209.451 Myears (MAX: 9,337.825 Myears)
Orbits min: 0.105 AU
inner max: 0.858 AU
life max: 1.256 AU
max: 40.924 AU

Planet 1 - Inner Zone - Hot House - Rocky
Orbit dist: 0.695 AU
period: 331.96 earth days
Ecc: 0.18
Inc: 8°
Body rad: 7893 km
mass: 2.467 earth
grav: 1.611 earth
rot: 5,536.447 hours
tilt: 19°
Temperatures avg: 1,101.897°C
day: 1,102.286°C
night: 220.379°C
Water Type: None - %
Atmosphere type: Massive
pres: 162.669 atm
comp: Carbon Dioxide
oxyg: 0
Mineral Resources Metal Ore: 74.3218
Radioactive Ore: 40.9218
Precious Metals: 16.9218
Raw Crystals: 37.7218
Precious Gems: 18.3218
Characteristics Tidal Locked



Planet 2 - Outer Zone - Rock - Rocky
Orbit dist: 1.528 AU
period: 77.07 earth days
Ecc: 0.16
Inc: 3°
Body rad: 1532 km
mass: 0.012 earth
grav: 0.216 earth
rot: 1,339.458 hours
tilt:
Temperatures avg: 826.852°C
day: 839.938°C
night: 785.510°C
Water Type: Rare Ice - 1%
Atmosphere type: Vacuum
pres: 0.000 atm
comp: None
oxyg: 0
Mineral Resources Metal Ore: 1
Radioactive Ore: 1
Precious Metals: 1
Raw Crystals: 1
Precious Gems: 1
Characteristics No Axial Tilt
Tidal Locked

Moons
Moon 0: core: Rocky
orbit: 183840 km
incline: 9°
ecc: 0.11
radius: 1169.5 km
mass: 0.0061741830713522 earth
tilt: 34°
Moon 1: core: Rocky
orbit: 45960 km
incline: 1°
ecc: 0.02
radius: 500 km
mass: 0.00053073963615751 earth
tilt: 19°
Moon 2: core: Icy
orbit: 137880 km
incline: 6°
ecc: 0.05
radius: 1300.5 km
mass: 0.0016980086154956 earth
tilt: 35°



Planet 3 - Outer Zone - Desert - Rocky
Orbit dist: 5.349 AU
period: 2,836.08 earth days
Ecc: 0.18
Inc: 2°
Body rad: 6345.5 km
mass: 0.394 earth
grav: 0.398 earth
rot: 47,300.005 hours
tilt:
Temperatures avg: 354.814°C
day: 358.311°C
night: 301.591°C
Water Type: Ice - 5%
Atmosphere type: Thin
pres: 0.205 atm
comp: Carbon Dioxide
oxyg: 0
Mineral Resources Metal Ore: 1
Radioactive Ore: 1
Precious Metals: 1
Raw Crystals: 1
Precious Gems: 1
Characteristics Tidal Locked

Moons
Moon 0: core: Icy
orbit: 126910 km
incline: 2°
ecc: 0.0
radius: 500 km
mass: 0.0002412452891625 earth
tilt: 22°
Moon 1: core: Icy
orbit: 76146 km
incline: 9°
ecc: 0.01
radius: 2893 km
mass: 0.056075786755056 earth
tilt: 35°
Moon 2: core: Icy
orbit: 444185 km
incline: 0°
ecc: 0.04
radius: 1945 km
mass: 0.0085203786588773 earth
tilt: 21°
Moon 3: core: Icy
orbit: 380730 km
incline: 11°
ecc: 0.04
radius: 500 km
mass: 0.00019299623133 earth
tilt: 46°



Planet 4 - Outer Zone - Ice Ball - Icy
Orbit dist: 7.489 AU
period: 8,841.41 earth days
Ecc: 0.05
Inc: 9°
Body rad: 10646 km
mass: 1.397 earth
grav: 0.501 earth
rot: 212,193.926 hours
tilt: 29°
Temperatures avg: 281.381°C
day: 284.337°C
night: 239.174°C
Water Type: Ice - 21%
Atmosphere type: Thin
pres: 0.233 atm
comp: Carbon Dioxide
oxyg: 0
Mineral Resources Metal Ore: 15.938
Radioactive Ore: 1
Precious Metals: 1
Raw Crystals: 1
Precious Gems: 1



Planet 5 - Outer Zone - Failed Core - Rocky
Orbit dist: 14.228 AU
period: 49,046.39 earth days
Ecc: 0.13
Inc: 17°
Body rad: 10770 km
mass: 6.269 earth
grav: 2.198 earth
rot: 906,273.057 hours
tilt: 14°
Temperatures avg: 209.472°C
day: 210.158°C
night: 104.736°C
Water Type: Ice Sheets - 32%
Atmosphere type: Dense
pres: 2.500 atm
comp: Methane
oxyg: 0
Mineral Resources Metal Ore: 63
Radioactive Ore: 50.4
Precious Metals: 21.4
Raw Crystals: 39.8
Precious Gems: 22
Characteristics Tidal Locked

Moons
Moon 0: core: Icy
orbit: 1292400 km
incline: 5°
ecc: 0.04
radius: 500 km
mass: 4.8249057832501E-5 earth
tilt: 32°
Moon 1: core: Icy
orbit: 430800 km
incline: 4°
ecc: 0.03
radius: 500 km
mass: 0.00019299623133 earth
tilt: 17°
Moon 2: core: Icy
orbit: 2369400 km
incline: 2°
ecc: 0.09
radius: 500 km
mass: 9.6498115665002E-5 earth
tilt: 41°



Planet 6 - Outer Zone - Ice Ball - Icy
Orbit dist: 25.611 AU
period: 58,652.97 earth days
Ecc: 0.03
Inc: 3°
Body rad: 9269.5 km
mass: 1.537 earth
grav: 0.727 earth
rot: 2.139 hours
tilt: 27°
Temperatures avg: 148.458°C
day: 150.057°C
night: 126.190°C
Water Type: Ice - 13%
Atmosphere type: Thin
pres: 0.335 atm
comp: Carbon Dioxide
oxyg: 0
Mineral Resources Metal Ore: 1
Radioactive Ore: 26.3475
Precious Metals: 1
Raw Crystals: 25.2695
Precious Gems: 1

Moons
Moon 0: core: Icy
orbit: 926950 km
incline: 7°
ecc: 0.01
radius: 500 km
mass: 0.0002412452891625 earth
tilt: 8°