hlstatsx-community-edition icon indicating copy to clipboard operation
hlstatsx-community-edition copied to clipboard

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

Open APGRoboCop opened this issue 3 years ago • 2 comments

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

Environment

  • Webserver: apache2
  • Hosting environment: dedicated
  • PHP version: 7.4
  • Browser: chrome 96

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

APGRoboCop avatar Dec 30 '21 16:12 APGRoboCop

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

NomisCZ avatar Dec 30 '21 19:12 NomisCZ

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...

APGRoboCop avatar Jan 02 '22 18:01 APGRoboCop