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

[L4D & L4D2] Custom Player Stats v1.3B53 (MOVED)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
titan_rw
Member
Join Date: Sep 2009
Old 12-12-2009 , 21:55   Re: [L4D & L4D2] Player Stats (Co-op and Versus) v1.2B87
#151

Quote:
Originally Posted by ldoh0112 View Post
so..
this is possible or impossible?
If possible, how?
Yes, I think it's possible, but as already stated, getting the core (guts) of it working first is higher priority.

Plus most people will only have stats from one gametype.

Here's an example on our current l4d2 db.

mysql> select count(name) from players;
+-------------+
| count(name) |
+-------------+
| 3998 |
+-------------+
1 row in set (0.02 sec)

mysql> select count(name) from players where playtime > 10 and playtime_versus > 10;
+-------------+
| count(name) |
+-------------+
| 9 |
+-------------+
1 row in set (0.03 sec)

Only 9 people out of almost 4,000 have more than 10 minutes in both coop, and vs. The two server admins are two of those 9 because of testing.
titan_rw is offline
ldoh0112
Member
Join Date: Nov 2009
Location: The Republic of Korea
Old 12-12-2009 , 22:20   Re: [L4D & L4D2] Player Stats (Co-op and Versus) v1.2B87
#152

but some people
made that
ldoh0112 is offline
harmgsn
Member
Join Date: Nov 2009
Old 12-12-2009 , 22:31   Re: [L4D & L4D2] Player Stats (Co-op and Versus) v1.2B87
#153

Code:
mysql> select count(name) from players;
+-------------+
| count(name) |
+-------------+
|        4029 |
+-------------+
1 row in set (0.00 sec)

mysql> select count(name) from players where playtime_versus != 0 and playtime != 0;
+-------------+
| count(name) |
+-------------+
|          19 |
+-------------+
1 row in set (0.01 sec)


mysql> select count(name) from players where playtime_versus != 0 and playtime = 0;
+-------------+
| count(name) |
+-------------+
|        2035 |
+-------------+
1 row in set (0.01 sec)



mysql> select count(name) from players where playtime != 0 and playtime_versus = 0;
+-------------+
| count(name) |
+-------------+
|        1976 |
+-------------+
1 row in set (0.02 sec)
So yeah, the majority are one or the other, but not both.

Oh, and some other fun with numbers:

Code:
mysql> select (SUM(headshots) / SUM(kills))*100 from players;
+-----------------------------------+
| (SUM(headshots) / SUM(kills))*100 |
+-----------------------------------+
|                           11.1474 |
+-----------------------------------+
1 row in set (0.02 sec)
Code:
mysql> select ((SUM(points) / SUM(playtime))) from players;
+---------------------------------+
| ((SUM(points) / SUM(playtime))) |
+---------------------------------+
|                         12.9006 |
+---------------------------------+
1 row in set (0.01 sec)
Basically... 11.14% of all kills are a headshot and on average people are earning 12.9 points per minute.

harmgsn is offline
ldoh0112
Member
Join Date: Nov 2009
Location: The Republic of Korea
Old 12-13-2009 , 00:31   Re: [L4D & L4D2] Player Stats (Co-op and Versus) v1.2B87
#154

well..
how pounce rank?
ldoh0112 is offline
Downtown1
Veteran Member
Join Date: Mar 2004
Old 12-13-2009 , 00:32   Re: [L4D & L4D2] Player Stats (Co-op and Versus) v1.2B87
#155

Plugins should only use zip/tar/bz2/gz for compressed packages. No 7z/rar please.
Downtown1 is offline
harmgsn
Member
Join Date: Nov 2009
Old 12-13-2009 , 01:42   Re: [L4D & L4D2] Player Stats (Co-op and Versus) v1.2B87
#156

Titan and I confirmed that this *DOES* work with the prior databases from the original plugin. Run the updatetables.php and then drop the new plugin in place. Make sure that you update all of the web files too.
harmgsn is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-13-2009 , 02:12   Re: [L4D & L4D2] Player Stats (Co-op and Versus) v1.2B87
#157

Quote:
Originally Posted by Downtown1 View Post
Plugins should only use zip/tar/bz2/gz for compressed packages. No 7z/rar please.
The 7z contains a comparison report from two different versions of the plugin, a feature in Beyond Compare application. The file compressed in the 7z is one HTML-file of a size little less than 2MB. 7z is by far the best text compressor, so I'd use it in this case... but will of course change it if it's against forum rules or common practice. The file itself is not very usable to most, because it's just a comparison report and not many are interested of those.

The only reason I uploaded a comparison report is because I hoped people would get in to the code a lot easier and would see what the plugin is doing. Seeing the process and modification I have done. Then hopefully someday coming out to do something for the cause - fixing bugs and other issues, and customizations like I am doing.

Last edited by muukis; 12-13-2009 at 02:27.
muukis is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-13-2009 , 12:21   Re: [L4D & L4D2] Player Stats (Co-op and Versus) v1.2B87
#158

Quote:
Originally Posted by harmgsn View Post
I'll let muukis figure that one out ;)
Well... it was just a copy&paste error. The InvalidGameMode() returned true on realism, when it was supposed to return false, of course...
muukis is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-13-2009 , 14:30   [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3A5
#159

This is again PURE TEST VERSION. Realism mode hopefully works this time better.

I modified the gametype field name to gamemode, as it was supposed to be. This version also implements lot of stats collecting features to L4D2 new special infected. It should also be able to give a Jockey award from driving a survivor off the ledge. All external damage from the common infected is forwarded to the new specials like it was done to the first specials.

EDIT: Included realism web templates.
EDIT: Bugfix.
EDIT: Removed attachment.

Last edited by muukis; 12-14-2009 at 08:34.
muukis is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-14-2009 , 09:04   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B10
#160

Updated first post. Functionality may still be flawed, but in general it works.
muukis is offline
Closed Thread


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 06:17.


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