[CF-Devel] Adding New Stuff (again) - Requests and suggestions

crossfire-devel-admin at archives.real-time.com crossfire-devel-admin at archives.real-time.com
Sat Apr 26 03:09:38 CDT 2003


Mark W. wrote:

>
     
      > [...]
     
     >
     
      > Looking at the "what new stuff do you want to see in Crossfire" poll 
     
     >
     
      > at the website, it looks like there is quite a bit of interest in
     
     >
     
      > seeing new spells, skills, races, and monsters.
     
     
When I saw that poll I was about to vote for new maps and
quests, but that point turned out to be missing somehow. :-)

>
     
      > [...] it would be helpful if more of the "generic" functionality
     
     >
     
      > were to be split out of the source code and into configuration
     
     files/arches
>
     
      > [...]
     
     >
     
     
     >
     
      It depends.  I personally don't want a bunch of config files each with a
     
     >
     
      unique format.  However, I do plan to move more of the functionality
     
     >
     
      to arch's (spell archs as per a mail a few weeks ago).
     
     
We already have a lot of different file formats. What about including
a C XML parser to crossfire? That would allow to have one file format
and one parser for all the extra datafiles like for materials, races,
skills, or even treasurelists.
It would make the movement of data from config- to data-files
quite a lot easier, and serves portability.

Well, I'm saying this because I actually just done it for the
CFJavaEditor as I couldn't stand the growing number of small datafiles,
each with different syntax and parser.
Especially the big file for type definitions is now Xml (formerly
types.txt is now types.xml). That makes it not only better readable,
the parser is also validating which means it can tell exact line
numbers in case of an error. And it's so easy to add or change things.

I know Xml is sort of trendy at the moment and sometimes it gets
overrated. In our case though, I believe it's quite ideal:
As an open project our data should be consistent, readable,
portable and error handling is important - That's exactly
what Xml provides.


AndreasV

-- 
+++ GMX - Mail, Messaging & more  
     
     http://www.gmx.net
     
      +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list