Sorry for late reply. I was too busy these days. But i will check the thread regulary (at least for a month untill i get on board again) so you can have your problem solved.
Your Answer:
So as shown in requirements your host or you, still havent installed the perl scripts correctly or your host havent unblocked the shown port for daemon that runs on. Just tell me about the emails that cronjobs sends to you maybe you have jumped some steps and not followed them as needed.So just take a screenshot from an email that cronjobs sent tou you.
"UPDATE:29/09/2019 DUE TO PHP CHANGES: IN CASE THE HLSTATSX:CE WEBSITE PART IS NOT LOADED PLEASE DOWNLOAD THE .RAR ATTACHEMENT AND REPLACE THE FILES AS INSTRUCTED BY THE README.TXT. LOOK INTO YOUR WEB FOLDER TO FIND THOSE FILES THAT NEED REPLACEMENT.NOTE! I HAVENT UPLOADED THE ATTACHEMENT SINCE THE FORUM DEAL WITH A PROBLEM WITH SPACE LIMIT,SORRY FOR THAT."
I have helped guys via pm,please post also here if possible in case you got any troubles so other members can be helped too.
[UPDATE]:
05/10/2021 Still the HLStatsX:CE are fuctioning,If anybody needs help please private message me.I will be available every day almost for 20 days from now that i can help in private.After that period(of 20 days) i will reply on thread or at private messaging twice per month so that means i will not be able to help all guys.
Hello there. I know that it's a very old topic, but probably because some updates, I cannot make it working
L 03/21/2022 - 10:00:19: [AMXX] Plugin "hlstatsx_commands_cstrike.amxx" failed to load: Plugin uses an unknown function (name "reset_user_wstats") - check your modules.ini.
All went good until installation the plugin. Please help me understand, what I am missing. Some module to be installed on game server?
Indeed its a great tutorial im the first who installed that in a webshared server instead of vps without ssh or ssh2 access.The creator required vps i dont.
Im glad you installed the web part.
Though i shouldnt help regarding the plugins but.
Just go to your addons/amxmodx/configs/modules.ini
Open that file and uncomment all modules.Then it shall work fine.
just remove the symbol ; from all named modules to uncomment them.
The modules required though are below:
cstrike csx cellarray---->this is not needed fakemeta
[Enjoy the life , have fun and be as good as you can in your job's related activities and for sure the path for success is close].
Hello guys, maybe you could help me here. This is great tutorial full of useful (mandatory) things! Thank you! Not easy how i see to get all hlstats features work. Proper installation of hlstatsx requires quite advanced experiences with linux systems. Everyone might have his own checklist, depending on each hardware setup, OS etc...but in this tutorial i found very important things related to installation nowhere else documented! Especially part around installing all Perl modules which is one of key parts. The author does not respond anymore and probably not active in this anymore. When i researched hlstats perl scripts more closely (for run hl daemon) i found more perl modules needed apparently. (i.e. IO::Socket,POSIX and more...) So i installed them all.
But my problem is with feature Average ping or Latency info of players. This feature does not work me. Tables with latencies in mysql database hlstats (hlstats_events_latency and hlstats_events_statsmelatency are still empty, something is broken to write ping data to the database, other things works fine.
These perl modules is installed now below in this post, also versions of software.
Iptables should not be the problem, everything else set and works around game server, so i'm really lost what to do now...downgrading, elaborating with older versions maybe....thanks for any help.
apache 2.4 (mod_perl also) php 7.3.31-1~deb10u1 sql 10.3.36-MariaDB-0+deb10u2 Debian 10 perl 5.36 - because it forced me to install latest due to updating POSIX or Sys::Hostname modules
i'm using new version hlstats 1.7.0 NomisCZ (apparently for php 7.0 and higher) github.com/NomisCZ/hlstatsx-community-edition (smx plugin file from this downloaded pack says it is still 1.6.19 in the logs... really? probably it is intended like this, hard to say...)
Now to the subject. I see everything is installed correctly. [AVERAGE LATENCY TABLES ARE GENERATED EVERY LAST 28 DAYS FROM THE DATE THE PLAYER JOINED IN], AS AN EXAMPLE CHECK MY SITE PLAYERS WITH MORE THAN 28 DAYS PLAYING HAVE THEIR AVERAGE PING GENERARED EVERY OTHER PLAYER >28 YOU WILL SEE NO INFO...
You could answer the below but your installation is ok but you are just not good observer 😝. 1) Did you install the sql file to a single database? Ex. If you host a site you shouldnt put the sql tables to the same database where your website's exist.Hlstats must use their own database for its tables. 2) Does your daemon run , do you use cron jobs so you can receive email logs from cron jobs? 3) Does the log file generated from hlstatsx when your server is active?That log you find at your scripts folder in your ftp or to perl folder using your ftp.
I am not pro or something i just figured out how to make it easier for people i dont know if im going to update it for later version as php 8.0 but still you have 4 years till something changes.
NOTE:BASIC PERLS ARE ALWAYS INSTALLED IN ANY WEBHOST IF YOU START FROM SCRATCH THIS IS ANOYHER STORY.I PROVIDE THE BEST SOLUTION USING WEBSHARED HOSTING INSTEAD OF VPS LIKE ORIGINAL AUTHOR REQUESTS.THANKS FOR YOUR KIND WORDS.IM GLAD AT LEAST THAT YOU MANAGED TO RUN IT THATS MEANS TUTORIAL IS EFFECTIVE.TROUBLESHOOT WILL ALWAYS EXIST FOR EVERYTHING.. Best regards
Take my apologies, i wrote it bad. I did not mean you are not active but the author of hlstatx 1.7.0. No matter because for 99,9999999% you probably solved my issue. My bad, my bad because i messed up default period settings (28 days). I set 90 for keeping more data, so i should have to wait 3 months to see any info about latency .....XD....ok. This is nowhere documented so when somebody does not know about it and changing value so yea, then it might be confusing what is going on then. Btw, I'm really happy i finally encountered to somebody straight from "terrain", in other words, to somebody who using it longer time. ....and knows ))
So yea, i'm definitely unpatient observer Right now it offers the question where are the data stored all the 28 days before they generated into mysql tables? In the RAM or some different temp files? (I hope i got it right..) I found many of these messages in logs:
update_player_pings successfully
get_rcon_status successfully
So i was really confused what's wrong with that..... something like ..Does it work ? Or where are the data stored then??
Answers: 1) Yes of course, hlstats has its own database. 2) I don't use sending logs via email but cron jobs are configured for run hlstats-awards.pl every day after midnight. (and now i have idea to add even hlstats-resolve.pl as well, dumb i did not get this idea before XD. On the other hand, resolving is not so much important like the awards script i guess...) 3) Yep, it's active. Hl logs works well and Hldaemon's variable DebugLevel in hlstats.conf works as well. I also found and uncommented other debug stuff in hlscripts, for example this in TRcon.pm:
I found out there is more debug stuff you can uncomment in other .pm or .plib files.
Very useful thing, i can tell you honestly, since i thought this latency feature is broken, i started writing my own perl script to create different database just for pings, extract and insert these data what i grabbed from this output and finally do some math and count average pings for players by their unique id. Insane hassle and lot of work, yea, but i really did not see the other solution...¯\_(ツ)_/¯. No help anywhere until now, i did not bet much high that somebody could answer and help me with this but YOU DID! ))
According to your link, very nice fine tuned pages, especially css dark colors. I want to do something similar in the future, now it's just default white, yea quite ugly, also don't like white web pages for my eyes.
I'm not planning upgrade to php8.0. Since i'm using php7.3 just for this vps game server (standard apt install php7.3* command, not any compiling or manual install), not for any other things, i can stay in chill on php7.3. Yes, your tutorial is very effective for me, no matter i run vps instead of shared webhosting, it's useful in anyway as well!
About perl version, i uninstalled all the perl 5.36 updates and reverted back to default installed 5.28.1 because now it's clear there were no issues with default perl and it simply needs to wait untill ping data are generated . Also all the perl modules needed for hlstats recompiled and reinstalled with updated mysql_config flags (ithreads, mariadb etc...), in short, everything should be set fine now.
So by the conclusion...i set back to default and let's wait...for hundred percent i will let you know after 28 days from now and see if somebody's ping data will appear))
Remember this: Nobody will support HLStatsX:CE In future, i do it because i still use it in my website.Also a lot of host troubles will be occured in future since php 7.3 will be deprecated.
But anyway.. have fun now that stats are fuctioning.
No need to worry: See this pic as an example of average ping in my website stats: ibb.co/F3tbPqd
Next year i may not provide support.But i will always update the guide till fuctional level.
Im just happy that i helped around 150 players with this thing including you.
Pretty bad about php but it is how it is, hopefully there will be some workaround... Yes, i saw your website, it's working there. I can't say now it's fully functioning at me but like i wrote before, i set back default and will give a shout here after 28 days, if the ping data will appear. If not, then it will be another story ...and hopefully we will solve it. In the meantime, no settings change will be made. If this will work then i can hopefully say i can provide some support because during the hlstats install i have been forced to crawl almost everything around web server and related stuff.
Purely theoretically...when i set generate data for 2 days instead of default 28 days (and do backup first of hlstats), then it should be obvious if it's work for me or not...is that right?
Purely theoretically...when i set generate data for 2 days instead of default 28 days (and do backup first of hlstats), then it should be obvious if it's work for me or not...is that right?
Possible, but it may flood the database because more data will be generated and 28 days shall be the minimum.Just try and tell me.
[Enjoy the life , have fun and be as good as you can in your job's related activities and for sure the path for success is close].
Ok, i did the backup and set it like that. I set for 2 days, so in Tuesday i should know if something generated. I will observe the tables if something grows too much. Anyway, i was wondering if you could do me a little favor. Please check your livestats when some players there on your main hl page and mysql hlstats_Livestats table too, because the other issue is there should be also current ping data imho...but there still zero in my case.... also checked in phpmyadmin ,in hlstats_Livestats table, in my case all data is there except ping data ....really strange