Re: [CODE] Just a thought

From: Christian Loth (chris@gidayu.max.uni-duisburg.de)
Date: 08/10/00


Greetings,

On Tue, Aug 08, 2000 at 02:30:38PM +0400, Andrey Fidrya wrote:
> I think using Sammy's pfiles for stock CircleMUD is a Very Bad idea.
> A lot better is to use Windows Registry style files so field order doesn't
> matter.

Luckily, this is .ini-style and not registry style.
Having
[LOCAL_MUD\LIBRARY\DATA\PLAYER\Reg_sz playerid = 12345]
in a pfile would be a horror,not? :)
Especially with dozens of values.

> This type of pfile is perfectly readable by human and can be safely
> modified in plain text editor.  I use registry-like pfile system in my MUD
> and it works great! I'm ready to rewrite my code for CircleMUD if you
> decide to replace binary pfiles with registry-like ascii ones.

[sample snipped]

Another solution might be using XML, as the standard which seems
to evolve as the x-platform standard for data storage. However,
writing a good XML-parser is not a trivial task.

- Chris

--
Christian Loth
Coder of 'Project Gidayu'
Computer Science Student, University of Dortmund
chris@gidayu.mud.de - http://gidayu.mud.de


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT