Jump to content

[BF4] Stats webpage for XpKiller's Stats Logger Plugin


tyger07

Recommended Posts

Originally Posted by ty_ger07*:

 

The full featured stats webpage!

 

 

BF4 Stats Web Page Overview

 

web_stats_index.jpg

 

web_stats_demo.jpg

 

web_stats_banner.jpg

 

Features:

- Easy setup.

- Individual server or combined server stats.

- Country stats.

- Map stats.

- Player stats.

- Weapon stats.

- Dog tag stats.

- Game server stats.

- Live scoreboard.

- Top players list / leaderboard.

- Player name search.

- Top players of the Week.

- Suspicious players search.

- Server chat log.

- Stats signature images.

- Gametracker-style server banners.

- Battlelog theme.

 

Demo

 

https://egc-la.evga.com/battlefield/index.php

 

Prerequisites

 

This webpage code requires the use of a stats database which is created by XpKiller's BF4 Chat, GUID, Stats and Mapstats Logger Plugin* version 1.0.0.2 or newer. If you need help with XpKiller's stats logging plugin, you must seek assistance in XpKiller's thread.

 

For best compatibility with this code, use the following settings in XpKiller's PRoCon logging plugin:

"Enable Statslogging_" : Yes

"Enable Weaponstats_" : Yes

"Enable Livescoreboard in DB_" : Yes

"tableSuffix" : None (empty)

"MapStats ON_" : Yes

"Session ON_" : Yes

"Save Sessiondata to DB_" : Yes

"Log playerdata only (no playerstats)_" : No

 

This webpage code also requires that you have access to a web server running a modern version of PHP and that you have permission to modify files on the web server.

 

Additional Info

 

GitHub:

http://tyger07.github.io/BF4-Server-Stats

 

 

Installation Steps:

 

Download the following file:

https://github.com/tyger07/BF4-Serve...zipball/master

 

Extract the files.

 

You may change the appearance of the page by modifying the stats.css file in the common folder.

 

 

Fill in the required parameters before using this code. You must place the necessary data between the the following single quotation marks ('').

 

Note: You may not include single quotation marks (') in the following fields. For instance, you may not call your clan 'Ty_ger07's Clan' as it will create a PHP compilation error.

For example, this would not work:

// CLAN NAME

$clan_name = 'Ty_ger07's Clan'; // your gaming clan or organization name

You must use a PHP delimiter if you wish to use single quotes within the following fields.

For example, this would work:

// CLAN NAME

$clan_name = 'Ty_ger07's Clan'; // your gaming clan or organization name

You must fill in the following information in the config.php file found in the config folder

 

 

1) Input your stats database host, stats database user name, stats database password, and stats database name.

 

Code:

// DATABASE INFORMATION
DEFINE('HOST', '');			// database host address
DEFINE('PORT', '3306');		// database port - default is 3306
DEFINE('NAME', '');			// database name
DEFINE('USER', '');			// database user name - sometimes the same as the database name
DEFINE('PASS', '');			// database password
For example:

// DATABASE INFORMATION

DEFINE('HOST', '100.200.300.400'); // database host address

DEFINE('PORT', '3306'); // database port - default is 3306

DEFINE('NAME', 'database'); // database name

DEFINE('USER', 'user'); // database user name - sometimes the same as the database name

DEFINE('PASS', 'pass'); // database password

Note: Some web server providers (such as GoDaddy) use the same value for database name and database user name.

 

 

2) Input your clan name as you would like it to appear in the stats pages.

 

Code:

// CLAN NAME
$clan_name		= ''; // your gaming clan or organization name
For example:

// CLAN NAME

$clan_name = 'MyClan'; // your gaming clan or organization name

3) Input your desired banner image URL if you want one other than the default to be displayed.

 

Code:

// PAGE BANNER
$banner_image	= './images/bf4-logo.png'; // your desired page banner
4) Enter the URL which you would like users to redirect to if they click your banner image.

 

Code:

// BANNER LINK
$banner_url		= 'http://tyger07.github.io/BF4-Server-Stats/'; // where clicking the banner will take you
Enjoy!

 

(if you want to donate, ask me how)

 

Changelog:

Refer to: https://github.com/tyger07/BF4-Serve...commits/master

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 1.7k
  • Created
  • Last Reply

Originally Posted by ty_ger07*:

 

Some time I will add more statistics columns such as deaths, suicides, smoke launcher kills, etc., and make the top 25 players list able to be ordered by score or kills or deaths or suicides, etc.

 

I might even move away from the super simple fast design to a more complex and visually appealing style with more images instead of just a bunch of text.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Kinsman*:

 

Thanks a bunch, have updated. :smile:

 

Also added a Join Server Button to the index.

 

http://jw.servegame.org/bf4stats/index.php

 

Could you post how to get the Current Map for the index, I can't quite work it out, and I wanted to add that so we can do 4x columns and 2 rows neatly.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Pvtjohntowle*:

 

You need access to files. I could host it on my web space, but you would still need enough access on your website to create a page link.

I can create links on my website OK

 

Can you help me with this ?

 

What do I need to give you?

 

That would be fantastic !!!

 

OK I have created an account there on that community website , now what do I need to do?

 

I am on TS bf4banditos.enjinvoice.com

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

I can create links on my website OK

 

Can you help me with this ?

 

What do I need to give you?

 

That would be fantastic !!!

 

OK I have created an account there on that community website , now what do I need to do?

 

I am on TS bf4banditos.enjinvoice.com

Since my website uses different formatting and syntax, the code is slightly different.

 

Here is the code:

 

http://open-web-community.com/index....php&t=projects

 

You would just copy and paste that code into your own file which you create at this page:

 

http://open-web-community.com/index....e=site-content

 

You would want to save the file without read permission so that users can't see your database connection info.

 

And of course you would have to modify the database connection info.

(this stuff):

// DATABASE INFORMATION

$db_host = ''; // database host

$db_port = ''; // database port. default is 3306

$db_name = ''; // database name

$db_uname = ''; // database user name

$db_pass = ''; // database password

...

Lastly, you would have to edit all the links in the code

 

From this (in bold):

&table=projects

 

To whatever name you call your file.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Kinsman*:

 

new Index looks great. :biggrin:

 

http://jw.servegame.org/bf4stats/index.php

 

Would it be possible to add an Totals Block to the Index, under the servers. As in total scores across all servers.

 

Our servers as setup in groups of 1 if that helps, as in Server1 is in ServerGroup1, Server 2 is in ServerGroup2 and so on.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

I am not familiar with what XpKiller has done with server groups. Could you describe what a server group is and what I need to do in order to accommodate using server groups?

Also, could you confirm whether or not xpkiller removed table suffixes from the plugin options?

Lastly, can someone clear up the team names for me? When is the team china or russia or us? Do they all have different numbers, or are ghey always team 1 and team 2 but change name based on the map?

 

In Progress:

Teams in scoreboard in side by side orientation instead of stacked so that less vertical space is wasted.

More user statistics shown on top 25 scoreboard and ability to arrange top 25 scoreboard by various metrics instead of just by score.

Ability to see player rank in player page based on other metrics instead of just ranked by score.

Weapon columns in player page have more data including deaths.

Weapon stats will rank player with each weapon versus other players with same weapon.

Data shown in tables in general will be re-arranged with column name in table head instead of in each row of data.

Add filter to chat page to search for specific things.

 

...

 

These should be good changes.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Progress so far:

 

- Server join button at top of every page.

- Server scoreboard displays teams side by side to save vertical space.

- "Top Players" ranking can be ordered by name, score, kills, deaths, headshots, headshot ratio, kill death ratio and ascending or descending and pagination still functions scrolling through pages.

 

http://open-web-community.com/bf4sta...tats/index.php

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by p19blo*:

 

Hello great to see a bf4 version of this.

 

is there a way to show these stats monthly ?

 

for example

last 3 months

 

sept

oct

nov (currrent)

 

and see who was best at each month ?

 

this is something i really could benefit from

 

someone did make a slight change to the code for it to work, but it bugged everything out and stats for players eneded up missing.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Hello great to see a bf4 version of this.

 

is there a way to show these stats monthly ?

 

for example

last 3 months

 

sept

oct

nov (currrent)

 

and see who was best at each month ?

 

this is something i really could benefit from

 

someone did make a slight change to the code for it to work, but it bugged everything out and stats for players eneded up missing.

Because the stats do not have a time stamp associated with each data point, it is not possible to filter out the stats for a certain time period. You would have to ask XpKiller for that feature to be added to his plugin so that each stat has a timestamp associated with it for filtering purposes.

 

Without a timestamp, the only option is for you to go and delete your stats completely every month or however often you wish and start the stats over whenever you want them to start over.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Kinsman*:

 

Is there a download for the new sorting method yet?

 

Heres a larger dataset for you, should have stats from all servers.

 

On having Over All Stats for all servers I found this. It would be awesome to have Overall Stats on the index page.

 

...*

 

Attached Files:

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by GR101*:

 

A simple but extremely effective BF4 stats website, excellent work guys.

 

Suggestions for future add-ons:

 

1. Top 20 player stats per weapon type and vehicles (if applicable).

2. Top 20 player stats per kit (Assault, Engineer, Support, Recon)

3. Top 20 stats for commanders.

4. Display who are commanders and spectators on the server.

 

Thanks in advance.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

A simple but extremely effective BF4 stats website, excellent work guys.

 

Suggestions for future add-ons:

 

1. Top 20 player stats per weapon type and vehicles (if applicable).

2. Top 20 player stats per kit (Assault, Engineer, Support, Recon)

3. Top 20 stats for commanders.

4. Display who are commanders and spectators on the server.

 

Thanks in advance.

Top 20 per weapon is a good idea. I don't think it is possible to do top 20 per vehicle due to rcon limitations preventing vehicle stats from being accurate.

Top 20 stats per kit would be pretty cool and also possibly somewhat irrelevant due to so many "all kit" weapons. Top 20 stats per weapon class (assault rifle, shotgun, sniper rifle, etc.) might create more relevant data.

It doesn't appear that commander stats are stored in the database, so top 20 commanders doesn't look possible.

I am not sure if commanders are stored in the current player data. Maybe someone could confirm since I am borrowing a database which doesn't appear to have commanders in it, and don't have a database of my own.

 

Heres a larger dataset for you, should have stats from all servers.

Could you save a copy of the database while there are a significant number of players in at least one of your servers so that I don't have to create bogus current player data? I may find some additional useful information in the process. Thanks!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Kinsman*:

 

Can I just update code for this?

 

Heres a larger DB, there were commanders in servers 2 and 3 last night.

 

Can you have a go at all server stats for the index, once thats done its perfect for us. :-)

 

Edit: Sorry, I missed the bit about current players, pity as 3 servers were full all last night, I will resave and post again tonight.

 

Attached Files:

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Can I just update code for this?

 

Heres a larger DB, there were commanders in servers 2 and 3 last night.

 

Can you have a go at all server stats for the index, once thats done its perfect for us. :-)

Those stats don't have any players in the server. Could you do it while there are players in the server? Even better is if you did it while there were commanders in the server.

 

I just updated the CSS a little right now as well. You can download it and compare if you want. New CSS makes things like margins and stuff more uniform and less childish looking and also adds some shadows.

* Restored post. It could be that the author is no longer active.
Link to comment

Archived

This topic is now archived and is closed to further replies.




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.