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

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


Post New Thread Reply   
 
Thread Tools Display Modes
el_psycho
Member
Join Date: Feb 2012
Location: Vancouver, Canada
Old 04-22-2012 , 16:43   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1471

Quote:
Originally Posted by Mr. Man View Post
I was confused because the old link contained a depreciated API method.
This is true. I also got confused when researching this problem becuase as it is right now, the maps image will not work without changing the PHP code.
el_psycho is offline
matrixmark
Senior Member
Join Date: Jun 2010
Old 04-22-2012 , 16:44   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1472

Quote:
Originally Posted by muukis View Post

Some time ago, I made an app for creating your own population.csv files:
https://forums.alliedmods.net/showth...123#post816123
Meh I couldnt get any of that to work... I pasted stuff into the proggy but it didnt do jack and when i just copied it back out and into a file i saved as a .csv it just broke the stats.

Think I'm gonna need some detailed instructions for a dumass (me) dude. If you would be so kind?
matrixmark is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 04-23-2012 , 02:37   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1473

Quote:
Originally Posted by matrixmark View Post
Meh I couldnt get any of that to work... I pasted stuff into the proggy but it didnt do jack and when i just copied it back out and into a file i saved as a .csv it just broke the stats.

Think I'm gonna need some detailed instructions for a dumass (me) dude. If you would be so kind?
At least in Firefox, when you paint the table and copy the text (the i -image is also copied!) to clipboard and paste it to for instance notepad, the text should look something like this (tabulator separated values):
Code:
<    Åland     ÅAL    AReg    Mariehamn    1,555    24,604    25,776    26,766
<    Etelä-Karjala [South Karelia]     EKA    Reg    Lappeenranta    5,613    141,240    137,149    135,604
<    Etelä-Pohjanmaa [South Ostrobothnia]     EPO    Reg    Seinäjoki    13,445    201,670    195,615    193,812
<    Etelä-Savo     ESA    Reg    Mikkeli    14,000    176,089    167,369    160,507
<    Itä-Uusimaa (Östra Nyland)     IUU    Reg    Porvoo    2,761    85,063    89,604    92,933
<    Kainuu    KAI    Reg    Kajaani    21,506    96,957    89,777    85,303
<    Kanta-Häme     KHÄ    Reg    Hämeenlinna    5,199    162,248    165,307    168,381
<    Keski-Pohjanmaa [Central Ostrobothnia]    KPO    Reg    Kokkola    5,273    71,567    71,292    70,696
<    Keski-Suomi [Central Finland]    KSO    Reg    Jyväskylä    16,542    255,948    263,886    269,575
<    Kymenlaakso (Kymmenedalen)    KYM    Reg    Kotka    5,112    193,919    187,474    185,196
Paste this text (not the text above because the format has changed at the allied modders forum) to the populous app and it will convert the text to proper CSV format:
Code:
"County or equivalent","Åland ",26766
"County or equivalent","Etelä-Karjala [South Karelia] ",135604
"County or equivalent","Etelä-Pohjanmaa [South Ostrobothnia] ",193812
"County or equivalent","Etelä-Savo ",160507
"County or equivalent","Itä-Uusimaa (Östra Nyland) ",92933
"County or equivalent","Kainuu",85303
"County or equivalent","Kanta-Häme ",168381
"County or equivalent","Keski-Pohjanmaa [Central Ostrobothnia]",70696
"County or equivalent","Keski-Suomi [Central Finland]",269575
"County or equivalent","Kymenlaakso (Kymmenedalen)",185196
Attached Thumbnails
Click image for larger version

Name:	Capture1.PNG
Views:	174
Size:	33.3 KB
ID:	102627   Click image for larger version

Name:	Capture2.PNG
Views:	175
Size:	35.8 KB
ID:	102628   Click image for larger version

Name:	Capture3.PNG
Views:	154
Size:	20.0 KB
ID:	102629  
__________________
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; 04-23-2012 at 02:48.
muukis is offline
matrixmark
Senior Member
Join Date: Jun 2010
Old 04-23-2012 , 08:43   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1474

Nah didnt work Muukis, I dont know what the heck is going on with it but it just ends up garbling the stats at the bottom up.

Really cba to keep messing with it so thanks anyways.

Last edited by matrixmark; 04-23-2012 at 08:48.
matrixmark is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 04-30-2012 , 01:04   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1475

Hello Mukkis,

I had a question with regards to "big" data such as my statistic DB here: http://176.31.208.74/l4d2stats/

Will there be a point in which the points in the high-score and other leaderboards be so big that they won't display properly? I am just curious.
Mr. Man is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 04-30-2012 , 09:32   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1476

Quote:
Originally Posted by Mr. Man View Post
Hello Mukkis,

I had a question with regards to "big" data such as my statistic DB here: http://176.31.208.74/l4d2stats/

Will there be a point in which the points in the high-score and other leaderboards be so big that they won't display properly? I am just curious.
I'm sure that there is a possibility that the DB can get too heavy, for multiple reasons: DB server cannot handle the data, HD space, 32bit signed values overflow, etc., but I don't think the system is otherwise fragile for a large catalog of player stats. I think Harm, a dude that helped me with the plugin at one point, had a lot bigger row count in comparison to yours. The only problem that he had and I know of was the Google maps, which practically put the DB server on halt for ~10 sec per page load. He was having 50-100 players writing stats at peek times on the server cluster he was then having.
__________________
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
Evkval
Junior Member
Join Date: Jul 2010
Location: Russia
Old 05-02-2012 , 07:00   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1477

Good day!
Please tell me how to display the ip address of the player on the page? Thank you! http://kalibr.myarena.ru/

Last edited by Evkval; 05-02-2012 at 07:01.
Evkval is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 05-02-2012 , 08:36   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1478

Quote:
Originally Posted by Evkval View Post
Good day!
Please tell me how to display the ip address of the player on the page? Thank you! http://kalibr.myarena.ru/
In player.php file (line 235 where it sets the steam_id)...
- Add new line:
PHP Code:
$stats->set("player_ip"$row['ip']); 
Then in player.tpl file (line 56 where it sets the steam id)...
- Add new line:
PHP Code:
<tr><td>IP:</td><td><?php echo $player_ip;?></td></tr>
__________________
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
Evkval
Junior Member
Join Date: Jul 2010
Location: Russia
Old 05-02-2012 , 09:29   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1479

muukis
thank you!!!
Evkval is offline
Chronic1
SourceMod Donor
Join Date: Jun 2011
Old 05-07-2012 , 01:23   Re: [L4D & L4D2] Custom Player Stats v1.4B117
Reply With Quote #1480

Can someone help me set this up without a web site? I'm really confused on what to fill out in the database.cfg and where to put the l4d2stats.sql
__________________
Chronic1 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 23:27.


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