Raised This Month: $ Target: $400
 0% 

Not showing correct amount of players online.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nicwillu
Junior Member
Join Date: Aug 2013
Old 08-05-2013 , 09:01   Not showing correct amount of players online.
Reply With Quote #1

Hello

I have a small problem with hlstatsx on Garry's Mod. I have 2 servers, the servers status page does not show the correct amount of players online on the servers. It can say 3/16 when there's actually 9/16 on the servers, why is this happening? It does eventually (sometimes) show the correct amount, but it takes time, if there are 9 players online, it can first show 3, and then 5, and the finally 9, it increases over time basically. This happens on my CSS server as well.

The logs doesn't indicate any problems I believe, this is straight after a couple of players joined.
Code:
2013-08-05 14:48:03:  192.168.10.101:27015 - MYSQL: Flushing player updates to database...
2013-08-05 14:48:03:  192.168.10.101:27015 - MYSQL: Flushing player updates to database is complete.
2013-08-05 14:48:03:  192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.101": "status"
2013-08-05 14:48:03:  192.168.10.101:27015 - E020: BAD DATA: rcon from "192.168.10.101:56088": command ""
2013-08-05 14:48:03:  192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.101": "sv_visiblemaxplayers"
I don't see why it fails to update the player count. My daemon runs fine, it regularly sends "rcon" commands to the server, "stats", "status" etc.

Why is this happening? :/

EDIT: I can add that I am unable to restart my daemon! I have read that a restart of the daemon can solve the problem I have above. Server runs on a windows computer. Whenever I try to stop it using 'net stop hlxceserv', it says "The HLXCCEServ service could not be stopped." A computer restart must be done if I want to restart it, what is wrong?

Last edited by nicwillu; 08-05-2013 at 15:14.
nicwillu is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 08-06-2013 , 11:47   Re: Not showing correct amount of players online.
Reply With Quote #2

I have this kind of problem too.
http://i.share.pho.to/b82ac6cb_o.png
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
XAFAfterShock
Member
Join Date: Feb 2009
Old 08-07-2013 , 13:42   Re: Not showing correct amount of players online.
Reply With Quote #3

Quote:
Originally Posted by nicwillu View Post
Hello

I have a small problem with hlstatsx on Garry's Mod. I have 2 servers, the servers status page does not show the correct amount of players online on the servers. It can say 3/16 when there's actually 9/16 on the servers, why is this happening? It does eventually (sometimes) show the correct amount, but it takes time, if there are 9 players online, it can first show 3, and then 5, and the finally 9, it increases over time basically. This happens on my CSS server as well.

The logs doesn't indicate any problems I believe, this is straight after a couple of players joined.
Code:
2013-08-05 14:48:03:  192.168.10.101:27015 - MYSQL: Flushing player updates to database...
2013-08-05 14:48:03:  192.168.10.101:27015 - MYSQL: Flushing player updates to database is complete.
2013-08-05 14:48:03:  192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.101": "status"
2013-08-05 14:48:03:  192.168.10.101:27015 - E020: BAD DATA: rcon from "192.168.10.101:56088": command ""
2013-08-05 14:48:03:  192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.101": "sv_visiblemaxplayers"
I don't see why it fails to update the player count. My daemon runs fine, it regularly sends "rcon" commands to the server, "stats", "status" etc.

Why is this happening? :/

EDIT: I can add that I am unable to restart my daemon! I have read that a restart of the daemon can solve the problem I have above. Server runs on a windows computer. Whenever I try to stop it using 'net stop hlxceserv', it says "The HLXCCEServ service could not be stopped." A computer restart must be done if I want to restart it, what is wrong?

I'm not sure about the player count not showing correctly but as for restarting the daemon you pretty much have to kill it manually by either stopping it in the hlstatsx admin section or in the task manager, there is no stopping or restarting it on windows machines.
XAFAfterShock is offline
nicwillu
Junior Member
Join Date: Aug 2013
Old 08-08-2013 , 08:48   Re: Not showing correct amount of players online.
Reply With Quote #4

Quote:
Originally Posted by XAFAfterShock View Post
I'm not sure about the player count not showing correctly but as for restarting the daemon you pretty much have to kill it manually by either stopping it in the hlstatsx admin section or in the task manager, there is no stopping or restarting it on windows machines.
There is no process for it, it runs as a service, no processes show up when I right click it and choose "Go to Process", so I can not kill it. I just followed the HLXCEServ windows guide. Stopping via webinterface seems to fail as well, It keeps getting stuck on
Code:
Sending Command to HLstatsX: CE Daemon at localhost:27500
whenever I try choose "Reload" or "Shut down the daemon".

Earlier, few months back, I remember the daemon ran in it's own cmd window which I could just shutdown when I wanted to restart it, but now there isn't, have there been any updates to it or something? It seems impossible to shutdown the daemon without restarting the PC :/

Last edited by nicwillu; 08-08-2013 at 08:48.
nicwillu is offline
XAFAfterShock
Member
Join Date: Feb 2009
Old 08-08-2013 , 09:04   Re: Not showing correct amount of players online.
Reply With Quote #5

link me the guide you used since there are a few different ones, do you have port 27500 port forwarded to the machine running the daemon? thats the only thing I can think of that would cause admin panel to not stop the daemon
XAFAfterShock is offline
nicwillu
Junior Member
Join Date: Aug 2013
Old 08-08-2013 , 09:39   Re: Not showing correct amount of players online.
Reply With Quote #6

Quote:
Originally Posted by XAFAfterShock View Post
link me the guide you used since there are a few different ones, do you have port 27500 port forwarded to the machine running the daemon? thats the only thing I can think of that would cause admin panel to not stop the daemon
I'm running DMZ, it doesn't even work when I do it on the server computer.

I used this guide: https://bitbucket.org/psychonic/hlst...wiki/HLXCEServ
nicwillu is offline
XAFAfterShock
Member
Join Date: Feb 2009
Old 08-08-2013 , 10:29   Re: Not showing correct amount of players online.
Reply With Quote #7

thats basically the guide I used, if you go in your task manager and under processes and having the show processes from all users checked and your not seeing HLXCEServ.exe listed then the daemon isn't running. go to administrative tools then services and find HLXCEServ and right click then properties and go to the log on tab and make sure local system account is checked. I think that is the main issue I was having in getting the service to run correctly.
XAFAfterShock is offline
nicwillu
Junior Member
Join Date: Aug 2013
Old 08-08-2013 , 13:01   Re: Not showing correct amount of players online.
Reply With Quote #8

Quote:
Originally Posted by XAFAfterShock View Post
thats basically the guide I used, if you go in your task manager and under processes and having the show processes from all users checked and your not seeing HLXCEServ.exe listed then the daemon isn't running. go to administrative tools then services and find HLXCEServ and right click then properties and go to the log on tab and make sure local system account is checked. I think that is the main issue I was having in getting the service to run correctly.
Oh wow, I never thought about checking the box to show processes from all users <.< Now I see it. Thanks! I also did the local systemuser thing, let's hope it solves the playercount problem I have.

Last edited by nicwillu; 08-08-2013 at 13:01.
nicwillu is offline
XAFAfterShock
Member
Join Date: Feb 2009
Old 08-08-2013 , 14:52   Re: Not showing correct amount of players online.
Reply With Quote #9

you did have the correct paths setup in the HLXCEServ.exe.config before you installed the service correct? if you found the daemon in the task manager that means its running so I'm not sure changing anything in the service properties will make a diff or not. What do your hlstats logs show at the begining? do they look like this?

2013-08-08 09:18:23: - MYSQL: Connecting to MySQL database 'hlstatsx' on 'localhost' as user 'hlstatsx' ... connected ok
2013-08-08 09:18:23: - CONFIG: Reading database config...
2013-08-08 09:18:23: - CONFIG: I have found the following server configs in database:
2013-08-08 09:18:23: - S_CONFIG: 192.168.1.5:27015
2013-08-08 09:18:25: - HLSTATSX: HLstatsX:CE 1.6.19 starting...
2013-08-08 09:18:25: - UDP: Opening UDP listen socket on port 27500 ... ok
XAFAfterShock is offline
nicwillu
Junior Member
Join Date: Aug 2013
Old 08-08-2013 , 15:18   Re: Not showing correct amount of players online.
Reply With Quote #10

Quote:
Originally Posted by XAFAfterShock View Post
you did have the correct paths setup in the HLXCEServ.exe.config before you installed the service correct? if you found the daemon in the task manager that means its running so I'm not sure changing anything in the service properties will make a diff or not. What do your hlstats logs show at the begining? do they look like this?

2013-08-08 09:18:23: - MYSQL: Connecting to MySQL database 'hlstatsx' on 'localhost' as user 'hlstatsx' ... connected ok
2013-08-08 09:18:23: - CONFIG: Reading database config...
2013-08-08 09:18:23: - CONFIG: I have found the following server configs in database:
2013-08-08 09:18:23: - S_CONFIG: 192.168.1.5:27015
2013-08-08 09:18:25: - HLSTATSX: HLstatsX:CE 1.6.19 starting...
2013-08-08 09:18:25: - UDP: Opening UDP listen socket on port 27500 ... ok
Yes, the config file is configured. Now I have a new problem, the HLXCEServ stops right away, when I start it. I've tried uinstalling and installing the service, and restarting it, it's a no-go :/ This is what I get

Code:
2013-08-08 19:27:39:                       - MYSQL: Connecting to MySQL database 'gamepanel' on 'localhost' as user 'gamepanel' ... connected ok
2013-08-08 19:27:39:                       - CONFIG: Reading database config...
2013-08-08 19:27:39:                       - CONFIG: I have found the following server configs in database:
2013-08-08 19:27:39:                       - S_CONFIG: 192.168.10.101:27015
2013-08-08 19:27:39:                       - S_CONFIG: 192.168.10.101:27017
2013-08-08 19:27:39:                       - S_CONFIG: 192.168.10.101:27016
2013-08-08 19:27:39:                       - HLSTATSX: HLstatsX:CE 1.6.19 starting...

Can't setup UDP socket on port 27500: Only one usage of each socket address (protocol/network address/port) is normally permitted.
EDIT:
I figured out I had to kill the perl.exe processes as well to have it hlxceserv start, since they were using those ports, and now it runs fine with no errors in logs except this:

Code:
2013-08-08 21:16:53:  192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.107": "status"
2013-08-08 21:16:59:  192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.107": "status"
2013-08-08 21:17:04:  192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.107": "status"
After all this, it still shows the wrong player count, or least it takes a few min before it shows the correct number of players.

Are these errors normal...? Is this the reason why hlstats fails to update the player count like it should?

Last edited by nicwillu; 08-08-2013 at 15:26.
nicwillu is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode