Jump to content

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


tyger07

Recommended Posts

Originally Posted by aceventura81*:

 

Hey buddy, leave nitrado, can`t get your plugin works.

 

I just went to different one where I can get connect to procon layer. no errors come back. But now nothing shows on website. All is set up. Size of database is still 0 MB. I planning to sit down tonight and do complete reinstall of server with fresh install of plugins

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

Originally Posted by keb2*:

 

Ok, I can see now that none of your pChart library stuff is working.

 

I think that I would need FTP access to your server in order to do testing in order to solve your issue. There is no way that I can just guess the reason why it is unable to properly locate the font located /common/pchart/fonts/.

Now everything works without errors on Linux.Maybe when I re-launch everything on xampp I will return to this issue.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 months later...

The full-featured stats webpage!


BF4 Stats Web Page Overview

post-1-0-51100800-1562524750_thumb.jpg

post-1-0-67473800-1562524838_thumb.jpg

post-1-0-89451600-1562524844_thumb.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-Server-Stats/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 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.
 

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

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

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

// 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-Server-Stats/commits/master

Link to comment
  • 3 months later...
  • Administrators

anyone can tells me how i get the xpkiller plugin???

 

https://myrcon.net/topic/162-chat-guid-stats-and-mapstats-logger-1003/

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

Link to comment
  • 4 weeks later...

The top 20 is basically refreshed every week, is it possible to change it to be refreshed month by month?
 

if so, I think I found the line of code, is that it?

// initialize timestamp values
$now_timestamp = time();
$old = $now_timestamp - 10800;
if($rank == 'SoldierName')

If that's it, what value should I put?

 

(the line of code I found is in the file "leader-ranks.php" in /common/leaders folder)

Thank you all for your help :happy:

Link to comment

No, that would not be correct. What you referred to is some code for determining whether cached stats should be refreshed for that leaderboard. Cached stats are, for example, keeping a cached list of the top 20 players so that every time a person visits the first page within each 3 hour period of time, it doesn't have to find and calculate the top 20 players out of thousands of players. It lowers SQL server load greatly for when people are just browsing the first pages and not really searching through the stats with interest.



What you are looking for is line 31, line 47, line 68, and line 84 (applicable in different circumstances) of /common/leaders/sessions-tab.php

... BETWEEN CURDATE() - INTERVAL 7 DAY AND CURDATE() ...

Change "INTERVAL 7 DAY" to "INTERVAL 30 DAY", if you would like.

 

Basically, it is saying, show me the information for the top 20 players for range of dates of (today through (today - X days)).

Link to comment

It's hard for me to be sure why your players do not seem to be being saved to your database.

 

I would start first by asking whether you are using the following settings in XpKiller's stats logger plugin settings:

 

 

  • "Enable Statslogging?" : Yes
  • "Enable Weaponstats?" : Yes
  • "Enable Livescoreboard in DB?" : Yes
  • "tableSuffix" : None
  • "MapStats ON?" : Yes
  • "Session ON?" : Yes
  • "Save Sessiondata to DB?" : Yes
  • "Log playerdata only (no playerstats)?" : No

 

... Oh, and, is the server ranked and is punkbuster enabled?  Those are required by xpkiller's stats logger plugin in order to record players and player stats.

Link to comment

Well all configs are good, I followed your post well, however we did remove punkbuster well... punkbuster its stink, I'm banned like a lot of people as a false positive... I'm never cheating or doing anything... Is it really not possible to display these servers correctly even without punkbuster?

You are the developer, an anti-punkbuster movement has been developing this form for a few months....

 

When EA closes Battlefield 3, there will only be servers without punkbuster, I don't understand that the players keep on attacking punkbuster... they'll put it upside down soon

Link to comment

XpKiller's plugin requires punkbuster to keep track of players. If his plugin doesn't store data to the database, my stats page can't display that data.

 

Punkbuster is integral to Xpkiller's plugin to keep track of unique players across name changes, location changes, IP address changes, etcetera. Without punkbuster, it can't determine players' identities.

Link to comment
  • 3 months later...
  • 4 weeks later...
  • Administrators

Hey @tyger07, @sixpax12 is having issues with his banners being generated. Some do and some don't. I'm not sure if it's your cache thing but the images are not being linked correctly on the HTML side cause in a folder I saw the image and it generated just fine. Would you happen to know what's causing it? Has the GD extension and correct permissions so i'm at a loss on your code :)

Thanks

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

Link to comment

The php version is probably >=7.1

Updating pchart to the latest version should fix it. At least it did for me.

Not sure if it is the problem here. But just a suggestion ?

Need new plugin features? I can change: Adkats, AdKatsLRT, LanguageEnforcer, InsaneLimits, xVotemap for you. Also working on new plugins. Have an idea? Share it and I might include it in my repos. Github.com/hedius

 

Check out E4GLAdKats for an advancded and maintained AdKats version.

Link to comment
  • Administrators
32 minutes ago, tyger07 said:

"You must be logged-in to do that."

http://statistics.vq37.org/bf3/

28 minutes ago, Hedius said:

The php version is probably >=7.1

Updating pchart to the latest version should fix it. At least it did for me.

Not sure if it is the problem here. But just a suggestion ?

He's on 5.6 for that domain.

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

Link to comment

All over that stats webpage I see "3".  At the beginning of almost every section, "3" is just sitting there.  I wonder why.  And I wonder if that has something to do with corrupting the image headers.

 

I won't have access to my computer for quite a while, so my abilities/will to snoop are limited at the moment.

Link to comment
1 hour ago, tyger07 said:

All over that stats webpage I see "3".  At the beginning of almost every section, "3" is just sitting there.  I wonder why.  And I wonder if that has something to do with corrupting the image headers.

 

I won't have access to my computer for quite a while, so my abilities/will to snoop are limited at the moment.

I think that is something that was changed in one of the sql queries to fix the live scoreboard not working ... inspecting the page shows a reference to a query ... I think.

Link to comment

As I suspected, I see that the first character at the beginning of the image headers is "3".  I have no idea where the 3 is coming from, but its all over your web page.

 

Have you modified any of the source code?

 

Because the image headers are corrupted by the 3, none of those images are displayed.  The "3" seems to be created at the beginning of your web server's PHP files.  Some sort of debugger output or something?  It's really weird.

 

Fix the 3's, and I am pretty sure that the images will be fixed too.

 

  Capture.PNG.aa06fc895c1d31697f332a95516cca8c.PNG

Link to comment
9 hours ago, tyger07 said:

As I suspected, I see that the first character at the beginning of the image headers is "3".  I have no idea where the 3 is coming from, but its all over your web page.

 

Have you modified any of the source code?

 

Because the image headers are corrupted by the 3, none of those images are displayed.  The "3" seems to be created at the beginning of your web server's PHP files.  Some sort of debugger output or something?  It's really weird.

 

Fix the 3's, and I am pretty sure that the images will be fixed too.

 

  Capture.PNG.aa06fc895c1d31697f332a95516cca8c.PNG

something prophet would have to look at as I think it is something to do with several mysql query statements that he edited to get the live scoreboard to work ... 

Link to comment
  • Administrators
15 hours ago, sixpax12 said:

something prophet would have to look at as I think it is something to do with several mysql query statements that he edited to get the live scoreboard to work ... 

 

14 hours ago, tyger07 said:

I do not think that editing any query will cause all of your PHP files to echo out a  3 at their beginning.  Something is up with the web server.

@sixpax12 When you transferred the files to the new server, how did you do it? Maybe the transfers caused the issue I'm thinking.

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

Link to comment
9 hours ago, Prophet731 said:

 

@sixpax12 When you transferred the files to the new server, how did you do it? Maybe the transfers caused the issue I'm thinking.

they would have been part of the zip file for the whole site and extracted on the server via cpanel file manager.  i suppose i could re-download bf3 and reupload in a test dir to see if it works any differently.

EDIT: That did the trick. 

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.