Jump to content

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


ImportBot

Recommended Posts

Originally Posted by ty_ger07*:

 

Hi, ty_ger07. Use your new code, but i have a little bug

Code:

Strict Standards: gmmktime(): You should be using the time() function instead in /home/u371193945/public_html/stats/index.php on line 2336

Strict Standards: gmmktime(): You should be using the time() function instead in /home/u371193945/public_html/stats/index.php on line 2346
My server php version 5.4

http://otmopo3ku.pusku.com/stats

If you want, convert the gmmktime() to time().

 

Otherwise, just disable PHP strict warnings in your server's PHP settings.

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

 

Code linked in first post updated.

 

Changes:

- Now uses time() instead of gmmktime() for error control.

- Scoreboard now reports current game mode.

- Scoreboard now reports current map name.

- Scoreboard now reports team name instead of just team number.

- Scoreboard pages now refresh every minute.

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

Originally Posted by CptChaos*:

 

Never mind, I dropped our stats pages, the community I'm in doesn't use it that much.

They rather use Battlelog and/or rconnet stats.

 

Although I do not understand why you use @mysql_* a lot

 

* has different functions. :ohmy:

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

Originally Posted by CptChaos*:

 

I do not understand your question.

Quite simple: you suppress errors with @, why do you use it? It's not mandatory for mysql-functions and makes debugging hard(er). :smile:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Quite simple: you suppress errors with @, why do you use it? It's not mandatory for mysql-functions and makes debugging hard(er). :smile:

I did not understand if you were asking about the '@' or about the methodology of my queries.

 

The reason why I use @ to suppress errors:

1) I know that the query is correct and don't need to debug the queries. I have already debugged it before posting the update here.

2) A lot of people are using cheap/free MySQL hosting which is very unreliable and I don't want a MySQL hosting timeout to cause a bunch of errors to appear on the page. Using @ to suppress the messages will make the affected items simply not appear on the page. The person will see that there is stuff missing and think :huh: and then reload the page and see everything there. I would rather them think :huh: due to missing stuff than :mad: at a bunch of error messages.

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

- Sessions table remains optimized.

- Server game mode and map shows on scoreboard even if no one is in the server.

- Uses server's name as server name if no server name is provided.

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

Originally Posted by CptChaos*:

 

Nice nice nice! Can't wait to test it! The community I'm in is interested in stats as well it seems (although I thought they weren't).

Maybe creating a git hub for the new release? :smile:

 

I'm also trying youre current latest version of this stats page, but all I get is a white page, even if I have every needed option set up. What should I do? I can't find any answers on my error logs as well.

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

- Big update.

- Visual enhancements.

- CSS moved to separate file for easy modification.

- Changing banner URL and banner link is easier.

- Code cleanup and improvements.

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

Originally Posted by ty_ger07*:

 

Hi good job !!

 

I have one probleme , livescore is not update , map is correct update .

 

http://www.teamb2p.power-heberg.com/player_stats2.php

 

You have idea ?

 

Thanks

Are you using PRoCon version 1.4.0.5 or higher and XPKiller's plugin version 1.1.0.0 or higher and do you have XPKiller's plugin settings set to "Enabled Live Scoreboard in DB? -> Yes" ?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:
 

But all I get is a white page, even if I have every needed option set up. What should I do_ I can't find any answers on my error logs as well.

Did you get it working with this newest version?

It is unlikely and would be odd, but it is possible that your PHP environment requires a flush() and/or ob_flush() depending on if gzip compression is enabled. You could try adding flush(); and ob_flush(); at the very end of the player_stats.php file prior to ?> and see if that helps.

 

For example:

echo '
</td></tr>
</table>
</td>
<td width="1%"></td>
</tr>
</table>
</center>
</td>
</tr> 
</table>
</div>
</td>
</tr>
</table>
</div>
<br/>
</body>
</html>
';
flush();
ob_flush();
?>

flush(): If gzip compression is enabled, this will flush the PHP code to the gzip output buffer. If gzip is not enabled, it will flush the output to the user's browser.

ob_flush(): If gzip compression is enabled, this will flush the gzip output buffer to the user's browser.

This shouldn't be necessary as the code should be sent to the user's browser automatically once it is finished executing, but perhaps you have a funky php environment.

Please let me know so that I can add those lines to the code if you find out it is necessary.

EDIT: Updated code linked in first page to include flush operations just in case since it can't hurt.

 

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

Originally Posted by ty_ger07*:

 

Hi ,

 

I have procon 1.4.06 + Plugin version 1.0.1.0 , and i have not line "Enabled Live Scoreboard in DB? -> Yes"

 

or is this line?

You need XpKiller's plugin version 1.1.0.0 not 1.0.1.0.

 

The option to enable live scoreboard was introduced with version 1.1.0.0.

 

Regarding the scoreboard, my first post says:

1-12-2013:

- Now REQUIRES PRoCon version 1.4.0.5 or higher and XpKiller's Stats plugin version 1.1.0.0 or higher.

- Added server stats.

- Added server scoreboard.

But, it is reassuring to see that my code worked the way I hoped it would in such a case as yours where the scoreboard simply said that no players were in the server rather than showing a bunch of error messages.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Oh sorry , I have not read the instructions properly, i go test .

You will need to upload XpKiller's plugin version 1.1.0.0 to your layer server, restart the PRoCon layer server, and then set "Enabled Live Scoreboard in DB_" to "Yes" in his plugin settings.

 

EDIT: Looks like you got it working. :biggrin:

http://www.teamb2p.power-heberg.com/player_stats2.php

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

- Slight visual enhancements.

- Better handling of missing scoreboard data.

- Code used in multiple places combined into single functions.

- Smaller code size.

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

Originally Posted by ty_ger07*:

 

We have 4 active server, how can install an index, such as in your demo

For server selection

I don't know a good way of publishing such an index. The problem is that the index will be different depending on how many servers you have and you will need to know some PHP code.

 

I can include an index of one server in the code and let you figure out how to modify it to add more servers. I will plan to do that.

 

EDIT: I could make the individual servers entered into an array and loop through so it would adjust automatically to the number of servers entered.

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

Originally Posted by ty_ger07*:

 

Niiiice Page ty_ger :biggrin:

Atm we usw u first stats page script http://www.noobigen-noobs.eu/stats/

We have 4 active server, how can install an index, such as in your demo

For server selection

Updated code linked in first post.

 

Changes:

- Minor code cleanup.

- Included player_stats_main.php index page for users with multiple server stats pages.

- Added optional link in player_stats.php to stats index page.

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

Originally Posted by ty_ger07*:

 

player_stats_main.php Overview

 

This is a stats index page for displaying multiple server stats pages. See the server stats pages overview at: www.phogue.net/forumvb/showth...apstats-Logger* .

 

 

Demo

 

http://thetacteam.info/player_stats_main.php

 

 

Installation Steps:

 

This file is included with the player_stats.zip file in the first post and its use is optional.

 

Extract the files all into the same directory. You may rename player_stats_main.php to any name of your choice.

 

You may change the appearance of the page by modifying the player_stats.css file.

 

 

Fill in the required parameters before using this code. You must place the necessary data between the single quotation marks ('').

 

 

I recommend that you use Notepad++ when editing the file. Whichever text editor you use, make sure word wrap is disabled so the lines don't get split up into multiple lines.

 

Note: You may not include single quotation marks (') in the following fields. For instance, you may not call your game server "Ty_ger07's Game Server" as it will create a PHP compilation error.

For example, this would not work:

// SERVER Name

$server_name = array('Ty_ger07's Game Server 1','Ty_ger07's Game Server 2'); // server name to display

You must use a PHP delimiter if you wish to use single quotes within the following fields.

For example, this would work:

// SERVER Name

$server_name = array('Ty_ger07's Game Server 1','Ty_ger07's Game Server 2'); // server name to display

PLEASE NOTE: The number of $table_suffixes, $server_IDs, $server_names, and $stats_links must all be the same. If you have 4 servers, you need 4 $table_suffixes, 4 $server_IDs, 4 $server_names, and 4 $stats_links in each array.

 

 

These are the sections which you must fill in:

 

1) Input your stats database host, stats database user name, stats database password, and stats database name.

 

Code:

// DATABASE INFORMATION
$db_host		=''; // database host
$db_uname		=''; // database user name
$db_pass		=''; // database password
$db_name		=''; // database name
For example:

//DATABASE INFORMATION

$db_host ='100.200.300.400'; // database host

$db_uname ='user'; // database user name

$db_pass ='pass'; // database password

$db_name ='stats'; // database name

Note: Some web server providers (such as GoDaddy) use the same value for database name and database user name.

 

 

2) Add a table suffixes or enter null values.

 

For example, if you use table suffixes:

// DATABASE TABLE SUFFIX

$table_suffix = array('_server1','_server2','_server3');

If you don't use table suffixes, enter them as null values.

For example:

// DATABASE TABLE SUFFIX

$table_suffix = array('','','');

3) Enter the server IDs. The default server ID is 1. If you use more than one server in the same database and don't use table suffixes, enter each of the other server IDs.

 

For example, if you use different server IDs:

// DATABASE SERVER ID

$server_ID = array('1','2','3');

If you use table suffixes, and not different server IDs:

// DATABASE SERVER ID

$server_ID = array('1','1','1');

4) Enter the names of the servers as you want it to appear on the index page.

 

For example:

// SERVER NAME

$server_name = array('Server 1','Server 2','Server 3');

5) Enter the links to each of the stats pages.

 

For example:

// STATS LINK

$stats_link = array('player_stats1.php','player_stats2.php','pla yer_stats3.php');

6) Enter the name of the clan as you want it to appear on search engine results.

Code:

// CLAN NAME
$clan_name		= ''; // your gaming clan or organization name
For Example:

// CLAN NAME

$clan_name = 'my clan'; // your gaming clan or organization name

7) Change the banner URL if desired.

Code:

// PAGE BANNER
$banner_image	= 'http://thetacteam.info/styles/twilightBB/theme/images/forumbanner.png'; // your desired page banner
Change the banner URL to an image URL of your choice.

 

 

8) Change the banner link if desired.

Code:

// BANNER LINK
$banner_url		= 'http://www.TheTacTeam.info'; // where clicking the banner will take you
Change the destination of clicking the banner if desired.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

I have a pretty nice chat tool set up for our game server admins and might include it in this stats page some time.

 

Features:

- Show player GUIDs if logged in.

- Show last X number of messages by default if no search submitted.

- Ability to search for specific chat content (partial matches and multiple keywords possible) or search for player name (partial matches possible / multiple player name search may be added).

- When viewing chat results, clicking on any time displayed shows all messages within 10 minutes before and after that time so that you can view full conversation.

- When viewing chat results, clicking on a player name shows all messages by that player.

 

... Some day. Sooner or later. Not sure which.

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

Originally Posted by utopiate*:

 

I have a pretty nice chat tool set up for our game server admins and might include it in this stats page some time.

 

Features:

- Show player GUIDs if logged in.

- Show last X number of messages by default if no search submitted.

- Ability to search for specific chat content (partial matches and multiple keywords possible) or search for player name (partial matches possible / multiple player name search may be added).

- When viewing chat results, clicking on any time displayed shows all messages within 10 minutes before and after that time so that you can view full conversation.

- When viewing chat results, clicking on a player name shows all messages by that player.

 

... Some day. Sooner or later. Not sure which.

that would really useful for the community, maybe it could operate as a standalone also? I would certainly donate to your community for a standalone version of this :ohmy:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

that would really useful for the community, maybe it could operate as a standalone also? I would certainly donate to your community for a standalone version of this :ohmy:

Ok. I will work on modifying it to create a community friendly stand-alone version.

 

Then, later, will probably work on adding it into the stats page.

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

Originally Posted by ty_ger07*:

 

that would really useful for the community, maybe it could operate as a standalone also? I would certainly donate to your community for a standalone version of this :ohmy:

Ok, now available:

www.phogue.net/forumvb/showth...apstats-Logger*

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