[Mutator] KFStatsX

  • 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/

scary ghost

FNG / Fresh Meat
Sep 13, 2010
900
338
0
California
Spoiler!


Yeah, this is because server will only poll steamcommunity.com when needed. The query is triggered with either:

  1. Player stats are received
  2. Player profile is visited
  3. Records page is viewed
The query in itself can take some time and does it one at a time, hence the extremely slow initial load times. Also, not all requests from steamcommunity.com come back successfully, thus the blank entries. It does store successfull queries into a temp database so subsequent visits will load instantly. I have given some though to maybe having a background thread that does this upon server start but for the v2.0 release, I decided to stick with a "do it as I need it" approach.
 
Last edited:

deckardblade

Member
Jan 16, 2011
181
7
18
Chicago, US
Thanks for the explanation. Is there a limit to the entries stored in temp database? I have about 6700 entries currently after converting over and even after I've viewed some pages on the records after the first 50 or so it seems to have a hefty delay. And this after having displayed the same data within less than a 5 minute period of time.

Consequently I have been polling a 2500 entry query for the past hour or so, so that may be slowing things down.

No errors in the log except for 503 on the steam pages which I know is normal.

Again, thank you -- very much appreciate all of the work on this!
 

scary ghost

FNG / Fresh Meat
Sep 13, 2010
900
338
0
California
Thanks for the explanation. Is there a limit to the entries stored in temp database? I have about 6700 entries currently after converting over and even after I've viewed some pages on the records after the first 50 or so it seems to have a hefty delay. And this after having displayed the same data within less than a 5 minute period of time.

Consequently I have been polling a 2500 entry query for the past hour or so, so that may be slowing things down.

No errors in the log except for 503 on the steam pages which I know is normal.

Again, thank you -- very much appreciate all of the work on this!

Ack, I mean temp table not a temp databse. But yeah, hrm..maybe trying something less like 1000 at a time? You can crank up the log level to FINEST and will print out which steamid it's polling so you can get feel for the progress. The temp table acts like any other sqlite table, but deletes itself when the db connection is closed.

I'l take another look into the side thread thing so it can do the queries asynchronously.
 

EpharGy

FNG / Fresh Meat
Jan 3, 2011
1,350
63
0
Australia
www.sykosis.co.uk
Had an idea for the server/stats, if its possible anyway (so we dont break the current versions whitelist status)

Is it possible for a server ip to be statted, ie if you look at a players sessions, you'd also see a breakdown of what servers (providing you have multiple servers going to the one DB) the player plays on.

Could also roll this into the main stats to see a distribution of server activity for the player amongst your servers. Could be handy in comparing individual server usage, especially if you have different settings on each server.
 

scary ghost

FNG / Fresh Meat
Sep 13, 2010
900
338
0
California
Had an idea for the server/stats, if its possible anyway (so we dont break the current versions whitelist status)

Is it possible for a server ip to be statted, ie if you look at a players sessions, you'd also see a breakdown of what servers (providing you have multiple servers going to the one DB) the player plays on.

Could also roll this into the main stats to see a distribution of server activity for the player amongst your servers. Could be handy in comparing individual server usage, especially if you have different settings on each server.

It's doable but the java app doesn't know the specific port the kf server is running on. Multiple servers on the same machine would be indistinguishable as it is currently setup.
 

scary ghost

FNG / Fresh Meat
Sep 13, 2010
900
338
0
California
Tracking Server v2.1 Release

Tracking Server v2.1 Release

Version 2.1 of the tracking server is out. The release contains:

  1. another minor bug fix to the database
  2. a bug fix for the packet processing
  3. option to asynchronously poll steamcommunity.com for steam id information upon server start up
Download
https://github.com/downloads/scaryghost/KFSXTrackingServer/KFSXTrackingServer-2.1.tar.gz

Updating From 2.x
To update from 2.0.3, all you need to do is copy the new KFSXTrackingServer.jar file from the downloaded package. The code has been updated to work around the minor bug in the database so you do not need to do any data migration.

To enable the asynchronous steam community polling, add the "steam.polling.threads" property to the server.properties file. This property is independent of the "num.threads" property and the threads are only used to query steamcommunity.com. Once all steam ids have been successfully queried, these threads will (eventually) be garbage collected by Java.

If steam polling is enabled, the server will pull in steam information about each player when the server is started as opposed to only when it is needed. This allows the web pages to load quickly as the required steam information will already be locally cached.

Example:
steam.polling.threads=8
 
Last edited:

deckardblade

Member
Jan 16, 2011
181
7
18
Chicago, US
Ok that new setting: steam.polling.threads=8, is glorious. Page loads after initially polling the profiles are blazing fast again. Thanks so much for the update and the ease of use in implementing it!
 
Last edited:

scary ghost

FNG / Fresh Meat
Sep 13, 2010
900
338
0
California
Last edited:

Skillz

Member
May 3, 2012
893
6
18
High Point, NC
www.skillzservers.com
Version 2.0.1
I had to make a minor update to KFStatsX to accommodate the ZEDGun. Due to how the alt fire is coded, it will not tally any ammo consumption on KFStatsX. The earliest this update will be whitelist is most likely to be at the end of the event.

Downloads
https://dl.dropbox.com/u/16251678/KFStatsX_v2.0.1.zip

ServerPerks Compatible Controller
https://dl.dropbox.com/u/16251678/KFStatsX_ServerPerks_v1.0.2.zip

Shoot one of the TWI guys a PM... they will most likely be rolling an update out before the end of the event to fix Linux servers, while they do that they could add this to the white list easily I think.
 

n87

FNG / Fresh Meat
Aug 14, 2011
432
15
0
Do I need to use that Java Server?
Or is it enough to put the mutator into the server?

Also I
 

scary ghost

FNG / Fresh Meat
Sep 13, 2010
900
338
0
California
Shoot one of the TWI guys a PM... they will most likely be rolling an update out before the end of the event to fix Linux servers, while they do that they could add this to the white list easily I think.

Yeah I talked to [TW]StragoMagus but it doesn't seem like they plan on updating my mutator until the rollback patch.

Do I need to use that Java Server?
Or is it enough to put the mutator into the server?

Also I
 
Last edited:

Tefaan

Member
Oct 24, 2012
623
5
18
I've got a problem with your mutator version 2. When I'm adding it as a mutator in the web-interface it just deactivates like the GameStatsTab did. I just put all the files into the system directory and added it via the web-interface to the mutator list. Other mutators are working perfectly. Have I done something wrong?
Take a look at this picture: http://www.imagebanana.com/view/9zg3760y/KF.jpg
I removed the hoster banners. I'm not sure if it's allowed to show pictures with kinda advertising.
 
Last edited:

scary ghost

FNG / Fresh Meat
Sep 13, 2010
900
338
0
California
I've got a problem with your mutator version 2. When I'm adding it as a mutator in the web-interface it just deactivates like the GameStatsTab did. I just put all the files into the system directory and added it via the web-interface to the mutator list. Other mutators are working perfectly. Have I done something wrong?
Take a look at this picture: [url]http://www.imagebanana.com/view/9zg3760y/KF.jpg[/URL]
I removed the hoster banners. I'm not sure if it's allowed to show pictures with kinda advertising.

Dunno, looks like your KF_DLC textures is different.
 

n87

FNG / Fresh Meat
Aug 14, 2011
432
15
0
could you update game stats tab then please?
I really liked that podcasting thing!
 

Tefaan

Member
Oct 24, 2012
623
5
18
I updated my server and it still doesn't work for me. It did before I tried the GameStatsTab.

EDIT: I know uploaded my KF_DLC.utx from the client directory to the servers directory and it works.
 
Last edited:

n87

FNG / Fresh Meat
Aug 14, 2011
432
15
0
then could you add the broadcasting to kfstatsx?
pretty please..