The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
September 21, 2020, 07:00:52 pm
Home Help Search Login Register
News: Paul & Fred have reached a settlement with Stardock!

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  General UQM Discussion (Moderator: Death 999)
| | |-+  SC2 Planet Info
« previous next »
Pages: [1] Print
Author Topic: SC2 Planet Info  (Read 1410 times)
Angelfish
Enlightened
*****
Offline Offline

Posts: 568



View Profile
SC2 Planet Info
« on: September 04, 2009, 01:02:48 am »

For those interested, I've created an XML file containing the SC2 universe and planet data, as well as the minerals on those planets. It was generated from some other data on these boards, which was a 'flat' textfile which was generated from the actual in-game data from UQM.
This data can be handy if you want to include solar systems from SC2 or the entire SC2 universe in a clone you're making Smiley.
This XML file can also be used for reference, just open it in your browser and it'll be generated in a spiffy way.

Click here to download: http://www.easy-share.com/1907721881/sc2planetinfo.zip
« Last Edit: September 11, 2009, 08:52:56 pm by Angelfish » Logged
Bigryan
Frungy champion
**
Offline Offline

Posts: 56



View Profile
Re: SC2 Planet Info
« Reply #1 on: September 10, 2009, 03:31:02 pm »

Took a quick look.  In general it's pretty nice.  It breaks down on some special cases like Earth.

Logged
Angelfish
Enlightened
*****
Offline Offline

Posts: 568



View Profile
Re: SC2 Planet Info
« Reply #2 on: September 11, 2009, 08:05:01 pm »

I guess it all depends on what resolution you use, and quite possibly what browser you use Smiley.
Anyway, it was just a quick example to show what data is in the file, but I have to say that the mineral and biological info, as well as the planet's statistics like weather class etc is missing in the layout, but it is in the xml file.
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: SC2 Planet Info
« Reply #3 on: September 11, 2009, 08:28:39 pm »

I don't see anything here. This appears to have two reasons:
  • SystemDatabase.xsl contains "<table bgcolor="#0000055" border="0">". Note the number of zeros in the bgcolor attribute. (Btw, why not put this in the .css file? And also the "bgcolor" attribute of the "body" element.)
  • SystemDatabase.xml refers to "systemdatabaselayout.css", but there's only the file "SystemDatabaseLayout.css" (note the capitals).

But otherwise, a useful table. And I applaud the use of XML and XSLT for this.

Btw, it would probably have been less work to generate the XML directly from the UQM source. See uqmdebug.[ch] and doc/devel/debug.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Angelfish
Enlightened
*****
Offline Offline

Posts: 568



View Profile
Re: SC2 Planet Info
« Reply #4 on: September 11, 2009, 08:55:26 pm »

I don't see anything here. This appears to have two reasons:
  • SystemDatabase.xsl contains "<table bgcolor="#0000055" border="0">". Note the number of zeros in the bgcolor attribute. (Btw, why not put this in the .css file? And also the "bgcolor" attribute of the "body" element.)
  • SystemDatabase.xml refers to "systemdatabaselayout.css", but there's only the file "SystemDatabaseLayout.css" (note the capitals).

But otherwise, a useful table. And I applaud the use of XML and XSLT for this.

Btw, it would probably have been less work to generate the XML directly from the UQM source. See uqmdebug.[ch] and doc/devel/debug.


Oh, you must be using a more picky browser or OS than I do Wink (windows and IE here Tongue)

Anyway, I've updated the link to a fixed version.
And this wasn't really much work for me, I just grepped the file around a bit to get the correct data.
Logged
CelticMinstrel
Enlightened
*****
Offline Offline

Posts: 522



View Profile
Re: SC2 Planet Info
« Reply #5 on: October 16, 2009, 04:45:40 pm »

Hm, interesting... this could be nice to know sometime... and I like the formatting.
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!