Re: Saving Objects

From: Niese-Petersen (Tenp@cris.com)
Date: 10/04/96


On Fri, 4 Oct 1996, Sean P. Mountcastle wrote:

> 
> 	I've been trying to get players mud mail to save to disk when 
> they rent.  But the problem is the message is of variable length and the 
> rent file is a binary file.  Also, why do the objsave routines read the 
> object from the saved virtual number?  This ruins any strings that were 
> saved for the player (i.e. a special one shot Sword of XXX, made 
> especially for XXX).  Anyone have any ideas about how to do this without 
> having to make two separate files (one ascii for strings and another 
> binary for numerical data)?  Should I just save all objects as ASCII files?

One big ... YES!!!! ... :)

But do it right. ;) Remember. If the object is the same as the proto type,
then all you need to save is the virtual number of the object.

---
Erik Niese-Petersen
Aka Quint The typo God
Realms of Darkness IMP



+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST