Shattered Kingdoms https://shatteredkingdoms.org/forums/ |
|
Vnums https://shatteredkingdoms.org/forums/viewtopic.php?f=21&t=13540 |
Page 1 of 2 |
Author: | Morovik [ Thu May 25, 2006 12:27 am ] |
Post subject: | Vnums |
I hear about them everytime building is involved and though I have some vague idea about what they are, could someone enlighten me? |
Author: | Lolth [ Thu May 25, 2006 12:40 am ] |
Post subject: | |
Vnum stands for (v)irtual (num)ber. Vnums keep track of pretty much everything in the game. Each object, NPC (NPc) and room has one. This allows IMMs to reproduce objects, 'goto' rooms, spot bugs etc. |
Author: | Morovik [ Thu May 25, 2006 12:51 am ] |
Post subject: | |
So, when an Imm says that there are not enough Vnums what does it mean? there is a fixed amount of them? Also, since everything has one assigned, if lets say someone removes an NPC from the game then there will be availability for a new room? |
Author: | Lolth [ Thu May 25, 2006 1:11 am ] |
Post subject: | |
Every area has a certain amount of vnums assigned to it. I believe when an IMM says that there are none available, it means that the limit for that area has been reached. Technically, if an object, NPC or room is removed from the game, the space it occupied becomes free. However, as I understand it, most aren't really removed, just recycled. |
Author: | Tragonis [ Thu May 25, 2006 1:12 am ] |
Post subject: | |
Every area has a set number of vnums allocated to it. So if a builder says he has none left, he has none left and Dulrik would need to allocate more to him. If a NPC is taken out and rewritten to be something else there can be another NPC. Not another room or item. I think. |
Author: | mageZorekin [ Thu May 25, 2006 1:35 am ] |
Post subject: | |
Lolth wrote: Technically, if an object, NPC or room is removed from the game, the space it occupied becomes free. However, as I understand it, most aren't really removed, just recycled.
This is true, I keep teleporting into the old Nerina! |
Author: | Pushing40 [ Thu May 25, 2006 4:29 am ] |
Post subject: | |
Having written areas for a different mud, I can tell you how it works there. Most likely it works the same way here. Lets say the area you're building is allocated a block of 100 vnums. Your first room would have vnum 15900 for example. The last room would be 15999. That covers the 100 vnums. Your NPCs would also have the same vnums available but they would be mobnums. Your items would have the same vnums available but they would be inums. If you eliminate a mobnum, that mobnum becomes available. If you eliminate a roomnum, that roomnum becomes available. If you eliminate an inum, that inum becomes available. They aren't interchangable. Also, the mud where I created areas suggested using only 95 of the 100 vnums available. This would leave a bit of wiggle space for future updates but those numbers are still allocated to specific areas and are considered already used. |
Author: | werttrew [ Thu May 25, 2006 8:07 am ] |
Post subject: | |
Pushing40 wrote: Having written areas for a different mud, I can tell you how it works there. Most likely it works the same way here.
Lets say the area you're building is allocated a block of 100 vnums. Your first room would have vnum 15900 for example. The last room would be 15999. That covers the 100 vnums. Your NPCs would also have the same vnums available but they would be mobnums. Your items would have the same vnums available but they would be inums. If you eliminate a mobnum, that mobnum becomes available. If you eliminate a roomnum, that roomnum becomes available. If you eliminate an inum, that inum becomes available. They aren't interchangable. That's basically correct. Objects are usually the most scarce vnums, so it could explain why an imm would turn down an object request for a particular area. |
Author: | Konge [ Fri May 26, 2006 3:50 am ] |
Post subject: | |
As far as I understand, an entire mud also has a set number of vnums which is why things can get a little messy when it's evolved too much. No room for new areas etc. I could be wrong, of course - I'm not exactly a code wiz. |
Author: | Morovik [ Fri May 26, 2006 4:35 am ] |
Post subject: | |
Konge wrote: As far as I understand, an entire mud also has a set number of vnums which is why things can get a little messy when it's evolved too much. No room for new areas etc.
I could be wrong, of course - I'm not exactly a code wiz. Of course as a program the mud needs a set amount of memory to allocate but I think that is not the issue here, I think the max is close to infinite. |
Page 1 of 2 | All times are UTC - 8 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |