Page 1 of 2

I code the solar system generator and the things

Posted: Sun Jun 14, 2015 5:10 pm
by Shadowcatbot
Doing Java class shit. Started working on a solar system generator.
Rough shit right now:
Image

Eats a number then shits out text which gives you 1-2 suns, a various number of asteroid belts, dwarf planets, planetoids, and gas giants. So far I've been working in details for planets.

Tomorrow I'm gonna work on giving it an actual GUI with Jpanel and add more data points to generate.

Any suggestions to put in it?

Re: I code the solar system generator and the things

Posted: Sun Jun 14, 2015 5:39 pm
by Ivan2006
small local nebulas, brown dwarves, different types of stars, potentially even some forms of dead stars (neutron stars, or even singularities that just don't have the planets in their event horizon, et cetera)
if you're going into the scifi direction, maybe derelicts? ARK-like things, Dyson spheres, ancient ship graveyards?

Re: I code the solar system generator and the things

Posted: Sun Jun 14, 2015 5:45 pm
by Error
Not sure about the programming side, but maybe add some detail to what's generated. Planetary gravities, atmospheres, natural satellites, rings, etc.

Re: I code the solar system generator and the things

Posted: Sun Jun 14, 2015 5:50 pm
by Shadowcatbot
Overall plan is to have it generate data about pretty much everything that would be needed for details.
Original plan was to make an extensive sun generator which would give information such as size, type, basic chemical breakdown.

The only problem is finding said information to generate, coding in randoms is easy shit, finding what to code in isnt.

Re: I code the solar system generator and the things

Posted: Sun Jun 14, 2015 11:17 pm
by Iv121
It would be more interesting if you were to actually paint that generated solar system.

Re: I code the solar system generator and the things

Posted: Sun Jun 14, 2015 11:33 pm
by Vinyl
Iv121 wrote:It would be more interesting if you were to actually paint that generated solar system.
It'd just be a matter of generating all the information for each body to convert into the data needed for creating an image, or if you'd like, some sort of 'live' display where one can see the bodies move in real-time (or perhaps at a scaled time).

But geez, the guy just made the thing, and besides, we'll all probably forget about it in a day or so anyways.

Re: I code the solar system generator and the things

Posted: Mon Jun 15, 2015 8:42 am
by Shadowcatbot
Iv121 wrote:It would be more interesting if you were to actually paint that generated solar system.


Hm, I could have it generate a side view diagram of the solar system, with scale sizes and distance from the sun.

Re: I code the solar system generator and the things

Posted: Mon Jun 15, 2015 12:07 pm
by Iv121
Yup, for that you need to study the graphics methods though. Unlike generating random numbers and giving them names its a real test for your coding skills and will prob propel you forwards, its past "hello world" time for most of you here ...

Though STOP, on a second thought you mate are going back to "hello world" (well almost). Although your program is working the way you work with Random class is showing me that you do not understand java classes (or object-oriented classes in general). Read about the "new" keyword and object-oriented classes in general.

Re: I code the solar system generator and the things

Posted: Mon Jun 15, 2015 12:54 pm
by Vinyl
Iv121 wrote:its past "hello world" time for most of you here ...
Most of us here aren't even to "hello world"

Re: I code the solar system generator and the things

Posted: Mon Jun 15, 2015 1:56 pm
by Archduke Daynel, PhD
I can say "Hello world" with speaking and with writing, so I don't need to do it with programming.

Re: I code the solar system generator and the things

Posted: Mon Jun 15, 2015 2:55 pm
by Iv121
open your editor of choice and write:

System.out.println ("Hello world");

Thats it. If you can't write something like that you probably cannot write in general.

Re: I code the solar system generator and the things

Posted: Mon Jun 15, 2015 5:06 pm
by Vinyl
Iv121 wrote:your editor of choice
My what-itor?

Re: I code the solar system generator and the things

Posted: Mon Jun 15, 2015 7:46 pm
by Tau
This is a pretty cool project, I like it.
Vinyl wrote:
Iv121 wrote:your editor of choice
My what-itor?
Jesús Hernandez Christ, I don't even code and I know what that is. Learn to Unix, dude.

Re: I code the solar system generator and the things

Posted: Tue Jun 16, 2015 9:36 am
by Error
[WHOOSH]

Re: I code the solar system generator and the things

Posted: Tue Jun 16, 2015 9:45 am
by Iv121
would have been if it would have been funny .