Jump to content

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


tyger07

Recommended Posts

Originally Posted by ty_ger07*:

 

Hi Ty_ger,

 

My webhost just closed down my website with this comment,

 

 

 

Is it the live scoreboard that makes that many queries?

Is there a way to change this?

 

Kind regards

I wonder what the rate is. 600,000 queries in an hour? In a day? In a month? In a year? In the lifetime of the account?

 

My opinion is that it is quite unlikely that my stats page caused the issue. It is quite unlikely that you have driven that much internet traffic to your stats pages. I would guess that the really heavy user of the stats database is XpKiller's plugin running on PRoCon since his plugin is constantly using the database when players are in your server(s).

 

Any options you disable in XpKiller's plugin will decrease database use. The scoreboard, map stats, session stats, and chat log seem like the items you could disable and probably not care too much that the information is no longer available. Indirectly, any options you disable in XpKiller's plugin will also decrease the amount my stats page uses the database.

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

Originally Posted by Gijzijtdood*:

 

It's 600000 queries in about 20 days.

The database isn't that big because i empty it every month.

Is there a way of knowing how many queries the stats page does?

 

greetings,

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

Originally Posted by ty_ger07*:

 

It's 600000 queries in about 20 days.

The database isn't that big because i empty it every month.

Is there a way of knowing how many queries the stats page does?

 

greetings,

You could count up all the times you find 'mysqli_query' in my code, but that won't tell you much because it won't tell you which ones are fast and which ones are slow. Really, they should all be fast. I think it is highly unlikely that my stats page code triggered the issue. It is very unlikely that you have hundreds of thousands of stats page viewers. Like I said, I would say with quite a lot of confidence that XpKiller's plugin and in-game stats requests and updates are the heavy database users.

 

Are there any specific pages which say at the bottom 'server compiled page in...' greater than 1 seconds? And which pages are the highest? That would help me narrow it down.

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

Originally Posted by Gijzijtdood*:

 

I understand your point of view. The only facts at the moment are that my provider closes down the website and not the mysql server.

The only code on the site is the stats page.

I will try to get more info on what queries and how many are produced in witch period of time.

Don't understand me wrong, I love your page and many of my server players love it to :biggrin:

 

greetz

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

Originally Posted by ty_ger07*:

 

I understand your point of view. The only facts at the moment are that my provider closes down the website and not the mysql server.

The only code on the site is the stats page.

I will try to get more info on what queries and how many are produced in witch period of time.

Don't understand me wrong, I love your page and many of my server players love it to :biggrin:

 

greetz

Surely my stats page will place additional load to the database, so I will not claim that it won't. It may have helped in reaching the trigger, but I doubt it is the prime contributor. I presume that your host did not consider that you have other tools remotely accessing the database and that they may have assumed that by shutting down the website that they were also stopping load on the database at the same time; I think they may be surprised to see that the database load remains high after shutting down your website.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

When new weapon stats comes out ? :mad:

You mean Naval Strike weapons? Or what do you mean?

 

Weapons populate the database automatically based on Procon's bf4.def file. When Procon is updated with new weapons, the database adds thenew weapons automatically.

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

Originally Posted by ty_ger07*:

 

I don't have much time at the moment, but I would like to add tabbed out weapon categories to the player stats page, do something about the dog tag stats to make it not such a long boring mess, and do something about the home page to split up the scoreboard and top players. I would hope to do these things around the time of the release of Naval Strike.

 

Making this stats page compatible with BC2 was hopeless. Making this stats page compatible with BF3 is still a possibility but it doesn't seem like there is any demand.

 

I would like to add vehicle stats to the weapon stats, but so far no one has given me an updated copy of a BF4 database to work off of.

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

Originally Posted by commandotimmy*:

 

what does this error mean?

 

The game 'BF4' was not found in this database! Please notify this website's administrator

 

I have been chasing this for awhile now and cant figure out what I am doing wrong. I have plugin active in procon. the DB is up and running. the DB is localhost so there should be no issue with the page accessing it.?

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

Originally Posted by GR101*:

 

do something about the dog tag stats to make it not such a long boring mess

Please don't remove the current dog tag feature from your stats webpage because our Platoon is all about 'dog tags' and collecting them wherever possible, let's face it, it's more of a challenge to get dog tags during a normal game than kill somebody with a 320. That dog tag section is our trophy wall, :mad:

 

Server total dog tags collected 20717

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

Originally Posted by ty_ger07*:

 

Please don't remove the current dog tag feature from your stats webpage because our Platoon is all about 'dog tags' and collecting them wherever possible, let's face it, it's more of a challenge to get dog tags during a normal game than kill somebody with a 320. That dog tag section is our trophy wall, :mad:

 

Server total dog tags collected 20717

I wouldn't get rid of it. I just want to make it not take up so much space by default. I was thinking of making three tabs in that section: tog tag summary (listing totals), dog tags collected (list of names), and dog tags lost(list of names).
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by GR101*:

 

I wouldn't get rid of it. I just want to make it not take up so much space by default. I was thinking of making three tabs in that section: tog tag summary (listing totals), dog tags collected (list of names), and dog tags lost(list of names).

Thanks for that.

 

I've found one bug since the recent BF4 update (Increased the maximum rank to 120), stats image for players with rank greater than 100 doesn't appear to generate them, whereas 100 or less work fine.

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

Originally Posted by ty_ger07*:

 

Thanks for that.

 

I've found one bug since the recent BF4 update (Increased the maximum rank to 120), stats image for players with rank greater than 100 doesn't appear to generate them, whereas 100 or less work fine.

Yes, I know. I have uploaded the rank images through 120 to Github a couple days ago.

 

https://github.com/tyger07/BF4-Serve...r/images/ranks

 

You can copy the higher rank images to your stats page. I didn't make a formal announcement because I was hoping to have a more significant update ready sometime soon.

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

Originally Posted by Ente*:

 

I just installed you awesome site on our hp - works like a charm. I just have a little problem - as I did start the logging of our servers all at once - the servers our now not listed according to their number. Is there any way to change the sorting on the startpage? Link

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

Originally Posted by ty_ger07*:

 

I just installed you awesome site on our hp - works like a charm. I just have a little problem - as I did start the logging of our servers all at once - the servers our now not listed according to their number. Is there any way to change the sorting on the startpage? Link

Not really, no. I mean, you could change the server IDs in your database if you stopped procon and changed all the right things.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Ente*:

 

Wont work - because of the relationship between the server id and the stats.

I would need to change the sorting order in the sql-query your script does - but thats obviously not intended.

 

Or start from scratch...

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

Originally Posted by ty_ger07*:

 

Wont work - because of the relationship between the server id and the stats.

I would need to change the sorting order in the sql-query your script does - but thats obviously not intended.

 

Or start from scratch...

If you change all the server IDs everywhere, it would work. Lots of things to change though as you say.

 

Or you could rename your servers in the order of their server ids.

 

Or you could delete all the data and start over; this time starting XPKiller's plugin one server at a time in the same order as the number in the server's name.

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

Originally Posted by ty_ger07*:

 

Things I want to change:

 

Add naval strike.

Add tabs to organize large fields of text and long tables better.

Add ashyncronous queries to speed up page loading so query is only executed when respective tab is selected.

 

But...

 

I feel like there may be a better stats page already being created by another user.

myrcon.net/.../bf4-stats-page-for-bf4-procon-chat-guid-stats-and-mapstats-logger

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

Originally Posted by ty_ger07*:

 

If you change all the server IDs everywhere, it would work. Lots of things to change though as you say.

 

Or you could rename your servers in the order of their server ids.

 

Or you could delete all the data and start over; this time starting XPKiller's plugin one server at a time in the same order as the number in the server's name.

Another option:

 

Since my code just selects the servers in the order they are in the database (row 1, row 2, row 3,...), you could stop the plugin or layer and then re-order the rows in the database by editing their content.

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

Originally Posted by ty_ger07*:

 

How do I add extra servers?

It finds all the servers in the database automatically.

 

If you have your servers in different databases, you will have to use different stats pages in different directories.

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

Originally Posted by brym*:

 

It finds all the servers in the database automatically.

 

If you have your servers in different databases, you will have to use different stats pages in different directories.

Hi ty_ger07. Thanks for your quick reply. Only one server is being listed. I should add I'm only helping set things up for a friend's clan. Two separate servers / IP's. Will I need to add the other server details to the plugin?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Ente*:

 

Just changed your "select" for the servers to order by name - simply as that

SELECT `ServerID`

FROM `tbl_server`

WHERE `GameID` = {$GameID}

ORDER BY `ServerName` ASC

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

Originally Posted by ty_ger07*:

 

Just changed your "select" for the servers to order by name - simply as that

SELECT `ServerID`

FROM `tbl_server`

WHERE `GameID` = {$GameID}

ORDER BY `ServerName` ASC

I guess that would work well in your case since the first differences in the server name string are the server number.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Hi ty_ger07. Thanks for your quick reply. Only one server is being listed. I should add I'm only helping set things up for a friend's clan. Two separate servers / IP's. Will I need to add the other server details to the plugin?

It depends on how your friend's clan has set up their system. If they have created two databases with one server in each database, you will have to create two stats pages in different directories with one stats page connecting to one database address and one stats page connecting to the other database address (since the two databases will be at different addresses). If they are saving both servers to the same database, there is nothing you have to change since the webpage stats code will find both servers automatically in the database and will display both servers.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by brym*:

 

Just changed your "select" for the servers to order by name - simply as that

SELECT `ServerID`

FROM `tbl_server`

WHERE `GameID` = {$GameID}

ORDER BY `ServerName` ASC

That is a simple edit, thanks! Which file do I apply it to please? I applied this to index.php at line: 74, but it made no change.

 

It depends on how your friend's clan has set up their system. If they have created two databases with one server in each database, you will have to create two stats pages in different directories with one stats page connecting to one database address and one stats page connecting to the other database address (since the two databases will be at different addresses). If they are saving both servers to the same database, there is nothing you have to change since the webpage stats code will find both servers automatically in the database and will display both servers.

They intend to use the same database. But only one server gets listed.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Gijzijtdood*:

 

Hi ty_ger07,

 

Is it possible to make a page that lists the top 10 of players with the most kills of a specified weapon.

 

Something like if you choose knife it lists the top10 players with most knife kills.

 

Greetings,

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

Originally Posted by ty_ger07*:

 

Hi ty_ger07,

 

Is it possible to make a page that lists the top 10 of players with the most kills of a specified weapon.

 

Something like if you choose knife it lists the top10 players with most knife kills.

 

Greetings,

Yes, and I am working on such things at the moment.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by brym*:

 

Hi guys. Would still like to know where I am to make the suggested edits. As described above, I made them to index.php, but the 2nd server did not get listed. Would appreciate any further pointers. Thanks.

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