Current project: Modified Stargen (a solar system generator)

Post requests, images, descriptions and reports about work in progress here.
Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 36
With us: 8 years 9 months
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #41by omega13a » 22.01.2014, 07:07

PlutonianEmpire wrote:Of course, with a mass of about 20 M_sun, stargen gave me brown dwarfs with radii in the negative range around Deneb. 8O

Well, I don't have any equations to calculate the radius of brown dwarfs so I wouldn't trust any radius it gives a brown dwarf. :wink:
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
PlutonianEmpire M
Posts: 1361
Joined: 09.09.2004
Age: 35
With us: 15 years 10 months
Location: MinneSNOWta

Re: Current project: Modified Stargen (a solar system genera

Post #42by PlutonianEmpire » 26.01.2014, 07:59

After taking a few days' break, I resumed trial and error with stargen 2014, and I've noticed that perfectly legitimate option selections, when generating systems from internal star databases, stargen way too often runs into problems; likely from a typo in a spectral type; but oddly, i take out one option that doesn't involve the star itself, it errors out on the star type. A here's a screenie to highlight my issue. This time, it's refusing to generate stack dumps.

(EDIT: It seems to be related to the -M option for moons; leaving it out causes the star type errors, it seems.)
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 36
With us: 8 years 9 months
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #43by omega13a » 26.01.2014, 23:50

That is very odd and I can't see how that is possible even though I'm able to recreate it... I was able to fix the problem (hopefully I'll have new binaries this evening) but I don't understand the cause of it. Getting that error message is like tossing a ball at the ground and it flying up and hitting your face without the ball ever hitting the ground. :?
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
PlutonianEmpire M
Posts: 1361
Joined: 09.09.2004
Age: 35
With us: 15 years 10 months
Location: MinneSNOWta

Re: Current project: Modified Stargen (a solar system genera

Post #44by PlutonianEmpire » 27.01.2014, 01:52

Did you check it for custom systems as well? Because after I posted, I attempted custom systems and got the same error when taking out the -M option, and neglected to mention it. :oops:
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
PlutonianEmpire M
Posts: 1361
Joined: 09.09.2004
Age: 35
With us: 15 years 10 months
Location: MinneSNOWta

Post #45by PlutonianEmpire » 14.08.2016, 20:32

I have no idea if Omega13a plans on returning to this forum or restarting this project, so I am posting the last version he sent me a few years ago. I named it stargen 2015.

https://drive.google.com/file/d/0B1C6RbksuFXSakxWTGNEYzRwbzA/view?usp=drivesdk

My file includes textures for the generated planets, but I highly recommend you replace them with your own. I'm still a novice with google drive, so hopefully the download link works. The mass premade stars incude Cham's older releases of his star databases for M33 and M31 and a couple other galaxies. As always please read BOTH readme's. :)

The download is in 7zip format, for better compression of the textures.
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 36
With us: 8 years 9 months
Location: California
Contact:

Post #46by omega13a » 24.08.2016, 03:50

I haven't ended this project. I just got a little sidetracked with making celestia add-ons...
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
Drumy9
Posts: 6
Joined: 25.12.2016
Age: 48
With us: 3 years 6 months
Location: Venezuela

Post #47by Drumy9 » 30.12.2016, 11:50

Hello. I find this program a few days ago and my interest was piqued. I had try a few times with this program, the original of Mr. Burrows and the modified of Mr. Omega and I have a few questions:
1.- The systems generated with the Mr. Burrows's program is differents of the systems generated with the Mr. Omega's program? When I try "./stargen -W1 -E -g -s1 -n1000 -i1" with the Mr. Burrows's program I obtain 38 systems, with the Mr. Omega's program 2013 I obtain 27 systems. The information of the planet's details in the systems that concur is different between them.
2.- When I try "./stargen -W1 -E -g -s1 -n1000 -i1" with the Mr. Omega's program 2014 with the last binary for linux I obtain this error: "./stargen: symbol lookup error: /usr/lib/libgsl.so.0: undefined symbol: cblas_dasum". I use debian jessie 8.6. I download ht last source for linux but that didn't compile.
3.- Can I set boundaries to the number of planets in a system?
Sorry disturb you :oops: but I have a project now of writing and this is important to me.
Thanks for your help and I sorry if my English isn't very good, my native language is Spanish.
I wish you a Happy New Year 2017! :wink:

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 36
With us: 8 years 9 months
Location: California
Contact:

Post #48by omega13a » 30.12.2016, 22:02

1. It has to do with how many times the random number generator is called by the program. One version has more calls then the other though I can't remember which one...
2. Try installing the GNU Scientific Library.
3. No.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
Drumy9
Posts: 6
Joined: 25.12.2016
Age: 48
With us: 3 years 6 months
Location: Venezuela

Post #49by Drumy9 » 31.12.2016, 13:54

Hello. Thanks for your fast answer.
I installed the GNU Scientific Library (gsl-bin, libgs10-dev and any with that description on synaptic because I don't know very much about programming), download again the last source and binaries but I can't work this :cry:
With the binaries I obtain this:
drumy@drumy-debian:~/Descargas/stargen_2014-bin$ ./stargen -W1 -E -g -s1 -n1000 -i1
./stargen: symbol lookup error: /usr/lib/libgsl.so.0: undefined symbol: cblas_dasum
When I try compile the source I obtain this:
drumy@drumy-debian:~/Descargas/stargen_2014/build$ cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
GSL_DEFINITIONS=
GSL_INCLUDE_DIRS=/usr/include
GSL_CFLAGS=-I/usr/include
-- Using GSL from
-- FindGSL: Found both GSL headers and library
-- Configuring done
-- Generating done
-- Build files have been written to: /home/drumy/Descargas/stargen_2014/build
drumy@drumy-debian:~/Descargas/stargen_2014/build$ make
Scanning dependencies of target stargen
[ 4%] Building CXX object CMakeFiles/stargen.dir/accrete.cpp.o
/home/drumy/Descargas/stargen_2014/accrete.cpp:5:35: fatal error: boost/concept_check.hpp: No existe el fichero o el directorio
#include <boost/concept_check.hpp>
^
compilation terminated.
CMakeFiles/stargen.dir/build.make:54: recipe for target 'CMakeFiles/stargen.dir/accrete.cpp.o' failed
make[2]: *** [CMakeFiles/stargen.dir/accrete.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/stargen.dir/all' failed
make[1]: *** [CMakeFiles/stargen.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
drumy@drumy-debian:~/Descargas/stargen_2014/build$
:cry: Help please
Happy New Year
Drumy9
Debian 9 Stretch - Linux 4.9.0-8-amd64 x86_64
ThinkPad SL400 Intel Core2Duo

Avatar
John Van Vliet
Posts: 2744
Joined: 28.08.2002
With us: 17 years 10 months

Post #50by John Van Vliet » 31.12.2016, 19:46

fairly self explanatory

Code: Select all

 boost/concept_check.hpp: No existe el fichero o el directorio
#include <boost/concept_check.hpp>


install boost

from the "-dev" naming and gcc 4.9
i am guessing this is a Debian derivative like Mint

Avatar
Drumy9
Posts: 6
Joined: 25.12.2016
Age: 48
With us: 3 years 6 months
Location: Venezuela

Post #51by Drumy9 » 01.01.2017, 16:37

Hello.
I install libboost-all-dev and I can compile and use the last stargen from Omega :smile: . Thanks a lot! :wink:
Note: My system is debian jessie:
"drumy@drumy-debian:~/Descargas/stargen_2014$ lsb_release -irc
Distributor ID: Debian
Release: 8.6
Codename: jessie"
Happy New Year 2017! :wink:
Drumy9
Debian 9 Stretch - Linux 4.9.0-8-amd64 x86_64
ThinkPad SL400 Intel Core2Duo

Avatar
PlutonianEmpire M
Posts: 1361
Joined: 09.09.2004
Age: 35
With us: 15 years 10 months
Location: MinneSNOWta

Post #52by PlutonianEmpire » 18.01.2020, 10:44

Apparently I'm a forgetful old fart now... 9_9

Does anyone remember *exactly* how to output stargen ssc directly to an .ssc file? It keeps flooding my command prompt with uselessly un-copypasta-able code instead >_<

Edit: Finally found it after extensive googling: viewtopic.php?p=129089#p129089

Type your desired parameters, then add -c > yoursystem.ssc

Turns out I was missing the > part
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
Tegmine
Posts: 183
Joined: 20.03.2011
With us: 9 years 3 months

Post #53by Tegmine » 29.05.2020, 22:28

I'm trying to build mine from source...I have not only this version, but the one Selden did in the thread you posted, PE. I HAVE NO IDEA WHAT TO DO!!! Even though I've been using Linux (which has now successfully ruined me for anything else), I'm am not very good at figuring out the command line unless each and every direction is written out clearly...Would love to have this up and running again. Many thanks in advance!

-M-

Avatar
selden
Developer
Posts: 10136
Joined: 04.09.2002
With us: 17 years 10 months
Location: NY, USA

Post #54by selden » 30.05.2020, 13:55

To build Stargen from scratch,
cd to the directory where you extracted Stargen's files.
Then type the single-word command

Code: Select all

make


If you want to rebuild Stargen after you've modified one or more of its source files, you normally only have to type the make command again. It'll recompile only the files you've modified and will re-use compiled files that are unchanged.

If you want to start from scratch, type the two commands

Code: Select all

make clean
make

make clean deletes all of the binary files created by the previous make command.

Background:

In the directory where you extracted the Stargen source (.c) files, among the files which were extracted should be one named

Code: Select all

Makefile

If that file doesn't exist, then you didn't extract everything you need. Software developers put into Makefile all of the commands which are needed to build their programs from source code.

The make command reads the Makefile which tells make to run the gcc compiler and linker to build the Stargen executable. Unlike more sophisticated Makefiles, Stargen's does not include an "install" option to copy Stargen to /usr/local or other system directory. Instead, it just leaves the Stargen executable in the directory which contains the Makefile and source files.

Stargen's Makefile provides several functions, including

Code: Select all

make clean
make zip
make sip
make rmark

Read the Makefile to find out what they do.

There are many tutorials available which describe how to use make and Makefile. Stargen's Makefile is relatively simple as such things go.
Selden

Avatar
Tegmine
Posts: 183
Joined: 20.03.2011
With us: 9 years 3 months

Post #55by Tegmine » 31.05.2020, 13:03

Ok, I was able to get Selden's version up & running (many thanks, sir!) I was hoping I could do the same with Omega13's version, but I don't see any of the C files in any of the folders, just .dll files. I've tried the directions to build his version for linux, but my terminal looks at me funny. Sorry to plague with questions!

-M-

Avatar
selden
Developer
Posts: 10136
Joined: 04.09.2002
With us: 17 years 10 months
Location: NY, USA

Post #56by selden » 31.05.2020, 14:05

Unfortunately, I don't think Omega13a ever made his source code publicly available. :(

Correction: a 2014 version is available on GitHub at https://github.com/omega13a/stargen

It looks like he did a significant "refactor" of the source code and used cmake to help build his variant. There are instructions included in the Zip download, although I haven't tried them yet.
Selden

Avatar
Tegmine
Posts: 183
Joined: 20.03.2011
With us: 9 years 3 months

Post #57by Tegmine » 31.05.2020, 14:59

Do I download each file separately, or is there a single package?

-M-

Added after 2 minutes 14 seconds:
Never mind...got it figgered out!


-M-

Avatar
selden
Developer
Posts: 10136
Joined: 04.09.2002
With us: 17 years 10 months
Location: NY, USA

Post #58by selden » 31.05.2020, 15:55

You need all of the files, and they need to be in appropriate directories relative to one another, so it's best to download them all in a Zip archive file which you then expand into some appropriate location on your computer.

More specifically:
Use your favorite browser to open the page https://github.com/omega13a/stargen
At the right side, just below the horizontal bold, black line, there's a green button which says "Clone or download". Click on it.
You'll get a popup menu which provides two options: "Open In Desktop" and "Download Zip". Select "Download Zip".

After the Zip has downloaded, move it to some appropriate directory, if it isn't already where you want it. Then unzip it. That should create the sub-directory stargen-master which should contain 157 files distributed among six directories. The file named README (in stargen-master) is a plain text file which contains brief instructions describing how to rebuild Omega13a's variant of stargen under Linux and Windows plus a description of Stargen's command-line options.

I haven't had a chance yet to try rebuilding it myself. I'll be doing it under Windows 10 (v2004) and Cygwin.

(I didn't notice your addendum saying you'd figured it out, but hopefully these instructions will help others who are in a similar situation.)

Added after 2 hours 13 minutes:
Omega13a's version of Stargen fails to build under Cygwin, generating fatal errors. I dunno if they happen under Linux. An example of one of those errors is

Code: Select all

/cygdrive/c/MyPrograms/Planet/StarGen/stargen-master (2014-2020)/stargen-master/utils.h:296:6: warning: redeclaration of ‘template<class T> void writeVector(std::vector<T>&, const string&)’ may not have default arguments [-fpermissive]
  296 | void writeVector(vector<T>& v, const string& separator = "  ")


I managed to get Stargen to build by modifying CMakeLists.txt. I inserted this line just before the "install" directives:

Code: Select all

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive ")


Stargen v2 now builds (with lots of errors and warnings) and runs, but its Celestia-compatible output has problems. In particular, I noticed that planet names don't include a leading double-quote. Fortunately, that's easily fixed by editing the .SSC file. There might be other problems, though.
Selden

Avatar
Tegmine
Posts: 183
Joined: 20.03.2011
With us: 9 years 3 months

Post #59by Tegmine » 31.05.2020, 19:59

I will try it and let you know...


-M-

Avatar
Tegmine
Posts: 183
Joined: 20.03.2011
With us: 9 years 3 months

Post #60by Tegmine » 01.06.2020, 13:43

I ended up downloading CMake's GUI (I'm lazy, on top of many other things.) CMake worked, HOWEVER, I have no idea if it actually made Omega's version of Stargen...it made a folder called "CMake Files", but I can find no trace of Stargen....most perplexing!


-M-


Return to “Add-on development”

Who is online