The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 10, 2024, 10:24:41 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Where is planet creation code?
« previous next »
Pages: [1] Print
Author Topic: Where is planet creation code?  (Read 2382 times)
Culture20
Enlightened
*****
Offline Offline

Posts: 917


Thraddash Flower Child


View Profile
Where is planet creation code?
« on: May 16, 2003, 12:52:49 am »

I started really looking at the code this week and was wondering where/when planets actually get generated (at start?  when entering orbit? when enter solar system?).  I'd like to print the data all out into a comma delimited file, but the generators (elements, lifeform, environment) seem too spread out right now.  I'm mainly looking in sc2/src/sc2code/planets/lander.c, sc2/src/sc2code/planets/surface.c, sc2/src/sc2code/planets/elemdata.h, and sc2/src/sc2code/planets/plangen.c.  Am I in the wrong place?  It would be great if there was one spot in the code where I new all of the planets have been generated (pristine), and that I have access to all their data - but I would settle for multiple locations and multiple files (then merging the data) if I just knew where to look.

The reason I'm asking is that I want to finally create a definitive database of SC2 planets - a real database that you can ask queries to, and get results from (to answer questions like "what is the most hostile planet with life?").  I'm also thinking of setting up an auto-compile mode that would change the random seed and populate the database with this new info.  Then you could let the computer compile UQM 3000 times over a couple days and then search through the results to find your favorite random-seed-galaxy. Smiley
« Last Edit: May 16, 2003, 12:56:39 am by Culture20 » Logged
Death 999
Global Moderator
Enlightened
*****
Offline Offline

Gender: Male
Posts: 3874


We did. You did. Yes we can. No.


View Profile
Re: Where is planet creation code?
« Reply #1 on: May 16, 2003, 12:58:23 am »

Or just play and not know where the exotics are.
Logged
Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 817



View Profile
Re: Where is planet creation code?
« Reply #2 on: May 16, 2003, 05:05:50 am »

i dont have any help to offer, but im behind you and you efforts 100%. its just the kind of thing i would be interested in " hostile planet with life". or finding specific planets with low earthquake and lightining numbers. this way you could plan out early voyages to gather minerals. ~DEFIANT
Logged
Culture20
Enlightened
*****
Offline Offline

Posts: 917


Thraddash Flower Child


View Profile
Re: Where is planet creation code?
« Reply #3 on: May 17, 2003, 04:26:32 am »

Quote
Or just play and not know where the exotics are.


There are much easier ways to cheat than to make a database. Cheesy
This is really to answer such esoteric questions as "What are the general temperature extremes that can support a Jompin Jimminy?".
Logged
Death 999
Global Moderator
Enlightened
*****
Offline Offline

Gender: Male
Posts: 3874


We did. You did. Yes we can. No.


View Profile
Re: Where is planet creation code?
« Reply #4 on: May 19, 2003, 02:12:50 am »

I was referring to your last comment,
Quote
I'm also thinking of setting up an auto-compile mode that would change the random seed and populate the database with this new info.  Then you could let the computer compile UQM 3000 times over a couple days and then search through the results to find your favorite random-seed-galaxy.


Of course, I guess you could change the seed ANYWAY... my comment is null. Shall we mutually delete these wastes of space?
« Last Edit: May 19, 2003, 02:14:09 am by Death_999 » Logged
youBastrd
Frungy champion
**
Offline Offline

Gender: Male
Posts: 67


It's real velour, just let yourself go.


View Profile WWW
Re: Where is planet creation code?
« Reply #5 on: June 10, 2003, 08:12:36 pm »

Hey culture, let me know if you get somewhere with this.  I might use it as a starting point for the editor.  I've talked with someone about this on aim... was it you?  

anyhow the approach I'd take is to gently butcher the uqm code to generate and dump to file a list of every planet and star, as well as each's parameters.  
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!