Raised This Month: $ Target: $400
 0% 

Converting old steam ids in database to new


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 08-24-2014 , 07:23   Converting old steam ids in database to new
Reply With Quote #1

We are trying to figure out how to simple replace old steam ids in our database to their new ids. Yes hlstats is tracking the new ids however since it is different it gives each player a new player id and ideally we would want to simply transfer all current points/ranks etc from the old steam ids to their respective new ids. I'm certain there is a way to do this I just can't find it. Anyone able to help?
Phaiz is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 08-24-2014 , 07:38   Re: Converting old steam ids in database to new
Reply With Quote #2

https://forums.alliedmods.net/showpo...5&postcount=13 ?
Rytis is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 08-24-2014 , 07:40   Re: Converting old steam ids in database to new
Reply With Quote #3

Quote:
Originally Posted by Rytis View Post
Thanks I'll give this a shot, must have missed it cause we've been frantically trying to fix this
Phaiz is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 08-24-2014 , 09:29   Re: Converting old steam ids in database to new
Reply With Quote #4

Well that converted all old ids to the new id, but when a player joins it still creates an extra player id with their old steam id.
It will even show two of me if I join the server.

Last edited by Phaiz; 08-24-2014 at 09:29.
Phaiz is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 08-24-2014 , 09:38   Re: Converting old steam ids in database to new
Reply With Quote #5

https://forums.alliedmods.net/showpo...2&postcount=17
Rytis is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 08-24-2014 , 09:57   Re: Converting old steam ids in database to new
Reply With Quote #6

Quote:
Originally Posted by Rytis View Post
#1062 - Duplicate entry '0-tf' for key 'PRIMARY'
Phaiz is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 08-24-2014 , 11:41   Re: Converting old steam ids in database to new
Reply With Quote #7

Did you executed the SQL command? You shouldn't if you already executed the PHP script. Just make the changes that you can see under 'And replacing the $uniqueid in hlstats.pl sub getPlayerInfo with this.'
Rytis is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 08-24-2014 , 18:05   Re: Converting old steam ids in database to new
Reply With Quote #8

Quote:
Originally Posted by Rytis View Post
Did you executed the SQL command? You shouldn't if you already executed the PHP script. Just make the changes that you can see under 'And replacing the $uniqueid in hlstats.pl sub getPlayerInfo with this.'
At that point I had made so many changes that it's hard to say what was done. Looks like my dev reverted to a previous backup and tried again and now it seems to be working with old steam ids just fine.
Phaiz 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 17:39.


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