Monthly Target: $400 Donations: $110
 27% 

[CSGO] Player Connect Log Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
psychonic

BAFFLED
Join Date: May 2008
Old 03-28-2014 , 16:58   [CSGO] Player Connect Log Fix
Reply With Quote #1

As requested in this thread, this extension restores the "address" field in the "player_connect" game event, allowing the player connect log line to be printed properly like it other games. This was originally working in CS:GO and later broken by an update.

There is nothing to configure. Just extract it to your CS:GO game dir.

Before:
L 03/28/2014 - 16:33:56: "psychonic<2><STEAM_1:1:4153990><>" connected, address ""

After:
L 03/28/2014 - 16:33:56: "psychonic<2><STEAM_1:1:4153990><>" connected, address "192.168.5.9:23821"

Only the source code is attached to this post. For the compiled binary, go here..
Attached Files
File Type: zip connect-log-fix_source.zip (18.9 KB, 425 views)

Last edited by psychonic; 03-11-2016 at 15:06.
psychonic is offline
Ejziponken
SourceMod Donor
Join Date: Apr 2008
Old 03-28-2014 , 17:00   Re: [CSGO] Player Connect Log Fix
Reply With Quote #2

Great work!
Ejziponken is offline
SanKen
Senior Member
Join Date: Oct 2012
Location: /var/logs
Old 06-28-2014 , 12:53   Re: [CSGO] Player Connect Log Fix
Reply With Quote #3

but not working on hlstatsx get kick on join to server.
Code:
Disconnect: Kicked by Console :  Not a Top 2-Player.
Disconnect: Kicked by Console :  Not a Top 2-Player.
LOGS hlstatsx
Code:
2014-06-28 18:31:04:    91.237.52.54:27015 - DEBUG: Updated IP for 73 to IP
2014-06-28 18:31:04:    91.237.52.54:27015 - E001: "SanKen`" <P:73,U:3,W:0:XXXX,T:> connected, address "IP", hostname "", hostgroup ""
2014-06-28 18:31:04:    91.237.52.54:27015 - E001: BAD DATA: "SanKen`<3><STEAM_1:0:XXXX><>" STEAM USERID validated
2014-06-28 18:31:04:    91.237.52.54:27015 - E003: "SanKen`" <P:73,U:3,W:0:XXXX,T:> disconnected (reason "Kicked by Console :  Not a Top 2-Player")
when hlstatsx is not running is fine.
__________________
SanKen is offline
psychonic

BAFFLED
Join Date: May 2008
Old 06-28-2014 , 14:08   Re: [CSGO] Player Connect Log Fix
Reply With Quote #4

It looks like you have your hlstatsx install set to kick all but the top 2 players.

Without this extension, it wasn't detecting connects properly (because IP address was missing from the logs) and not kicking anyone.
psychonic is offline
SanKen
Senior Member
Join Date: Oct 2012
Location: /var/logs
Old 06-28-2014 , 14:38   Re: [CSGO] Player Connect Log Fix
Reply With Quote #5

Quote:
Originally Posted by psychonic View Post
It looks like you have your hlstatsx install set to kick all but the top 2 players.
how off this settings ?
__________________
SanKen is offline
SanKen
Senior Member
Join Date: Oct 2012
Location: /var/logs
Old 07-02-2014 , 19:34   Re: [CSGO] Player Connect Log Fix
Reply With Quote #6

bump, you can help ?
__________________
SanKen is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-02-2014 , 20:58   Re: [CSGO] Player Connect Log Fix
Reply With Quote #7

Quote:
Originally Posted by SanKen View Post
bump, you can help ?
Do not bump; read the rules.

The HLstatsX forums are at https://forums.alliedmods.net/forumdisplay.php?f=156
psychonic is offline
nelioneil
SourceMod Donor
Join Date: Sep 2005
Old 07-03-2014 , 16:01   Re: [CSGO] Player Connect Log Fix
Reply With Quote #8

Crashes my server when I join server. I can see the IP address logged
nelioneil is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-03-2014 , 18:14   Re: [CSGO] Player Connect Log Fix
Reply With Quote #9

Quote:
Originally Posted by nelioneil View Post
Crashes my server when I join server. I can see the IP address logged
It probably needs to be recompiled against the latest hl2sdk-csgo. I'll do when time permits.
psychonic is offline
SanKen
Senior Member
Join Date: Oct 2012
Location: /var/logs
Old 07-25-2014 , 13:08   Re: [CSGO] Player Connect Log Fix
Reply With Quote #10

anyone testing with SM 1.6+ and hlstatsx ?
__________________
SanKen is offline
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 08:38.


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