The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
October 12, 2024, 11:11:14 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
| |-+  General UQM Discussion (Moderator: Death 999)
| | |-+  Planet types (question about the source).
« previous next »
Pages: [1] Print
Author Topic: Planet types (question about the source).  (Read 2579 times)
Vee-R
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 176



View Profile
Planet types (question about the source).
« on: March 21, 2003, 11:54:54 pm »

By "planet types" I mean the general descriptive that is shown while in orbit ("Water World", "Metal World", "Shattered World", "Rainbow World", etc).
The planet type (as you've probably noticed) influences factors like what kind of minerals there are on the planet (and how much of them); the atmosphere (weather); the tectonics (earthquakes); the likelihood of biologicals; and sometimes also things like density and gravitation.  If I'm not mistaken, I've read somewhere that they are determined according to the planet type and randomized based on a fixed seed.
Since we have the full source code at our disposal, can anyone point me to the section in the source which details exactly HOW each planet type influences those factors?  I need this for something I am working on...
Since I'm hardly a programmer, and am not familiar with the source code, I can't expect to be able to find it myself... so thanks in advance.
Logged

"Space cannot be measured. It cannot be angered, it cannot be placated. It cannot be summed up. Space is there.
"Space is not large and it is not small. It does not live and it does not die. It does not offer truth and neither does it lie.
"Space is a remorseless, senseless, impersonal fact."
Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 817



View Profile
Re: Planet types (question about the source).
« Reply #1 on: March 22, 2003, 12:41:18 am »

a planet radomizer or even just an ore radomizer would be extremly nice. replay value would increase 10 fold. but some planets like rainbow worlds and shattred worlds, ect, that are story motivated could not be moved. if your working on such an idea, im behind you 100%. good luck! i mean it.=]~DEFIANT
« Last Edit: March 22, 2003, 12:42:03 am by DEFIANT » Logged
Vee-R
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 176



View Profile
Re: Planet types (question about the source).
« Reply #2 on: March 22, 2003, 03:46:38 am »

Naahhh... that's not what I'm working on.  It's a sort of "planet type guide" I thought about contributing to the PoNF perhaps.  However... your idea is definitely cool (and probably easy to implement, too; the necessary change could be as simple as changing the seed value for the randomizer... though again I'm hardly a programmer, so I have no idea really).  Grin
What I need is simply the section of the source code which would tell me what the program has in mind, exactly, for each kind of planet.
Logged

"Space cannot be measured. It cannot be angered, it cannot be placated. It cannot be summed up. Space is there.
"Space is not large and it is not small. It does not live and it does not die. It does not offer truth and neither does it lie.
"Space is a remorseless, senseless, impersonal fact."
Vee-R
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 176



View Profile
Re: Planet types (question about the source).
« Reply #3 on: March 22, 2003, 04:35:10 am »

Okay, I think I found it.....

Code:

{ /* OOLITE_WORLD */
           MAKE_BYTE (SMALL_ROCKY_WORLD + CRATERED_ALGO,
                       VIOLET_BODY), /* Color and type/size of planet */
           LOW_TECTONICS, /* Tectonics - Scaled with Earth at 82    */
           MAKE_BYTE (HIGH_DENSITY, HEAVY), /* Atmosphere and density */
           {
                 {HOLMIUM, MEDIUM_USEFUL},
                 {ERBIUM, MEDIUM_USEFUL},
                 {THULIUM, MEDIUM_USEFUL},
                 {YTTERBIUM, MEDIUM_USEFUL},
                 {LUTETIUM, MEDIUM_USEFUL},
                 {PALLADIUM, MEDIUM_USEFUL},
                 {SILVER, MEDIUM_USEFUL},
                 {IRIDIUM, MEDIUM_USEFUL},
           },
           OOLITE_COLOR_TAB,
           OOLITE_XLAT_TAB,
           230, 2, 200, 150,
     },


And it seems to be pretty clear, too... but, just in case I might be getting anything wrong here, I'd be happy if someone who does know would go over it and explain....
For instance, what does "CRATERED_ALGO" mean? (or TOPO_ALGO, which other planet types have instead). And what does MAKE_BYTE really do (in the context of the 4th row)?  And MEDIUM_USEFUL.... etc.
« Last Edit: March 22, 2003, 04:47:02 am by VileRancour » Logged

"Space cannot be measured. It cannot be angered, it cannot be placated. It cannot be summed up. Space is there.
"Space is not large and it is not small. It does not live and it does not die. It does not offer truth and neither does it lie.
"Space is a remorseless, senseless, impersonal fact."
Vee-R
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 176



View Profile
Re: Planet types (question about the source).
« Reply #4 on: March 22, 2003, 06:33:00 pm »

Come on people, I know you can help me out here... still haven't found where the possibility of lifeforms is determined.
Logged

"Space cannot be measured. It cannot be angered, it cannot be placated. It cannot be summed up. Space is there.
"Space is not large and it is not small. It does not live and it does not die. It does not offer truth and neither does it lie.
"Space is a remorseless, senseless, impersonal fact."
Niahak
Zebranky food
*
Offline Offline

Gender: Male
Posts: 30



View Profile
Re: Planet types (question about the source).
« Reply #5 on: March 23, 2003, 12:07:35 pm »

Well, I'm no programmer (though that's what I aspire to be after/during college  Grin) but I can give you a good idea of my perceptions of what this stuff means.
Cratered_Algo/Topo_Algo: Probably Algo->Algorithms, methods to determine what terrain looks like.
MAKE_BYTE probably just tells it to turn the values in the area to the right of it (High Density, Heavy) into the numeric values found in the scan screen in the PC version.
As for MEDIUM_USEFUL: My best guess, which is a bit of a stretch, is that there are three values for the semi-random amounts of minerals found on the planet - small, medium, large - which would indicate that this is for the amount (?) of mineral.
That, of course, is if they are not all considered the same type i.e. precious metals, base metals.  I'm not sure what type that would be, though, because I haven't played enough SC2.
I'm sure one of the coders and/or a more experienced programmer can do a better job of discerning what all this stuff means.
Oh, and I'm fairly sure I've never seen life on Oolite worlds...
I know I've seen em on, say, noble gas worlds, so try looking there for something like LIFE or BIO.
« Last Edit: March 23, 2003, 12:12:58 pm by Niahak » 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!