Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ 18,446,744,073,709,551,615 VNUMS

18,446,744,073,709,551,615 VNUMS

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by AlaricX   (23 posts)  Bio
Date Thu 19 Jun 2003 06:37 AM (UTC)
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?
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 19 Jun 2003 07:21 AM (UTC)
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
Top

Posted by AlaricX   (23 posts)  Bio
Date Reply #2 on Fri 20 Jun 2003 06:35 AM (UTC)
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
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.


12,497 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.