Raised This Month: $12 Target: $400
 3% 

run_hlstats problem with latest fedora


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Enemy1
Senior Member
Join Date: Feb 2007
Location: Vaxjo, Sweden
Old 03-20-2018 , 10:06   run_hlstats problem with latest fedora
Reply With Quote #1

Hi

I had to reinstall one server witch run 2 hlstatsx:ce and I think that its the new perl that causes this but Im not shure and really dont know what to do right now..

When starting the deamon I get this

Code:
HLstatsX:CE daemon control
http://www.hlxce.com
---------------------------
Attempting to start HLstatsX:CE daemon on port 27600...
Daemon successfully started on port 27600
But it doesnt update anything and the all logs show this

Code:
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/^weapon { <-- HERE  steam_id: 'STEAM_\d+:(.+?)', weapon_id: (\d+), class: \d+, team: \d+, shots: \((\d+),(\d+)\), hits: \((\d+),(\d+)\), damage: \((\d+),(\d+)\), headshots: \((\d+),(\d+)\), kills: \(\d+,\d+\) }$/ at ./hlstats.pl line 3329.
I really hope that someone knows how to solve this!

This is the Perl version
Quote:
Namn : perl
Epok : 4
Version : 5.26.1
Utgåva : 403.fc27
Arkitektur : x86_64
Storlk : 0.0
Källa : perl-5.26.1-403.fc27.src.rpm
Förråd : @System
Från förråd : updates
Sammanfattni : Practical Extraction and Report Language
URL : http://www.perl.org/
Licens : GPL+ or Artistic
Beskrivning : Perl is a high-level programming language with roots in C, sed,
: awk and shell scripting. Perl is good at handling processes and
: files, and is especially good at handling text. Perl's hallmarks
: are practicality and efficiency. While it is used to do a lot of
: different things, Perl's most common applications are system
: administration utilities and web programming.
:
: This is a metapackage with all the Perl bits and core modules
: that can be found in the upstream tarball from perl.org.
:
: If you need only a specific feature, you can install a specific
: package instead. E.g. to handle Perl scripts with /usr/bin/perl
: interpreter, install perl-interpreter package. See
: perl-interpreter description for more details on the Perl
: decomposition into packages.
__________________
Linux server administrator.

Last edited by Enemy1; 03-26-2018 at 01:34.
Enemy1 is offline
Grainz
Junior Member
Join Date: Jan 2016
Old 04-03-2018 , 15:01   Re: run_hlstats problem with latest fedora
Reply With Quote #2

Do any of the logs show the daemon connecting to SQL and retrieving server information?
Grainz is offline
Enemy1
Senior Member
Join Date: Feb 2007
Location: Vaxjo, Sweden
Old 04-04-2018 , 13:21   Re: run_hlstats problem with latest fedora
Reply With Quote #3

No, only:
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/^weapon { <-- HERE steam_id: 'STEAM_\d+.+?)', weapon_id: (\d+), class: \d+, team: \d+, shots: \((\d+),(\d+)\), hits: \((\d+),(\d+)\), damage: \((\d+),(\d+)\), headshots: \((\d+),(\d+)\), kills: \(\d+,\d+\) }$/ at ./hlstats.pl line 3329.

And I have 2 installations in diffrent locations on that server and both give the same error
__________________
Linux server administrator.

Last edited by Enemy1; 04-04-2018 at 13:22.
Enemy1 is offline
Grainz
Junior Member
Join Date: Jan 2016
Old 04-06-2018 , 17:48   Re: run_hlstats problem with latest fedora
Reply With Quote #4

That message is rather harmless, it's more just saying this is written in bad practice.

What is your DebugLevel set in your hlstats daemon conf? Set it to 1 so you can see more log info.
Grainz is offline
Enemy1
Senior Member
Join Date: Feb 2007
Location: Vaxjo, Sweden
Old 04-07-2018 , 02:02   Re: run_hlstats problem with latest fedora
Reply With Quote #5

DebugLevel is set to 1 and it seems as the daemon dies ..

I have reinstalled and tried modifying the script, but I dont know that language..
__________________
Linux server administrator.
Enemy1 is offline
Enemy1
Senior Member
Join Date: Feb 2007
Location: Vaxjo, Sweden
Old 04-10-2018 , 05:56   Re: run_hlstats problem with latest fedora
Reply With Quote #6

I have solved it and the fix was to add \ in front of 3 {

its on line 3329, 3363 and 3382 in hlstats.pl
__________________
Linux server administrator.
Enemy1 is offline
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 07-30-2019 , 15:27   Re: run_hlstats problem with latest fedora
Reply With Quote #7

I cannot quite understand what you just wrote... but I did find this despite that I don't understand Russian from hlmod.ru:-

Code:
It took tonight to raise the demon in the fresh Pearl. Also ran into this. 
Solving the problem (albeit late, but still): open hlstats.pl in Notepad ++ 
To find: 
PHP:
 if ($s_output =~ /^weapon { steam_id: 'STEAM_\d+:(.+?)', weapon_id: (\d+), class: \d+, team: \d+, shots: \((\d+),(\d+)\), hits: \((\d+),(\d+)\), damage: \((\d+),(\d+)\), headshots: \((\d+),(\d+)\), kills: \(\d+,\d+\) }$/ && $g_mode eq "Normal") { 
Replaced by: 
PHP:
 if ($s_output =~ /^weapon \{ steam_id: 'STEAM_\d+:(.+?)', weapon_id: (\d+), class: \d+, team: \d+, shots: \((\d+),(\d+)\), hits: \((\d+),(\d+)\), damage: \((\d+),(\d+)\), headshots: \((\d+),(\d+)\), kills: \(\d+,\d+\) }$/ && $g_mode eq "Normal") { 
To find: 
PHP:
 } elsif ($s_output =~ /^(?:join|change)_class { steam_id: 'STEAM_\d+:(.+?)', .* (?:new_|)class: (\d+), .* }$/ && $g_mode eq "Normal") { 
Replaced by: 
PHP:
 } elsif ($s_output =~ /^(?:join|change)_class \{ steam_id: 'STEAM_\d+:(.+?)', .* (?:new_|)class: (\d+), .* }$/ && $g_mode eq "Normal") { 
To find: 
PHP:
 } elsif ($s_output =~ /^objective { steam_id: 'STEAM_\d+:(.+?)', class: \d+, team: \d+, objective: '(.+?)', time: \d+ }$/ && $g_mode eq "Normal") { 
Replaced by: 
PHP:
 } elsif ($s_output =~ /^objective \{ steam_id: 'STEAM_\d+:(.+?)', class: \d+, team: \d+, objective: '(.+?)', time: \d+ }$/ && $g_mode eq "Normal") { 
After the demon will start as usual.
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster

Last edited by RoboCop; 07-30-2019 at 15:37.
RoboCop is online now
Send a message via Skype™ to RoboCop
Reply


Thread Tools
Display Modes

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


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