[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  18,446,744,073,709,551,615 VNUMS

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: 18,446,744,073,709,551,615 VNUMS
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by AlaricX   (23 posts)  [Biography] bio
Date Fri 20 Jun 2003 06:35 AM (UTC)  quote  ]
Message
yeah, i guess it was kind of illogical.. too much memory and too many changes to deal with.. oh well. at least it would work if i /ever/ wanted to try it. heh heh heh
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Thu 19 Jun 2003 07:21 AM (UTC)  quote  ]
Message
It would probably work, once you had allowed for all references to vnums to be long long (or __int64 on Windows) however do you really need more than 1,073,741,824 rooms in a single MUD?

Bearing in mind each room is stored in memory, even that many rooms, at a byte per room (and in fact they would take a lot more, say 100 bytes per room) would take 1 Gb of RAM (at 1 byte per room) or 100 Gb of RAM for 100 bytes per room.

Then you would have the issue of reading the area files in, and so on.

Of course, you don't need to use all the vnums, it would give you the flexibility of lots of ranges, but you really get that with 1 billion vnums, if you allocate a range of, say 1000 vnums per area. That still lets you have 1 million areas.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by AlaricX   (23 posts)  [Biography] bio
Date Thu 19 Jun 2003 06:37 AM (UTC)  quote  ]
Message
an unsigned long long... Would it be useful to make a snippet to have that many vnums? it would require even more changes than 2bil [make things %ull].. would it work? would anyone need that many vnums?

Anyone have any ideas?
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,310 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]