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

[L4D & L4D2] Custom Player Stats v1.4B121


Post New Thread Reply   
 
Thread Tools Display Modes
muukis
Veteran Member
Join Date: Apr 2009
Old 05-04-2010 , 16:14   Re: [L4D & L4D2] Custom Player Stats v1.4B80
Reply With Quote #731

Quote:
Originally Posted by banz View Post
Got this error in logs when someone should get the award scatteringram:

SQL Error: Unknown column 'acharger_impacts' in 'field list' (Query: "UPDATE players SET points_infected = points_infected + 40, award_scatteringram = acharger_impacts = charger_impacts + 4 WHERE steamid = 'STEAM_1:1:12345678'"

EDIT: with version 1.4B80
You are correct. Thanks! I will upload a fix soon.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.
muukis is offline
Inf3ct t3D
Junior Member
Join Date: Apr 2010
Old 05-04-2010 , 22:43   Re: [L4D & L4D2] Custom Player Stats v1.4B80
Reply With Quote #732

Quote:
Originally Posted by Inf3ct t3D View Post
Thanks, much appreciated!

Btw.. I am running L4D2.. if that matters.. I just don't understand the whole mysql and php things.. I have a website which supports both, and my server host...

*BUMP*
Inf3ct t3D is offline
Inf3ct t3D
Junior Member
Join Date: Apr 2010
Old 05-05-2010 , 20:08   Re: [L4D & L4D2] Custom Player Stats v1.4B80
Reply With Quote #733

Quote:
Originally Posted by r3dw3r3w0lf View Post
Its very simple, i'll make a tutorial later.

*BUMP* *BUMP*
Inf3ct t3D is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 05-07-2010 , 15:01   Re: [L4D & L4D2] Custom Player Stats v1.4B86
Reply With Quote #734

New version...
  • 7.5.2010 Plugin v1.4B86 and Web Stats
    • General support for all Mutations
    • Bugfixes - Scattering Ram award failed to store to DB because of a bug in query generation. Web stats was still missing some table prefix code and some of the scripts did not take count the new stored stats.
On top of that I did some edits n the web stats. I'm sure some of you will hate it, but you can still continue to use the old template (layout.tpl). Just create your custom layout with only that old file in it.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.

Last edited by muukis; 05-07-2010 at 15:52.
muukis is offline
Darkimmortal
Senior Member
Join Date: Aug 2008
Old 05-08-2010 , 15:45   Re: [L4D & L4D2] Custom Player Stats v1.4B86
Reply With Quote #735

On line 6611 you reference a 7th column -
PHP Code:
ClientGameModePoints[client][GAMEMODE_MUTATIONS] = SQL_FetchInt(hndlGAMEMODE_MUTATIONS); 
However, the query only returns 6: (line 1915)

PHP Code:
    Format(querysizeof(query), "SELECT points, points_survivors + points_infected, points_realism, points_survival, points_scavenge_survivors + points_scavenge_infected, points_realism_survivors + points_realism_infected FROM %splayers WHERE steamid = '%s'"DbPrefixSteamID); 
Unless I'm mistaken, it is leading to this error:

Code:
L 05/08/2010 - 19:29:17: [SM] Native "SQL_FetchInt" reported: Error fetching data from field 6
L 05/08/2010 - 19:29:17: [SM] Displaying call stack trace for plugin "l4d_stats.smx":
L 05/08/2010 - 19:29:17: [SM]   [0]  Line 6611, /home/groups/alliedmodders/forums/files/5/2/0/8/2/65262.attach::GetClientGameModePoints()
L 05/08/2010 - 19:29:17: [SM]   [1]  Line 2013, /home/groups/alliedmodders/forums/files/5/2/0/8/2/65262.attach::QueryClientStatsDP_1()
__________________

Last edited by Darkimmortal; 05-08-2010 at 15:51.
Darkimmortal is offline
DmanWCG
Member
Join Date: Aug 2008
Old 05-08-2010 , 17:38   Re: [L4D & L4D2] Custom Player Stats v1.4B86
Reply With Quote #736

OK, I have a stupid Question. I am running two servers and I have them both running off one DB. If player "A" plays on server #1 will it keep the stats? If player "A" then goes to Server #2 will it add to those stats?
__________________
DmanWCG is offline
Cookies
Member
Join Date: Mar 2010
Old 05-08-2010 , 17:43   Re: [L4D & L4D2] Custom Player Stats v1.4B86
Reply With Quote #737

I dont see why not it does that for me or it did untill i had the problem which is posted above your post.
__________________
Cookies is offline
pompetti
New Member
Join Date: Dec 2009
Old 05-08-2010 , 19:09   Re: [L4D & L4D2] Custom Player Stats v1.4B76
Reply With Quote #738

Quote:
Originally Posted by muukis View Post
I'll look if there is a way to determine if a sound is already precached. Did not know it could cause problems like this.
Any progress on this issue?
pompetti is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 05-09-2010 , 03:05   Re: [L4D & L4D2] Custom Player Stats v1.4B76
Reply With Quote #739

Quote:
Originally Posted by Darkimmortal View Post
On line 6611 you reference a 7th column -
PHP Code:
ClientGameModePoints[client][GAMEMODE_MUTATIONS] = SQL_FetchInt(hndlGAMEMODE_MUTATIONS); 
However, the query only returns 6: (line 1915)

PHP Code:
    Format(querysizeof(query), "SELECT points, points_survivors + points_infected, points_realism, points_survival, points_scavenge_survivors + points_scavenge_infected, points_realism_survivors + points_realism_infected FROM %splayers WHERE steamid = '%s'"DbPrefixSteamID); 
Unless I'm mistaken, it is leading to this error:

Code:
L 05/08/2010 - 19:29:17: [SM] Native "SQL_FetchInt" reported: Error fetching data from field 6
L 05/08/2010 - 19:29:17: [SM] Displaying call stack trace for plugin "l4d_stats.smx":
L 05/08/2010 - 19:29:17: [SM]   [0]  Line 6611, /home/groups/alliedmodders/forums/files/5/2/0/8/2/65262.attach::GetClientGameModePoints()
L 05/08/2010 - 19:29:17: [SM]   [1]  Line 2013, /home/groups/alliedmodders/forums/files/5/2/0/8/2/65262.attach::QueryClientStatsDP_1()
Yes, you are correct! Thanks!

Quote:
Originally Posted by DmanWCG View Post
OK, I have a stupid Question. I am running two servers and I have them both running off one DB. If player "A" plays on server #1 will it keep the stats? If player "A" then goes to Server #2 will it add to those stats?
Yes. Player "A" has one rank for all of the servers running on one database.

Quote:
Originally Posted by pompetti View Post
Any progress on this issue?
Sorry, totally forgot that. I'll dig in right away...
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.
muukis is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 05-09-2010 , 03:16   Re: [L4D & L4D2] Custom Player Stats v1.4B87
Reply With Quote #740

Uploaded a fix for the problems posted above...
  • 9.5.2010 Plugin v1.4B87
    • Bugfixes - Precached sounds may have caused problems with other plugins. Forgot to add mutations in one query. Thanks for the feedback Darkimmortal.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.

Last edited by muukis; 05-09-2010 at 03:28.
muukis 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 21:51.


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