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

 

new to the forums here

 

we are trying to get adkats working, but we are running into some trouble

 

we got the stat logger working with the database

we have followed the directions to the T

when we put the adkats.cs into the plugins/bf4 folder it will not show up, even after restarting

 

any ideas on why this is not showing up?

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

Originally Posted by Target42*:

 

I am having trouble adding a user and it only gives me this error with certain usernames.

 

Line 0: [GetDisplayPluginVariables][Error while fetching display vars.]: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.ThrowHelper.ThrowKeyNotFoundException()

at System.Collections.Generic.Dictionary`2.get_Item(T Key key)

at PRoConEvents.AdKats.c__DisplayClasse.b__6(AdKatsPlayer aPlayer)

at System.Linq.Enumerable.WhereSelectEnumerableIterat or`2.MoveNext()

at System.Collections.Generic.List`1.InsertRange(Int3 2 index, IEnumerable`1 collection)

at PRoConEvents.AdKats.GetDisplayPluginVariables()

[00:48:07 53] [AdKats] EXCEPTION: Line 0: [GetDisplayPluginVariables][Error while fetching display vars.]: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.ThrowHelper.ThrowKeyNotFoundException()

at System.Collections.Generic.Dictionary`2.get_Item(T Key key)

at PRoConEvents.AdKats.c__DisplayClasse.b__6(AdKatsPlayer aPlayer)

at System.Linq.Enumerable.WhereSelectEnumerableIterat or`2.MoveNext()

at System.Collections.Generic.List`1.InsertRange(Int3 2 index, IEnumerable`1 collection)

at PRoConEvents.AdKats.GetDisplayPluginVariables()

 

If I manually delete the user the plugin will work. Again, it only does it with certain usernames.

 

Any suggestions?

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

Originally Posted by HARDCOREBF*:

 

I already replied man. I asked what you did before this happened. Have you tried rebooting your layer?

Hi again , iam very sorry ColColonCleaner for bothering you , but i cant fix this , i really need your help , i trying restarting layer , desabled/enabled adkatz and Logger , its still spamming same msg ever 0.5 seconds . We banned/unbanned players via admin dashboard by ADK , can you guide me plz where to look or how to fix this .
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HARDCOREBF*:

 

Hello, ColColonCleaner , is there a way to flash old logs from DB , we have 4 servers and DB is getting huge size , particulary this table

"adkats_records_main " , is there a way to delete old logs via plugins etttings ? or i need manually delete atleast 50% of it to more room for new logs. or how to manage DB size_. plz advise

http://gyazo.com/01fe8704056058184c624c9d01b15db4

[ATTACH=CONFIG]http://i.gyazo.com/01fe8704056058184c624c9d01b15db4.png[/ATTACH]

 

Is this record needed ? "No previous IP on record"

 

40e4e28e37bc6fe777b5e66b943a9919.png

 

Attached Files:

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

Originally Posted by Prophet731*:

 

Hello, ColColonCleaner , is there a way to flash old logs from DB , we have 4 servers and DB is getting huge size , particulary this table

"adkats_records_main " , is there a way to delete old logs via plugins etttings ? or i need manually delete atleast 50% of it to more room for new logs. or how to manage DB size_. plz advise

Attachment 3377

Can't view the screenshot. How big is the database? Ours is 6Gb.

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

 

We have our own dedicated box with plenty of storage. From the looks of the table it might be just stuff getting spammed creating a lot of entry's.

 

Our table isn't even close to that big. Only tables that are even close is the chatlog and player stats.

 

Can you export only your adkats_records_main table and gzip compress it and PM a link to where I can download it? Ill look it over and see what junk can be removed. Unless you still just want to remove old data.

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

 

I am having trouble adding a user and it only gives me this error with certain usernames.

 

Line 0: [GetDisplayPluginVariables][Error while fetching display vars.]: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.ThrowHelper.ThrowKeyNotFoundException()

at System.Collections.Generic.Dictionary`2.get_Item(T Key key)

at PRoConEvents.AdKats.c__DisplayClasse.b__6(AdKatsPlayer aPlayer)

at System.Linq.Enumerable.WhereSelectEnumerableIterat or`2.MoveNext()

at System.Collections.Generic.List`1.InsertRange(Int3 2 index, IEnumerable`1 collection)

at PRoConEvents.AdKats.GetDisplayPluginVariables()

[00:48:07 53] [AdKats] EXCEPTION: Line 0: [GetDisplayPluginVariables][Error while fetching display vars.]: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.ThrowHelper.ThrowKeyNotFoundException()

at System.Collections.Generic.Dictionary`2.get_Item(T Key key)

at PRoConEvents.AdKats.c__DisplayClasse.b__6(AdKatsPlayer aPlayer)

at System.Linq.Enumerable.WhereSelectEnumerableIterat or`2.MoveNext()

at System.Collections.Generic.List`1.InsertRange(Int3 2 index, IEnumerable`1 collection)

at PRoConEvents.AdKats.GetDisplayPluginVariables()

 

If I manually delete the user the plugin will work. Again, it only does it with certain usernames.

 

Any suggestions?

On mobile so can't link right now, but someone recently had the same issue. You have an invalid soldier in your db. Look back a couple pages in here, I posted a version of AdKats that will show you the invalid soldier.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Hi again , iam very sorry ColColonCleaner for bothering you , but i cant fix this , i really need your help , i trying restarting layer , desabled/enabled adkatz and Logger , its still spamming same msg ever 0.5 seconds . We banned/unbanned players via admin dashboard by ADK , can you guide me plz where to look or how to fix this .

Are there any records in your records table that has adkats_read = N ?
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

new to the forums here

 

we are trying to get adkats working, but we are running into some trouble

 

we got the stat logger working with the database

we have followed the directions to the T

when we put the adkats.cs into the plugins/bf4 folder it will not show up, even after restarting

 

any ideas on why this is not showing up?

I would suggest checking your download, it might be invalid, this has happened before. Try downloading again, and if that still doesn't fix it, go to the AdKats github and download the .cs from the TEST branch. Once again, on mobile so can't link directly.
Link to comment

Originally Posted by HARDCOREBF*:

 

Are there any records in your records table that has adkats_read = N ?

1. none of them with = N

2. How can i clean tables to make it lower size , plz help

 

Thnk you in advace

 

EDIT : There was 2 bans that shows DISABLED in adkats_bans , i deleted them , and restarted plugin , and layer , and looks like its not spamming anymore , iam not sure what caused it stop , but works for now ...

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

Originally Posted by ColColonCleaner*:

 

1. none of them with = N

2. How can i clean tables to make it lower size , plz help

 

Thnk you in advace

 

EDIT : There was 2 bans that shows DISABLED in adkats_bans , i deleted them , and restarted plugin , and layer , and looks like its not spamming anymore , iam not sure what caused it stop , but works for now ...

Strange. Disabled bans shouldn't cause that. Might be an edge case of some sort.

 

You can delete any records that are not for bans. Changeip and changename can be the first to go if you want to reduce size.

Link to comment

Originally Posted by HARDCOREBF*:

 

can you please tell me what raws number not needed , as like you sad Changeip and changename"

i think there 50 on them . i guess i need this numebr " command_type or command_action"

as you can see om screenshot its 1.2 gb in 1 table , what can cause that ?

 

4b8b852f2e803fb2d2d3e2128acabb7e.png

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

Originally Posted by ColColonCleaner*:

 

can you please tell me what raws number not needed , as like you sad Changeip and changename"

i think there 50 on them . i guess i need this numebr " command_type or command_action"

as you can see om screenshot its 1.2 gb in 1 table , what can cause that ?

 

4b8b852f2e803fb2d2d3e2128acabb7e.png

WOW, how the hell do you have 5 million records in there? Ok, delete all records with command_actions 36, 37, 48, 49.
Link to comment

Originally Posted by ScottSmudger*:

 

I have tried to import the adkats.sql file, also tried to copy and paste, but I kept getting the following error:

 

SQL query: Documentation

 

DELIMITER $$ DROP PROCEDURE IF EXISTS addLogPlayerID $$ CREATE PROCEDURE addLogPlayerID( ) BEGIN -- add logPlayerID column safely

IF NOT EXISTS (

(

SELECT *

FROM information_schema.COLUMNS

WHERE TABLE_SCHEMA = DATABASE( )

AND COLUMN_NAME = 'logPlayerID'

AND TABLE_NAME = 'tbl_chatlog'

)

)

THEN

ALTER TABLE `tbl_chatlog` ADD COLUMN `logPlayerID` INT( 10 ) UNSIGNED DEFAULT NULL ;

 

MySQL said: Documentation

#1064 - 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 'DELIMITER $$

 

DROP PROCEDURE IF EXISTS addLogPlayerID $$

CREATE PROCEDURE addLog' at line 1

Other than this error, been a flawless install so far.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I have tried to import the adkats.sql file, also tried to copy and paste, but I kept getting the following error:

 

 

 

Other than this error, been a flawless install so far.

What program are you trying to use for running the script? I get the same error when trying to run things like this inside AdKats itself, it can't use delimiter changes. Try using MySQL Workbench, or PHPMyAdmin would be my suggestions.
Link to comment

Originally Posted by ScottSmudger*:

 

What program are you trying to use for running the script? I get the same error when trying to run things like this inside AdKats itself, it can't use delimiter changes. Try using MySQL Workbench, or PHPMyAdmin would be my suggestions.

I am trying to run the script through PHPMyAdmin. By injecting it and copy/paste.

 

I will give WorkBench a go

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

Originally Posted by ScottSmudger*:

 

What program are you trying to use for running the script? I get the same error when trying to run things like this inside AdKats itself, it can't use delimiter changes. Try using MySQL Workbench, or PHPMyAdmin would be my suggestions.

Workbench had an error too :

 

22:54:23 Restoring C:\Users\Scott\Desktop\adkats.sql

Running: mysql.exe --defaults-file="c:\users\scott\appdata\local\temp\tmp7jn6ga. cnf" --host=localhost --user=root --port=3306 --default-character-set=utf8 --comments --database=bf4

ERROR 1146 (42S02) at line 42: Table 'bf4.tbl_chatlog' doesn't exist

 

Operation failed with exitcode 1

22:54:24 Import of C:\Users\Scott\Desktop\adkats.sql has finished with 1 errors

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

Originally Posted by ColColonCleaner*:

 

Yup, that's installed and working

 

Assuming it giving out 0 errors means its working?

Hmm. If that is working alright then that means you attempted to run the adkats.sql on the wrong database.

 

Table "tbl_chatlog" doesn't exist. It can't find that table to modify. Can you confirm that table exists?

Link to comment

Originally Posted by ScottSmudger*:

 

Hmm. If that is working alright then that means you attempted to run the adkats.sql on the wrong database.

 

Table "tbl_chatlog" doesn't exist. It can't find that table to modify. Can you confirm that table exists?

http://puu.sh/8XxIJ.png

 

The database is called "bf4", the I have tried renaming that table, but it still didn't work

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

Originally Posted by ScottSmudger*:

 

Oh, you added a table suffix option in the stat logger plugin. That needs to be blank. Almost there man!

Maybe mention that somewhere? :smile:

 

Same error :

 

SQL query: Documentation

 

DELIMITER $$ DROP PROCEDURE IF EXISTS addLogPlayerID $$ CREATE PROCEDURE addLogPlayerID( ) BEGIN -- add logPlayerID column safely

IF NOT EXISTS (

(

SELECT *

FROM information_schema.COLUMNS

WHERE TABLE_SCHEMA = DATABASE( )

AND COLUMN_NAME = 'logPlayerID'

AND TABLE_NAME = 'tbl_chatlog'

)

)

THEN

ALTER TABLE `tbl_chatlog` ADD COLUMN `logPlayerID` INT( 10 ) UNSIGNED DEFAULT NULL ;

 

MySQL said: Documentation

#1064 - 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 'DELIMITER $$

 

DROP PROCEDURE IF EXISTS addLogPlayerID $$

CREATE PROCEDURE add' at line 1

Does there have to be any data in the tables before importing ?
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Maybe mention that somewhere? :smile:

 

Same error :

 

 

 

Does there have to be any data in the tables before importing ?

Almost nobody does that so I never even thought about adding it to the instructions, lol. I'll add that.

 

Ok, since this still isn't working, pm me edit credentials for that schema and I'll set everything up. You won't need to use the delimiter after initial set up, so you'll be golden.

Link to comment

Originally Posted by virusdead*:

 

hello I'm getting errors with Adkats

a thank you help

 

[20:09:40 06] [AdKats] SUCCESS: Populated reputation dictionaries

[20:09:40 06] [AdKats] SUCCESS: Server IP is 94.250.194.179:47200!

[20:09:40 56] [AdKats] ERROR: Database Server info could not be fetched! Make sure XpKiller's Stat Logger is running on this server!

[20:09:40 56] [AdKats] WARNING: Shutting down AdKats.

[20:09:41 96] [AdKats] AdKats 4.2.1.0 Disabled!

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




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