Jump to content

Server Stats page for XpKiller's 'BF3 Chat, GUID, Stats and Mapstats Logger'


ImportBot

Recommended Posts

Originally Posted by Flaxe*:

 

What i meant to say is that ty_ger07 is correct, it can't be done easily with the current code. When I originally answered your question I thought I was in the other thread and that you could not get the stats to be saved in one database. Disregard my answer to you. It doesn't make sense now that I understand what you are trying to do.

 

What web site doesn't work?

Ah okay :ohmy:

 

The website that "doesn't work" is this*. I have posted about the problem I have there, at post myrcon.net/...stats-page-for-xpkillers-stats-logger-plugin#entry23683. You can read that post if you want. But I've gotten the website from this thread to work pretty good now. Just tweaking it a bit with design :smile: Though, I did just notice I'm receiving some errors from the Plugin itself in Procon. Not sure why :/ Everything is correct in database and it have been running for some hours earlier today and all stats have been transmitted correctly.

 

Code:

Error: LogChat: System.InvalidOperationException: The connection has been disabled. ---> System.Data.Odbc.OdbcException: ERROR [08S01] [MySQL][ODBC 5.1 Driver][mysqld-5.5.21]MySQL server has gone away   --- End of inner exception stack trace ---
   at System.Data.Odbc.OdbcConnection.ConnectionIsAlive(Exception innerException)
   at System.Data.Odbc.OdbcConnection.HandleErrorNoThrow(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
   at System.Data.Odbc.OdbcCommand.ExecuteNonQuery()
   at PRoConEvents.CChatGUIDStatsLoggerBF3.LogChat(String strSpeaker, String strMessage, String strType)
* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 487
  • Created
  • Last Reply

Originally Posted by ty_ger07*:

 

I can't get it to work with multiple servers together. I want all my four servers to have its stats stored together and not separate for each server. I have changed the Server group to 1 for all servers, but it's only the first server that gets its stats shown on the website.

If you need any more info or if I was unclear with anything, just say so!

 

Any help is appreciated, thanks!

I haven't tested this, and it may or may not work, but if you aren't using a table suffix, if you set the Server ID to '*', it should combine the server stats into one stats page.

 

Let me know how it goes, please. :smile:

 

It might not correctly link the correct player with the correct stats though.

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

Originally Posted by Flaxe*:

 

I haven't tested this, and it may or may not work, but if you aren't using a table suffix, if you set the Server ID to '*', it should combine the server stats into one stats page.

 

Let me know how it goes, please. :smile:

 

It might not correctly link the correct player with the correct stats though.

I'm not using table suffix.

I did try to set it to * but that just made it show up nothing at all (the Top 25 list just got empty). Good idea and worth a try tho!

 

Edit: One thing I just saw is a "bug" in my Top25 list. I've only had 250 players on the server right now, which will result in 10 pages of 25 players on each page. But instead of 10 pages, I have 15 pages, where the last 5 is just totally empty without any error message or anything. I checked your Demo page and there it works just as it should - so it's something only for me.

Any ideas?

 

Another thing. I'm pretty bad at PHP and fetching data from databases, but is there a way to show a players SPM in both Top 25 and the detailed stats view for each player? I've seen in the database that Playtime is recorded, but I don't know if it's in seconds or minutes. So I guess it would be possible getting a SPM by dividing each players total score with playtime?

If you/anyone is able to do it in code and show where to put it in I would be more than glad!

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

Originally Posted by GR101*:

 

Changes:

- Added pagination so that you can scroll through multiple pages of "top players".

Could you do the same for "Country Stats" page?

 

- Added pagination so that you can scroll through multiple pages of "Country Stats".

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

Originally Posted by ty_ger07*:

 

GGC-Stream's Banlist Manager API is not working right now. For some reason, it is returning the following result: "[error] Invalid parameters".

 

I have double checked their API documentation to make sure that there has been no documented changes. It simply isn't working.

 

I have submitted a support request ticket to them, but it usually takes half a month for them to respond.

 

I don't know what to say,,,,

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

Originally Posted by n0tiert*:

 

Hi m8s,

 

i attached bfstatsapi to xtended statspage

json data is stored in db for each known player,

lookup & update Player (realtime) via signed api

 

 

take a look:

 

http://stats.e-gaming-clan.de/

 

not fully finished yet but close

 

gimme some feedback pro & cons ,

 

thx

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

Originally Posted by ty_ger07*:

 

it wasn´t supposed to , sorry m8

You posted something which had nothing to do with my thread to further your agenda. And that isn't hijacking?
* Restored post. It could be that the author is no longer active.
Link to comment
  • 1 month later...

Originally Posted by CptChaos*:

 

You posted something which had nothing to do with my thread to further your agenda. And that isn't hijacking?

I think he just wanted to show another webpage (which he scripted), build on your great stats plugin, what is hijacking about that?

 

Either way; since Armored Kill is also released (and no new weapons or vehicles are coming to BF3):

Will this plugin be updated, so that the new weapons from Close Quarters and Armored Kill are added into the database? :smile: Or does this come from Procons .def file?

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

Originally Posted by th3hood*:

 

Having issues with :

 

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /homepages/11/d341283743/htdocs/proconstats/player_stats.php on line 1228

 

Warning: file_get_contents(http://api.ggc-stream.com/public/ser.status/active) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /homepages/11/d341283743/htdocs/proconstats/player_stats.php on line 1228

 

when i call the url it displays the banlist data though......

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

Originally Posted by ty_ger07*:

 

Having issues with :

 

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /homepages/11/d341283743/htdocs/proconstats/player_stats.php on line 1228

 

Warning: file_get_contents(http://api.ggc-stream.com/public/ser.status/active) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /homepages/11/d341283743/htdocs/proconstats/player_stats.php on line 1228

 

when i call the url it displays the banlist data though......

Looking at your PM, it appears that you need to modify your php.ini and/or php5.ini security settings. Have you tried adding "allow_url_fopen = on" to your php.ini and/or php5.ini files?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

just a note: "allow_url_fopen = on" is hell and is a security issue!!!

 

It should be disabled in a secure configuration.

 

You should use curl instead.

Remember that this part of the code is from the GGC-Stream API which is not code of my creation. So I am not sure right off the bat what changes are necessary or possible.

 

Additionally, while allow_url_fopen = on is a security risk, it is the default value for a php installation. One would assume that it isn't that large of a security risk if it is enabled by default.

 

allow_url_fopen = on is only vulnerable to any files which are being included by file_get_contents(). A cracker is not be able to change the stats PHP code remotely to manipulate any file_get_contents(exploit.php) file he wants. If he could, he would not need to exploit file_get_contents() in the first place. This means that the cracker would need to have access to the file which is being included into the page by use of the file_get_contents() function. In this case, we are including a file provided by GGC-Stream by method: $outputRaw = file_get_contents(http://api.ggc-stream.com/public/server/banlistmgr/{$serverId}/key/{$key}/format/json/do/{$type}/status/{$status});. If the cracker has access to that file, then he could exploit it.

 

So whether or not you consider it a threat is really dependent on how much you trust GGC-Stream and how much you trust their security.

 

If someone does not trust GGC-Stream's code, they should leave GGC-Stream $serverID = ''; and $key = ''; as null values in this stats code so that this portion of the player stats page code is not executed.

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

Originally Posted by XpKiller*:

 

The PHP defaults are crap. They allow nearly everything. In the most linux distro this value is disabled in the production config.

I just wanted to notice that this one of PHP options which are not secure.

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

Originally Posted by th3hood*:

 

so for curl what would be needed in place of -

allow_url_fopen = on

 

ty_ger07 have an issue with country stats where expanding the country + sign doesnt show the players, any ideas ?

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

Originally Posted by ty_ger07*:

 

so for curl what would be needed in place of -

allow_url_fopen = on

I would need to modify my player stats code to use curl() instead of file_get_contents().

 

ty_ger07 have an issue with country stats where expanding the country + sign doesnt show the players, any ideas ?

I noticed that. I also noticed that your webserver is providing very slow responses. I think the compilation of the country stats code is timing out which is causing that data to be missing. You should troubleshoot with your webserver provider why your webserver is running so slow.

 

Your pages are taking 10-20 times longer to load than they should.

 

Also, I see that you have made some modifications to the code. Without knowing exactly what you modified, I can't provide any advice on that front.

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

Originally Posted by th3hood*:

 

strange loads ok for me country code page took 1.9 seconds and the only code modified is style hex color codes

 

the second server in the list works fine and its a copy of the first, running seperate databases on the same server, so the first database maybe..... will take a look.

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

Originally Posted by ty_ger07*:

 

strange loads ok for me country code page took 1.9 seconds and the only code modified is style hex color codes

 

the second server in the list works fine and its a copy of the first, running seperate databases on the same server, so the first database maybe..... will take a look.

It's loading faster for me now for some reason. When I checked earlier, it took 19 something seconds to load the country page.

 

EDIT: It's really hit and miss. This time it took over 10 seconds to load. With a decent web server host, it should take more around about 0.01 - 0.05 seconds instead of 2 - 20 seconds.

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

Originally Posted by ty_ger07*:

 

It looks like you got it working th3hood. Your pages are loading much faster and the country stats are showing all the player names. Nice work! The snowflakes are a cool added effect. :cool:

 

EDIT: Oh, I also like how you incorporated the stats into your site as an iFrame overlay with a header to allow you to scroll between the multiple server stats pages.

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

Originally Posted by ty_ger07*:

 

Code linked in first post updated.

 

Changes:

-Necessary changes to make document validated as XHTML 1.0 Transitional.

-https://myrcon.net/recovered/img/63447_valid-xhtml10

 

This document was successfully checked as XHTML 1.0 Transitional!

The code was mostly already XHTML 1.0 Transitional valid anyways. The only real reason it wasn't fully valid was because I left the ampersand in URL query strings as "&" instead of "&". I did that because some real archaic search engines don't automatically replace & for &. But I decided that it should be considered the problem of the particular search engine which has not been updated rather than keep the document as XHTML 1.0 invalid.
* 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.