[TF2] Kill log and Web Panel
2 Attachment(s)
TF2 Kill Log
This is an update to, and complete rewrite of, Darthninja's TF2 Stats plugin, fixing the need for plugin updates when new weapons are added, and improving weapon tracking and player tracking. New weapons will only need to be added to the web panel's database, they will still be tracked and viewable. The web panel is the only interface for players to communicate with the database. MySQL is required, SQLlite is not supported. Using !rank will open a large MOTD window showing the players profile. CVARs Code:
klog_extended - 1 Enables / 0 Disables extended log features - Enabled by default Code:
rank- Opens player's Kill Log profile Code:
"killlog"
The web panel is in early beta and will be an ongoing project, you may encounter performance issues and CSS issues. Steam API key is needed to retrieve player avatar, once a profile is viewed the avatar is saved. DEMO HERE Per weapon statistics and Kill Log player panel require the cvar klog_extended enabled, this allows for detailed analysis, ie. most killed player, most killed BY player, dominations, revenges with weapon etc. Killlog table can get very big very quickly if it's being filled by multiple, high activity servers, it is advised to use separate databases per server if you expect high activity, more than 60,000 inserts (kills) a day. Whats next: Continued improvement to core plugin and panel. Adding optional add-ons to the plugin and web panel for the tracking of MVM, items, maps. Credits to: DarthNinja, database connection and query format. Dr.McKay, player analytics handling of client connects and disconnects. Aderic, enum hack for storing player actions until disconnect, map or plugin change and purging of client data. Download web panel and contribute at github. Install script for panel is in the works, sql dumps are provided in the panel download folder. It's been tested extensively for the past two weeks, but changes and updates have been ongoing and some bugs may have slipped through the cracks. This is a learning experience for me so any improvements are welcome. Changelog: Code:
0.10.5 - Fix invalid client errors, add convars and database cleaning, add stats. |
Re: Kill log
1 Attachment(s)
Addons
Item Logging: Like other item loggers, this tracks the item_found event, will create a new table called itemlog in your killlog database. Web Panel addon will be available on github. |
Re: [TF2] Kill log and Web Panel
No freaking way. Adding this to my server right away! Once finished can be viewed at http://s4lservers.site.nfoservers.com/killlog/index.php
So I opened the .sp and attempted to put in my url on line Code:
CreateConVar("klog_url","","Kill Log URL, example: http://yoursite.com/stats/", Code:
CreateConVar("klog_url","http://s4lservers.site.nfoservers.com","Kill Log URL, example: What am I missing? Do you think you could add a step by step for this? I would like to get it activated right away so I may help you test it out. |
Re: [TF2] Kill log and Web Panel
You do not need to edit the source, you just need to add the cvar to your server.cfg
Using your example and link: Code:
klog_url "s4lservers.site.nfoservers.com/killlog/" If the plugin cannot connect to your database then your database information is incorrect or you changed the database.cfg and did not restart the server, which I believe is a requirement to update database.cfg. If this is not the case, ensure that your database and or user has remote access. |
Re: [TF2] Kill log and Web Panel
Small update to playerlog table, obj_built, obj_destroy, and tele_player were ordered incorrectly thus the wrong information was being logged. Kills and deaths were being logged instead of just kills to the playerlog table, this has been also been fixed. cvar klog_url example has been changed to reflect the accepted format.
|
Re: [TF2] Kill log and Web Panel
Ok I made the changes from my previous post, redownloaded the .smx and loaded it and it said connected to database.
I also have a question about database.class.php do I have to enter database info in that as well or just the config.php since I am a stats junkie, I run the playerranks plugin and was wondering how I could go about changing some of the in-game commands like !rank etc, so that it will not interfere with each other. |
Re: [TF2] Kill log and Web Panel
Change RegConsoleCmd("sm_rank", to whatever you want.
|
Re: [TF2] Kill log and Web Panel
Thanks Pickles! I do not understand why more people have not tried this out yet? It has such a clean look to it and reminds me of logs.tf the way the web panel looks. I highly enjoy it.
I noticed that when their are players actively playing on my server the "current" tab tends to show one player with all of his kills correctly and others actively on the server with 0 kills. Since I am working so many hours right now I haven't been able to analyze it as well as I would of liked to. Maybe it is just a delay and catches up shortly after? Anyways, looking forward to your progress! |
Re: [TF2] Kill log and Web Panel
Quote:
The next update will provide better map information tracking and the next panel update will too. |
Re: [TF2] Kill log and Web Panel
Ok, thanks for addressing that! I am not very good with php and currently trying to customize my web panel just slightly without taking away from the crisp feel you have going on. I would like a custom header so would I just make a header.php in the include folder just as you did with the footer? Sorry, probably not the best place to ask for web design questions, I will stick directly to plugin questions/issues.
|
All times are GMT -4. The time now is 08:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.