Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
dacomb
Senior Member
Join Date: Oct 2009
Old 01-28-2010 , 13:20   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #91

I would be cool if you could add a Kills Per Hour stat similar to the one listed on the steam stats page...

Just an idea... PPM isn't really the same...
dacomb is offline
banz
Member
Join Date: Jan 2010
Old 01-28-2010 , 14:26   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #92

Quote:
Originally Posted by dacomb View Post
I would be cool if you could add a Kills Per Hour stat similar to the one listed on the steam stats page...

Just an idea... PPM isn't really the same...
Yeah, thats would be nice^^
banz is offline
eargosedown
Member
Join Date: Jan 2010
Old 01-28-2010 , 16:27   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #93

How do I update the l4d_stats.cfg with the new cvars?
eargosedown is offline
iNFiNiTeX
Senior Member
Join Date: Dec 2009
Old 01-28-2010 , 16:41   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #94

"LAN Support Explained:

When playing in LAN (sv_lan = 1) the stats are recorded with IP as player identity. Warning! This feature is highly unreliable because IP addresses are not necessarily static and individual. The webstats don't fully support the IP based stats and some links may not work as specified."

I don't understand why you would use IP for LAN. LAN IP's are not static and are easily shared. Usernames on the otherhand are much more unique in a small LAN setting, and will never be shared.

Code:
GetClientRankAuthString(client, String:auth[], maxlength)
{
    GetClientAuthString(client, auth, maxlength);

    if (StrEqual(auth, "STEAM_ID_LAN", false))
        GetClientIP(client, auth, maxlength);
}
Is this the only code which forces the plugin to use IP tracking if sv_lan 1 is set? In which case, would changing "GetClientIP" to "GetClientName" force it to use nameid instead?

Last edited by iNFiNiTeX; 01-28-2010 at 17:14.
iNFiNiTeX is offline
NaRyan
Member
Join Date: Jan 2010
Location: United Kingdom
Old 01-28-2010 , 19:27   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #95

Would it be possible to add a cvar to not log stats for players that have over x amount of Unicode characters in their name?

Due to the usual ugly all Unicode names that players use.
They end up looking a right mess in the stats.
For e.g This player

I don't mind players using Unicode for some parts of their name.
Since I am in the UK I do get a lot of other European players on my server.
Who use Unicode letters as it's the correct way to spell their name.

It's the players that use all Unicode just to make some stupid "graphical" looking name, that I dislike.

Edit:
Just noticed in the MySQL admin page that it is set to:
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: utf-8_unicode_ci

The MySQL connection collation one can be changed, is there a correct Unicode one to set that too?

oops just noticed that the Name was set to utf-8_general_ci.
Is that correct?

Also does the $dbtimemod = not accept -1 as a valid number?
As the times shown on my stats page are 1 hour ahead of "real time".
I have no idea what is off (time wise), be it Game server, Database, or Website.

Last edited by NaRyan; 01-28-2010 at 20:40. Reason: More info.
NaRyan is offline
chunXray
Member
Join Date: Jul 2009
Old 01-28-2010 , 23:55   Re: [L4D & L4D2] Custom Player Stats v1.4B46
Reply With Quote #96

Quote:
Originally Posted by muukis View Post
Read THIS.

Edit: Try the attached script and tell me if it works for you?
THANKS FOR THAT, it works

however, i got this warning after create timedmaps table
Code:
Duplicate column name 'difficulty'
updatetable.php #996
Code:
$alter_maps = "ALTER TABLE `timedmaps` ADD COLUMN `difficulty` INT(1) UNSIGNED NOT NULL;";
if (mysql_query($alter_maps)) echo "<font color=\"darkgreen\">Timed Maps table altered successfully!</font><br />\n"; else echo "<font color=\"darkred\">" . mysql_error() . "</font><br />\n";
chunXray is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 01-29-2010 , 01:56   Re: [L4D & L4D2] Custom Player Stats v1.4B46
Reply With Quote #97

Quote:
Originally Posted by chunXray View Post
Code:
Duplicate column name 'difficulty'
That is nothing you should worry about. It's not an error in this context.

You can run the updatetable.php as many times you like and it only is supposed to do changes that are needed. It is saying that this change is not needed because there is already a field named as 'difficulty'.
__________________
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
dacomb
Senior Member
Join Date: Oct 2009
Old 01-29-2010 , 01:59   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #98

I'm getting some odd buffer overflow notices in the console log when I restart my server. I posted up a restart with l4dstats enabled and disabled...

I'm using the latest version and gamedata file and web package.

Any idea why this might be happening?
Attached Files
File Type: txt L4D2_Restart_Console_Log_l4dstat_enabled.txt (33.3 KB, 248 views)
File Type: txt L4D2_Restart_Console_Log_l4dstat_disabled.txt (31.2 KB, 236 views)
dacomb is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 01-29-2010 , 03:29   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #99

Quote:
Originally Posted by NaRyan View Post
Would it be possible to add a cvar to not log stats for players that have over x amount of Unicode characters in their name?

Due to the usual ugly all Unicode names that players use.
They end up looking a right mess in the stats.
For e.g This player
I don't like the idea. What would you have me to do - Remove the rest of the unicode characters? Because changing them to a-zA-Z is impossible. In overall this would make things too tricky, imho. Explain to me better what would you have me do and I'll consider it, OK?

Quote:
Originally Posted by NaRyan View Post
It's the players that use all Unicode just to make some stupid "graphical" looking name, that I dislike.
Exactly. I don't like them either, but there's nothing we can do about it.

Quote:
Originally Posted by NaRyan View Post
Just noticed in the MySQL admin page that it is set to:
MySQL charset: UTF-8 Unicode ( utf8 )
MySQL connection collation: utf-8_unicode_ci

The MySQL connection collation one can be changed, is there a correct Unicode one to set that too?

oops just noticed that the Name was set to utf-8_general_ci.
Is that correct?

Also does the $dbtimemod = not accept -1 as a valid number?
As the times shown on my stats page are 1 hour ahead of "real time".
I have no idea what is off (time wise), be it Game server, Database, or Website.
I have a feeling that your webserver is configured differently than mine, since my website shows the unicode correctly. I'll probably need to add the encoding to the web pages... not sure if it's there already?

You should be able to set negative values to the $dbtimemod. It effects the Last Online time hour value. And before you ask, NO, it does not sum these values so that time can be negative (if a players last online time is Jan 21, 2010 01am.)
__________________
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 01-29-2010 , 03:30   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #100

Quote:
Originally Posted by dacomb View Post
I'm getting some odd buffer overflow notices in the console log when I restart my server. I posted up a restart with l4dstats enabled and disabled...

I'm using the latest version and gamedata file and web package.

Any idea why this might be happening?
Sorry, I don't know what's wrong there. Maybe someone with more knowledge on SourcePawn?
__________________
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
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 12:06.


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