Author
|
Topic: UQM Hyperspace Map/Planetary Database Project (Read 23235 times)
|
Culture20
Enlightened
Offline
Posts: 917
Thraddash Flower Child
|
Maybe using vector graphics, but that would require people getting a plugin from adobe. Probably better to resize images like Spurk suggests (although the images will be very grainy on high res).
Flash of insight: You said you're using a perl script to generate an image... Is it possible to have each sphere of influence generated by the a script (it draws a basic gif of a circle, whose radius and color are determined by the URL parameters), and then use the perl script URL in the img tags?
|
|
|
Logged
|
|
|
|
Sage
*Many bubbles*
Offline
Gender:
Posts: 234
|
I ended up using Javascript to at least generate circles. I even worked in a way to have the circles be dynamically created to the proper size and coordinates. When I invoke the circle drawing functions for each one within the page itself, it works fine and dandy. However if I try to get the checkboxes in the other frame to call those functions, it wipes out the entire map to draw the circle. (See index.html, using the Arilou checkbox)
So basically I'm stuck... :/
|
|
|
Logged
|
|
|
|
Chrispy
Enlightened
Offline
Gender:
Posts: 917
Vlik Dweller
|
unless u fix it
|
|
|
Logged
|
|
|
|
Culture20
Enlightened
Offline
Posts: 917
Thraddash Flower Child
|
I seem to recall there being a way to force changes to a page using javascript. I think the trick was to create the page from another frame but not to close() it. Since it's technically still open, you can apply changes to the page without creating a new one. I don't know how modern browsers would like this hack though (I remember it from the days of Netscape 3.x/4.x).
|
|
|
Logged
|
|
|
|
J
Frungy champion
Offline
Posts: 90
Submit or die.
|
Excellent. Thanks sage, that list of star types and colours is just what I needed. Now hopefully I can get the SC2 map rendering in OpenGL
Should look fairly pretty with all the right colours in there.
|
|
|
Logged
|
|
|
|
Bwahaha
Zebranky food
Offline
Posts: 32
I love YaBB 1G - SP1!
|
I have a complete database of mineral, biological and planetary data available, generated from the UQM source. Let me know if you're interested.
|
|
|
Logged
|
|
|
|
|
Culture20
Enlightened
Offline
Posts: 917
Thraddash Flower Child
|
I'd be interested in seeing your changes to the source too. I tried doing something similar earlier, but quickly gave up after looking through several source files. I'm interested in making similar databases for alternate universes (different offsets for the star coordinates/ random seeds), and using the data from the "normal" universe to specify living conditions for the biologicals/creatures.
|
|
|
Logged
|
|
|
|
Bwahaha
Zebranky food
Offline
Posts: 32
I love YaBB 1G - SP1!
|
Culture20: There were no changes to the source as such, just that the source was used to generate the planetary database.
Michael: If you can point me to some other examples of your code documentation, I'll try and slap something together this weekend.
|
|
|
Logged
|
|
|
|
|
Sage
*Many bubbles*
Offline
Gender:
Posts: 234
|
Interested indeed. Please email or link me at sage@customc.net.
I noticed there's a protected folder on your site called "uqm". Would that happen to be the location of the planetary database?
|
|
|
Logged
|
|
|
|
|
Bwahaha
Zebranky food
Offline
Posts: 32
I love YaBB 1G - SP1!
|
The database is now available in XML form at:
http://uqm.chumbucket.org/uqm_plandata.zip
The XML is basically a raw dump of the in-memory objects that calculate and store the planetery data. As such, they're not easily human readable.
Good luck.
|
|
|
Logged
|
|
|
|
Bwahaha
Zebranky food
Offline
Posts: 32
I love YaBB 1G - SP1!
|
Oh yeah, exceptional worlds (Rainbow Worlds, Homeworlds, Artifact Worlds, Shattered Worlds, etc), will not contain the correct planetary data.
This should be relatively simple to implement to whomever intends taking ownership of the database from this point on.
|
|
|
Logged
|
|
|
|
Sage
*Many bubbles*
Offline
Gender:
Posts: 234
|
Some errors I've noticed in this sheet. I checked Vega 1's entry against what was in the game, and here is what I found.
Mathematical Errors: According to game, density = 1.32 (earth scale as I recall). This data says density = 105. If this is intended to be actual density, I could correct this if I knew what Earth's was. Techtonics is 2 in sheet, and 3 in game. Rotation period is 251 in sheet, and 1.60 in game. Axial Tilt was a negative (though otherwise correct) value on Vega 2.
Missing Data: All planets are listed as "BLUE_BODY" Length of day Planet type: Even having a number that references a table of types would be useful.
Unimportant Errors: DistanceFromSun and DistanceFromParent are the same value. Not a big deal. Density would be more correctly referred to as "Mass", but this is lkewise not a big deal, as I can label it as such when the time comes.
Most of the mathematical errors might be easy to fix with a script, which is how I intend to process this sheet anyhow. That is assuming I'm able to find the correlation between the correct values and the ones given in this sheet.
So, yeah...this is enough for me to be able to build a script to interpret and generate the planet data, at least, but I'll still need the missing data
|
|
|
Logged
|
|
|
|
|