Monthly Target: $400 Donations: $147
 36% 

Pure-logger


Post New Thread Reply   
 
Thread Tools Display Modes
Author
paegus
Senior Member
Join Date: Nov 2004
Location: Extreme low earth orbit
Plugin ID:
666
Plugin Version:
1.0.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Write sv_pure related kicks to a log file.
    Old 12-08-2008 , 21:02   Pure-logger
    Reply With Quote #1

    Code:
    /*
     * Pure kick log
     *
     * Description:
     *  Logs client disconnection due to file inconsistencies.
     *
     * Changelog:
     *  v1.0.0
     *   Initial release.
     */
    relatively simple really. could add database support i suppose but cbb right now.

    Ideally for periodic review so if you only protect certain vulnerable files you can see what clients are altering them.
    Attached Files
    File Type: sp Get Plugin or Get Source (purelog.sp - 1099 views - 2.6 KB)
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod
    paegus is offline
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 12-09-2008 , 00:08   Re: Pure-logger
    Reply With Quote #2

    Why don't you store the BuildPath directory calling it on OnPluginStart instead of calling it whenever someone gets kicked due the pure kick? So it won't be called twice.
    Sammy-ROCK! is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 12-12-2008 , 07:10   Re: Pure-logger
    Reply With Quote #3

    well so far it's called fairly infrequently. only once or twice a day so i wasn't that fussed. I'll move up to PluginStart though thanks.
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod
    paegus is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 04-11-2009 , 05:22   Re: Pure-logger
    Reply With Quote #4

    Sorry to bring up an old topic but what about logging who has stuff that is being blocked. Kicking is disabled.
    __________________

    DontWannaName is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 04-11-2009 , 14:00   Re: Pure-logger
    Reply With Quote #5

    i wish but no joy as yet i'm afraid.
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod
    paegus is offline
    f64
    Member
    Join Date: Jun 2007
    Location: Houston, TX USA
    Old 04-12-2009 , 19:44   Re: Pure-logger
    Reply With Quote #6

    Not knocking your idea, but all I have to do is search in the default logs directory for files
    containing the phrase Pure server and I can find all the instances.

    The server will only write a log under the following conditions:

    sv_pure 1
    sv_pure_kick_clients 1
    sv_pure_trace 1

    And will only show you the first file it finds, not all of them. If you have:

    sv_pure_kick_clients 0

    Only the client will recieve a console message, not the server log.
    __________________
    Game: DOD:S
    f64 is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 04-13-2009 , 07:15   Re: Pure-logger
    Reply With Quote #7

    disconnections (in this case case caused by sv_pure_kick_clients 1) are indeed logged normally. i just couldn't be arsed to search masses and masses of log files for 1 or 2 instances of inconsistency when it is far simpler to have the plugin check why they were disconnected and if it's a pure reason then log it to a separate file for ease of access etc...

    Quote:
    Originally Posted by f64 View Post
    And will only show you the first file it finds, not all of them.
    not sure what you mean by that... what will only show me the first file it finds? a directed search will show me any files i want it to.


    originally i'd wanted to just see what inconsistencies where occurring and possibly react later but as mentioned sv_pure_kick_clients 0 does not leave any logged evidence so there's no way to log that information... which is unfortunate.

    if you don't see the point in the plugin then you don't have to use it. but if you want to access a list of violations quickly, without having to faff about searching through your numerous logs then by all means, log them separately.
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod
    paegus is offline
    f64
    Member
    Join Date: Jun 2007
    Location: Houston, TX USA
    Old 04-13-2009 , 16:24   Re: Pure-logger
    Reply With Quote #8

    Your plugin should be faster than downloading the logs, so not a bad idea really.
    I dl'ed 15,000 logs the other day out of curiosity, which took awhile.
    The search for phrases in those files was much, much faster.

    Over 3 months time, I found about 20 files that had pure server disconnects. Most were sound files,
    some were our custom models, and one was an extra file, which isn't a cheating attempt at all.

    If a client has multiple files that don't match the server's crc files, then the server
    will only report the first file it comes to that differs instead of listing all of them. Hope that helps.
    __________________
    Game: DOD:S
    f64 is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 04-13-2009 , 19:05   Re: Pure-logger
    Reply With Quote #9

    ahh right. yeah it reacts to the 1st one only which was why i wanted to be able to see ALL the files that broke consistency. unfortunately those violations are only printed to the server's console but not logged in any way that SM can detect, or that anyone has told me how to intercept.

    perhaps a Metamod pluging?
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod
    paegus is offline
    IceCucumber
    Member
    Join Date: Dec 2011
    Old 07-19-2013 , 05:43   Re: Pure-logger
    Reply With Quote #10

    Any way to get the entire message logged, instead of

    Quote:
    L 07/17/2013 - 01:26:50: STEAM_0:1:12345678 (Name) (IP:27005) - Pure server: client has loaded extra file [GAME]\materials\m...
    or

    Quote:
    L 07/18/2013 - 13:59:00: STEAM_0:1:12345678 (Name) (IP:27005) - Pure server: file [GAME]\materials\building\facade02.vmt doe...
    ?

    Especially with long file paths, it's impossible to see which file was in question.

    Last edited by IceCucumber; 07-19-2013 at 05:43.
    IceCucumber 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 09:41.


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