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

  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

so if i have only bf4 server the best is an new DB ?

Yes, for now do not run bf4 and bf3 on the same database/schema, just create a new schema for your bf4 servers. This is mainly because 1, records would be mixed between games, confusing matters. 2, ban enforcer would attempt to enforce bans across games which won't manager nicely. And 3, i don't know what xpkiller is going to modify in his plugin/database.
Link to comment

Originally Posted by Hutchew*:

 

Yes, for now do not run bf4 and bf3 on the same database/schema, just create a new schema for your bf4 servers. This is mainly because 1, records would be mixed between games, confusing matters. 2, ban enforcer would attempt to enforce bans across games which won't manager nicely. And 3, i don't know what xpkiller is going to modify in his plugin/database.

Too late, but not seeing any issues as of yet.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mavy*:

 

I had the following error this afternoon and could not connect to my layer anymore. A restart of the layer fixed it.

 

Code:

[12:41:50] [AdKats] EXCEPTION: [fetchPlayer][Error while fetching player.]: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EA_BC8BF0ACE364D0BC9FCE25EE8F33DFF2',
                                    ''
 ' at line 9
   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.fetchPlayer(Int64 player_id, String player_name, String player_guid, String player_ip)
[12:41:50] [AdKats] EXCEPTION: [playerListingThreadLoop][Error occured in player listing thread.]: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.AdKats.playerListingThreadLoop()
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I had the following error this afternoon and could not connect to my layer anymore. A restart of the layer fixed it.

 

Code:

[12:41:50] [AdKats] EXCEPTION: [fetchPlayer][Error while fetching player.]: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EA_BC8BF0ACE364D0BC9FCE25EE8F33DFF2',
                                    ''
 ' at line 9
   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.fetchPlayer(Int64 player_id, String player_name, String player_guid, String player_ip)
[12:41:50] [AdKats] EXCEPTION: [playerListingThreadLoop][Error occured in player listing thread.]: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.AdKats.playerListingThreadLoop()
Strange, your player had an empty string for IP address instead of null, i'll add a catch for it. Thanks.
Link to comment

Originally Posted by Mavy*:

 

And another error, not sure if its a bug with the plugin or just a random issue with the server but posting just in case:

 

Code:

[13:53:19 05] Error: Error in Startstreaming: 
[13:53:19 05] Message: BIGINT UNSIGNED value is out of range in '(`procon`.`tbl_playerstats`.`Deaths` + -(1))'
[13:53:19 05] Native: -2147467259
[13:53:19 05] Source: MySql.Data
[13:53:19 05] 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.CChatGUIDStatsLoggerBF3.StartStreaming()
[13:53:20 47] 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.CChatGUIDStatsLoggerBF3.getUpdateServerID(CServerInfo csiServerInfo)
[13:53:20 66] Error: Error in Startstreaming OuterException: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.CChatGUIDStatsLoggerBF3.DisplayMySqlErrorCollection(MySqlException myException)
   at PRoConEvents.CChatGUIDStatsLoggerBF3.StartStreaming()
PS: I am using xpkillers plugin that came with your latest stable release. So i am unsure where to post this.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

And another error, not sure if its a bug with the plugin or just a random issue with the server but posting just in case:

 

Code:

[13:53:19 05] Error: Error in Startstreaming: 
[13:53:19 05] Message: BIGINT UNSIGNED value is out of range in '(`procon`.`tbl_playerstats`.`Deaths` + -(1))'
[13:53:19 05] Native: -2147467259
[13:53:19 05] Source: MySql.Data
[13:53:19 05] 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.CChatGUIDStatsLoggerBF3.StartStreaming()
[13:53:20 47] 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.CChatGUIDStatsLoggerBF3.getUpdateServerID(CServerInfo csiServerInfo)
[13:53:20 66] Error: Error in Startstreaming OuterException: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.CChatGUIDStatsLoggerBF3.DisplayMySqlErrorCollection(MySqlException myException)
   at PRoConEvents.CChatGUIDStatsLoggerBF3.StartStreaming()
PS: I am using xpkillers plugin that came with your latest stable release. So i am unsure where to post this.
no no man, you can't use any version of his plugin on bf4 servers yet. You can use it to create the database tables but that's it, that plugin has NOT been moved to bf4 yet. Just disable the stat logger plugin on your bf4 layers and run 3.5.1.5 of AdKats. We need to wait on xpkiller for his bf4 version, until then, this is my workaround.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Ok disabled it and upgraded tot 3.5.1.5. The thing is that it was running fine since Tuesday using that version.

It may have seemed to be running fine, mainly because there are a lot of similarities between the two games, but some specifics are different, specifics I don't know yet since it's not my code. One thing i do know though, is the weapon codes are completely different between games. There are only a few weapon codes that are the same, which i believe is the cause of your error.

 

Writing up a post for AdKats use with BF4 until new stat logger release, hang tight everyone...

Link to comment

Originally Posted by Mavy*:

 

It may have seemed to be running fine, mainly because there are a lot of similarities between the two games, but some specifics are different, specifics I don't know yet since it's not my code. One thing i do know though, is the weapon codes are completely different between games. There are only a few weapon codes that are the same, which i believe is the cause of your error.

 

Writing up a post for AdKats use with BF4 until new stat logger release, hang tight everyone...

Figured it must have been something like that. Forgot that i had turned on stats this morning as a test. Past few days i had it running chat log only. One small request for the workaround tho. Could you filter the ID_CHAT_* messages? They are a bit of a waste of DB space :P
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Figured it must have been something like that. Forgot that i had turned on stats this morning as a test. Past few days i had it running chat log only. One small request for the workaround tho. Could you filter the ID_CHAT_* messages? They are a bit of a waste of DB space :P

Yes, was thinking of doing this as well, they really don't hold particular meaning for us. I'll filter them out. 3.5.1.6 will have this.
Link to comment
  • Administrators

Originally Posted by Prophet731*:

 

Yes, was thinking of doing this as well, they really don't hold particular meaning for us. I'll filter them out. 3.5.1.6 will have this.

Don't worry about filtering it for now. I'm actually thinking of somehow we can use it.

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

Link to comment
  • Administrators

Originally Posted by Prophet731*:

 

Of course it can be used, I have ideas myself, but i'm filtering it now for database size, at least for the public.

Ok well don't filter it for our use at least. I'm already working it into the live scoreboard chat (see below).

 

Also, have you figured out how to determine who is a commander and spectator from the player list?

 

ab430a4d60c62ce957edca597dfad8bd.png

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Ok well don't filter it for our use at least. I'm already working it into the live scoreboard chat (see below).

 

Also, have you figured out how to determine who is a commander and spectator from the player list?

 

ab430a4d60c62ce957edca597dfad8bd.png

Right now it appears the only way to confirm commander is someone who gets points without spawning in. Spectators are still up in the air.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

AdKats Usage with BF3:

 

Use the latest stable download released on sourceforge: https://sourceforge.net/projects/adkats/

Use stat logger version 1.1.0.2 as released with that version of AdKats.

 

AdKats Usage with BF4:

 

Firstly I would suggest using a separate schema/database for your BF4 layers, especially if you are planning to use the AdKats WebAdmin. The AdKats plugin is able to operate on the same database as your BF3 instances, but when stat logger gets updated for BF4, and WebAdmin gets updated for BF4 you will not be able to use those on the same database.

 

This short guide assumes you are creating a new schema/database for your BF4 instances. This guide is only valid until xpkiller's stat logger is released for BF4. Everything should return to normal operation after that version is released, and a new guide will be pushed out.

 

STEPS:

 

  • Create your new schema/database and get credentials for it with ability to add/remove tables.
  • Install the original or modded stat logger on each of your layers
  • Enter your credentials and start it on each layer (make no other setting changes), this will insert the stat logger tables in the database, and also insert your server IDs in the server table.
  • At this time, all of your server IDs should be in the server tables. Disable stat logger on every layer and do not enable it again until an official update is released by XpKiller.
  • Run this query on your database (just copy/paste in and run it):Code:
    DROP TABLE `tbl_chatlog`; 
    CREATE TABLE `tbl_chatlog` (
    `ID` int(11) NOT NULL AUTO_INCREMENT,
    `logDate` datetime NOT NULL,
    `ServerID` smallint(5) unsigned NOT NULL,
    `logSubset` text COLLATE utf8_unicode_ci,
    `logPlayerID` int(10) unsigned DEFAULT NULL,
    `logSoldierName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
    `logMessage` text COLLATE utf8_unicode_ci,
    PRIMARY KEY (`ID`),
    KEY `ServerID` (`ServerID`),
    KEY `PlayerID` (`logPlayerID`),
    CONSTRAINT `tbl_chatlog_ibfk_1` FOREIGN KEY (`ServerID`) REFERENCES `tbl_server` (`ServerID`) ON DELETE CASCADE ON UPDATE CASCADE,
    CONSTRAINT `tbl_chatlog_ibfk_2` FOREIGN KEY (`logPlayerID`) REFERENCES `tbl_playerdata` (`PlayerID`) ON DELETE CASCADE ON UPDATE CASCADE
    ) ENGINE=InnoDB AUTO_INCREMENT=565 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  • Run the AdKats setup script on your database (Just copy/paste in and run it): https://raw.github.com/ColColonClean...ter/adkats.sql
  • Install the beta version of AdKats (3.5.1.5+) from the test branch: https://raw.github.com/ColColonClean...test/AdKats.cs
  • Enter the same DB credentials into AdKats and start it. All should function normally.

This will be much more automated once the official version of stat logger comes out. But for now, this is what we have to work with. AdKats will log chat (with player IDs now) and player data in the stat logger tables, live.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Colon have them run this SQL instead. Update your post and once you do i'll edit my post here.

Nope, this is all temporary. I don't insert server ID in the server table, stat logger needs to be run on each server. I will write a script to import any data they acquire into xpkiller's real version once it's released, this is all a temporary patch for things to work until he posts.
Link to comment
  • Administrators

Originally Posted by Prophet731*:

 

I get an error when I run that script on a fresh db in the first post, ideas?

What's the error?

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

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.




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