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

 

It doesn't work at all, or are there only 15 in the list? Did you enable automatic spectator slot for admins?

It doesnt work at all. There are 8 Users. I have both Feed Server Spectator List and Automatic Spectator Slot For User Cache set to True. Actually cant even set the latter to False.

 

Today was the first time for me to set these. I originally had the player names set in the spectator list but when I turned on the above it cleared out all names.

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

Originally Posted by Prophet731*:

 

What steps did you make to set it up? I tried that guide in here somewhere, but most of the plugins didn't work when i tried a while back.

Followed those same steps but im on Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1). The plugins compile fine.

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

Originally Posted by Chelrid*:

 

Run this, and PM me the result:

 

Code:

SELECT TABLE_NAME as table_name
FROM
INFORMATION_SCHEMA.TABLES
WHERE
TABLE_SCHEMA = theirschemaname
AND 
ENGINE <> 'InnoDB';
Result: #1054 - Unknown column 'theirschemaname' in 'where clause'
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

It doesnt work at all. There are 8 Users. I have both Feed Server Spectator List and Automatic Spectator Slot For User Cache set to True. Actually cant even set the latter to False.

 

Today was the first time for me to set these. I originally had the player names set in the spectator list but when I turned on the above it cleared out all names.

Strange, i'll look into it. I remember back when it was first implemented it worked, but the BF4 servers have a 15 player spectator whitelist limit for some reason, so it was never used. Maybe something changed from then till now.
Link to comment

Originally Posted by MadSochi*:

 

Query:

ALTER TABLE `adkats_rolecommands`

ADD CONSTRAINT `adkats_rolecommands_fk_role` FOREIGN KEY (`role_id`) REFERENCES `adkats_roles` (`role_id`) ON DELETE CASCADE ON UPDATE CASCADE,

ADD CONSTRAINT `adkats_rolecommands_fk_command` FOREIGN KEY (`command_id`) REFERENCES `adkats_commands` (`command_id`) ON DELETE CASCADE ON UPDATE CASCADE

 

Error occured at:2014-11-01 15:31:15

Line no.:521

Error Code: 1452 - Cannot add or update a child row: a foreign key constraint fails (`adkats`., CONSTRAINT `adkats_rolecommands_fk_command` FOREIGN KEY (`command_id`) REFERENCES `adkats_commands` (`command_id`) ON DELETE CASCADE)

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

Originally Posted by Chelrid*:

 

Run this, and PM me the result:

 

Code:

SELECT TABLE_NAME as table_name
FROM
INFORMATION_SCHEMA.TABLES
WHERE
TABLE_SCHEMA = theirschemaname
AND 
ENGINE <> 'InnoDB';
Code:
MySQL lieferte ein leeres Resultat zurück (d.h. null Zeilen). ( die Abfrage dauerte 0.0008 sek. )
SELECT TABLE_NAME AS table_name
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 's577441'
AND
ENGINE <> 'InnoDB';

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

Originally Posted by TMiland*:

 

Spewing out these errors now: Code:

[14:52:44 74] [AdKats] EXCEPTION: Line Unknown: [DamageHackCheck][Error running DPS hack check]: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.AdKats.DamageHackCheck(AdKatsPlayer aPlayer, Boolean debugMode)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by SmackDown*:

 

Those commands feed the adkats_specialplayers table.

When I go into my database and look in the adkats_specialplayers table, this is what I see: "MySQL returned an empty result set (i.e. zero rows). (Query took 0.0002 sec)"

 

I manually entered a player into the admin assistant file by entering the code aawhitelist and players name. It accepted the command but I cannot see his name in the special player table. Also, He filed a @player report and the report does not have AA next to his name. Also, if I enter his name manually, is he always an admin assistant or does it end after the match ends? (Actually, I entered the players name through Procon. When I reentered his name, it says that the matching player is already in the admin Assistant whitelist. So I assume that he is still an admin assistant regardless if the round ends or not, is that correct?

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

Originally Posted by ColColonCleaner*:

 

Spewing out these errors now: Code:

[14:52:44 74] [AdKats] EXCEPTION: Line Unknown: [DamageHackCheck][Error running DPS hack check]: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.AdKats.DamageHackCheck(AdKatsPlayer aPlayer, Boolean debugMode)
Please enable plugin debugging and reboot your layer.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

When I go into my database and look in the adkats_specialplayers table, this is what I see: "MySQL returned an empty result set (i.e. zero rows). (Query took 0.0002 sec)"

 

I manually entered a player into the admin assistant file by entering the code aawhitelist and players name. It accepted the command but I cannot see his name in the special player table. Also, He filed a @player report and the report does not have AA next to his name. Also, if I enter his name manually, is he always an admin assistant or does it end after the match ends? (Actually, I entered the players name through Procon. When I reentered his name, it says that the matching player is already in the admin Assistant whitelist. So I assume that he is still an admin assistant regardless if the round ends or not, is that correct?

Ok, i'll see if i can test this later today.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Query:

ALTER TABLE `adkats_rolecommands`

ADD CONSTRAINT `adkats_rolecommands_fk_role` FOREIGN KEY (`role_id`) REFERENCES `adkats_roles` (`role_id`) ON DELETE CASCADE ON UPDATE CASCADE,

ADD CONSTRAINT `adkats_rolecommands_fk_command` FOREIGN KEY (`command_id`) REFERENCES `adkats_commands` (`command_id`) ON DELETE CASCADE ON UPDATE CASCADE

 

Error occured at:2014-11-01 15:31:15

Line no.:521

Error Code: 1452 - Cannot add or update a child row: a foreign key constraint fails (`adkats`., CONSTRAINT `adkats_rolecommands_fk_command` FOREIGN KEY (`command_id`) REFERENCES `adkats_commands` (`command_id`) ON DELETE CASCADE)

Try this version of the setup script: https://raw.githubusercontent.com/Co...ter/adkats.sql
Link to comment

Originally Posted by Chelrid*:

 

Update: The SQL Script worked without Error, but when i was enable AdKats in Procon the hole Layer crashed and was unreachable.

Code:
[19:46:29 62] [AdKats] ENABLED! Beginning startup sequence...
[19:46:30 83] [AdKats] SUCCESS: Populated reputation dictionaries.
[19:46:30 94] [AdKats] SUCCESS: Populated group dictionaries.
[19:46:30 94] [AdKats] SUCCESS: Server IP is 5.101.165.101:30300
[19:46:31 03] [AdKats] SUCCESS: Database connection open.
[19:46:31 33] ProconRulz: JuliderBosss killed xXxNIgHtCorexXx with SMG U_Scorpion
[19:46:31 61] [AdKats] SUCCESS: Database confirmed functional for AdKats use.
[19:46:31 69] [AdKats] EXCEPTION: Line Unknown: [GetGlobalUTCTimestamp][Error while getting global UTC Timestamp]: System.ArgumentOutOfRangeException: Value to add was out of range.
Parameter name: value
   at System.DateTime.Add(Double value, Int32 scale)
   at PRoConEvents.AdKats.DateTimeFromEpochSeconds(Double epochSeconds)
   at PRoConEvents.AdKats.GetGlobalUTCTimestamp(DateTime& UTCTime)
[19:46:31 69] [AdKats] EXCEPTION: Line Unknown: [DatabaseCommunicationThreadLoop][Error occured in Database Comm thread. Skipping current loop.]: 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(TKey key)
   at PRoConEvents.AdKats.HandleException(AdKatsException aException)
   at PRoConEvents.AdKats.GetGlobalUTCTimestamp(DateTime& UTCTime)
   at PRoConEvents.AdKats.TestDatabaseConnection()
   at PRoConEvents.AdKats.DatabaseCommunicationThreadLoop()
[19:46:31 69] [AdKats] EXCEPTION: Line Unknown: [DatabaseCommunicationThreadLoop][Error occured in database comm thread.]: 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(TKey key)
   at PRoConEvents.AdKats.HandleException(AdKatsException aException)
   at PRoConEvents.AdKats.DatabaseCommunicationThreadLoop()
[19:47:08 52] [AdKats] SUCCESS: Database connection open.
[19:47:09 02] [AdKats] SUCCESS: Database confirmed functional for AdKats use.
[19:47:09 04] [AdKats] EXCEPTION: Line Unknown: [GetGlobalUTCTimestamp][Error while getting global UTC Timestamp]: System.ArgumentOutOfRangeException: Value to add was out of range.
Parameter name: value
   at System.DateTime.Add(Double value, Int32 scale)
   at PRoConEvents.AdKats.DateTimeFromEpochSeconds(Double epochSeconds)
   at PRoConEvents.AdKats.GetGlobalUTCTimestamp(DateTime& UTCTime)
[19:47:09 05] [AdKats] EXCEPTION: Line Unknown: [DatabaseCommunicationThreadLoop][Error occured in Database Comm thread. Skipping current loop.]: 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(TKey key)
   at PRoConEvents.AdKats.HandleException(AdKatsException aException)
   at PRoConEvents.AdKats.GetGlobalUTCTimestamp(DateTime& UTCTime)
   at PRoConEvents.AdKats.TestDatabaseConnection()
   at PRoConEvents.AdKats.DatabaseCommunicationThreadLoop()
[19:47:09 05] [AdKats] EXCEPTION: Line Unknown: [DatabaseCommunicationThreadLoop][Error occured in database comm thread.]: 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(TKey key)
   at PRoConEvents.AdKats.HandleException(AdKatsException aException)
   at PRoConEvents.AdKats.DatabaseCommunicationThreadLoop()
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Update: The SQL Script worked without Error, but when i was enable AdKats in Procon the hole Layer crashed and was unreachable.

Some people had this issue after the latest patch. Try this version: https://raw.githubusercontent.com/Co...ster/AdKats.cs

 

Getting all the kinks out before i push a new one.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

It doesnt work at all. There are 8 Users. I have both Feed Server Spectator List and Automatic Spectator Slot For User Cache set to True. Actually cant even set the latter to False.

 

Today was the first time for me to set these. I originally had the player names set in the spectator list but when I turned on the above it cleared out all names.

Ok, i found the issue. I'll post the update after i get a few more tickets done.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

When I go into my database and look in the adkats_specialplayers table, this is what I see: "MySQL returned an empty result set (i.e. zero rows). (Query took 0.0002 sec)"

 

I manually entered a player into the admin assistant file by entering the code aawhitelist and players name. It accepted the command but I cannot see his name in the special player table. Also, He filed a @player report and the report does not have AA next to his name. Also, if I enter his name manually, is he always an admin assistant or does it end after the match ends? (Actually, I entered the players name through Procon. When I reentered his name, it says that the matching player is already in the admin Assistant whitelist. So I assume that he is still an admin assistant regardless if the round ends or not, is that correct?

I just tested it, at least with the latest version, and it works. I didn't change anything, to my knowledge anyway, so when i post the latest update just try that version.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

any tips for DOM and the auto surrender?

 

my last rly unbalanced round was [23:41:49] AdKats > US Rate: -6.46 t/m | CN Rate: -48.32 t/m

 

Thanks

I would suggest placing the values as follows:

 

min ticket gap: your choice, depending on your server's total ticket count. nothing less than 100, unless you're running like 200 ticket DOM.

winning max: 0

winning min: -10

losing max: -45

losing min: -100

trigger count: 3-5 depending on your findings

 

Play around with the values after a while and see if it's triggering too soon or too late.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

we playing tdm and dom. - do you think that could be problems? (because one gametype is with + tickets and the other one with -)

 

Thy

Never run auto-surrender on mixed mode.

 

EDIT: To clarify, don't run it on mixed mode of the same ticket loss type, for example DOM and conquest, because they will be different values to trigger. Running it on DOM and TDM specifically shouldn't be an issue.

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.