Jump to content

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


tyger07

Recommended Posts

  • Replies 1.7k
  • Created
  • Last Reply

Originally Posted by ty_ger07*:

 

It is clear that I will have to redo the queries and use SoldierName instead of PlayerID and split up some queries to make them more robust. This is unfortunate as far as performance and URL consistency is concerned. There appears to be quite a few strange irregularities in the data.

 

As far as I can tell, only the global stats and signatures are affected by different PlayerIDs in different servers.

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

Originally Posted by ty_ger07*:

 

GlobalRank is not the same i have at the stats page

 

Unbenannt.PNG

That is fine. "GlobalRank" is not the same as your stats Rank. GlobalRank is your soldier's in-game rank.

 

The global rank you are see is:

Posted Image

 

 

The query is working. The GD compilation of the image is simply failing for some reason. I would assume that for some reason, you do not have write permissions to that directory and therefore the image is being compiled but is not being saved to the directory and therefore no image can be found in that directory.

 

1) We know that the background image is available.

http://gwg-clan.eu/gwg-stats/signatu...background.png

 

2) We know that the rank image is available.

http://gwg-clan.eu/gwg-stats/images/ranks/r55.png

 

3) We know that you have the GD extension because the server banner image generator is working fine.

http://gwg-clan.eu/gwg-stats/banner/...php_ServerID=1

 

4) We know that the query is working.

Attachment 2993

 

 

It must be a write permission issue which causes the server to not be able to write a file to that folder.

 

The reason the server banner generator using GD works fine is because the server banner generator is not saving the banner to a folder. It is simply sending the data straight out to the user.

 

Do you know what permission that folder has? For me, the permission is 0705 and it is creating signature images just fine as you have seen.

 

0705.jpg

 

Do you know of any other reason why your GD extension may not be allowed to write a file to that directory?

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

Originally Posted by ty_ger07*:

 

server ranks only display score and kills now. It used to be more, and I can see more ranks in player.php but they do not display, only score and kills is displayed.

Yes, those ranks were removed from the code on the 15th of December. Now the only ranks which are shown are the ranks which are already in the database and have already been calculated by XpKiller's plugin and they do not appear in the global stats pages because there is no good way to average out a bunch of different rank values across multiple servers.

 

Those extra ranks and weapon ranks worked fine when you were checking just one server at a time. But when the global pages were added, those ranks had to be removed because it became terribly slow to check ranks for 235 weapons across 10000, 15000, 20000 players or more. It was just too slow to calculate all those ranks every time. They were axed.

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

Originally Posted by Kinsman*:

 

Ah I see, it was when you combined the files into 1 for both global and server, fair enough then.

 

i don"t care about the weapons, but the extra server ranks at the top were nice, given they don"t even display on a global page, is there a way to add them back?

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

Originally Posted by ty_ger07*:

 

Ah I see, it was when you combined the files into 1 for both global and server, fair enough then.

 

i don"t care about the weapons, but the extra server ranks at the top were nice, given they don"t even display on a global page, is there a way to add them back?

Querying each column one at a time on the home page is fine, but when you query 5 or 6 different ranks on the same page at the same time, it is very slow. You have to count all 5000 or 10000 players each time separately in a different order.

 

It can be added again, but it is slow. Is it worth it? Do people care about that number?

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

Originally Posted by Kinsman*:

 

I posted more detail on that in the plugin thread for you. Its quite possible my DB is erroneous given it started life as 1.0.0.1 which had a few errors that were corrected in 1.0.0.2.

 

As for your questions surrounding GameID, I believe it was ever XP's intention that this plugin supports multiple games. Therefore each game would have its own ID.

 

It would probably be best to establish the GameID for BF4, then ignore all others. Actually a quick look at the DB and I would say BF4 GameID=1.

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

Originally Posted by ty_ger07*:

 

Code in first post updated!

 

Changes:

- Fixed a stats conformity issue by filtering out false database data for players with incorrect secondary Player IDs.

- Fixed signature images by allowing most data to be available in the signature image even if weapon stats are disabled.

 

 

What this means:

1) All secondary player ids for game ids which don't exist are simply ignored. As much as possible, that stats data is not included in the stats information. You will notice that the total number of players count on the index page is different than the total number of players you find in each server as a result since the "missing" players have the wrong game id for some reason and are therefore ignored. A player's stats data should now agree in multiple places.

 

2) Narf! will like this. With missing/incomplete weapon stats, only the player's favorite weapon is affected.

 

For example, a player with no weapon stats still has basic information about their name and how many kills they have (or don't have in this example):

Posted Image

Instead of just saying "no stats found".

 

Note that "favorite" (weapon) is "unknown" because this player has no weapon stats.

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

Originally Posted by ty_ger07*:

 

Ah I see, it was when you combined the files into 1 for both global and server, fair enough then.

 

i don"t care about the weapons, but the extra server ranks at the top were nice, given they don"t even display on a global page, is there a way to add them back?

I would advise you to look at the code on GitHub and try a snippet of code from the earlier version for yourself.

 

https://github.com/tyger07/BF4-Serve.functions.php

 

Here is the functions.php file from the 14th:

https://github.com/tyger07/BF4-Serve.functions.php

 

Edit: ..

 

This may be over your head and there is no need in making a long explanation on how PHP functions work. I suppose you should just look for help or ask for help if you need it.

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

Originally Posted by ty_ger07*:

 

Ok I am lost. What line in the serverbanner.php do we set the serverid? I am running just one server on each database.

You do not edit serverbanner.php. You just add the server id to the URL.

 

Did you look at the example file? It explains it pretty well I think.

 

Here is the base file:

 

http://open-web-community.com/bf4sta...rverbanner.php

 

Error, no Server ID provided.

 

Here is with ServerID:

 

http://open-web-community.com/bf4sta...php_ServerID=1

 

Change '_ServerID=1' to whatever you need.

 

Add '&data=1' to show it in HTML instead of an image.

 

http://open-web-community.com/bf4sta...verID=1&data=1

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

Originally Posted by Kinsman*:

 

I updated the code in the first post. Just a tiny update. Fixed a couple tiny little bugs and added two of those rankings (KDR and HSR) back to the non-global player stats page.

 

http://open-web-community.com/bf4sta...D=657&search=1

Does the word incorrigible translate ok in german? :tongue:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Thanks I got it but I have 29 players on my server right now and http://2ab2.branspace.com/Stats//ban...verID=1&data=1 shows it as empty but shows Correct Map

Team1: Not Found

Team2: Not Found

You must have current players disabled in XpKiller's plugin.

 

The stats page is also getting no current player data (no players on the scoreboard).

 

http://2ab2.branspace.com/Stats/index.php_ServerID=1

 

If you have options disabled in XpKiller's plugin, there will be no data.

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

Originally Posted by ty_ger07*:

 

You must have current players disabled in XpKiller's plugin.

 

The stats page is also getting no current player data (no players on the scoreboard).

 

http://2ab2.branspace.com/Stats/index.php_ServerID=1

 

If you have options disabled in XpKiller's plugin, there will be no data.

Also, on your website, you should resize the iframe to the correct size.

 

http://www.2abrigade.com/index.php

 

suggested iframe size:

width: 220px height: 712px

Should be:

Code:

<iframe src="http://2abrigade.branspace.com/48stats/banner/serverbanner.php_ServerID=1&data=1" width="220" height="712" scrolling="no"></iframe>
Add 'scrolling="no"' to get rid of the scrollbars and then resize the iframe to the proper size.
* 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.