Some Questions about Storing Information and Efficiency

From: Mathew Earle Reuther (graymere@zipcon.net)
Date: 07/09/02


Ok all, I've got some things I need to add to my mud but am not sure how I
should go about doing them.  Help me out with finding an efficient way to
handle things please!

First off, I need to store potentially 1000+ separate pieces of yes/no
info per character.  (I have ascii pfiles, btw.)  Would it be best to
store the pieces of info in the char files, or should I create a new file
which has the pieces of info (rnums, the info will be attatched to rooms
and doing actions in the rooms will cause the character to need the fact
that they've completed the action flipped on) stored inside along with
space to record the idnum of the character?

I'm not too handy with parsing, having only just added a field to my
pfiles yesterday!  (Successfully, mind you, now I just need to figure out
how to make a new con state work in nanny so i can set it's value!)  I was
thinking maybe a file format like this might work?

3011
1 2 34 586 (etc..)
#
$

The first number being the rnum, the rest being people (idnum) who have
done the required task to flip the switch for the room.

Otherwise I could add the info to the pfile, but I don't know a good way
to do that in order to store a very large number of rnums.  Anyone have
any suggestions or opinions on this?

The other part of this is just adding a numeric value to the pfiles which
is not that hard.

***

The next thing I need to do is to add another two numeric values (easy as
i said above) but also find a way of tracking a set of completed tasks.
Could be quite a few of them eventually as well, and I'm not sure how to
store states for them.  At the very least I need to be able to set them as
done so I can not allow them to be repeated.  (As it's not too difficult
to guess, this is for quests.)

Any thoughts?

-Mathew

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT