Jump to content

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


tyger07

Recommended Posts

  • Replies 1.7k
  • Created
  • Last Reply

Originally Posted by smogsy*:

 

hey

 

i love your web plugin,

 

1. how can i tell the version number of your code? [i want to see if out of date]

 

2. I modified your css file quite a bit to match in with our website stuff, if i update is their any code ill have to copy over into my CSS file for it work correctly with any new updates?

 

below is my version of CSS

[Here]

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

Originally Posted by ty_ger07*:

 

1) Look at readme.txt ( http://anarchygaming.uk/stats/readme.txt ) and compare the last changelog date to the last changelog date on github ( https://github.com/tyger07/BF4-Serve...ter/readme.txt ). Yours is from the 8th of January and the one on GitHub is from the 21st of January. Very similar.

 

2) The CSS file wasn't changed between the 8th and the 21st. You could just copy your modified CSS version over the top of the newer code and have no problem.

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

Originally Posted by ty_ger07*:

 

Hello.

Will update the list of new weapons?

after BF4 spring update

I don't have a BF4 server, don't have a current BF4 stats database to look at, and don't have time or ability to play hardly ever. So, there probably won't be an update from me any time soon.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by SharpShot-gif*:

 

I have not tested to see if this works so if you want to try it please back up your database before adding the new tables. I will not be able to see if this works till tonight.

 

add to tbl_weapons table

 

Code:

INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94', 'U_AN94', 'assaultrifle', 'Primary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M26_Buck', 'U_AN94_M26_Buck', 'shotgun', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M26_Flechette', 'U_AN94_M26_Flechette', 'shotgun', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M26_Frag', 'U_AN94_M26_Frag', 'shotgun', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M26_Slug', 'U_AN94_M26_Slug', 'shotgun', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_SHG_v1', 'U_AN94_M320_SHG_v1', 'shotgun', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_3GL_v1', 'U_AN94_M320_3GL_v1', 'projectileexplosive', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_HE_v1', 'U_AN94_M320_HE_v1', 'projectileexplosive', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_LVG_v1', 'U_AN94_M320_LVG_v1', 'projectileexplosive', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_SMK_v1', 'U_AN94_M320_SMK_v1', 'impact', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_FLASH_v1', 'U_AN94_M320_FLASH_v1', 'projectileexplosive', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'L86A1', 'U_L86A1', 'lmg', 'Primary', 'Support');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'U_Groza-1', 'U_Groza-1', 'carbine', 'Primary', 'None');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'Groza-4', 'U_Groza-4', 'smg', 'Primary', 'Demolition');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'Mares Leg', 'U_SaddlegunSnp', 'handgun', 'Auxiliary', 'None');
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by clanbfb*:

 

My web hosting is not joined with the Battlefield 4 server are different companies

 

I fill like this:

 

// DATABASE INFORMATION

 

DEFINE ('localhost', ''); // Database host address

 

or should I use the IP address of the FTP connection?

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

Originally Posted by ty_ger07*:

 

My web hosting is not joined with the Battlefield 4 server are different companies

 

I fill like this:

 

// DATABASE INFORMATION

 

DEFINE ('localhost', ''); // Database host address

 

or should I use the IP address of the FTP connection?

Use the IP address of the database. If the database is on the same server as your web server, localhost may work fine. If you don't know your database IP address, ask whoever is hosting your database.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by SmackDown*:

 

I have not tested to see if this works so if you want to try it please back up your database before adding the new tables. I will not be able to see if this works till tonight.

 

add to tbl_weapons table

 

Code:

INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94', 'U_AN94', 'assaultrifle', 'Primary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M26_Buck', 'U_AN94_M26_Buck', 'shotgun', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M26_Flechette', 'U_AN94_M26_Flechette', 'shotgun', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M26_Frag', 'U_AN94_M26_Frag', 'shotgun', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M26_Slug', 'U_AN94_M26_Slug', 'shotgun', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_SHG_v1', 'U_AN94_M320_SHG_v1', 'shotgun', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_3GL_v1', 'U_AN94_M320_3GL_v1', 'projectileexplosive', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_HE_v1', 'U_AN94_M320_HE_v1', 'projectileexplosive', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_LVG_v1', 'U_AN94_M320_LVG_v1', 'projectileexplosive', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_SMK_v1', 'U_AN94_M320_SMK_v1', 'impact', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'AN94_M320_FLASH_v1', 'U_AN94_M320_FLASH_v1', 'projectileexplosive', 'Secondary', 'Assault');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'L86A1', 'U_L86A1', 'lmg', 'Primary', 'Support');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'U_Groza-1', 'U_Groza-1', 'carbine', 'Primary', 'None');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'Groza-4', 'U_Groza-4', 'smg', 'Primary', 'Demolition');
INSERT INTO `tbl_weapons` VALUES (NULL, 1, 'Mares Leg', 'U_SaddlegunSnp', 'handgun', 'Auxiliary', 'None');
Did this work without errors?
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by SharpShot-gif*:

 

Sorry for the late update. If you update your servers bf4.def by adding the new weapons it should now track the new weapons.

 

add after line 342 "procon.protected.weapons.add Support "U_XM25_Smoke" Secondary Impact"

Code:

procon.protected.weapons.add Assault "U_AN94" Primary AssaultRifle
procon.protected.weapons.add Assault "U_AN94_M26_Buck" Secondary Shotgun
procon.protected.weapons.add Assault "U_AN94_M26_Flechette" Secondary Shotgun
procon.protected.weapons.add Assault "U_AN94_M26_Frag" Secondary Shotgun
procon.protected.weapons.add Assault "U_AN94_M26_Slug" Secondary Shotgun
procon.protected.weapons.add Assault "U_AN94_M320_3GL_v1" Secondary ProjectileExplosive
procon.protected.weapons.add Assault "U_AN94_M320_FLASH_v1" Secondary ProjectileExplosive
procon.protected.weapons.add Assault "U_AN94_M320_HE_v1" Secondary ProjectileExplosive
procon.protected.weapons.add Assault "U_AN94_M320_LVG_v1" Secondary ProjectileExplosive
procon.protected.weapons.add Assault "U_AN94_M320_SHG_v1" Secondary Shotgun
procon.protected.weapons.add Assault "U_AN94_M320_SMK_v1" Secondary Impact
procon.protected.weapons.add Support "U_L86A1" Primary LMG
procon.protected.weapons.add None "U_Groza-1" Primary Carbine
procon.protected.weapons.add Demolition "U_Groza-4" Primary PDW
procon.protected.weapons.add None "U_SaddlegunSnp" Secondary Handgun
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MadMojo*:

 

])RAG()N, just in case you still read here :ohmy:

I had a similar problem. No maps were drawn by GD, but I haven't had any PHP errors at all.

 

Today I had a first look at the .htaccess delivered with this (haven't noticed them before). That was the reason I had no generated images: The Web Servers configuration has not allowed any override from .htaccess. I have changed that and it works now as it should!

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

Originally Posted by )RAG()N*:

 

])RAG()N, just in case you still read here :ohmy:

I had a similar problem. No maps were drawn by GD, but I haven't had any PHP errors at all.

 

Today I had a first look at the .htaccess delivered with this (haven't noticed them before). That was the reason I had no generated images: The Web Servers configuration has not allowed any override from .htaccess. I have changed that and it works now as it should!

thanks Mate,

But I don't know how or where you change the settings for it,,, Is it just in the .htaccess file ?

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

Originally Posted by ty_ger07*:

 

thanks Mate,

But I don't know how or where you change the settings for it,,, Is it just in the .htaccess file ?

If you don't have access to the server configuration files, ask your server host to do it.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MadMojo*:

 

It's not your .htaccess but the web server configfile which you have to change.

Here a short description:

https://help.ubuntu.com/community/En...eHtaccessFiles

As ty_ger07 wrote, if you don't have access to these config files ask you provider to enable it.

The key for enabling .htaccess lies in "AllowOverride All" in the directory section.

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

Originally Posted by )RAG()N*:

 

Thanks for the reply,,

I contacted my host but there useless, basically if I can't do it myself it doesn't get done, So I have given up trying to get it to work.

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

Originally Posted by madmuthamonk*:

 

Chat logging has stopped working and I have this error in Procon console:

 

[09:39:15 67] [statslogger]Error: LogChat:

[09:39:15 67] Message: Unknown column 'logPlayerID' in 'NEW'

[09:39:15 67] Native: -2147467259

[09:39:15 67] Source: MySql.Data

[09:39:15 67] StackTrace: at MySql.Data.MySqlClient.MySqlStream.ReadPacket()

at MySql.Data.MySqlClient.NativeDriver.GetResult(Int3 2& affectedRow, Int64& insertedId)

at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)

at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)

at MySql.Data.MySqlClient.MySqlDataReader.NextResult( )

at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader( CommandBehavior behavior)

at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuer y()

at PRoConEvents.CChatGUIDStatsLogger.LogChat(String strSpeaker, String strMessage, String strType)

[09:39:15 67] [statslogger]Error: LogChat_2: System.NullReferenceException: Object reference not set to an instance of an object.

at PRoConEvents.CChatGUIDStatsLogger.DisplayMySqlErro rCollection(MySqlException myException)

at PRoConEvents.CChatGUIDStatsLogger.LogChat(String strSpeaker, String strMessage, String strType)

 

 

I have not changed anything in the database. The chat logging just stopped working with this error for a couple of weeks now. Every time someone types something in chat that error pops up.

 

Any ideas on how to fix it?

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

Originally Posted by ty_ger07*:

 

My web stats code doesn't alter anything which would cause that error. Ask in XpKiller's plugin thread.

myrcon.net/.../stats-webpage-for-xpkillers-stats-logger-plugin

By the way, PlayerID is not logged in the chat log by default. This means that you have changed something or somebody has changed something. Maybe this is a change AdKats makes?

 

This is what XpKiller's plugin does with chat logging:

Code:

string query = "INSERT INTO " + this.tbl_chatlog + @" (logDate, ServerID, logSubset, logSoldierName, logMessage) VALUES (@logDate, @ServerID, @logSubset, @logSoldierName, @logMessage)";
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Prophet731*:

 

Chat logging has stopped working and I have this error in Procon console:

 

[09:39:15 67] [statslogger]Error: LogChat:

[09:39:15 67] Message: Unknown column 'logPlayerID' in 'NEW'

[09:39:15 67] Native: -2147467259

[09:39:15 67] Source: MySql.Data

[09:39:15 67] StackTrace: at MySql.Data.MySqlClient.MySqlStream.ReadPacket()

at MySql.Data.MySqlClient.NativeDriver.GetResult(Int3 2& affectedRow, Int64& insertedId)

at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)

at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)

at MySql.Data.MySqlClient.MySqlDataReader.NextResult( )

at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader( CommandBehavior behavior)

at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuer y()

at PRoConEvents.CChatGUIDStatsLogger.LogChat(String strSpeaker, String strMessage, String strType)

[09:39:15 67] [statslogger]Error: LogChat_2: System.NullReferenceException: Object reference not set to an instance of an object.

at PRoConEvents.CChatGUIDStatsLogger.DisplayMySqlErro rCollection(MySqlException myException)

at PRoConEvents.CChatGUIDStatsLogger.LogChat(String strSpeaker, String strMessage, String strType)

 

 

I have not changed anything in the database. The chat logging just stopped working with this error for a couple of weeks now. Every time someone types something in chat that error pops up.

 

Any ideas on how to fix it?

By the way, PlayerID is not logged in the chat log by default. This means that you have changed something or somebody has changed something. Maybe this is a change AdKats makes?

 

This is what XpKiller's plugin does with chat logging:

Code:

string query = "INSERT INTO " + this.tbl_chatlog + @" (logDate, ServerID, logSubset, logSoldierName, logMessage) VALUES (@logDate, @ServerID, @logSubset, @logSoldierName, @logMessage)";
AdKats requires the logPlayerID column due to how big chatlogs can get and the performance of searching by player name is horrendous on big tables. If you've installed AdKats then that column was never added successfully when you ran the SQL script.

 

Run this SQL snippet and see if it fixes the problem. This might take a while to run on a larger table.

 

https://gist.github.com/Prophet731/ff4b74006fa06c148c22

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

Originally Posted by Treadster*:

 

Hello

 

Can the leaderboard be edited to show more tabs? Instead of Top Players, Top 20 Player, can more tabs be added for

Melee Kills (Knife / Defib/ Sheild / Repair Tools Kills)

Flag Caps? MVP Ribbons

 

Or Instead of Tabs, can these be added as sortable columns on the main leader board?

 

If so, I dont mind donating for your time to add such funtionality!

 

Thanks

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

Originally Posted by ty_ger07*:

 

Sortable collumns are not easy to add with my implementation of tabs. You will see that every place that uses a tab does not have a sortable collumn or pagination (only one page of results).

 

It would be easier to add more tabs to the leaderboard, but I am not if there is much demand for this nor if the navigation would be confusing to people due to multiple tabs for similar looking results.

 

Flag caps? No. MVP Ribbons? No. That data is not available to Procon and is not in the database.

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

Originally Posted by Lwolf*:

 

I have installed the BF4 stat on my website, but he gives the following problem:

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

 

If you are the administrator, please seek assistance here.

URL: http://www.d7sphantom.com/TEST/

 

How can I add the BF 4 server_?

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

Originally Posted by Lwolf*:

 

I have installed the BF4 stat on my website, but he gives the following problem:

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

 

If you are the administrator, please seek assistance here.

URL: http://www.d7sphantom.com/TEST/

 

How can I add the BF 4 server_?

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

Originally Posted by oldschool*:

 

What if I run 2 Servers, with 2 separate DBs? I saw this earlier but the edits didn't seem up to date. Does anyone know the edits to add a second server on a separate db ?

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