NomisCZ / hlstatsx-community-edition

HLstatsX Community Edition - PHP 7 and GeoIP2 supported
GNU General Public License v2.0
83 stars 48 forks source link

Clans page not working for CS 1.6 / TF2 / X (except for CS:GO) #32

Closed mo0nsniper closed 4 years ago

mo0nsniper commented 5 years ago

I have HLStatsX working and tracking players but the Clans page is empty: https://miez.ro/cstrike/HLstatsX/hlstats.php?mode=clans&game=cstrike

NomisCZ commented 5 years ago

Hello, thanks for reporting the problem.

I forgot to re-add some parts of code for parsing clantags for other games (except CS:GO - uses different method).

Please download latest daemon files (https://github.com/NomisCZ/hlstatsx-community-edition/tree/master/scripts) and try it :)

mo0nsniper commented 5 years ago

Hello Nomis,

Thank you for the fix. I have updated HLstats_Player.pm, hlstats-awards.pl and hlstats.pl did a ./run_hlstats restart and now the clan appeard in the list. https://miez.ro/cstrike/HLstatsX/hlstats.php?mode=clans&game=cstrike&minmembers=1

However now when running ./hlstats-awards.pl I get this error:

++ HLstatsX:CE Awards & Maintenance script version 1.6.19 starting...

++ Cleaning up database: deleting events older than 28 days... DBD::mysql::db do failed: Table 'hlstats_Events_TeamBonuses' is marked as crashed and should be repaired at .//HLstats.plib line 198.
done
++ Cleaning up database: deleting player history older than 28 days... done

I don't know if the error was present before replacing the scripts tho.

NomisCZ commented 5 years ago

It's probably MySQL thing ...

So try to repair table:

mo0nsniper commented 5 years ago

Ran the command and it repaired the database. Now the script runs fine.

Thank you

mo0nsniper commented 5 years ago

Also thank you for your whole work on HLStatsX, it's great that it lives on as it's a nice piece of software. I have a script for Linux that installs everything, maybe I can contribute it to the wiki if you think it will help.

I'll also file bug reports :)

NomisCZ commented 4 years ago

@mo0nsniper If you want to share your script. You can fork Wiki - https://github.com/NomisCZ/hlstatsx-community-edition-wiki and create pull request :) I've set up auto repo and wiki sync.

Here you can found basic Markdown syntax - https://guides.github.com/features/mastering-markdown/