Raised This Month: $ Target: $400
 0% 

[INC] loghelper (updated 2010-05-27)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
psychonic

BAFFLED
Join Date: May 2008
Old 12-21-2015 , 07:46   Re: [INC] loghelper (updated 2010-05-27)
Reply With Quote #1

Quote:
Originally Posted by Nerus View Post
Hi, I attached new fixed version working correct with SM 1.7.3.

Changes: deprecated GetClientAuthString to GetClientAuthId.
Code:
        //if (!GetClientAuthString(client, player_authid, sizeof(player_authid)))
        if(GetClientAuthId(client, AuthId_Steam3, player_authid, sizeof(player_authid)))
It looks like you negated the check here, so everyone's auth string in the log will be "UNKNOWN" (or whatever is in the uninitialized buffer on failure). Also, to match the game's own logging on every game, it should be AuthId_Engine instead of AuthId_Steam3.

There are 10 other instances to change as well, not just that one. If it wasn't throwing warnings, it's because stock functions are only compiled in if used, else the compiler ignores them.
psychonic is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-21-2015 , 11:28   Re: [INC] loghelper (updated 2010-05-27)
Reply With Quote #2

Quote:
Originally Posted by psychonic View Post
Code:
        //if (!GetClientAuthString(client, player_authid, sizeof(player_authid)))
        if(GetClientAuthId(client, AuthId_Steam3, player_authid, sizeof(player_authid)))
It looks like you negated the check here, so everyone's auth string in the log will be "UNKNOWN" (or whatever is in the uninitialized buffer on failure). Also, to match the game's own logging on every game, it should be AuthId_Engine instead of AuthId_Steam3.

There are 10 other instances to change as well, not just that one. If it wasn't throwing warnings, it's because stock functions are only compiled in if used, else the compiler ignores them.
I've updated the first post now with all of the GetClientAuthString instances replaced properly.
psychonic 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 11:56.


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