Pages: [1]
|
|
|
Author
|
Topic: Where is planet creation code? (Read 2378 times)
|
Culture20
Enlightened
Offline
Posts: 917
Thraddash Flower Child
|
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.
|
|
« Last Edit: May 16, 2003, 12:56:39 am by Culture20 »
|
Logged
|
|
|
|
Death 999
Global Moderator
Enlightened
Offline
Gender:
Posts: 3874
We did. You did. Yes we can. No.
|
Or just play and not know where the exotics are.
|
|
|
Logged
|
|
|
|
Defender
Enlightened
Offline
Gender:
Posts: 817
|
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
|
|
|
|
|
|
youBastrd
Frungy champion
Offline
Gender:
Posts: 67
It's real velour, just let yourself go.
|
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]
|
|
|
|
|