Jump to content

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


tyger07

Recommended Posts

  • Replies 1.7k
  • Created
  • Last Reply
  • 2 weeks later...

Originally Posted by SmackDown*:

 

I have been using this program for over a year now and been very happy with it.

 

However for some time now, the images for graphs, banners, and maps are not showing up. The stats for these images are loading on the pages, but the graphs, banners, and maps all have little X's in the upper left hand corner.

 

I have used different browsers and all show the same issue. If try to click on empty box where the graph or map photo would be, nothing happens.

 

Any ideas or suggestions. I have searched this forum, and found similar issues but not sure if they were able to solve it or not.

 

Thanks for you help.

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

Originally Posted by ty_ger07*:

 

A link to your stats page would help me understand the problem and find errors.

 

Often the issue is a security setting in your web server's php configuration which does not allow the php script to obtain read or write access to other files in the file system. Or, sometimes it is a web server security setting which does not allow htaccess changes. If either one of these are the cause, it is not always something you have the ability to change/correct depending on your web server host's policies.

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

Originally Posted by Porthos1973*:

 

I recently did a fresh install of this for a new server. The leaderboard is not updating correctly but if you click on a player you get accurate info then. For example is shows me with no score, kills, etc but once you click my name it does show my stats. Only a few rounds have been played on the server so not much data there yet. http://www.mowgaming.com/serverstats...p_p=home&sid=1

 

To make sure PRoCon Chat, GUID, Stats and Map Logger was working correctly I also installed millhouses stats page. http://www.mowgaming.com/serverstats2/

 

When you go to players on his, it does show correctly so Know the logger is working correctly. I prefer the layout of your stats page but need to get it working correctly. Any ideas?

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

Originally Posted by ty_ger07*:

 

That is normal. The leaderboard and many other things are on a 12 hour cache update cycle. You will notice the inconsistency between the cache and real-time less and less as the server stats mature. This has been asked many times previously. If you want to know why it is cached or how to change the cache length, please look through the previous pages. I don't think you would need to go back more than 10 pages.

 

Edit:

Here is probably the most useful recent explaination from me of how to change the cache length:

myrcon.net/...stats-webpage-for-xpkillers-stats-logger-plugin#entry48278

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

Originally Posted by mambochambo*:

 

hello Tyger-

is there any chance to ammend the Settings to get instead of the weekly top 20, also the monthly top 20, because i need that info,

we are giving top 20 monthly players vip slots, is there any method how i can see that?

Best Regards

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

Originally Posted by ty_ger07*:

 

hello Tyger-

is there any chance to ammend the Settings to get instead of the weekly top 20, also the monthly top 20, because i need that info,

we are giving top 20 monthly players vip slots, is there any method how i can see that?

Best Regards

In common/leaders/sessions-tab.php, you could change the period of time to a month instead of a week.

 

That would be the easiest way without needing to create and add a new tab.

 

Code:

if(!empty($ServerID))
{
	// get the info from the db 
	$Players_q  = @mysqli_query($BF4stats,"
		SELECT tpd.`PlayerID`, tpd.`SoldierName`, SUM(tss.`Score`) AS Score, SUM(tss.`Kills`) AS Kills, (SUM(tss.`Kills`)/SUM(tss.`Deaths`)) AS KDR, (SUM(tss.`Headshots`)/SUM(tss.`Kills`)) AS HSR
		FROM `tbl_sessions` tss
		INNER JOIN `tbl_server_player` tsp ON tss.`StatsID` = tsp.`StatsID`
		INNER JOIN `tbl_playerdata` tpd ON tsp.`PlayerID` = tpd.`PlayerID`
		WHERE tsp.`ServerID` = {$ServerID}
		AND tss.`Starttime` BETWEEN CURDATE() - INTERVAL 7 DAY AND CURDATE()
		AND tpd.`GameID` = {$GameID}
		GROUP BY tpd.`PlayerID`
		ORDER BY Score DESC, tpd.`SoldierName` ASC
		LIMIT 0, 20
	");
}
// or else this is a global stats page
else
{
	// get the info from the db 
	$Players_q  = @mysqli_query($BF4stats,"
		SELECT tpd.`PlayerID`, tpd.`SoldierName`, SUM(tss.`Score`) AS Score, SUM(tss.`Kills`) AS Kills, (SUM(tss.`Kills`)/SUM(tss.`Deaths`)) AS KDR, (SUM(tss.`Headshots`)/SUM(tss.`Kills`)) AS HSR
		FROM `tbl_sessions` tss
		INNER JOIN `tbl_server_player` tsp ON tss.`StatsID` = tsp.`StatsID`
		INNER JOIN `tbl_playerdata` tpd ON tsp.`PlayerID` = tpd.`PlayerID`
		WHERE tss.`Starttime` BETWEEN CURDATE() - INTERVAL 7 DAY AND CURDATE()
		AND tpd.`GameID` = {$GameID}
		AND tsp.`ServerID` IN ({$valid_ids})
		GROUP BY tpd.`PlayerID`
		ORDER BY Score DESC, tpd.`SoldierName` ASC
		LIMIT 0, 20
	");
}
In two places, change:

 

WHERE tss.`Starttime` BETWEEN CURDATE() - INTERVAL 7 DAY AND CURDATE()

 

to:

 

WHERE tss.`Starttime` BETWEEN CURDATE() - INTERVAL 30 DAY AND CURDATE()

 

https://github.com/tyger07/BF4-Serve...ssions-tab.php

 

In leaders.php, you would also want to change the text from "week" to "month".

 

Code:

<li><a href="./common/leaders/sessions-tab.php_sid=' . $ServerID . '&gid=' . $GameID . '">Top 20 Players This Month</a></li>
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mambochambo*:

 

Thank you very much! I really appreciate that you take your time to help me out in this case-

i also ammend the settings for the top 40 players- bec. alot of our Clanmembers are in the top 20, and i want to give the top 20 nonclanmembers vip for one month... It worked! again, Thx!!

Best Regards

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

Originally Posted by bdevroey*:

 

i reconnected, al servers to one new data base, only one server is listing on de stats webpage...

Someone knows if i am doing something wrong?

 

Servers procon frostbite:

https://gyazo.com/f690e3a6754bc7f9fccefe63357cfc2c

 

phpmyadmin servers:

https://gyazo.com/8235f6b4020f9cf70e4451c12659fdf7

 

 

 

Thanks in advance.

 

Kind regards

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

Originally Posted by bdevroey*:

 

i reconnected, al servers to one new data base, only one server is listing on de stats webpage...

Someone knows if i am doing something wrong?

 

Servers procon frostbite:

https://gyazo.com/f690e3a6754bc7f9fccefe63357cfc2c

 

phpmyadmin servers:

https://gyazo.com/8235f6b4020f9cf70e4451c12659fdf7

 

 

 

Thanks in advance.

 

Kind regards

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

Originally Posted by ty_ger07*:

 

I have no idea what you are talking about. What is a Google block? You mean the bot blocker?

 

If so, in Index.php, change:

 

Code:

// detect (and block) common bots
if(stripos($useragent, 'search') === false && stripos($useragent, 'seek') === false && stripos($useragent, 'fetch') === false && stripos($useragent, 'archiv') === false && stripos($useragent, 'spide') === false && stripos($useragent, 'validat') === false && stripos($useragent, 'analyze') === false && stripos($useragent, 'crawl') === false && stripos($useragent, 'robot') === false && stripos($useragent, 'track') === false && stripos($useragent, 'generat') === false && stripos($useragent, 'google') === false && stripos($useragent, 'bing') === false && stripos($useragent, 'msnbot') === false && stripos($useragent, 'yahoo') === false && stripos($useragent, 'facebook') === false && stripos($useragent, 'yandex') === false && stripos($useragent, 'alexa') === false)
{
to:

 

Code:

// detect (and block) common bots
if(stripos($useragent, 'search') === false && stripos($useragent, 'seek') === false && stripos($useragent, 'fetch') === false && stripos($useragent, 'archiv') === false && stripos($useragent, 'spide') === false && stripos($useragent, 'validat') === false && stripos($useragent, 'analyze') === false && stripos($useragent, 'crawl') === false && stripos($useragent, 'robot') === false && stripos($useragent, 'track') === false && stripos($useragent, 'generat') === false && stripos($useragent, 'bing') === false && stripos($useragent, 'msnbot') === false && stripos($useragent, 'yahoo') === false && stripos($useragent, 'facebook') === false && stripos($useragent, 'yandex') === false && stripos($useragent, 'alexa') === false)
{
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by bdevroey*:

 

I have no idea what you are talking about. What is a Google block? You mean the bot blocker?

 

If so, in Index.php, change:

 

Code:

// detect (and block) common bots
if(stripos($useragent, 'search') === false && stripos($useragent, 'seek') === false && stripos($useragent, 'fetch') === false && stripos($useragent, 'archiv') === false && stripos($useragent, 'spide') === false && stripos($useragent, 'validat') === false && stripos($useragent, 'analyze') === false && stripos($useragent, 'crawl') === false && stripos($useragent, 'robot') === false && stripos($useragent, 'track') === false && stripos($useragent, 'generat') === false && stripos($useragent, 'google') === false && stripos($useragent, 'bing') === false && stripos($useragent, 'msnbot') === false && stripos($useragent, 'yahoo') === false && stripos($useragent, 'facebook') === false && stripos($useragent, 'yandex') === false && stripos($useragent, 'alexa') === false)
{
to:

 

Code:

// detect (and block) common bots
if(stripos($useragent, 'search') === false && stripos($useragent, 'seek') === false && stripos($useragent, 'fetch') === false && stripos($useragent, 'archiv') === false && stripos($useragent, 'spide') === false && stripos($useragent, 'validat') === false && stripos($useragent, 'analyze') === false && stripos($useragent, 'crawl') === false && stripos($useragent, 'robot') === false && stripos($useragent, 'track') === false && stripos($useragent, 'generat') === false && stripos($useragent, 'bing') === false && stripos($useragent, 'msnbot') === false && stripos($useragent, 'yahoo') === false && stripos($useragent, 'facebook') === false && stripos($useragent, 'yandex') === false && stripos($useragent, 'alexa') === false)
{
Thank you for the reply

 

Is it this code to allow all?

// detect (and block) common bots

if(stripos($useragent, 'search') === false)

{

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

Originally Posted by ty_ger07*:

 

Thank you for the reply

 

Is it this code to allow all?

// detect (and block) common bots

if(stripos($useragent, 'search') === false)

{

Replacement with :

Code:

if(1)
{
would be the easiest way to disable the bot blocker.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by Chilace*:

 

hi guys

im getting an error trying to load webpage,could anyone look at my config php here and see what im doing wrong, a screenshot is included of what im getting on my page

 

screenshot==>> http://prntscr.com/afec5e

You messed up config.php:

 

// DATABASE INFORMATION

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

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

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

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

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

 

Only that reds editable.

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

Originally Posted by Dete96*:

 

Hi! I just tried to install it on my webpage. But I always get this error:

 

Error: Connection timed out

 

I'm quite sure that I put in the right information in the config.php. Does anyone have an idea how to fix this problem?

 

Thank you in advance

Dete96

 

Edit: Found the problem. My Webhoster denies external Database access via port 3306. Found another one, now it works great!!!

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

Originally Posted by Gijzijtdood*:

 

Hey Tyger,

 

What's your query for finding the kills with the M2 SLAM mine?

 

ScreenShot088.jpg

 

If i query for the U_SLAM or friendlyname SLAM i get a different result than on your statspage.

And yours is the correct one :smile:

 

cheers

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

Originally Posted by ty_ger07*:

 

I don't believe that I have any SLAM kills in my stats database. Therefore, I cannot test this query. I think it works though. For one player when PlayerID is known and only for SLAM:

Code:

SELECT tws.`Friendlyname`, wa.`Kills`, wa.`Deaths`, wa.`Headshots`, (wa.`Headshots`/wa.`Kills`) AS HSR
FROM `tbl_weapons_stats` wa
INNER JOIN `tbl_server_player` tsp ON tsp.`StatsID` = wa.`StatsID`
INNER JOIN `tbl_playerdata` tpd ON tsp.`PlayerID` = tpd.`PlayerID`
INNER JOIN `tbl_weapons` tws ON tws.`WeaponID` = wa.`WeaponID`
WHERE tsp.`ServerID` = {$ServerID}
AND tpd.`PlayerID` = {$PlayerID}
AND tpd.`GameID` = {$GameID}
AND tws.`Friendlyname` = 'SLAM'
AND (wa.`Kills` > 0 OR wa.`Deaths` > 0)
ORDER BY Kills DESC, Deaths DESC
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by EntraVenuS*:

 

i just dont know :smile:

 

why would someones stats ingame when typing !rank show different stats on the webpage ? their stats havent chaged ingame for ages but the website ones update with no problem (this isnt the case for all players) but when typing !top10 the person who i am talking about shows correctly too

 

Any help would be gratefully recieved

 

thanks in advance

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