Pages: [1]
|
|
|
Author
|
Topic: Planet types (question about the source). (Read 2579 times)
|
Vee-R
*Many bubbles*
Offline
Gender:
Posts: 176
|
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
Gender:
Posts: 817
|
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
Gender:
Posts: 176
|
Okay, I think I found it.....
{ /* 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."
|
|
|
|
Niahak
Zebranky food
Offline
Gender:
Posts: 30
|
Well, I'm no programmer (though that's what I aspire to be after/during college ) 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]
|
|
|
|
|