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

[CSGO] Player Connect Log Fix


Post New Thread Reply   
 
Thread Tools Display Modes
SanKen
Senior Member
Join Date: Oct 2012
Location: /var/logs
Old 09-19-2014 , 13:48   Re: [CSGO] Player Connect Log Fix
Reply With Quote #31

Author you can recompile this for SM 4670 or send me a link how to bulid youself ? On linux
__________________
SanKen is offline
Laam4
Member
Join Date: Sep 2014
Old 09-24-2014 , 09:32   Re: [CSGO] Player Connect Log Fix
Reply With Quote #32

I finally figured out why my linux server keeps crashing with this extension.

If you have GeoIPCity and this extension the server will crash on player connect, but this only happens if some plugin is using the GeoIPCity extension, for example Connect Announce. If I unload connect announce no crash occurs and both extensions are loaded. Any ideas how to fix?

Also, how to get debug.log? Server only gives this when -debug is in startup parameters:
Code:
Segmentation fault (core dumped)                                                                       
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Wed Sep 24 16:27:08 EEST 2014: Server restart in 10 seconds
Laam4 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 09-24-2014 , 09:48   Re: [CSGO] Player Connect Log Fix
Reply With Quote #33

Quote:
Originally Posted by Laam4 View Post
I finally figured out why my linux server keeps crashing with this extension.

If you have GeoIPCity and this extension the server will crash on player connect, but this only happens if some plugin is using the GeoIPCity extension, for example Connect Announce. If I unload connect announce no crash occurs and both extensions are loaded. Any ideas how to fix?

Also, how to get debug.log? Server only gives this when -debug is in startup parameters:
Code:
Segmentation fault (core dumped)                                                                       
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Wed Sep 24 16:27:08 EEST 2014: Server restart in 10 seconds
The exact cause isn't readily apparent from just looking at the code. (I'd have to debug it.) But, it certainly seems relevant to Connect Announce blocking or resending the the player_connect event. The preferred alternative to this would be to use SetEventBroadcast (available since around SM 1.4) rather than rewriting the event from scratch to send without broadcasting to clients.
psychonic is offline
psychonic

BAFFLED
Join Date: May 2008
Old 09-24-2014 , 13:50   Re: [CSGO] Player Connect Log Fix
Reply With Quote #34

Followup, it's actually due to this issue, https://bugs.alliedmods.net/show_bug.cgi?id=5097

If an extension (or MM:S plugin, and anything outside of SM really) has a pre-hook on an event, and an SM plugins pre-hooks the same event, and the plugin's hook happens to trigger first, and the plugin blocks the event, a crash will occur.

The best workaround in this case is as mentioned in the previous post, changing Connect Announce to just use SetEventBroadcast instead of dropping and recreating the event.
psychonic is offline
Laam4
Member
Join Date: Sep 2014
Old 09-24-2014 , 14:32   Re: [CSGO] Player Connect Log Fix
Reply With Quote #35

Quote:
Originally Posted by psychonic View Post
Followup, it's actually due to this issue, https://bugs.alliedmods.net/show_bug.cgi?id=5097

If an extension (or MM:S plugin, and anything outside of SM really) has a pre-hook on an event, and an SM plugins pre-hooks the same event, and the plugin's hook happens to trigger first, and the plugin blocks the event, a crash will occur.

The best workaround in this case is as mentioned in the previous post, changing Connect Announce to just use SetEventBroadcast instead of dropping and recreating the event.
Seems to be working now, thanks.
Laam4 is offline
SanKen
Senior Member
Join Date: Oct 2012
Location: /var/logs
Old 10-17-2014 , 17:59   Re: [CSGO] Player Connect Log Fix
Reply With Quote #36

Does it work with SM Version 1.6.3?
__________________
SanKen is offline
SanKen
Senior Member
Join Date: Oct 2012
Location: /var/logs
Old 11-14-2014 , 10:56   Re: [CSGO] Player Connect Log Fix
Reply With Quote #37

Please recompile.
__________________
SanKen is offline
SanKen
Senior Member
Join Date: Oct 2012
Location: /var/logs
Old 11-18-2014 , 18:50   Re: [CSGO] Player Connect Log Fix
Reply With Quote #38

Compilation successful
the question is why the file name is not so
connect_log_fix.ext.2.csgo.so

but only
connect_log_fix.ext.so

L 11/19/2014 - 00:58:56: "SanKen`<12><STEAM_1:0:XXXX><>" connected, address "1x8.x7.xx5.x1x:27005"

Very nice, if anyone

If you want to linux versions (I have only this.) I can upload it.
__________________

Last edited by SanKen; 11-18-2014 at 19:02.
SanKen is offline
musashiwook
Member
Join Date: Feb 2011
Old 01-26-2015 , 02:42   Re: [CSGO] Player Connect Log Fix
Reply With Quote #39

Quote:
Originally Posted by SanKen View Post
If you want to linux versions (I have only this.) I can upload it.
By now, if you can upload linux version i'm interested.
__________________
musashiwook is offline
Nolongerinthegame
AlliedModders Donor
Join Date: Sep 2005
Old 01-29-2015 , 13:45   Re: [CSGO] Player Connect Log Fix
Reply With Quote #40

Could someone please upload a compiled working Windows version please
Nolongerinthegame is offline
Reply



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 12:23.


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