Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Sogou, Yahoo!

Members: 0
Guests: 3
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » General Discussions » Player Counting Bug
Forum Rules | Mark all | Recent Posts

Player Counting Bug
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Dec 10, 2005, 7:35 am
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

There seems to be a bug in the counting of players. I'm not sure if it carries or what, but on mudstat it shows this:

| Players    -1                      Maxplrs     1 |
====================================================
| MaxEver    13                 Topsn     278 (376)|
| MaxEver time recorded: Sun Sep 05 11:14:03 2005  |


But on who, it displays this:
 [3 players online]                              [Max Online Record: 13]


There are three players on, so why is mudstat saying there are -1? Any solutions to this? Thanks in advance.
       
Post is unread #2 Dec 10, 2005, 7:37 am
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

And also, there are 15 players on a week or so ago, bypassing the 13 maxever, and it never changed or said "Maxever record broken" like it should, and mudstat said there were -1 players on. I'm thinking the MUD isn't adding new players when they logon or quit.
       
Post is unread #3 Dec 10, 2005, 8:07 am   Last edited Dec 10, 2005, 8:12 am by Zeno
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

You're getting this display from where? I don't think FUSS has anything named "mudstat".

[EDIT] Or are you just trying to fix something on your own MUD, and not FUSS?
       
Post is unread #4 Dec 10, 2005, 8:13 am   Last edited Dec 10, 2005, 8:16 am by GatewaySysop
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts367
JoinedMar 7, 2005

Zeno said:

You're getting this display from where? I don't think FUSS has anything named "mudstat".

[EDIT] Or are you just trying to fix something on your own MUD, and not FUSS?


Was wondering the same. I'm confused. :stare:

Ahhh. He's using SWR, or at last post of his he mentioned SWR anyway. For a minute there I was thinking there was a command in FUSS I'd missed all these years. Ha ha.
:cyclops:
       
Post is unread #5 Dec 10, 2005, 8:17 am
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Well, the memory command sort of does the same thing. But the command works fine (counting) on FUSS.
       
Post is unread #6 Dec 10, 2005, 8:29 am
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

Mudstat is stock SWR I think .. so it should be in FUSS. But player counting should be everywhere, because it was there when I got the FUSS version.
       
Post is unread #7 Dec 10, 2005, 3:51 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Is this SWRFUSS?

Anyways, yes, something seems wrong. I would go and compare the variables in your MUD to stock SmaugFUSS to see where they should be updated.
       
Post is unread #8 Dec 10, 2005, 5:49 pm
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

It was originally SWRFUSS, but some of the changes could have possibly affected it?
       
Post is unread #9 Dec 10, 2005, 6:12 pm
Go to the top of the page
Go to the bottom of the page

Greven
Magician
GroupMembers
Posts204
JoinedMar 5, 2005

It is definitely NOT stock SWRFUSS. MaxEver only ever shows up in do_memory, and thats not what he quoted.
       
Post is unread #10 Dec 10, 2005, 6:17 pm
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

It isn't stock. Its been modified. But the fact remains, how is the problem fixed?-
       
Post is unread #11 Dec 10, 2005, 6:26 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Increment the variables in the correct places. Like I said, check in SmaugFUSS how it's done. I don't know the specifics offhand.
       
Post is unread #12 Dec 10, 2005, 6:49 pm
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

I tested, and num_descriptors is the number of people playing at one time. When the mud copies over, it seems this number is reset to 0. How would one get the number to stay the same after a copyover/reboot/crash?
       
Post is unread #13 Dec 10, 2005, 6:51 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Save it to a file, such as the systemdata file. Or you could pass it through the copyover if your copyover creates files to store data in and load it after the copyover.
       
Post is unread #14 Dec 10, 2005, 10:08 pm
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

Again, as someone suggested earlier, you might want to download a copy of smaugfuss and see how it's been done in there, because smaugfuss has a memory command (do_memory) that displays the same type of numbers (do_who also shows how many people are currently online using the same variable in smaugfuss too) and then check hotboot.c to see how it's being carried forward over hotboots and see if you can do the same thing in your swr since you're trying to accomplish the same thing and it works just fine in smaugfuss.
       
Pages:<< prev 1 next >>