Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
NaRyan
Member
Join Date: Jan 2010
Location: United Kingdom
Old 02-01-2010 , 06:08   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #141

Quote:
Originally Posted by muukis View Post
It may require that you log out and restart the server or at least restart a map. I don't know for sure. I'll do some testing when I get to home.
Well that was the server just started (switched pc on, loaded L4D server, tutorial_standards is the default loading map)

Switched on main system (snooped about internet, read your post, checked server settings in server.cfg)
Loaded steam, loaded L4D, joined LAN server.

Tested it again.
Quit server, showdown the PC it runs on.
Restarted router, shutdown main PC.
Waited a few minutes, started both systems back up, started server, loaded steam, joined server.

Quote:
"=ASY=Na'Ryan<2><STEAM_1:0:4164498><>" connected, address "192.168.0.2:27005"
World triggered "Round_Start"
"=ASY=Na'Ryan<2><STEAM_1:0:4164498><>" STEAM USERID validated
FinishClientPutInServer =ASY=Na'Ryan(2): looking for bots to take over
"=ASY=Na'Ryan<2><STEAM_1:0:4164498><>" entered the game
"=ASY=Na'Ryan<2><STEAM_1:0:4164498><Unassigne d>" joined team "Survivor"
It gives me a Steam:id as soon as I connect, no matter what map\gamemode I have it set to.

Also testing that with the GarrysMod & L4D2 LAN servers they both give me a steam:id..
My "gut" is telling me a reason why people want a name not steam:id version. But that might be wrong.......

Last edited by NaRyan; 02-01-2010 at 06:16.
NaRyan is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 02-02-2010 , 06:34   Re: [L4D & L4D2] Custom Player Stats v1.4B64
Reply With Quote #142

Uploaded a minor update.
  • 2.2.2010 Plugin v1.4B64 and Web Stats
    • Bugfixes - rankvote displayed "DID NOT PASS" even though the team shuffle was executed in YES vote majority.
    • New features - Sound effects in certain events. New CVAR (#55). Web stats: Support templates ( kwski43 ). Web stats: More tooltips in player stats.
    • Noteworthy - The web stats file structure changed. Renamed some functions that may have caused problems with some other plugins. Changed the LAN support to work better.
Quote:
Originally Posted by NaRyan View Post
...
This should be fixed now. Tell me if it works for you.
__________________
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
Woonan
Junior Member
Join Date: Dec 2009
Old 02-02-2010 , 07:14   Re: [L4D & L4D2] Custom Player Stats v1.4B64
Reply With Quote #143

muukis, can you add option -
reducing points by n every day if last online >= m days?
This is wrong to see people in top10 who even don't play anymore.
Woonan is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 02-02-2010 , 07:41   Re: [L4D & L4D2] Custom Player Stats v1.4B64
Reply With Quote #144

Quote:
Originally Posted by Woonan View Post
muukis, can you add option -
reducing points by n every day if last online >= m days?
This is wrong to see people in top10 who even don't play anymore.
That is a nice idea, but... It would require periodic DB checks and I don't think there is an easy way to do it with the pawn. By periodic I mean Crontab like events that are set to occur once per day or such.

Why don't you use the player cleaning functionality (sm_admin)? You can clean old players from the DB using that feature.
__________________
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
Woonan
Junior Member
Join Date: Dec 2009
Old 02-02-2010 , 08:35   Re: [L4D & L4D2] Custom Player Stats v1.4B64
Reply With Quote #145

mm, from this point of view, for me, it's easier to write a little php script and crontab it every day
i thought it can be done with sm, fixed time check(4 example at 3:00am)
practically this is 1 query at every 3:00am -
update players set points=points-5000 where UNIX_TIMESTAMP(now())-lastontime >= 60*60*24*7
Woonan is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 02-02-2010 , 09:46   Re: [L4D & L4D2] Custom Player Stats v1.4B64
Reply With Quote #146

Quote:
Originally Posted by muukis View Post
That is a nice idea, but... It would require periodic DB checks and I don't think there is an easy way to do it with the pawn. By periodic I mean Crontab like events that are set to occur once per day or such.

Why don't you use the player cleaning functionality (sm_admin)? You can clean old players from the DB using that feature.
There is phpcrontab that could do it. But I think losing points for not playing is not fair when somebody will not be able to. For me, this should not be done or be done and be able to "switch off".

Quote:
Originally Posted by Woonan View Post
mm, from this point of view, for me, it's easier to write a little php script and crontab it every day
i thought it can be done with sm, fixed time check(4 example at 3:00am)
practically this is 1 query at every 3:00am -
update players set points=points-5000 where UNIX_TIMESTAMP(now())-lastontime >= 60*60*24*7
But if the server will be down?

with v1.4B64 webstats's config.php changed, update first post muukis, some people can ask later about that

sry for english in this post, in school.
__________________

Last edited by kwski43; 02-02-2010 at 09:51.
kwski43 is offline
Woonan
Junior Member
Join Date: Dec 2009
Old 02-02-2010 , 10:16   Re: [L4D & L4D2] Custom Player Stats v1.4B64
Reply With Quote #147

certainly it should be switchable
if the server is down ... so what? if down then nothing to do
Woonan is offline
bman87
Senior Member
Join Date: Dec 2008
Location: Michigan
Old 02-02-2010 , 11:20   Re: [L4D & L4D2] Custom Player Stats v1.4B64
Reply With Quote #148

Line 123 in your awards.php needed to be fixed when I upgraded.

Changed: file_put_contents("./template/awards_cache.html", trim($award_output));


To: file_put_contents("./templates/awards_cache.html", trim($award_output));

You were missing the 's' on templates


Also, in rank awards, the second place person for 'Head shot king' ratio is always blank. I get a division by 0 warning on the page.
bman87 is offline
bman87
Senior Member
Join Date: Dec 2008
Location: Michigan
Old 02-02-2010 , 11:22   Re: [L4D & L4D2] Custom Player Stats v1.4B64
Reply With Quote #149

I am also getting a lot of these errors

PHP Code:
Warning: include() [function.include]: Failed opening './templates/versus.tpl' for inclusion (include_path='.:/usr/share/php:/usr/share/pear'in /var/www/class_template.php on line 35 
I have no versus.tpl file at all in the templates folder
bman87 is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 02-02-2010 , 11:42   Re: [L4D & L4D2] Custom Player Stats v1.4B64
Reply With Quote #150

Quote:
Originally Posted by bman87 View Post
Line 123 in your awards.php needed to be fixed when I upgraded.

Changed: file_put_contents("./template/awards_cache.html", trim($award_output));


To: file_put_contents("./templates/awards_cache.html", trim($award_output));

You were missing the 's' on templates


Also, in rank awards, the second place person for 'Head shot king' ratio is always blank. I get a division by 0 warning on the page.
muukis.... i thought you fixed this
Quote:
Originally Posted by bman87 View Post
I am also getting a lot of these errors

PHP Code:
Warning: include() [function.include]: Failed opening './templates/versus.tpl' for inclusion (include_path='.:/usr/share/php:/usr/share/pear'in /var/www/class_template.php on line 35 
I have no versus.tpl file at all in the templates folder
Did you overwritten all the files?
"Failed opening './templates/versus.tpl'" says you didn't
__________________

Last edited by kwski43; 02-02-2010 at 11:45.
kwski43 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 12:57.


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