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

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


Post New Thread Reply   
 
Thread Tools Display Modes
DmanWCG
Member
Join Date: Aug 2008
Old 02-24-2010 , 07:27   Re: [L4D & L4D2] Custom Player Stats v1.4B66
Reply With Quote #401

Quote:
Originally Posted by muukis View Post
What exactly do you mean? Players Online, Top10, Player Ranking, ...
Limit the total amount of plays that are ranked. My total players right now are 1,100. Can I limit the list to 100 or 200?
__________________
DmanWCG is offline
NaRyan
Member
Join Date: Jan 2010
Location: United Kingdom
Old 02-24-2010 , 08:23   Re: [L4D & L4D2] Custom Player Stats v1.4B66
Reply With Quote #402

Quote:
Originally Posted by kwski43 View Post
I've made a common.php modification for those people who are playing l4d1inl4d2 maps on server and don't want to show these maps as Custom maps.
This will look like:
http://stats.jacklul-l4d2.tk/maps.php?type=coop

Works with $game_version = 2 and 0


@muukis:
Code:
$realism_campaigns = array("c1" => "Dead Center (L4D2)",
                       "c2" => "Dark Carnival (L4D2)",
                       "c3" => "Swamp Fever (L4D2)",
                       "c4" => "Hard Rain (L4D2)",
                       "c5" => "The Parish (L4D2)",
                       "l4d_hospital" => "No Mercy - Co-op (L4D1)",
                       "l4d_airport" => "Dead Air - Co-op (L4D1)",
                       "l4d_smalltown" => "Death Toll - Co-op (L4D1)",
                       "l4d_farm" => "Blood Harvest - Co-op (L4D1)",
                       "l4d_garage" => "Crash Course (L4D1)",
                       "" => "Custom Maps (L4D2)");
}
l4d1 maps works with realism(for me, idk if for u)
I tried that on my stats site.
However I am using the Modified L4D1 maps so they start l4d2_
Yet they are still showing up in custom area.

Is that due to them being played before I altered the common.php file?
I do re-set my stats once a month however it's not due to get rest again until 19th of next moth now
NaRyan is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 02-24-2010 , 08:44   Re: [L4D & L4D2] Custom Player Stats v1.4B66
Reply With Quote #403

Quote:
Originally Posted by NaRyan View Post
I tried that on my stats site.
However I am using the Modified L4D1 maps so they start l4d2_
Yet they are still showing up in custom area.

Is that due to them being played before I altered the common.php file?
I do re-set my stats once a month however it's not due to get rest again until 19th of next moth now
This [ code ] was to muukis (when $game_version = 0 to show l4d1 maps to work with realism, jsut a suggestion).
Its because they got custom = 1 in db. You can fix it one by one. Or by sql query: (im not sure)
Code:
UPDATE maps SET custom = 0 WHERE name like 'l4d%'
(for maps starting with l4d)
Code:
UPDATE maps SET custom = 0 WHERE  name like 'l4d2%'
(for maps starting with l4d2)


See reuploaded common.php(it was deleted?): https://forums.alliedmods.net/showpo...&postcount=392

-------------------------------------------------------

This is my testing-stage ip2country in seperated db support.
Great when sharing ip2country tables with somebody.

[ seperated_ip2country.zip ]

See config_example.php.

Know bugs/issues/problems:
-there are no country flags on awards page? (fixed)
-currently it creates 4 additional db connections
-not sure if php4 version works

UPDATED (
24-02-10 at 03:05 PM )
fixed no closed mysql_close();
Attached Files
File Type: zip seperated_ip2country.zip (8.1 KB, 165 views)
__________________

Last edited by kwski43; 02-25-2010 at 02:05.
kwski43 is offline
mustafata
Member
Join Date: Nov 2009
Old 02-24-2010 , 11:30   Re: [L4D & L4D2] Custom Player Stats v1.4B66
Reply With Quote #404

Any simpler way to explain how to put this plugin ?
Or any simpler tutorial for slower ppl like me ?
mustafata is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 02-24-2010 , 11:40   Re: [L4D & L4D2] Custom Player Stats v1.4B66
Reply With Quote #405

Quote:
Originally Posted by mustafata View Post
Any simpler way to explain how to put this plugin ?
Or any simpler tutorial for slower ppl like me ?
Unfortunately, no. If you don't have basic knowledge about MySQL and PHP this is hard for you.
__________________
kwski43 is offline
mrnatural
Junior Member
Join Date: Feb 2010
Old 02-24-2010 , 16:23   Re: [L4D & L4D2] Custom Player Stats v1.4B66
Reply With Quote #406

Quote:
Originally Posted by muukis View Post
Could you please explain? What does not work in linux servers? Surely the plugin works in any system? Why wouldn't the PHP-scripts work in the Linux?

Just because you were having problems with some rented servers doesn't mean this code requires windows to work.
the scripts worked fine.

seems at least my server needs windows mysql server.

it doesnt support it.
mrnatural is offline
mustafata
Member
Join Date: Nov 2009
Old 02-24-2010 , 17:21   Re: [L4D & L4D2] Custom Player Stats v1.4B66
Reply With Quote #407

Quote:
Originally Posted by kwski43 View Post
Unfortunately, no. If you don't have basic knowledge about MySQL and PHP this is hard for you.
Ok tnx man, at least you answered me that helps me !
mustafata is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 02-25-2010 , 03:06   Re: [L4D & L4D2] Custom Player Stats v1.4B66
Reply With Quote #408

Quote:
Originally Posted by mrnatural View Post
the scripts worked fine.

seems at least my server needs windows mysql server.

it doesnt support it.
You were just having a bad day configuring your system. You must understand that the Linux and Windows versions of MySQL are the same. The only thing that can make them different are the databases, users, configurations and a firewall and it's configurations protecting the operating system the MySQL service is at. If you read a few pages backwards in this thread, you'll see that there are successful Linux installations done by others.

Please don't make such light assumptions and then post them here as general facts.
__________________
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; 02-25-2010 at 06:53.
muukis is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 02-25-2010 , 03:18   Re: [L4D & L4D2] Custom Player Stats v1.4B66
Reply With Quote #409

Quote:
Originally Posted by mustafata View Post
Ummm , am I the only one that feels totally lost here ?!?!
I cant get the slightest clue how that should work ... and how to install it.
1.Is it nessecery to put those stats on a web site ?
2.Is it possible for this to work only ingame ? And by ingame i mean the commands such as "top ... something" and "rank" typed by clients.
3.What is the way the plugin makes difference between players ? Is it by Steam ID or by Nickname? If it is by Steam ID, is there a way to switch it to name authentication ?
... so many questions that don't have answers (atleast in the plugin info).
I am sorry if my comment seems a bit like im criticizing, but i really like the idea of the plugin (tracing player statistics) , but i cant seem to understand all those things i mentioned .
1. You don't need the web stats for the plugin to work.
2. Yes, read 1.
3. Steam ID. Someone made a nick id version, but I wouldn't use it if I was you. The nicknames will cause problems in an open server. You can destroy someones score just by changing your nick to that someone and then team killing a few players. The plugin supports IP identification in LAN, though I have not tested how it works.

Yeah, I have not written instructions for 1. at the first post. Might not be a bad idea to do so. But IMHO, the player identification using Steam ID does not require explanation. It's the best way to make identification of players... by far. IPs and nicknames are so easy to change, that they are no good for the ID. The LAN support is explained at the first post.

Criticism is welcomed, if it's not just no purposed rant. Good luck!
__________________
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; 02-25-2010 at 06:45.
muukis is offline
mustafata
Member
Join Date: Nov 2009
Old 02-25-2010 , 04:30   Re: [L4D & L4D2] Custom Player Stats v1.4B66
Reply With Quote #410

Quote:
Originally Posted by muukis View Post
1. You don't need the web stats for the plugin to work.
2. Yes, read 1.
3. Steam ID. Someone made a nick id version, but I wouldn't use it if I was you. The nicknames will cause problems in an open server. You can destroy someones score just by changing your nick to that someone and then team killing a few players. The plugin supports IP identification in LAN, though I have not tested how it works.

Yeah, I have not written 1. at the first post. Might not be a bad idea to do so. But IMHO, the Steam ID does not require explanation. It's the best way to make identification of players... by far. IP and nicknames are so easy to change, that they are no good for the ID. The LAN support is explained at the first post.

Criticism is welcomed, if it's not just no purposed rant. Good luck!
Tnx for the answer, useful information, but somebody already told me that without basic MySQL and PHP knowledge(which i dont have ) i cant do it so ... yeah

P.S.
One more thing where can i find this "nickname id" version. I will look around for myself but still if you know where can i find it i would be grateful.

Last edited by mustafata; 02-25-2010 at 04:34.
mustafata 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 19:01.


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