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

[CSGO] Player Connect Log Fix


Post New Thread Reply   
 
Thread Tools Display Modes
headline
SourceMod Moderator
Join Date: Mar 2015
Old 05-16-2018 , 02:07   Re: [CSGO] Player Connect Log Fix
Reply With Quote #101

Quote:
Originally Posted by Allower View Post
Same here:
Code:
[SM] Extension connect-log-fix.ext.2.csgo.so failed to load: Could not find interface: ISourceMod
Latest build from: http://michaelwflaherty.com/connect-log-fix/ (linux in my case)
I believe I've fixed your issue. Try 1.0.0-git22 http://michaelwflaherty.com/connect-log-fix/
headline is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 05-16-2018 , 04:07   Re: [CSGO] Player Connect Log Fix
Reply With Quote #102

Quote:
Originally Posted by Headline View Post
I believe I've fixed your issue. Try 1.0.0-git22 http://michaelwflaherty.com/connect-log-fix/
still does not work
same error message

__________________
8guawong is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 05-16-2018 , 04:20   Re: [CSGO] Player Connect Log Fix
Reply With Quote #103

That usually means that the version of sourcemod used and the version it was compiled against are different. Needs to be recompiled against SM 1.8.
hmmmmm is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 05-16-2018 , 04:39   Re: [CSGO] Player Connect Log Fix
Reply With Quote #104

Quote:
Originally Posted by hmmmmm View Post
That usually means that the version of sourcemod used and the version it was compiled against are different. Needs to be recompiled against SM 1.8.
This is the issue, I fixed the Linux build but forgot to make the adjustment for Windows builds. Give the latest build a shot
headline is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 05-16-2018 , 05:14   Re: [CSGO] Player Connect Log Fix
Reply With Quote #105

Quote:
Originally Posted by Headline View Post
This is the issue, I fixed the Linux build but forgot to make the adjustment for Windows builds. Give the latest build a shot
its working now with the latest "dev build" mm
one question does git23 work with the latest "stable build" mm?
__________________

Last edited by 8guawong; 05-16-2018 at 05:15.
8guawong is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 05-16-2018 , 05:14   Re: [CSGO] Player Connect Log Fix
Reply With Quote #106

Quote:
Originally Posted by 8guawong View Post
its working now
one question does git23 work with the latest "stable" mm?
Yeah it should work fine now with stable
headline is offline
Allower
Senior Member
Join Date: Sep 2013
Location: SourceEngine
Old 06-17-2018 , 16:25   Re: [CSGO] Player Connect Log Fix
Reply With Quote #107

Quote:
Originally Posted by Headline View Post
I believe I've fixed your issue. Try 1.0.0-git22 http://michaelwflaherty.com/connect-log-fix/
Is this possible to work with sm 1.9?

Or you still compile this only for 1.8???
__________________
Allower is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 06-18-2018 , 05:03   Re: [CSGO] Player Connect Log Fix
Reply With Quote #108

You can always load extensions compiled against SM 1.8 on newer SourceMod versions.
__________________
Peace-Maker is offline
Allower
Senior Member
Join Date: Sep 2013
Location: SourceEngine
Old 06-18-2018 , 14:21   Re: [CSGO] Player Connect Log Fix
Reply With Quote #109

Quote:
Originally Posted by Peace-Maker View Post
You can always load extensions compiled against SM 1.8 on newer SourceMod versions.
Yes, i know extension loaded fine:
Code:
-> meta version
 Metamod:Source Version Information
    Metamod:Source version 1.11.0-dev+1107
    Plugin interface version: 16:14
    SourceHook version: 5:5
    Loaded As: Valve Server Plugin
    Compiled on: May  3 2018 04:37:53
    Built from: https://github.com/alliedmodders/metamod-source/commit/988386e
    Build ID: 1107:988386e
    http://www.metamodsource.net/
L 06/18/2018 - 21:16:04: rcon from "193.26.217.146:52484": command "meta version"

-> meta list
Listing 7 plugins:
  [01] SourceMod (1.9.0.6237) by AlliedModders LLC
  [02] Stripper (1.2.2) by BAILOPAN
  [03] CS Tools (1.9.0.6237) by AlliedModders LLC
  [04] SDK Tools (1.9.0.6237) by AlliedModders LLC
  [05] SDK Hooks (1.9.0.6237) by AlliedModders LLC
  [06] SteamWorks Extension (1.2.2) by Kyle Sanderson
  [07] PTaH (P Tools and Hooks) (1.0.8) by Phoenix (˙·٠●Феникс●٠·˙)
L 06/18/2018 - 21:16:16: rcon from "193.26.217.146:52518": command "meta list"

-> sm exts load connect-log-fix.ext.2.csgo.so
[SM] Loaded extension connect-log-fix.ext.2.csgo.so successfully.
L 06/18/2018 - 21:16:33: rcon from "193.26.217.146:52567": command "sm exts load connect-log-fix.ext.2.csgo.so"
But when i or someone connect to server with active ext, server is crashing and your screen infinity stuck like this:

__________________
Allower is offline
e54385991
AlliedModders Donor
Join Date: Aug 2013
Old 08-18-2018 , 22:24   Re: [CSGO] Player Connect Log Fix
Reply With Quote #110

PHP Code:
public void OnPluginStart()
{
    for(
int i 1<= MaxClientsi++)
    {
        if (
IsClientInGame(i))
            
OnClientPostAdminCheck(i);
    }
}
public 
void OnClientPostAdminCheck(int client)
{
    
/*
    * https://github.com/alliedmodders/hl2sdk/blob/98fe5b5a34b3721fe4d60ec7ba3a28ade3512560/game/server/EventLog.cpp#L63-L75
    * 
    */

    
char sIPPort[25];
    
GetClientIP(client,sIPPort,sizeof(sIPPort),false);

    
Event ConnectLogEvent;
    
ConnectLogEvent CreateEvent("player_connect",true);
    
    
char szClientName[MAX_NAME_LENGTH];
    
GetClientName(client,szClientName,MAX_NAME_LENGTH);
    
    
char szAuthID[25];
    
GetClientAuthId(client,AuthId_Engine,szAuthID,sizeof(szAuthID))
    
    
    
ConnectLogEvent.SetInt("userid",GetClientUserId(client))
    
ConnectLogEvent.SetString("address",sIPPort);
    
ConnectLogEvent.SetString("name",szClientName);
    
ConnectLogEvent.SetString("networkid",szAuthID);

    
ConnectLogEvent.Fire();

Maybe we can use sourcepawn

Last edited by e54385991; 08-18-2018 at 22:26.
e54385991 is offline
Send a message via ICQ to e54385991
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 05:10.


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