[MUD-Dev] Introduction Systems

Ben Chambers bjchambers at phoenixdsl.com
Sun Mar 11 17:43:57 CET 2001


----- Original Message -----
From: "Kwon Ekstrom" <justice at softhome.net>
To: <mud-dev at kanga.nu>
Sent: Sunday, March 11, 2001 5:54 AM
Subject: Re: [MUD-Dev] Introduction Systems


> ----- Original Message -----
> From: "Ben Chambers" <bjchambers at phoenixdsl.com>

>> of the ID number.  I mean, each file for each player storing each
>> players name assosciated with their id number could become VERY
>> large, VERY fast. Assuming you have 3 digit ID numbers, and have
>> 999 people playing, with each name having an average length of 9
>> letters, you then have to store 11,976,012 bytes of information.  I
>> think that 12

> I imagine that you are exagerating in this, since the lowest binary
> number capable of holding 999 is 11 bits with a max value of 1024,
> and depending on encoding, standard ascii being 8 bits per char,
> unicode I beleive uses 32 bits, 9*8 is 72bits giving a total of 83
> for id and name, 32*9 is 288bits for a total of 299

File storage is done using ASCII.  That means you have an 8 bit per
character.  999 would require 24 bits or 3 bytes.  Then you have to
store for each of those numbers, a name, which with an average length
of 4 would take 4 bytes.  That is twelve bytes for each character.
Then you have to record that for each character.  I.E.

    ID            Linked Name
    001            Ben
    002            Kwon
    003            John
    004            Mark
    005            Sue

Now, Ben's character file, stores that for him.  He would have a
character file that is 33 bytes.  Then Kwon has a 33 byte file.  John
has a 33 byte file, Mark... etc.  For a total right there, of .165 K.
But this goes exponentially.  For an average length of name, N, and
players P.  The storage required is P * ( P * (N + 3)) bytes.  Now,
for 999 characters, with average name length 6, you would have a
required storage of 999 * 999 * 9 or: 8.98 MB.  With the 10 in my
earlier example, it would have been 999 * 999 * 13, or 12.9 MB.  This
is of course for total character files, but it s till is too much.

Even More if you added last names etc...
_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list