Jump to content

Chat, GUID, Stats and Mapstats Logger [1.0.0.3]


ColColonCleaner

Recommended Posts

Originally Posted by Scheibes*:

 

Ok da ich auf dem FTP den Config Ordner nicht gefunden habe, ging ich davon aus dass man das auf dem eigenen Rechner einstellen muss.

Hab nun den Support angeschrieben und hoffe jetzt dass es funktioniert. :-)

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

Originally Posted by coachsnap*:

 

hi all

 

I tried this plugin but I see some errors.

if i request !stats, after 4 matches my stats are kills 0 hs 0 death 10 k/d 0.

 

how can i fix it?

 

setting trace i see a lot of messages like:

[00:18:35 80] [statslogger]Trace: Weapon: U_GalilACE23 is missing in the BF4.def file!!!

[00:18:36 57] [statslogger]Trace: Weapon: U_FAMAS is missing in the BF4.def file!!!

[00:18:36 77] [statslogger]Trace: Weapon: U_M416 is missing in the BF4.def file!!!

edit: I need to update the file BF4.def from git?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by coachsnap*:

 

UPDATE:

 

Now I have updated the file bf4.def with the version of git and gives me the following warning

 

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey RPG-7 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/SCAR-H/SCAR-H not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey USAS-12 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey M27IAR not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey M16A4 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey AEK-971 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/A91/A91 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/AK74M/AK74 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/G36C/G36C not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/G3A3/G3A3 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/Gadgets/C4/C4 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/Gadgets/Claymore/Claymore not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/KH2002/KH2002 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/Knife/Knife not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/M416/M416 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/MagpulPDR/MagpulPDR not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/MP412Rex/MP412REX not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/MP443/MP443 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Taurus .44 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/P90/P90 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/Sa18IGLA/Sa18IGLA not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/UMP45/UMP45 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Weapons/XP1_L85A2/L85A2 not found!

[00:50:13 74] [statslogger]Warning: PrepareKeywordDic: Mainkey Glock18 not found!

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

Originally Posted by pyroblood*:

 

hi all

 

I tried this plugin but I see some errors.

if i request !stats, after 4 matches my stats are kills 0 hs 0 death 10 k/d 0.

 

how can i fix it?

 

setting trace i see a lot of messages like:

 

 

edit: I need to update the file BF4.def from git?

yes for me work update the bf4.def file on layer
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Balu00*:

 

Hey meine Freund XPKiller hast du schon alle Waffen eingefügt? Und könntest du bitte mal eine Waffen Auflistung machen so wie bei BF3 das der Stats Logger die auch anzeigen tut_? Wäre toll Danke :smile:

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

Originally Posted by tonnic*:

 

I don't run Adkats.

 

All is good now. My tbl_server content shows both servers. No idea why it wasn't working yesterday, but it's fine now.

 

Thank you for this great plugin!

What did you do? None of my 5 servers are showing in tbl_server...i DO run Adkats.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by tonnic*:

 

Just got this error.... i am running adkats... is it messing things up for me? Also, to note, my tbl_server is completely empty.

 

Code:

[21:19:23 83] [Statslogger]Error: Error in Startstreaming: 
[21:19:23 83] Message: Cannot add or update a child row: a foreign key constraint fails (`bf4_adkats`.`tbl_server_player`, CONSTRAINT `fk_tbl_server_player_tbl_server` FOREIGN KEY (`ServerID`) REFERENCES `tbl_server` (`ServerID`) ON DELETE CASCADE ON UPDATE NO ACTION)
[21:19:23 83] Native: -2147467259
[21:19:23 83] Source: MySql.Data
[21:19:23 83] StackTrace:    at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& 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.ExecuteNonQuery()
   at PRoConEvents.CChatGUIDStatsLogger.StartStreaming()
[21:19:23 84] [Statslogger]Error: Error in Startstreaming OuterException: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.CChatGUIDStatsLogger.DisplayMySqlErrorCollection(MySqlException myException)
   at PRoConEvents.CChatGUIDStatsLogger.StartStreaming()
[21:19:24 94] [Statslogger]Error: getUpdateServerID1: System.InvalidOperationException: Nested transactions are not supported.
   at MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   at MySql.Data.MySqlClient.MySqlConnection.Throw(Exception ex)
   at MySql.Data.MySqlClient.MySqlConnection.BeginTransaction(IsolationLevel iso)
   at MySql.Data.MySqlClient.MySqlConnection.BeginTransaction()
   at PRoConEvents.CChatGUIDStatsLogger.getUpdateServerID(CServerInfo csiServerInfo)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by pyroblood*:

 

Can anybody tell me why the chatlogger runs few minutes (i have it turn on for stat page) and then go automatic to off?

somtimes ( 2 times yesterday) the same with the plugin. automatic goeas off to ? also uncheck ?

 

And when "Log serverSpam" is off but in statpage i can see "ID_CHAT_REQUEST_AMMO" and other Servermessages from Spambot messages ?

 

BUT .. in statpage i can see all chat .. turn of turn on is out of order ?

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

Originally Posted by ColColonCleaner*:

 

Can anybody tell me why the chatlogger runs few minutes (i have it turn on for stat page) and then go automatic to off?

somtimes ( 2 times yesterday) the same with the plugin. automatic goeas off to ? also uncheck ?

 

And when "Log serverSpam" is off but in statpage i can see "ID_CHAT_REQUEST_AMMO" and other Servermessages from Spambot messages ?

Your answer is here: https://github.com/ColColonCleaner/A...-logger-plugin
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ColColonCleaner*:

 

What did you do? None of my 5 servers are showing in tbl_server...i DO run Adkats.

AdKats does not modify the tbl_server table it any fashion. NONE of stat logger's tables are modified except chat logs.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Athlon*:

 

What did you do? None of my 5 servers are showing in tbl_server...i DO run Adkats.

If I knew what changed I would have posted it. The day I installed the plugin it didn't record one of our servers, and the next day it started working perfectly and has been fine since.

 

I didn't do anything except post my question here as I was baffled. My guess is XPkiller is a wizard.

 

:biggrin:

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

Originally Posted by XpKiller*:

 

Hey meine Freund XPKiller hast du schon alle Waffen eingefügt? Und könntest du bitte mal eine Waffen Auflistung machen so wie bei BF3 das der Stats Logger die auch anzeigen tut_? Wäre toll Danke :smile:

Die Waffen gehen doch alle schon. Die Keywordlist ist nur für alternative name für die waffen.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by kcuestag*:

 

I just noticed that even when disabling AdKats and enabling ChatLogging (And Instant Logging of Chat Messages) it no longer displays the messages properly:

 

http://oaksclan.view-your-stats.com/index.php

 

Instead, it shows the player's nickname in the message box..

 

Is there a workaround for that?

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

Originally Posted by XpKiller*:

 

I just noticed that even when disabling AdKats and enabling ChatLogging (And Instant Logging of Chat Messages) it no longer displays the messages properly:

 

http://oaksclan.view-your-stats.com/index.php

 

Instead, it shows the player's nickname in the message box..

 

Is there a workaround for that?

This problem is caused by the stats page.

 

I guess it take a query like "select * from tbl_chatlog". Those Select * queries are bad in general, because the they dont return a predictable number of columns.

AdKats alter the table tbl_chatlog (adding one column). So those select * queries return one more column in result that before.

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

Originally Posted by tonnic*:

 

AdKats does not modify the tbl_server table it any fashion. NONE of stat logger's tables are modified except chat logs.

Thank you for your response :ohmy:. I figured I should try everything so I rebooted my box that had mysql and procon layers and it worked after that.... weird
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by coachsnap*:

 

i tried to delete all tables and now, when enable the plugin, at the end of round I get this error:

[19:18:30 18] [statslogger]Error: Error in Startstreaming:

[19:18:30 18] Message: Cannot add or update a child row: a foreign key constraint fails (`bf4-stats`.`tbl_server_player`, CONSTRAINT `fk_tbl_server_player_tbl_server` FOREIGN KEY (`ServerID`) REFERENCES `tbl_server` (`ServerID`) ON DELETE CASCADE ON UPDATE NO ACTION)

...

...

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

Originally Posted by droopie*:

 

i cant seem to connect. i have tried my layer and my own pcs local procon to test it but i get this...

 

Code:

[23:47:36 88] Loading plugin cache..
[23:47:37 26] Preparing plugins directory..
[23:47:37 27] Moving legacy plugins..
[23:47:37 28] Creating compiler..
[23:47:37 28] Configuring compiler..
[23:47:37 28] Running with native .Net..
[23:47:37 28] Building sandbox..
[23:47:37 29] Configuring sandbox..
[23:47:37 34] Compiling and loading plugins..
[23:47:37 36] Compiling CBasicInGameInfo.cs... Using Cache
[23:47:37 51] Loading CBasicInGameInfo... Loaded
[23:47:37 53] Compiling CChatGUIDStatsLogger.cs... Using Cache
[23:47:37 65] Loading CChatGUIDStatsLogger... Loaded
[23:47:37 69] Compiling CInGameAdmin.cs... Using Cache
[23:47:37 72] Loading CInGameAdmin... Loaded
[23:47:37 73] Compiling CSpambot.cs... Using Cache
[23:47:37 75] Loading CSpambot... Loaded
[23:47:37 83] PRoCon Chat, GUID and Stats Logger Enabled
[23:47:37 83] PRoCon Chat, GUID and Stats Logger:  Floodprotection set to 10 Request per Round for each Player
[23:48:03 17] Error in Tablebuilder: 
[23:48:03 18] Message: Unable to connect to any of the specified MySQL hosts.
[23:48:03 18] Native: -2147467259
[23:48:03 21] Source: MySql.Data
[23:48:03 21] StackTrace:    at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at PRoConEvents.CChatGUIDStatsLogger.tablebuilder()
[23:48:03 22] InnerException: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 72.55.186.57:3306
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at MySql.Data.Common.StreamCreator.CreateSocketStream(IPAddress ip, Boolean unix)
   at MySql.Data.Common.StreamCreator.GetStreamFromHost(String pipeName, String hostName, UInt32 timeout)
   at MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout)
   at MySql.Data.MySqlClient.NativeDriver.Open()
[23:48:03 23] Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.CChatGUIDStatsLogger.tablebuilder()
[23:48:27 25] Error in Tablebuilder: 
[23:48:27 26] Message: Unable to connect to any of the specified MySQL hosts.
[23:48:27 27] Native: -2147467259
[23:48:27 28] Source: MySql.Data
[23:48:27 29] StackTrace:    at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at PRoConEvents.CChatGUIDStatsLogger.tablebuilder()
[23:48:27 31] InnerException: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 72.55.186.57:3306
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at MySql.Data.Common.StreamCreator.CreateSocketStream(IPAddress ip, Boolean unix)
   at MySql.Data.Common.StreamCreator.GetStreamFromHost(String pipeName, String hostName, UInt32 timeout)
   at MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout)
   at MySql.Data.MySqlClient.NativeDriver.Open()
[23:48:27 32] Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.CChatGUIDStatsLogger.tablebuilder()
[23:48:48 34] [Statslogger]Error: getUpdateServerID1: MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 72.55.186.57:3306
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at MySql.Data.Common.StreamCreator.CreateSocketStream(IPAddress ip, Boolean unix)
   at MySql.Data.Common.StreamCreator.GetStreamFromHost(String pipeName, String hostName, UInt32 timeout)
   at MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   --- End of inner exception stack trace ---
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at PRoConEvents.CChatGUIDStatsLogger.getUpdateServerID(CServerInfo csiServerInfo)
[23:48:51 34] Error in Tablebuilder: 
[23:48:51 35] Message: Unable to connect to any of the specified MySQL hosts.
[23:48:51 36] Native: -2147467259
[23:48:51 37] Source: MySql.Data
[23:48:51 38] StackTrace:    at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at PRoConEvents.CChatGUIDStatsLogger.tablebuilder()
[23:48:51 39] InnerException: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 72.55.186.57:3306
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at MySql.Data.Common.StreamCreator.CreateSocketStream(IPAddress ip, Boolean unix)
   at MySql.Data.Common.StreamCreator.GetStreamFromHost(String pipeName, String hostName, UInt32 timeout)
   at MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout)
   at MySql.Data.MySqlClient.NativeDriver.Open()
[23:48:51 41] Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.CChatGUIDStatsLogger.tablebuilder()
[23:49:12 43] [Statslogger]Error: getUpdateServerID1: MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 72.55.186.57:3306
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at MySql.Data.Common.StreamCreator.CreateSocketStream(IPAddress ip, Boolean unix)
   at MySql.Data.Common.StreamCreator.GetStreamFromHost(String pipeName, String hostName, UInt32 timeout)
   at MySql.Data.Common.StreamCreator.GetStream(UInt32 timeout)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   --- End of inner exception stack trace ---
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at PRoConEvents.CChatGUIDStatsLogger.getUpdateServerID(CServerInfo csiServerInfo)
i have a layer so i added the hostname to it with the port and have sandbox disabled. any help? btw im using godaddy...
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by droopie*:

 

i changed to a vps and now only get this since i think godaddy is sql 5.0

 

Code:

[23:59:39 82] Error: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
   at PRoConEvents.CChatGUIDStatsLogger.tablebuilder()
[23:59:39 82] Error: System.InvalidOperationException: Transaction has already been rolled back or is not pending
   at MySql.Data.MySqlClient.MySqlTransaction.Rollback()
   at PRoConEvents.CChatGUIDStatsLogger.tablebuilder()
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by XpKiller*:

 

Is there a way to easily reset the stats for one server?

The following statement will delete all stats entries of a single server.

 

DO A BACKUP BEFORE EXECUTE THIS STATEMENT:

Code:

START TRANSACTION;

set @ServerID = 1;

DELETE tps FROM tbl_playerstats tps
INNER JOIN tbl_server_player tsp ON tps.StatsID = tsp.StatsID
WHERE tsp.ServerID = @ServerID;

DELETE tws FROM tbl_weapons_stats tws
INNER JOIN tbl_server_player tsp ON tws.StatsID = tsp.StatsID
WHERE tsp.ServerID = @ServerID;

DELETE ts FROM tbl_sessions ts
INNER JOIN tbl_server_player tsp  ON ts.StatsID = tsp.StatsID
WHERE tsp.ServerID = @ServerID;

DELETE tdt FROM tbl_dogtags tdt
INNER JOIN tbl_server_player tsp  ON tdt.KillerID = tsp.StatsID
WHERE tsp.ServerID = @ServerID;

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.