• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

[Mutator] KFStatsX

KFStatsX v3.1

KFStatsX v3.1

KFStatsX
Version 3.1 of KFStatsX is released. It contains:

  • Support for objective mode
  • Improved compatibility with other mutators
  • Broadcasts stats for deaths, kills, and perks selected per wave
    • Requires updated KFSXTrackingServer to see these numbers
    • These stats are not available for objective mode
The last two features were planned for the 3.0 release, which was submitted for whitelisting. However, due to objective mode being released, the 3.0 code was updated, thus releasing version 3.1 instead. Version 3.1 will replace 3.0 on the whitelist submission thread and hopefully get on there when the event is over.

If you have used a previous version of this mode, i.e. you have an existing KFStatsX.ini file, you will need to add this line to the ini file for objective mode compatibility:
Code:
compatibleControllers=KFStatsX.KFSXPlayerController_Story;Objective Mode
Make sure the compatibility combo box is set to "Objective Mode" when playing KFO maps.

I am waiting to see how Marco updates ServerPerks before releasing a ServerPerks compatibility for v3.1.

Release notes are available here:
https://github.com/scaryghost/KFStatsX/wiki/Release-KFStatsX-3.0[url]https://github.com/scaryghost/KFStatsX/wiki/Release-KFStatsX-3.0[/URL]
https://github.com/scaryghost/KFStatsX/wiki/Release-KFStatsX-3.1[url]https://github.com/scaryghost/KFStatsX/wiki/Release-KFStatsX-3.1[/URL]

Download

https://dl.dropboxusercontent.com/u/16251678/KFStatsX_v3.1.zip[url]https://dl.dropboxusercontent.com/u/16251678/KFStatsX_v3.1.zip[/URL]

----------
KFSXTrackingServer
Version 3.0 of the tracking server is also released. The update includes:

  • Redesigned db structure (sorry for inconvenience)
  • Support for wave based stats
  • Separate scripts that generate the web pages from the jar
    • Allows users to design their own web pages if desired
  • Support for custom data storage solutions
    • Users can create their own data writers and readers to store the information how they see fit
  • Improved default web interface to include category filters
  • Added page to view the wave based stats
The README has more information and links to customizing the application, migrating from a previous 2.x version, and changes to server properties.

Here is a screen shot of the kills distribution from new wave data webpage:
Spoiler!

Download

https://dl.dropboxusercontent.com/u/16251678/KFSXTrackingServer-3.0.tar.gz[url]https://dl.dropboxusercontent.com/u/16251678/KFSXTrackingServer-3.0.tar.gz[/URL]
 
Upvote 0
My server runs voting to switch between regular maps and objective mode. How do I make this compatible with both?

Eh, you can't do that with the vote handler. I would recommend disabling KFStatsX for objective mode anyways. Objective mode doesn't honor the NetDamage function which KFStatsX heavily depends on so you'd be getting incomplete stats for that mode.

which version is now part of update (1051)?

3.1
 
Upvote 0
Sorry man needing some help. I have had no problems with any mods but i can not seem to get urs to work.. All i want is for the mutator to work i dont care about the tracking server... i have read and read and read the readme.. cant find what line to add to the killing floor ini... i have kfstats 2.0 listed in my mutator but i can not get this one to show up. can u please post the steps to just install the basic mod? thank you
 
Upvote 0
Hi Scary, this may be more of a request then a query but i'll ask away. I have a custom ServerPerks and would love to put on my website the stats from the players of the stats in the ServerPerks saved data. I'm wondering if this could work to broadcast the data from that file (as they play so it grabs it and sends it up) and puts it on the web page on my site?

If it isn't really possible, do you think you could see about how it may be done? I've asked if there was a mutator that did this before but no one said they had found one when I did find one russian community have it. This would be something almost all servers probably want and this mutator pretty much proves it is possible, not not sure if this version can do it. Don't worry about compatability too much as I could always put this inside the custom ServerPerks I got to make it work but just wondering if all is possible.

FluX.
 
Upvote 0
Spoiler!

You don't have to add anything to KillingFloor.ini. All you need to do is stop the server, delete the old KFStatsX.* files, and copy the new ones over.

Spoiler!

To modify the records page, you'll need to edit the DataJson.groovy file. You need to change the switch statement case for "records" to:

Add another column for kills in the columns variable
Search through the player's "summary" stats for the kill count
Add the kill count to the data array

You should look through the javadocs for documentation on the DataReader class, which will provide you with all the functions you need to read from the database.

If you're not familiar with Groovy ([url]http://groovy.codehaus.org/[/URL]), then I highly suggest you read some examples and learn the syntax. While not necessarily needed, I would also suggest reading up on the embedded webserver and seeing if you can get the example page to work ([url]https://github.com/scaryghost/KFSXTrackingServer/wiki/Creating-Web-Content[/URL]).


Spoiler!

I am confused as to what you are asking for. Just you be clear, you want to merge stats between ServerPerks and KFStatsX and display them on your website?
 
Upvote 0
I am confused as to what you are asking for. Just you be clear, you want to merge stats between ServerPerks and KFStatsX and display them on your website?
Sorry. I would like to make it so my ServerPerks stats will show up on my site for others to look at for their own or others. Your system seems to do similar to it and wondered if you knew how or could do it?
 
Upvote 0
Pretty much but allow custom stats support.

It's not possible to merge the stats with a mutator because the big difference between KFStatsX and ServerPerks is for my mod, all the data processing is done on the remote back end. However, for ServerPerks, the mutator itself keeps the stats updated, then sends the final numbers back to the remote db. Another way of putting it is my mod gives the database more numbers to add to its aggregate amounts. On the other hand, ServerPerks first asks the database what all the current progress values are, updates them throughout the game, then sends the final numbers back to the database.

Fortunately, it is possible to create a web page in the KFStatsX storage application that can merge the ServerPerks values. You could write a Groovy script that reads the ServerPerks stat file, converts that data into a table, XML, JSON, or whatever format, and load that page into the KFStatsX web server.
 
Upvote 0
Add another column for kills in the columns variable
DataJson.groovy, in line 205 I add:
case "records":
columns= [["name", "Name", "string"], ["wins", "Wins", "number"], ["losses", "Losses", "number"], ["disconnects", "Disconnects", "number"], ["time", "Time Connected", "numner"], ["kills", "Total Kills", "number"]].collect {
[id: it[0], label: it[1], type: it[2]]

}
The result:
k1nd.jpg
Add the kill count to the data array
I don't know that I have to put, I read the urls, but I got error. Can you help, or attach the modified DataJson.groovy?

Thank you very much for your time.
 
Upvote 0
Ah that sucks. Thanks anyway. Good job on the mutator, it definately is one of the better ones laying around.

The best way is to let each mutator manage its data and instead create a separate web page that pulls information from both sources. From the KFStatsX side, you could add another page to the web server that will read the ServerPerks data file. If you are adding a stats page to your website, then you could use PHP (or a web language of your choice) to parse the data from the KFStatX web pages and the ServerPerks files. All the webpages on the KFStatsX web server can be viewed as an XML by tackin gon "?xml=1" to any URL.

Anyways, thanks for the feedback. Glad to see more people are using this mod.
 
Upvote 0
Tracking Server Version 3.0.8

Tracking Server Version 3.0.8

==EDIT==
I caught a bug in the WaveData.html page after I released 3.0.8. I have release a fix as version 3.0.9. Download link is updated
----------------

Download

https://dl.dropboxusercontent.com/u/16251678/KFSXTrackingServer-3.0.9.tar.gz

To update from 3.0, all you have to do is stop the server and replace the KFSXTrackingServer.jar file, http folder, and lib folder

Change List

  • Fixed a bug with missing entries from a player's match history when they disconnect
  • Fixed being unable to sort the player records table by name
  • Updated the player profile web page to include a perk progression box
  • Updated nanohttpd to v2.0.3
  • Changed records and match history table to use DataTables API
  • Added getNumRecords to the DataReader interface


Perk Window

The perk window displays your perk progress, similar to how it is shown in the in game GUI. Perks levels are calculated as normal up to level 6. For levels beyond 6, their perk requirements will be simply multiples of the level 6 requirements. For example, to get to level 7 medic, you will need 200k healing, level 8 is 300k, etc.

Here's a screenshot of the popup window:

Spoiler!
 
Last edited:
Upvote 0