Title: Where is planet creation code? Post by: Culture20 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. :) Title: Re: Where is planet creation code? Post by: Death 999 on May 16, 2003, 12:58:23 am Or just play and not know where the exotics are.
Title: Re: Where is planet creation code? Post by: Defender 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
Title: Re: Where is planet creation code? Post by: Culture20 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. :D This is really to answer such esoteric questions as "What are the general temperature extremes that can support a Jompin Jimminy?". Title: Re: Where is planet creation code? Post by: Death 999 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? Title: Re: Where is planet creation code? Post by: youBastrd 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. |