From: Cpt. B. <cpt...@te...> - 2003-12-28 06:09:20
|
Since everyone liked my suggestions, I've implemented them on my copy of the x-com tech tree, and included them in the dtd. As I was doing to the revisions, I had another thought that I put in as well, (it can be easily taken out if no one likes it): a 'mission' flag, currently under the "Cydonia or Bust" topic, so that the program will know that a special mission can be undertaken at the completion of a research topic. I thought that a flag would be better than hardcoding to look for a particular research topic. It also allows for more special missions beyond just the finale, in future versions. SO here's what the entry looks like: <!-- Cydonia or Bust --> <topic name="Cydonia or Bust" researchtime="300"> <prerequisite> <or> <topic name="Sectoid Commander" /> <topic name="Floater Commander" /> <topic name="Muton Commander" /> <topic name="Snakeman Commander" /> <topic name="Ethereal Commander" /> </or> </prerequisite> <researchbonus /> <grants> <mission name="Cydonia" /> </grants> <obsoletes> <topic name="Cydonia or Bust" /> </obsoletes> </topic> I'm also including the complete file, with dtd. I've never written a dtd before, so if someone could double check me, I'd appreciate it. This file only has sectoids, rather than all the aliens (since it's mostly just for demonstration. -the Captain -----Original Message----- From: xen...@li... [mailto:xen...@li...]On Behalf Of Vlad Judys Sent: December 26, 2003 10:05 PM To: xen...@li... Subject: RE: [Xenocide-programming] Tech Tree XML layout I agree on idea to provide links to xnet entries - that would be very useful to keep research and XNet DB in sync. As regarding the order, then I suggest to use a 'priority' attribute instead. A person tends to forget that some items are order sensitive when most of them aren't. I did some research on XML parsers and talking with RK about it as I type now. I strongly suggest we would choose an XML parser which would support validation of XML content against DTD (we could use an XML schemas, but those are a bit harder to create manually and I am not aware about good IDEs for that, which would not cost a fortune. But that does not mean there are not. :) ) So, that said, TinyXML and eXpat are out of choice since none of them is validating. Xerces is still in the game, but it is disliked because of it weight. So, position is still open. We need to look more. Any suggestions? Regards, Mamutas -----Original Message----- From: xen...@li... [mailto:xen...@li...] On Behalf Of Andrew Pokrovski Sent: Tuesday, December 23, 2003 10:39 PM To: xen...@li... Subject: RE: [Xenocide-programming] Tech Tree XML layout Good idea on all counts. An explicit reference to an X-Net entry will allow revealing of multiple entries. Order of priority on the entries within an XOR tag is also good, though some bookkeeping will have to be done in any case. I don't mind in principle being able to obsolete multiple researches, though I can't currently see any practical use for it (but eh, we might need it later :). Have you thought about trying to come up with an XSD so that we can validate XML data files? You can probably generate the XSD backwards from an XML entry using XMLspy or the Microsoft XML tool (I forget what it's called). Andrew _________________________________________________________________ Make your home warm and cozy this winter with tips from MSN House & Home. http://special.msn.com/home/warmhome.armx ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Xenocide-programming mailing list Xen...@li... https://lists.sourceforge.net/lists/listinfo/xenocide-programming --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.552 / Virus Database: 344 - Release Date: 2003/12/15 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.556 / Virus Database: 348 - Release Date: 12/26/2003 ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Xenocide-programming mailing list Xen...@li... https://lists.sourceforge.net/lists/listinfo/xenocide-programming |