Jump to content

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


tyger07

Recommended Posts

Originally Posted by swats73*:

 

Error!

 

WebPage

 

 

 

PROCON

had this message before with my DB hosted on fragnet I just submitted a ticket asking them to flush the DB and has been fine since.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...
  • Replies 1.7k
  • Created
  • Last Reply

Originally Posted by HitchItch*:

 

Ok, Thanks so much for this topic

I am trying to get a stats page up, reading through the op, most of the instructions are pretty straight foward expect for the first step

 

"Download the following file:

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

 

Extract the files."

 

Where am I downloading this to?

 

I created a openweb account but cannot upload anything to it

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

Originally Posted by ty_ger07*:

 

Where am I downloading this to?

You download it and put it on your website. If you don't have a website, you will need to buy website hosting from some web server provider who offers a modern php environment and database support.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HitchItch*:

 

Thanks, i just figured that out. We do have a website host with SQL

my only problem now is inputting the proper info for the following

 

DEFINE('HOST', '100.200.300.400'); // database host address IS THIS OUR WEBSITE IP?

 

In Procon plugin:

Host- IS THIS OUR WEBSITE IP?

Database name- IS THIS THE NAME OF THE DATABASE I CREATED?

UserName- MY USERNAME FOR MY SQL?

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

Originally Posted by HitchItch*:

 

Getting the following error when i load our webpage

 

Error: Access denied for user 'otckilli_user'@'%' to database 'otckilli_server_stats'

 

the database name is correct as well as the user and password. I created a user and a password just for this.

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

Originally Posted by ty_ger07*:

 

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

IS THIS OUR WEBSITE IP?

The database host address. It is the IP address of the database. If the database is at the same location as the website, the host may be localhost instead of an IP address.

Host- IS THIS OUR WEBSITE IP?

The database host address.

Database name- IS THIS THE NAME OF THE DATABASE I CREATED?

Yes, the database name.

UserName- MY USERNAME FOR MY SQL?

Yes, the database user name.

 

Everything is about the database for both the plugin and the stats webpage.

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

Originally Posted by HitchItch*:

 

Works Great, You guys are the best, Only real stumble was getting a user name and password that worked. was getting User Access Denied.

 

Now to change up the images

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

Originally Posted by khalane*:

 

Hello, I have a problem with the overview webpage, i have this error message:

 

I installed the file, on the area of my team website (hosted ovh), as you can see here: tyger07… directory

 

In tyger07…, I opened the "config" directory:

 

In this config directory, I modified the file "config.php"

 

Here is how I configured:

 

The SQL database : db4free.net base (hosted by db4free.net) the following plugins work fine with this SQL database :

-Stats And MapStats Logger [1.0.0.2]

-AdKats [6.5.0.0]

Why I have this error message?

 

Thank you in advance ...

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

Originally Posted by ty_ger07*:

 

For one thing, your stylesheet is all messed up. I have to wonder why. The background color, missing background image, and text color in the error message is not normal.

 

Instead of using 'db4free.net', try using db4free.net's IP address so that you can avoid DNS issues.

 

Other than that, I have no idea why your website is not able to connect to db4free.net. You might want to ask db4free.net why. Perhaps there were too many unsuccessful attempts or too many attempts within a short period of time and db4free.net blocked your website address.

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

Originally Posted by khalane*:

 

Thank you very much for the quick response and for your Webpage overview ! And thank you to the community and all plugin developers (they work well) !

For the style sheet, I did not touch anything, I just put the login info in the config.php file.

Thank you for your reply ; I'll look in those directions, I'll let you know...

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

Originally Posted by HitchItch*:

 

Got the stats working, its keeping the players stats but

Some of the players are being listed twice, myself included

I am listed #20 and #25 yet my score/stats are identical, we have other players with double listings Any idea?

20 Hitch_Itch 86469 214 1.15 5.61 %

25 Hitch_Itch 86469 214 1.15 5.61 %

 

take a look if you wish to - http://otckillingtime.com/index.php_p=leaders&sid=1

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

Originally Posted by ty_ger07*:

 

Got the stats working, its keeping the players stats but

Some of the players are being listed twice, myself included

I am listed #20 and #25 yet my score/stats are identical, we have other players with double listings Any idea?

20 Hitch_Itch 86469 214 1.15 5.61 %

25 Hitch_Itch 86469 214 1.15 5.61 %

 

take a look if you wish to - http://otckillingtime.com/index.php_p=leaders&sid=1

I don't see the issue. I think you probably saw the issue due to caching. It looks like the problem cleared up on its own.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

I got this working 2days ago but the map stats graphs not working anyone had that problem ?

Or will it show up once there is more stats ?

I need more information. Are map stats enabled? Are there map stats being displayed? Is it only the image which isn't working? Has anyone played in your server since you got the stats working?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by GvnrRickPerry*:

 

Hello sir,

 

We (AK907) are in the process of upgrading the webstats page. We've been using a fairly modified version of the webstats to suit our needs, and it has been working great! You are an awesome coder, and I really love the style of the webstats.

 

My problem is we recently started using a 70 slot Hardline server. I've been working on getting everything setup, but for some reason the webstats only shows 2 servers. Both of which are our older BF4 servers. I would love it to show our BF Hardline server. Is there something that needs to happen for the webstats to show the Hardline servers versus the BF4 servers?

 

I've been trying to research this, but am not coming across too much. I'd love to have some other input!

 

The half-working page is available at:

http://battlefield.ak907.net/

 

We've still got some modifying to do in order to get things working properly - right now, I just want the Hardline server to show up in the server list drop down, or any server list!

 

Thanks!

-Gvnr

 

EDIT:

I am able to query the database (SELECT * FROM tbl_server) and the new Hardline server shows up there, just not the web stats. I am starting to think it's something our web programmer did and nothing to do with the database or your version of webstats... Going to try to get him in here ASAP.

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

Originally Posted by ty_ger07*:

 

My problem is we recently started using a 70 slot Hardline server. I've been working on getting everything setup, but for some reason the webstats only shows 2 servers. Both of which are our older BF4 servers. I would love it to show our BF Hardline server. Is there something that needs to happen for the webstats to show the Hardline servers versus the BF4 servers?

My web stats code only selects BF4 servers because of what is in ./common/connect.php.

 

https://github.com/tyger07/BF4-Serve...on/connect.php

 

It says:

...

// first we need to find the GameID of BF4

// note: WHERE `Name` = 'BF4'

// change 'BF4' to other game name if you want to try to modify this code to work with another game

$Server_q = @mysqli_query($BF4stats,"

SELECT `GameID`

FROM `tbl_games`

WHERE `Name` = 'BF4'

");

You would have to do something like WHERE `Name` = 'BF4' OR `Name` = 'BH' (or whatever abbreviation Battlefield Hardline shows up in the database as).

 

I would advise that it is easier to make two separate versions of the stats page in different directories. Otherwise, it might be difficult to properly match the rank images, weapon images, backgrounds, text, and so forth to display properly depending on the game being viewed.

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

Originally Posted by )RAG()N*:

 

I need more information. Are map stats enabled? Are there map stats being displayed? Is it only the image which isn't working? Has anyone played in your server since you got the stats working?

Yes map stats are enabled.

 

its showing the maps that has been played,

 

the only image that isn't working is the Map stats pie graph at the top.

 

I have just had a look at the error log file

 

PHP Fatal error: Call to undefined function imagettfbbox() in /common/pchart/class/pImage.class.php on line 211

 

this is whats on line 211

 

Code:

$coords = imagettfbbox($FontSize, 0, $FontName, $Text);
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by GvnrRickPerry*:

 

My web stats code only selects BF4 servers because of what is in ./common/connect.php.

 

https://github.com/tyger07/BF4-Serve...on/connect.php

 

It says:

 

 

You would have to do something like WHERE `Name` = 'BF4' OR `Name` = 'BH' (or whatever abbreviation Battlefield Hardline shows up in the database as).

 

I would advise that it is easier to make two separate versions of the stats page in different directories. Otherwise, it might be difficult to properly match the rank images, weapon images, backgrounds, text, and so forth to display properly depending on the game being viewed.

Thank you, ty_ger07. I guess we will have to wait until the dev gets this one, because we are using an older version of webstats and it doesn't have the connect.php file.

 

I am going to try to copy over the update again and see if it will work, but I don't know if it will.

 

Thank you!

-Gvnr

 

I got her to work using the abbreviation 'BFHL' but it only does whichever one is first. It seems the rest of the statement just doesn't execute or work if I use the "OR" command.

 

For example, I changed the line to this:

Code:

WHERE `Name` = 'BFHL' OR 'BF4'
and Hardline shows up when I refresh the page. If I change the line to this:

Code:

WHERE `Name` = 'BF4' OR 'BFHL'
then only BF4 shows up. It doesn't want to do both of them for some reason. Got any ideas good sir?

Thanks,

-Gvnr

 

Second note:

 

Looks like none of the images work for HL either. I didn't expect weapons to, but none of the normal stuff works either like signatures, server banners, and a few others. Oddly enough, some of the vehicles "coins" show up and some of the weapons do too - like the grenades for example.

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

Originally Posted by ty_ger07*:

 

For example, I changed the line to this:

Code:

WHERE `Name` = 'BFHL' OR 'BF4'
Code:
WHERE `Name` = 'BF4' OR 'BFHL'
Ummm, as I said...

 

WHERE `Name` = 'BF4' OR `Name` = 'BFHL'

 

 

But, as I said, you would be best off making them two separate pages in different directories of your server. It would be messy otherwise.

 

Looks like none of the images work for HL either. I didn't expect weapons to, but none of the normal stuff works either like signatures, server banners, and a few others. Oddly enough, some of the vehicles "coins" show up and some of the weapons do too - like the grenades for example.

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

Originally Posted by GvnrRickPerry*:

 

But, as I said, you would be best off making them two separate pages in different directories of your server. It would be messy otherwise.

 

Yup, that is to be expected.

I will give that a shot to see what happens - thank you!

 

I didn't know if you had been testing with Hardline or anything, so just trying to give a little report. If you need, or would like, any help with getting webstats to work with Hardline, let me know. I don't know a whole lot, but I have a dev in the clan that took what you had and grew on it. We were trying to setup an advanced query, but I don't think it will ever work like we had wanted because of things not being logged to the database. I'd be more than happy to do what I can to help, and try to get my dev involved too if you are interested!

 

Thank you, again,

-Gvnr (http://www.linkedin.com/in/duanemizell/en)

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

Originally Posted by knownchild*:

 

I have a general question, in order to get both of my servers to show up in the server drop down do i just point both of the servers xpKillers stats logger plugin's to the same sql database?

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

Originally Posted by ty_ger07*:

 

You are using some ancient code there. I don't even remember any more how that code was structured or where that link is. I do know that this is the source of your problem though: "...battlefield.com/bf4/servers/pc/...".

Why not update your code to the current version?

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

Originally Posted by )RAG()N*:

 

Yes map stats are enabled.

 

its showing the maps that has been played,

 

the only image that isn't working is the Map stats pie graph at the top.

 

I have just had a look at the error log file

 

PHP Fatal error: Call to undefined function imagettfbbox() in /common/pchart/class/pImage.class.php on line 211

 

this is whats on line 211

 

Code:

$coords = imagettfbbox($FontSize, 0, $FontName, $Text);
anyone got any ideas how to fix this?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

PHP Fatal error: Call to undefined function imagettfbbox() in /common/pchart/class/pImage.class.php on line 211

anyone got any ideas how to fix this?
You are probably using an old version of PHP which doesn't include GD or else simply don't have GD installed on your server for one reason or another.

 

http://php.net/manual/en/book.image.php

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

Originally Posted by )RAG()N*:

 

You are probably using an old version of PHP which doesn't include GD or else simply don't have GD installed on your server for one reason or another.

 

http://php.net/manual/en/book.image.php

oh ok I don't know anything about that,, So if I contacted my server host I should ask to get it updated ?
* 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.