AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   run_hlstats problem with latest fedora (https://forums.alliedmods.net/showthread.php?t=306193)

Enemy1 03-20-2018 10:06

run_hlstats problem with latest fedora
 
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.

Grainz 04-03-2018 15:01

Re: run_hlstats problem with latest fedora
 
Do any of the logs show the daemon connecting to SQL and retrieving server information?

Enemy1 04-04-2018 13:21

Re: run_hlstats problem with latest fedora
 
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

Grainz 04-06-2018 17:48

Re: run_hlstats problem with latest fedora
 
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.

Enemy1 04-07-2018 02:02

Re: run_hlstats problem with latest fedora
 
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..

Enemy1 04-10-2018 05:56

Re: run_hlstats problem with latest fedora
 
I have solved it and the fix was to add \ in front of 3 {

its on line 3329, 3363 and 3382 in hlstats.pl

RoboCop 07-30-2019 15:27

Re: run_hlstats problem with latest fedora
 
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.



All times are GMT -4. The time now is 04:01.

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