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

[Counter strike Source]Players duplicates again after update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KingPovilas
Junior Member
Join Date: Aug 2015
Old 09-17-2015 , 13:59   [Counter strike Source]Players duplicates again after update
Reply With Quote #1

Hi , after css update players started to duplicate again,can anyone provide some info how to fix it?

Thanks

Last edited by KingPovilas; 09-20-2015 at 06:59.
KingPovilas is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 09-18-2015 , 07:52   Re: Players duplicates again after update
Reply With Quote #2

Can confirm this. Player one has STEAM_0:0:28257275 and duplicate player has STEAM_0:[U:1:56514550]
__________________
micazoid is offline
musosoft
Senior Member
Join Date: Dec 2008
Location: Thailand
Old 09-18-2015 , 11:41   Re: Players duplicates again after update
Reply With Quote #3

Try this:

1. SQL query

PHP Code:
CREATE TABLE IF NOT EXISTS hlstats_PlayerUniqueIds_copy LIKE hlstats_PlayerUniqueIds;
INSERT hlstats_PlayerUniqueIds_copy SELECT FROM hlstats_PlayerUniqueIds WHERE NOT EXISTS (SELECT FROM hlstats_PlayerUniqueIds_copy);
DELETE FROM hlstats_PlayerUniqueIds WHERE (game 'css' OR 'dods' OR 'hl2mp') AND INSTR(uniqueId'U') > 0;
UPDATE IGNORE hlstats_PlayerUniqueIds SET uniqueId=CONCAT('[U:1:'SUBSTR(uniqueId11)+SUBSTR(uniqueId3)*2']'WHERE (game 'css' OR 'dods' OR 'hl2mp'); 


2. hlstats.pl edit

Under getPlayerInfo replace lines containing $uniqueid with:

PHP Code:
$uniqueid =~ /^\[U:1:(\d+)\]/;
$uniqueid = $1
^^ borrowed from https://forums.alliedmods.net/showth...32#post2188432


Reported not working, hope someone can post proper solution. Currently only way I know is reinstalling HlstatsX
__________________
Making FiveM servers nowadays. Can help with CS:GO, CS:S, and other Source server stuff too, just PM me. Thanks

Last edited by musosoft; 09-19-2015 at 16:54.
musosoft is offline
KingPovilas
Junior Member
Join Date: Aug 2015
Old 09-18-2015 , 13:14   Re: Players duplicates again after update
Reply With Quote #4

Ill try this tomorrow,but maybe someone has actual info,if our steam id in counter strike source gonna stay as they are now,starting with U or they will be swapped back as it was before?
KingPovilas is offline
stoneyschillhouse
Senior Member
Join Date: Nov 2012
Old 09-18-2015 , 15:15   Re: Players duplicates again after update
Reply With Quote #5

Quote:
Originally Posted by musosoft View Post
Try

PHP Code:
CREATE TABLE hlstats_PlayerUniqueIds_copy LIKE hlstats_PlayerUniqueIds
INSERT hlstats_PlayerUniqueIds_copy SELECT 
FROM hlstats_PlayerUniqueIds
DELETE FROM hlstats_PlayerUniqueIds WHERE game 
'css' AND INSTR(uniqueId'U') > 0
UPDATE hlstats_PlayerUniqueIds SET uniqueId
=CONCAT('[U:1:'SUBSTR(uniqueId11)+SUBSTR(uniqueId3)*2']'WHERE game 'css' 

Thanks
This code have a syntax error

if I take each line individually I always get at least one error message.

it shows effect, but only for players that are already deposited with the v3 ID in the database.

I hope there is
__________________
SRY FOR MY BAD ENGLISH
I'm german
stoneyschillhouse is offline
musosoft
Senior Member
Join Date: Dec 2008
Location: Thailand
Old 09-18-2015 , 16:56   Re: Players duplicates again after update
Reply With Quote #6

edited post above thank you! kindly share errors if any
__________________
Making FiveM servers nowadays. Can help with CS:GO, CS:S, and other Source server stuff too, just PM me. Thanks

Last edited by musosoft; 09-18-2015 at 17:15.
musosoft is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 09-18-2015 , 18:24   Re: Players duplicates again after update
Reply With Quote #7

Will your solution make use of old data or is every player considered as new player musoft?

Another Question:

WHERE game = 'css';

will this just be good for css game? I have dods? Do I have to change that?

Got an error here:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT hlstats_PlayerUniqueIds_copy SELECT * FROM hlstats_PlayerUniqueIds
DELET' at line 2
__________________

Last edited by micazoid; 09-18-2015 at 18:39.
micazoid is offline
musosoft
Senior Member
Join Date: Dec 2008
Location: Thailand
Old 09-18-2015 , 19:12   Re: Players duplicates again after update
Reply With Quote #8

This solution will convert old SteamID32 to new Steam3ID,

there might be some problems with superlogs which will still log old SteamID32 format, I recommend to disable this plugin until it's updated to Steam3ID

I updated statement to track dods and hl2mp also

Regarding that error... Start from third line, as it seems that you have already backup (_copy) created...
__________________
Making FiveM servers nowadays. Can help with CS:GO, CS:S, and other Source server stuff too, just PM me. Thanks
musosoft is offline
Fragenstein
Member
Join Date: Mar 2005
Old 09-19-2015 , 19:38   Re: Players duplicates again after update
Reply With Quote #9

Quote:
Originally Posted by musosoft View Post
This solution will convert old SteamID32 to new Steam3ID,

there might be some problems with superlogs which will still log old SteamID32 format, I recommend to disable this plugin until it's updated to Steam3ID

I updated statement to track dods and hl2mp also

Regarding that error... Start from third line, as it seems that you have already backup (_copy) created...
superlogs hasn't been updated since 2010, so I don't think that's going to happen. I'm having the same issue:
Code:
L 09/20/2015 - 19:21:22: "Coffee’ "Can Do"<99><STEAM_0:1:7818xxx><CT>" triggered "headshot"
L 09/20/2015 - 19:21:22: "Coffee’ "Can Do"<99><[U:1:15636xxx]><CT>" killed "Bob<158><BOT><TERRORIST>" with "glock" (headshot)
__________________
Fragenstein is offline
Kahl_Drogo
Senior Member
Join Date: Apr 2012
Old 09-20-2015 , 06:39   Re: Players duplicates again after update
Reply With Quote #10

Hi All,

I think I solved and fixed problem with duplicate (STEAM3)

In superlogs-tf2.sp and loghelper.inc

I replaced all GetClientAuthString to new function GetClientAuthId(client, AuthId_Steam3, player_authid, sizeof(player_authid))

Let me know if also work for you
Attached Files
File Type: sp Get Plugin or Get Source (superlogs-tf2.sp - 79 views - 47.3 KB)
File Type: inc loghelper.inc (7.4 KB, 61 views)
__________________

Last edited by Kahl_Drogo; 09-20-2015 at 06:41.
Kahl_Drogo 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 08:43.


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