View topic - Regarding the CSunParser object



All times are UTC + 1 hour


Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 08 Jun 2005, 01:52 
User avatar

Joined: 29 Apr 2005, 06:46
Can this object be modified to read XML files?

I think this engine would GREATLY benefit from a strong XML schema design.

For example, a build menu for a unit:
Code:
<menuentries buildmenu="ARMLAB">
   <menuentry menu="1" button="1" unitname="ARMFLEA"/>
   <menuentry menu="1" button="2" unitname="ARMCK"/>
   <menuentry menu="1" button="3" unitname="ARMBLAH"/>
</menuentries>


Even for the map SMD files...

Code:
<map>
   <settings>
      <description>En karta</description>
      <tidal>20</tidal>
      <gravity>100</gravity>
      <maxmetal>0.02</maxmetal>
      etc...
   </settings>
   <atmosphere>
      etc
   </atmosphere>
   <water>
      etc
   </water>
   <light>
      etc
   </light>
   <teams>
      <team id=0 startx="3500" startz="2500"/>
      <team id=1 startx="5200" startz="7000"/>
      etc...
   </teams>   
</map>


I would love if this were implimented. HPI 3 will use XML for all text-based configurations.

-Buggi


Top
 Offline Profile  
 
 Post subject:
PostPosted: 08 Jun 2005, 23:40 
User avatar

Joined: 16 Aug 2004, 03:36
Location: The Steward's Realm
While standards-compliant formats are nice, in this case, something like XML would be horrible overkill and would result in a lot of extra work for modders.

I actually wrote a DTD for TA unit FBI files a few months ago. It worked, I posted it, and then i realized that it was a huge expenditure of effort for something that only complicated an already-well working system.


Top
 Offline Profile  
 
 Post subject:
PostPosted: 09 Jun 2005, 09:50 
User avatar

Joined: 27 Feb 2005, 16:12
I agree there aren't that many of options for maps so without tags and a bit of comment it still is quite easy to get the entire picture, especially when we have a map loader/editor.


Top
 Offline Profile  
 
 Post subject:
PostPosted: 09 Jun 2005, 18:56 
User avatar

Joined: 29 Apr 2005, 06:46
See, that's the problem.

Right *now* it's an okay system.

What about when things get more complex? Then you're stuck.

-Buggi


Top
 Offline Profile  
 
 Post subject:
PostPosted: 09 Jun 2005, 20:26 
User avatar

Joined: 16 Aug 2004, 03:36
Location: The Steward's Realm
Comeon, its a map. Its not GOING to get more complex :P


Top
 Offline Profile  
 
 Post subject:
PostPosted: 10 Jun 2005, 16:51 
Kernel Panic Co-Developer
User avatar

Joined: 16 Nov 2004, 13:08
That xml exemple you posted is unreadable with bare eye. And the more complex the less easy it will be to read and write such overbloated xml files. I'd rather stick with current system where I can use notepad to read and write .tdf and .smd.


Top
 Offline Profile  
 
 Post subject:
PostPosted: 10 Jun 2005, 17:06 
User avatar

Joined: 29 Apr 2005, 06:46
Actually I can read it just fine.

And I typed it in note pad. :shock:

-Buggi


Top
 Offline Profile  
 
 Post subject:
PostPosted: 11 Jun 2005, 10:54 

Joined: 07 May 2005, 16:07
Dragon45 wrote:
Comeon, its a map. Its not GOING to get more complex :P

Wait till someone adds support for arbitary triggers and scripting.

Then the map format will get a tad more complex.


Top
 Offline Profile  
 
 Post subject:
PostPosted: 12 Jun 2005, 18:00 
User avatar

Joined: 16 Aug 2004, 03:36
Location: The Steward's Realm
That still doesn't mean you need useless structure in terms of tags. TA had script-triggers in the map fiels themselves as well, and it worked wonderfully well. XML is overcomplex for this purpose.

I actually did ask the SYs if they were going to use XML for anything unit/map related and they said the same thing i am now: The current system is readable, and it works.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.