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

Fix SteamIDs for the new update


Post New Thread Reply   
 
Thread Tools Display Modes
kelvin31
Member
Join Date: May 2010
Old 08-27-2014 , 23:29   Re: Fix SteamIDs for the new update
Reply With Quote #21

can any body teach me....how to run that php script... I m not programmer.....thanks...
kelvin31 is offline
Sreaper
髪を用心
Join Date: Nov 2009
Location: Source SDK
Old 08-28-2014 , 00:08   Re: Fix SteamIDs for the new update
Reply With Quote #22

Just get Sourcemod snapshot 4558 and use the old steam ids.
__________________
Sreaper is offline
C00ller
Junior Member
Join Date: Sep 2007
Old 08-28-2014 , 02:56   Re: Fix SteamIDs for the new update
Reply With Quote #23

Quote:
Originally Posted by Sreaper View Post
Just get Sourcemod snapshot 4558 and use the old steam ids.
What about snapshop 4559, is it suitable?
C00ller is offline
Sreaper
髪を用心
Join Date: Nov 2009
Location: Source SDK
Old 08-28-2014 , 03:26   Re: Fix SteamIDs for the new update
Reply With Quote #24

Quote:
Originally Posted by C00ller View Post
What about snapshop 4559, is it suitable?
Probably, since others claim that it works for them.
__________________

Last edited by Sreaper; 08-28-2014 at 03:33.
Sreaper is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 08-28-2014 , 13:20   Re: Fix SteamIDs for the new update
Reply With Quote #25

I'm using 4559 and it works fine
Phaiz is offline
bottiger
AlliedModders Donor
Join Date: Dec 2010
Old 08-28-2014 , 18:50   Re: Fix SteamIDs for the new update
Reply With Quote #26

Quote:
Originally Posted by Phaiz View Post
I'm assuming that these "cosmetic" issues would include a players stats page not showing their avatar?
I didn't notice it was broken but to fix it just edit playerinfo_general.php and find the Player profile table and replace it with this.

PHP Code:
                                <tr class="data-table-head">
                                        <td style="vertical-align:top;">Player Profile<br /><br /></td>
                                        <td style="text-align:center; vertical-align:middle;" rowspan="7" id="player_avatar">
                                                <?php
                                                        $db
->query
                                                        
("
                                                                SELECT
                                                                        hlstats_PlayerUniqueIds.uniqueId,
                                                                        CONCAT('[U:1:',hlstats_PlayerUniqueIds.uniqueId,']') AS communityId
                                                                FROM
                                                                        hlstats_PlayerUniqueIds
                                                                WHERE
                                                                        hlstats_PlayerUniqueIds.playerId = '
$player'
                                                        "
);
                                                        list(
$uqid$coid) = $db->fetch_row();
                                                        
$pagedata file_get_contents("http://steamcommunity.com/profiles/$coid?xml=1");
                                                        
preg_match('/<onlineState>(.*?)<\/onlineState>/'$pagedata$results);
                                                        
preg_match('/<avatarFull><!\[CDATA\[(.*?)\]\]><\/avatarFull>/'$pagedata$results2);
                                                        
$status ucwords($results[1]);
                                                        
$avatar_full $results2[1];
                                                        
$avimg getImage("/avatars/$player");
                                                        if (
$avimg)
                                                        {
                                                                
$avatar_full $avimg['url'];
                                                        }
                                                        else if (
$avatar_full == '' || $playerdata['blockavatar'] == '1')
                                                        {
                                                                
$avatar_full IMAGE_PATH."/unknown.jpg";
                                                        }
                                                        if (
$status == '')
                                                                
$status '(Unknown)';
                                                        echo(
"<img src=\"$avatar_full\" style=\"height:158px;width:158px;\" alt=\"Steam Community Avatar\" />");
                                                
?>
                                        </td>
                                </tr>
__________________
bottiger is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 08-30-2014 , 08:40   Re: Fix SteamIDs for the new update
Reply With Quote #27

I'm surprised the HLStats team hasn't released an update to this yet... I'm really not wanting to do patch work on something that is normally been supported well.
Horsedick is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Old 08-30-2014 , 16:34   Re: Fix SteamIDs for the new update
Reply With Quote #28

Quote:
Originally Posted by Horsedick View Post
I'm surprised the HLStats team hasn't released an update to this yet... I'm really not wanting to do patch work on something that is normally been supported well.
Let me be as blunt as I can, I work for a living......so I have not finished looking over these changes and what effected they will have IE does it cause older games like HL2MP to stop working ? or does it conflict with DOD?

Checking these things takes time, this has happened about a week ago...so I have not had a weekend yet to work on it.....

I did not plan for HLX to have any major changes to the current code so I don't know it very well (To be clear I know what it does as a whole but what parts do what function not so much); So if the changes in this thread conflict create bugs it will be even longer before you see a "release" fix...

Be happy that I am at least trying to keep this project alive, if you want to see it move faster // have more active support then the community is going to have to step up....This project does not pay the bills so my job comes first....
__________________
Mavrick4283 is offline
C00ller
Junior Member
Join Date: Sep 2007
Old 08-31-2014 , 09:06   Re: Fix SteamIDs for the new update
Reply With Quote #29

About HLStatsX and SM snapshot (4559) with converting to the old IDs: is it enough to use snapshot for stats gets normal or the patch from the 1st post must be applied too?

I'm watching one server that use the SM from snapshot and stats is going crazy: every player has a clone, server list shows players twice, and some score goes to one player record (old ID), some to new one I wonder it's because of new IDs that left in the hlstats_PlayerUniqueIds table, or because of SM utilizing both ID formats...

Last edited by C00ller; 08-31-2014 at 10:01.
C00ller is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 08-31-2014 , 09:58   Re: Fix SteamIDs for the new update
Reply With Quote #30

Quote:
Originally Posted by Mavrick4283 View Post
Let me be as blunt as I can, I work for a living......so I have not finished looking over these changes and what effected they will have IE does it cause older games like HL2MP to stop working ? or does it conflict with DOD?

Checking these things takes time, this has happened about a week ago...so I have not had a weekend yet to work on it.....

I did not plan for HLX to have any major changes to the current code so I don't know it very well (To be clear I know what it does as a whole but what parts do what function not so much); So if the changes in this thread conflict create bugs it will be even longer before you see a "release" fix...

Be happy that I am at least trying to keep this project alive, if you want to see it move faster // have more active support then the community is going to have to step up....This project does not pay the bills so my job comes first....

Listen...I'll be blunt as well. I said TEAM - I'm unaware or was unaware it was only you working on it. You act as if I'm attacking you or the project and that is far from it. I understand all to well about a full time job coming first but don't sit here and react like this when this wasn't my intentions and I'm sure others didn't intend to come off that either. If you want help from the community then make a sticky post about it rather wait till someone inquires about a issue and you go off on them with whatever reasons you have.

I use this project and enjoy it...but speak up a little...if the support isn't there then that is fine but you gotta let people know so they can make decisions to do something else or wait.

Last edited by Horsedick; 08-31-2014 at 09:59.
Horsedick 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 04:50.


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