Tech Tree in HTML Form

But it's more than just that

http://home.comcast.net/~alfonse215/package.zip
I have taken the GalCivII XML files and I have processed them with XML tools to generate hundreds of well-indexed HTML. Currently, the HTML has not just the techs, but the ship parts, starbase modules, and planetary improvements covered and hyperlinked. You can link from one tech to the tech that requires it or the one that it requires. There are some improvements to be made (you can't go from one module to the one that requires that module, but that's not a hard change), but you can link back and forth between the tech that provides a thing and the thing itself.

The HTML is stored in the 4 directories in the zip file. In each directory, among other things, is an index.html file. Openning this will give you a list of all the items of that particular type. If you open up the Technology list index, you'll get a special treat: not only do you get the regular tech index that you get on every other page, but you get a list of which technologies provide which attributes (and how much of those attributes). Want to get another +10 morale, but forgot what techs provide it? Well, now you know.

If you don't like the look of the files, I've used CSS fairly extensively, and I even have some marginal documentation on the subject (see the .txt files in the main directory), so feel free to change the look.

BTW, if these HTML files don't look right at all in your browser, it's probably because you're using Internet Explorer. Download FireFox or some other browser that has progressed into the modern era of HTML. And if I can get every GalCivII player to switch to FireFox (or non-IE browsers) by not supporting IE in my CSS and HTMLs, then I will have built my own little Temple of Rightousness.

What's next? Well, I want to improve a bit on my HTML tag generation for CSS purposes. And I want to fix some bugs, and perhaps sort the index a bit better. And I might add some more information, but that's less likely. And I'd like to improve upon the default CSS work. But that's about it. Mostly beautifying.


Note to the GalCivII team. Your file formats are not in the most easily parsable shape. I had to write different parsers for different kinds of files, but the actual differences were pretty superficial and unnecessary. And your TechTree file uses a namespace (unnamed at that. Bad developers!) which only makes it more difficult to use. Oh, and they aren't exactly the easiest XML formats to write by hand either. But I digress...
18,599 views 11 replies
Reply #1 Top
Bump!

This is very well done, similar to the JavaScout pages we all used as reference in GalCiv1.

Can Stardock get this stickied? Or maybe hosted on their servers?
Reply #2 Top
Thank you for your effort - you saved me many hours of resource dev time!
Reply #3 Top
*bows*
Reply #5 Top
Brashin: Why not just download Firefox or Opera? They do everything IE does, only more and better in less resources.

Peace & Luv, Liz
Reply #6 Top
Hey Alfonse... if you're looking for a place to host... Drop by https://forums.galciv2.com/?ForumID=345&AID=101764 and we can discuss it. Good job BTW.
Reply #7 Top
Great job Alfonse!
Reply #8 Top
As I was developing a research strategy using the files, I discovered something unfortunate.

There are a lot of things that are in the XML files that are not actually linked to actual technologies that exist. I hadn't actually expected such a thing. There are a lot of Galactic Achievements, for example, that don't actually exist in the game.

It's going to take a little while to alter the system to be able to detect when the tech for an improvement actually exists. Until then, it's a good idea to always check to see if the item you're looking at has a tech that actually exists in the tech tree before assuming that it is available.

Anyway to look it up using IE or am I SOL???


Not really. I did some checking recently using IE, and it rendering things mostly OK. There were some minor differences, but they were minor only. You can use IE to view these... if you like using a browser that old...
Reply #9 Top

There are a lot of things that are in the XML files that are not actually linked to actual technologies that exist. I hadn't actually expected such a thing. There are a lot of Galactic Achievements, for example, that don't actually exist in the game.



I've also seen some of this in the XML files. Can you post a list of the missing ones in the Bug Report forum, so that we can get Stardock to take look? Some of them seem like clear bugs/oversights to me - e.g. the Trade Good "Nano Recorders" does not appear in the game because it's linked to the tech "Sensors2". The actual tech is "Sensor2".
Reply #10 Top
I did notice that a couple of them looked suspiciously like bugs. Once I get the ability to preferrentially exclude the missing ones, it would be no problem to preferrentially include the missing ones to another file.
Reply #11 Top
New version available. Same location.

The buggy items are removed from the lists. You can find a bugs.html file in the directory for each of the 4 types of objects. If there's no file there, that's because there were no bugs (there are no buggy techs).

Also, there's an index.html file in the root of the zip that links to the 4 main index pages. Just to make things a bit easier.

Be advised: I'm not upgrading to 1.1 until it comes out of beta. So any 1.1 changes are NOT reflected in the new documents.