Universe Generator

Home of discussions about Ultra Starfire (5th edition) and its predecessor Galactic Starfire (4th edition).

Moderators: SDS Members, SDS Owner

Forum rules
1. Nothing obscene.
2. No advertising or spamming.
3. No personal information. Mostly aimed at the posting of OTHER people's information.
4. No flame wars. We encourage debate, but it becomes a flame when insults fly and tempers flare.

Try to stick with the forum's topic. Threads that belong to another forum will be moved to that forum.

Universe Generator

Postby Elminster on Wed 26 Jan 2011 06:28

At least I can make some propaganda for my Universe Generator. :D

It is a little tool to generate a whole Universe with various options, including connecting Warppoints and creating NPRs.

Actual Version: 1.1.0

Version: 1.1.0
- Fixed the Statistics
- Fixed reported bugs
- Added option for different 'Orbital Radius'-determination
- Rearranged output files:
--+ NPRs got their own file, planets have an asterisk if NPR present
--+ Unnecessary informations removed
- NPRs racial stats have an asterisk if active
- System bodys no longer have percentages for richness (Unusual Lifeform compatibility)
- All system bodys have a HI (Unusual Lifeform compatibility)


You can find it at the Downloads Page.
Last edited by Elminster on Tue 15 Mar 2011 00:59, edited 1 time in total.
In memory of Gary Gygax
In memory of Leonard Nimoy
In memory of Christopher Lee

In memory of Albert Einstein
E = MC^2 + 1d10
User avatar
Elminster
Fleet Admiral
Fleet Admiral
 
Posts: 1972
Joined: Tue 22 Jun 2010 00:54
Location: Ganderkesee, Germany

Re: Universe Generator

Postby PracticalM on Wed 26 Jan 2011 12:41

I was hoping the description would talk about which language it's in, what format it outputs to, which operating systems.

I use a Perl program to create stars, wp, nebulas, but do the planetary generation on demand with an excel sheet. My program also creates a file that you can use to create a diagram map linking all the stars on their WPs. (This seems to still have bugs and for even small universes (400 systems) creates an unholy mess of lines and circles.)

I think the next time I move to a new generator program, its going to do it in a database but I'm trying to decide if I want to spend the effort. That there is an open office database program will make that easier. Or do it in mysql.
--
Jeffrey Kessler
PracticalM
Vice Admiral
Vice Admiral
 
Posts: 728
Joined: Wed 15 Jul 2009 10:27
Location: Long Beach, CA

Re: Universe Generator

Postby Elminster on Wed 26 Jan 2011 14:19

PracticalM wrote:I was hoping the description would talk about which language it's in, what format it outputs to, which operating systems.

It's in C# .NET 4.0.
The output is purely text, but this could change in future versions.
At the moment it is only Windows. I have no Linux machine to test it with Wine or something similar. Every OS or Emulator or VM which can use .NET 4.0 should be able to run it. As soon as the .NET is released for Linux (they are working on it) it should run there, too.

My program also creates a file that you can use to create a diagram map linking all the stars on their WPs. (This seems to still have bugs and for even small universes (400 systems) creates an unholy mess of lines and circles.)

Yeah, this is one point on my todo-list, too. There are some tools available, which are able to draw a map out of special XML-Files.

I use a Perl program to create stars, wp, nebulas...

I'm curious how you managed to link the WPs. Maybe I can have a look at the code? :)

If there are open questions left, let me know. :D
In memory of Gary Gygax
In memory of Leonard Nimoy
In memory of Christopher Lee

In memory of Albert Einstein
E = MC^2 + 1d10
User avatar
Elminster
Fleet Admiral
Fleet Admiral
 
Posts: 1972
Joined: Tue 22 Jun 2010 00:54
Location: Ganderkesee, Germany

Re: Universe Generator

Postby PracticalM on Wed 26 Jan 2011 15:34

Interesting, after a bit of discovery I found that Open Office base may make the creating a database version of system generation a lot easier and then tie into the spreadsheets I've been using for turns easier. Hm. Something to toss on the huge pile of things I'd really like to do some day.
--
Jeffrey Kessler
PracticalM
Vice Admiral
Vice Admiral
 
Posts: 728
Joined: Wed 15 Jul 2009 10:27
Location: Long Beach, CA

Re: Universe Generator

Postby krenshala on Wed 26 Jan 2011 18:20

Elminster wrote:At least I can make some propaganda for my Universe Generator. :D

It is a little tool to generate a whole Universe with various options, including connecting Warppoints and creating NPRs.

Actual Version: 1.0.0

You can find it at the Downloads Page.

Nice. Its good to see you've gotten it to the point where you consider it worthy of the version 1 designation. :D Out of curiosity, how long does it take to generate 1000 systems, with WP links?

My first system generator was in Perl as well, Jeff. I've moved to PHP and a MySQL database since I've written myself a set of PHP webpages for viewing the data and command-line scripts for generating systems, races and updating PU/income at the start of a new turn. It works well, but there are a lot of things I want to add/improve still on mine.
-- krenshala
None survive the harvest!

Yeah, I'm finally back (again)! Sometimes, life (and 9yo son's) don't leave you time to play SF and earn a paycheck. :/

No, really! Matt actually made me an admin here!
krenshala
SDS Member
SDS Member
 
Posts: 2500
Joined: Thu 02 Jul 2009 17:13
Location: Austin TX, NorAm, Sol III

Re: Universe Generator

Postby Elminster on Thu 27 Jan 2011 00:59

krenshala wrote:Nice. Its good to see you've gotten it to the point where you consider it worthy of the version 1 designation. :D

Yeah, I think it's clean from bugs, but who knows? ;)
Only the damn statistics aren't correct. There are some glitches, but they give a good summary.

Out of curiosity, how long does it take to generate 1000 systems, with WP links?

With ALL options enabled (time consuming WP links, NPR generation) ca. 4 seconds on a Core2 Duo 2.66 GHz.
In memory of Gary Gygax
In memory of Leonard Nimoy
In memory of Christopher Lee

In memory of Albert Einstein
E = MC^2 + 1d10
User avatar
Elminster
Fleet Admiral
Fleet Admiral
 
Posts: 1972
Joined: Tue 22 Jun 2010 00:54
Location: Ganderkesee, Germany

Re: Universe Generator

Postby Elminster on Thu 27 Jan 2011 12:12

Elminster wrote:With ALL options enabled (time consuming WP links, NPR generation) ca. 4 seconds on a Core2 Duo 2.66 GHz.

I have to correct me. I answered this out of my memory, but now I have run a test:

1.000 Systems
Time consumed (seconds) : 0,716

10.000 Systems:
Time consumed (seconds) : 8,026

So there is a (nearly) linear progression.
In memory of Gary Gygax
In memory of Leonard Nimoy
In memory of Christopher Lee

In memory of Albert Einstein
E = MC^2 + 1d10
User avatar
Elminster
Fleet Admiral
Fleet Admiral
 
Posts: 1972
Joined: Tue 22 Jun 2010 00:54
Location: Ganderkesee, Germany

Re: Universe Generator

Postby krenshala on Thu 27 Jan 2011 18:02

I'm going to guess that 100.000 systems would take about 100 seconds, based on that.
The joys of WP link management during setup. :roll:
-- krenshala
None survive the harvest!

Yeah, I'm finally back (again)! Sometimes, life (and 9yo son's) don't leave you time to play SF and earn a paycheck. :/

No, really! Matt actually made me an admin here!
krenshala
SDS Member
SDS Member
 
Posts: 2500
Joined: Thu 02 Jul 2009 17:13
Location: Austin TX, NorAm, Sol III

Re: Universe Generator

Postby Elminster on Fri 28 Jan 2011 00:56

krenshala wrote:I'm going to guess that 100.000 systems...

How long do you expect to run your campaign? :lol:

...would take about 100 seconds, based on that.
The joys of WP link management during setup. :roll:

Yep, exactly that.
In memory of Gary Gygax
In memory of Leonard Nimoy
In memory of Christopher Lee

In memory of Albert Einstein
E = MC^2 + 1d10
User avatar
Elminster
Fleet Admiral
Fleet Admiral
 
Posts: 1972
Joined: Tue 22 Jun 2010 00:54
Location: Ganderkesee, Germany

Re: Universe Generator

Postby Starfire on Fri 28 Jan 2011 07:52

While you guys are going nuts on this, I have a research project for you. (Larry, you have other things to do...so maybe Elminster would tackle this....)

I need a throw away galaxy generated.
I prefer 1 million systems though 100,000 should be ok.

I need the following stats in a nice Text file (comma delimited for paste to Excel would be nice) in a table.
The key here is the Excel output is what I need

For each type of system body (planets, moons, ast belts, HGT, and so on)
---Planets -- I, O2, O3, T, ST, V, G1, G2, G3
---Moons -- O1, O2, O3, mT
Unusual Life Forms -- HH0.06 Unusual Life Forms
---Terran, Super Terran, Vacuum, Gaseous, Ice life, Venusian, Thermal
---The habitability tables will be needed and it would be nice to be able to edit them in a database for rerunning this.
For each Type of system body and for each life type (as appropriate)
---Number of those in the galaxy [both total and by category of richness (VP, P, N, R, VR)]
---Quantity of PU they can hold at EL 5 an EL 10 (this should be the same for each life type)
---PU by richness (can be calculated in excel)
Need number of systems with a habitable planet for each life type
Need average number of habitable planets for each life type by system with any habitiables.
Need average number of habitable planets for each life type by galaxy as a whole.

Programing notes
Gas Giants are to be separated by Mass (G1 is mass 1, G2 is mass 2, G3 is mass 3)
Asteroid Belts are to be separated into
---HGT (of course)
---Hot Belts (In the Tidelock Zone) Note: Their may not be any of these generated but need to check
---Cold Belts (In the Ice Zone)
---normal belts (not hot or cold)
O1 planets are now I planets and need O1 moons separated
Also, we now have O3 planets and moons.
Th I think was the designator for Terran Habitable Moon mT
And yes, all nebulas and nebula affects need generated and applied before counting.


Example of one of the old tables (new tables will be bigger and more detailed).
Planets with x richness
planet total VP P N R VR Total
Ast 7274 0 0 0 7274 0 4,452,300 PU
G1 6021 2,408,400 PU
G2 12042 2391 4879 9617 4714 2482 4,816,800
G3 6021 2,408,400
HGT 18 0 0 0 18 0 32,100
I 21357 0 0 4255 4168 12934 3,865,617
O1 6364 0 0 1250 1285 3829 381,840
O1m 54747 0 0 10700 10863 33184 1,094,940
O2 10537 0 0 4211 2116 4210 1,896,660
O2m 97616 0 0 39003 19525 39088 5,856,960
ST 2389 248 465 913 512 251 2,508,450
T 4631 484 913 1827 920 487 12,272,150
Th 761 0 0 300 158 303 799,050
V 1144 119 229 472 218 106 1,144,000
230,922 43,937,667
Nerf rock, paper is fine. signed:Scissors.
User avatar
Starfire
Marvin Lamb
Marvin Lamb
 
Posts: 616
Joined: Tue 30 Jun 2009 19:59

Next

Return to Ultra Starfire

Who is online

Users browsing this forum: No registered users and 5 guests