ANOTHER UPDATE
For the past week I have been completely rewriting how the game handles the planets and solar systems, before it was all hard coded into the game and it was hard to work with but i have finished a script based solar system model which basically reads an .ssf file (
Solar
System
Format) and created a solar system based on that. Here is how an .ssf file looks:
0.1.4
------------
My Star
1329000
1
0
------------
My Planet
14880
12.0
0
58000000
0
-------
My Moon
3400
192200
------------
The number right at the top is the version number of the script, so the game doesnt throw out errors if i use a dated script that doesnt have all the parameters of the newer version. In this script it creates a star called "My Star" and make its radius 1329000 km (roughly the suns size). the 1 after is how many planets there will be, in our example, theres only one planet so that will be 1. The following 0 is to tell the game whether to add a nebula background or not. 0 means no nebula, 1-3 is any of the nebula backgrounds in the game.
Right after we create a planet called "My Planet" which has a radius of 14880. We have set it so that it tilts 12.0 degrees on its axis. The 0 after tells the game whether to give the planet rings. if its a 0, the game wont add any rings, if its a 1, then the game will create rings. Our planet will orbit "My Star" at 58000000km away. The last 1 is how many moons our planet will have. In our example, our planet has 1 moon but the game supports up to 20 moons.
Next we create our moon called "My Moon", it has a radius of 3400km and orbits "My Planet" from 192200km away.
Finally all our textures will be stored in a folder called "My Star" in the .png format and the planet textures will be named by order of distance from the sun. So in our example our planet texture will be "My Star\1.png". The moon texture is named by the planet it orbits and after, the order of distance from the parent planet, written like: "My Star\1-1.png"
This scripting system makes making new solar systems easy and painless and also give people the opportunity to make their own solar systems.
Im currently writing an editor to create these files using a visual editor which shows what your solar system will be in the game itself.
To finish off, here is what i use to create our solar system using my new scripting system:
0.1.4
------------
Sol
1329000
8
0
------------
Mercury
4880
2.0
0
58000000
0
------------
Venus
12100
177.4
0
108000000
0
------------
Earth
12800
23.5
0
149210000
1
------
Luna
3474
192200
------------
Mars
6450
25.2
0
228000000
0
------------
Jupiter
143000
3.1
0
778000000
4
------
Io
3642
211000
------
Europa
3130
335500
------
Ganymede
5268
535000
------
Callisto
4806
941500
------------
Saturn
121000
26.7
1
1430000000
1
------
Titan
5150
611000
------------
Uranus
52000
97.9
1
2870000000
0
------------
Neptune
49400
29.6
0
4520000000
0
------------
and some random screenshots:
Jupiter and Io
The Earth and the Moon
Saturn and its rings, can you find titan?