NomisCZ / hlstatsx-community-edition

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

Undefined subroutine &main::CSGO called at ./hlstats.pl #70

Closed APGRoboCop closed 1 year ago

APGRoboCop commented 2 years ago

Describe the bug Undefined subroutine &main::CSGO called at ./hlstats.pl occurs and appears to need fixed for CSGO

Environment

I had this from the hlstats logs:

Undefined subroutine &main::CSGO called at ./hlstats.pl line 3121.

I'm not sure why but is it possible that the hlstats.pl requires to have the sub getServerMod edited to add like:

    } elsif ($gamename eq "Counter-Strike: GO") {
        $playgame = "csgo";

or:

    } elsif ($gamename =~ /^Counter-Strike: GO/i) {
        $playgame = "csgo";

Let me know please if this needs fixed or if there is any way to resolve this solutions

NomisCZ commented 2 years ago

Hello,

I checked the functionality of the daemon and everything works. Please see the documentation - prerequisites and running daemon part.

OS: Ubuntu 18.04 Game Server: CS:GO

APGRoboCop commented 2 years ago

OK I think i got it now. However I seem to be getting this error:- Can't call method "set" on unblessed reference at .//HLstats_EventHandlers.plib line 564.

Not sure on what that means...