Jump to content

Advanced In-Game Admin and Ban Enforcer - AdKats


Message added by Prophet731,

If you've been banned from a server then you will need to appeal the ban with the owners/community of that server. We do not control any bans done on servers that utilize AdKats as all bans are local to that server.

Recommended Posts

Originally Posted by TMiland*:

 

I get this error:

 

 

Code:

[17:01:17 03] [AdKats] EXCEPTION: [uploadChatLog][Unexpected error uploading chat log.]: MySql.Data.MySqlClient.MySqlException: Unknown column 'logPlayerID' in 'field list'
   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.AdKats.uploadChatLog(String log_source, String log_subset, String log_message)
I have runned the sql from github... What gives? :smile:
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I get this error:

 

 

Code:

[17:01:17 03] [AdKats] EXCEPTION: [uploadChatLog][Unexpected error uploading chat log.]: MySql.Data.MySqlClient.MySqlException: Unknown column 'logPlayerID' in 'field list'
   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.AdKats.uploadChatLog(String log_source, String log_subset, String log_message)
I have runned the sql from github... What gives? :smile:
Are you still getting this on the latest version? that column should exist.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

3.7.0.0(15-NOV-2013)

 

Changes

 

  • Compatibility with BF4 and BF3 in the same version.
  • Certain commands disabled on "Official" BF4 servers.
  • Both plugin description fetching and player list processing are now being processed async to avoid procon panic.
  • The universal version of XpKiller's stat logger is now supported. Both versions of stat logger are supported.
  • Source ID has been added to the records table. Records will remain connected to a player even if their name changes.
  • Player ID is now added to all stored chatlogs. XpKillers chat log table is automatically modified to include player ID; Thus chat logging functions are taken over by AdKats and force disabled on stat logger.
  • AdKats will enter backup mode if your database becomes unavailable temporarily, your connections max out, or it becomes overloaded. Stat logger will automatically be disabled if a disconnect is detected, and re-enabled once the connection issue has been resolved. This is to prevent procon from entering panic mode and ejecting either plugin from the runtime, requiring a layer restart to get them back.
  • Experimental tools updated to work on BF3 and BF4
  • Round timer added. Rounds can now be automatically ended after X minutes. Countdown to round end is given, and the current winning team will win.
  • Internal Hacker-Checker released publicly for BF3. This code has been in AdKats for months now, but was set to only activate on =ADK= servers. Uses BF3Stats for stat information. Do not use unless you read the documentation on github. BF4 version coming soon.
  • Round whitelisting of players is no-longer logged in the database
Link to comment

Originally Posted by mindleak*:

 

I keep getting this error:

 

[14:41:36 23] [AdKats] Initializing AdKats 3.7.0.0 components.

[14:41:36 23] [AdKats] SUCCESS: Server IP is 74.91.120.39:47200!

[14:41:36 25] [AdKats] DBCOMM: Starting Database Comm Thread

[14:41:36 71] [AdKats] ERROR: Database Server info could not be fetched! Make sure XpKiller's Stat Logger is running on this server!

[14:41:36 79] [AdKats] DBCOMM: Ending Database Comm Thread

[14:41:36 90] [AdKats] AdKats 3.7.0.0 Disabled! =(

 

But PRoCon Chat, GUID, Stats and Map Logger 1.0.0.0 is indeed running.

 

They're (logger and AdKats) also using the same database and user info.

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

Originally Posted by tonnic*:

 

I got it running on one server from the same layer.. I now get the following

 

Code:

[13:59:24 05] [AdKats] Attempting database connection. Attempt 1 of 5.
[13:59:24 05] [AdKats] SUCCESS: Database connection open.
[13:59:24 19] [AdKats] WARNING: Updating your records table to include source ID. This may take some time if you have many records! Be patient!
[13:59:24 19] [AdKats] ERROR: Unable to add source_id column to records table.
[13:59:24 20] [AdKats] ERROR: Database structure errors detected, not set up for AdKats use.
I ran the same sql file on both databases.... weird.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I keep getting this error:

 

[14:41:36 23] [AdKats] Initializing AdKats 3.7.0.0 components.

[14:41:36 23] [AdKats] SUCCESS: Server IP is 74.91.120.39:47200!

[14:41:36 25] [AdKats] DBCOMM: Starting Database Comm Thread

[14:41:36 71] [AdKats] ERROR: Database Server info could not be fetched! Make sure XpKiller's Stat Logger is running on this server!

[14:41:36 79] [AdKats] DBCOMM: Ending Database Comm Thread

[14:41:36 90] [AdKats] AdKats 3.7.0.0 Disabled! =(

 

But PRoCon Chat, GUID, Stats and Map Logger 1.0.0.0 is indeed running.

 

They're (logger and AdKats) also using the same database and user info.

Sometimes it can take a couple minutes for stat logger to add the server info to the database, wait a little bit and try again. If you want to confirm it, look in the tbl_server table for your server with IP 74.91.120.39:47200. Once stat logger adds your server with that IP address then AdKats can initialize.
Link to comment

Originally Posted by mindleak*:

 

Sometimes it can take a couple minutes for stat logger to add the server info to the database, wait a little bit and try again. If you want to confirm it, look in the tbl_server table for your server with IP 74.91.120.39:47200. Once stat logger adds your server with that IP address then AdKats can initialize.

Hmm... that table is empty. It's been running for a good 30 minutes.

 

But I do keep getting this from the stats logger:

 

[15:04:14 48] Error: Error in Startstreaming:

[15:04:14 48] Message: Cannot add or update a child row: a foreign key constraint fails (`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)

[15:04:14 51] Native: -2147467259

[15:04:14 51] Source: MySql.Data

[15:04:14 51] 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.StartStreaming()

[15:04:14 57] Error: Error in Startstreaming OuterException: System.NullReferenceException: Object reference not set to an instance of an object.

at PRoConEvents.CChatGUIDStatsLogger.DisplayMySqlErro rCollection(MySqlException myException)

at PRoConEvents.CChatGUIDStatsLogger.StartStreaming()

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

Originally Posted by ColColonCleaner*:

 

I got it running on one server from the same layer.. I now get the following

 

Code:

[13:59:24 05] [AdKats] Attempting database connection. Attempt 1 of 5.
[13:59:24 05] [AdKats] SUCCESS: Database connection open.
[13:59:24 19] [AdKats] WARNING: Updating your records table to include source ID. This may take some time if you have many records! Be patient!
[13:59:24 19] [AdKats] ERROR: Unable to add source_id column to records table.
[13:59:24 20] [AdKats] ERROR: Database structure errors detected, not set up for AdKats use.
I ran the same sql file on both databases.... weird.
Welp, forgot to test one case and it bites me. Updated to 3.7.0.1. Should fix your issue.

 

https://raw.github.com/ColColonClean...ster/AdKats.cs

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Hmm... that table is empty. It's been running for a good 30 minutes.

 

But I do keep getting this from the stats logger:

That is an error from stat logger, it is unable to add anything because the server ID doesn't exist. Something must have gone wrong when you installed stat logger, if you don't have any data in those tables you want to keep i would suggest dropping them and installing stat logger again.
Link to comment

Originally Posted by mindleak*:

 

That is an error from stat logger, it is unable to add anything because the server ID doesn't exist. Something must have gone wrong when you installed stat logger, if you don't have any data in those tables you want to keep i would suggest dropping them and installing stat logger again.

Well I was about to post how I did that several times to no avail... but I reloaded the plugins and now it's working just fine, lol.

 

Thanks for the help. :smile:

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