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

 

What's the difference? rconnet not offering to enter /yes and it pleases! I just used to do without /yes. Example: /nuke ru where is misspell? Asks to enter /yes

 

It takes a long time to write / yes

 

And help me:

[05:41:51 12] [AdKats] ERROR: No API key for Metabans was given! Canceling Operation.

[05:41:51 12] [AdKats] ERROR: No username for Metabans was given! Canceling Operation.

 

Where do I enter? I do not see the settings.

 

And some problem:

 

[06:30:28 45] [AdKats] WARNING: Could not find damage stats for unica-6 in BF4 library of 71 weapons. Using BFXStats API damage of 65 DPS in the meantime.

[06:30:28 45] [AdKats] WARNING: Could not find damage stats for mpx in BF4 library of 71 weapons. Using BFXStats API damage of 34 DPS in the meantime.

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

Originally Posted by r0ll_rus*:

 

Hi!

Can you help me?

On every level loading (starting new round) I get an error:

 

Code:

[14:12:08 34] [AdKats] EXCEPTION: Line 0: [OnLevelLoaded][Error while handling level load.]: System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at PRoConEvents.AdKats.OnTeamFactionOverride(Int32 targetTeamID, Int32 overrideTeamId)
   at PRoConEvents.AdKats.UpdateFactions()
   at PRoConEvents.AdKats.OnLevelLoaded(String strMapFileName, String strMapMode, Int32 roundsPlayed, Int32 roundsTotal)
What am I doing wrong? Is it a duplicate of some item in a database or elsewhere (where_)?
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Hi!

Can you help me?

On every level loading (starting new round) I get an error:

 

Code:

[14:12:08 34] [AdKats] EXCEPTION: Line 0: [OnLevelLoaded][Error while handling level load.]: System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at PRoConEvents.AdKats.OnTeamFactionOverride(Int32 targetTeamID, Int32 overrideTeamId)
   at PRoConEvents.AdKats.UpdateFactions()
   at PRoConEvents.AdKats.OnLevelLoaded(String strMapFileName, String strMapMode, Int32 roundsPlayed, Int32 roundsTotal)
What am I doing wrong? Is it a duplicate of some item in a database or elsewhere (where_)?
Version 5.0.0.5? Bf3 or Bf4?
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

What's the difference? rconnet not offering to enter /yes and it pleases! I just used to do without /yes. Example: /nuke ru where is misspell? Asks to enter /yes

 

It takes a long time to write / yes

 

And help me:

[05:41:51 12] [AdKats] ERROR: No API key for Metabans was given! Canceling Operation.

[05:41:51 12] [AdKats] ERROR: No username for Metabans was given! Canceling Operation.

 

Where do I enter? I do not see the settings.

 

And some problem:

 

[06:30:28 45] [AdKats] WARNING: Could not find damage stats for unica-6 in BF4 library of 71 weapons. Using BFXStats API damage of 65 DPS in the meantime.

[06:30:28 45] [AdKats] WARNING: Could not find damage stats for mpx in BF4 library of 71 weapons. Using BFXStats API damage of 34 DPS in the meantime.

Yes nuke requires confirm... you are killing 32 players in one shot.

 

The metabans api problem is being fixed.

 

Damage stats for those weapons are being added.

Link to comment

Originally Posted by PHX_Big_Deal*:

 

Yes nuke requires confirm... you are killing 32 players in one shot.

 

The metabans api problem is being fixed.

 

Damage stats for those weapons are being added.

I run Version 5.0.0.5 and have the same 2 Problems.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by markrlomas*:

 

When using Ban enforcer, is it normal for the same ban to be listed about 3-4 times in the database? The ban wasn't carried out using Adkats but an Auto ban from insane limits for racism using player.EABanPlayerWithMessage.

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

Originally Posted by ColColonCleaner*:

 

When using Ban enforcer, is it normal for the same ban to be listed about 3-4 times in the database? The ban wasn't carried out using Adkats but an Auto ban from insane limits for racism using player.EABanPlayerWithMessage.

Can you screenshot/gyazo this?
Link to comment

Originally Posted by markrlomas*:

 

Can you screenshot/gyazo this?

Here's a test ban in Procon before it was sent to the database

 

proCon banlist.jpg

 

Once it hits the database, i see this in the adkats_records_main table

 

adkatsban.jpg

 

This means that when using Prophet's web admin it shows me as having 7 Previous bans all for the same reason. If i issue the ban via adkats ingame admin it only shows once.

Obviously the iseal situation would be to have insane limits make the adkats plugin issue the ban, but obivously I'm aware that you are still looking into the communication issues between the plugins so thats not currently possible.

As a side note is it possible to have the bans still stored in the database, but not only be enforced on thes erver which it was issued, not enforced on all servers?

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

Originally Posted by markrlomas*:

 

UPDATE: Even though i can't use the CallOtherPlugin, having Insane limits do a plugin.SendGlobalMessage("/ban" additional params here) works flawless, so it seems like this is defiantely teh way to go for now. Only issue with this is even though i have changed the ProCon Ban Admin Name to AutoAdmin, the banning admin shows as ProconAdmin,

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

Originally Posted by ColColonCleaner*:

 

Here's a test ban in Procon before it was sent to the database

 

proCon banlist.jpg

 

Once it hits the database, i see this in the adkats_records_main table

 

adkatsban.jpg

 

This means that when using Prophet's web admin it shows me as having 7 Previous bans all for the same reason. If i issue the ban via adkats ingame admin it only shows once.

Obviously the iseal situation would be to have insane limits make the adkats plugin issue the ban, but obivously I'm aware that you are still looking into the communication issues between the plugins so thats not currently possible.

As a side note is it possible to have the bans still stored in the database, but not only be enforced on thes erver which it was issued, not enforced on all servers?

I'll test this out on my end, thanks for the debugs.

 

EDIT: Ban are enforced only on the current server group, look in the tbl_server table and change the server groups for servers you don't want connected.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

UPDATE: Even though i can't use the CallOtherPlugin, having Insane limits do a plugin.SendGlobalMessage("/ban" additional params here) works flawless, so it seems like this is defiantely teh way to go for now. Only issue with this is even though i have changed the ProCon Ban Admin Name to AutoAdmin, the banning admin shows as ProconAdmin,

Procon ban admin name is for the bans issued manually through procon's banlist window.

 

I have found and fixed the issue with issuing commands from IL. It used a different format for the request than the one i was expecting. You shouldn't need to change anything from the code i've previously given you for the request, just needed to update my handling code.

 

I think I've solved the duplicate ban posting problem, unable to reliably test on my machines though.

 

Added an option that should never be used, disable switch for command confirmation.

 

Fixed roll's problem with level load in BF3.

 

https://raw.githubusercontent.com/Co...test/AdKats.cs

Link to comment

Originally Posted by markrlomas*:

 

Procon ban admin name is for the bans issued manually through procon's banlist window.

 

I have found and fixed the issue with issuing commands from IL. It used a different format for the request than the one i was expecting. You shouldn't need to change anything from the code i've previously given you for the request, just needed to update my handling code.

 

I think I've solved the duplicate ban posting problem, unable to reliably test on my machines though.

 

Added an option that should never be used, disable switch for command confirmation.

 

Fixed roll's problem with level load in BF3.

 

https://raw.githubusercontent.com/Co...test/AdKats.cs

Thanks dude,

 

Downloading now and will post back either later tonight or tomorrow with the results of the changes.

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

Originally Posted by markrlomas*:

 

You're a genius, thanks for sorting this out, IL > Adkats working perfectly. All I need to try out now is if i want to ban from IL to Adkats if its player_ban or player_pban, but i'm sure that shouldn't be hard to figure out.

 

Duplicate ban issue is also fixed, I only see 1 ban in the database now, although the Console window in Procon did display the following

 

Code:

[02:58:36 22] [AdKats] WARNING: Attempted to post duplicate ban for player 11. Cancelling operation.
[02:58:47 70] [AdKats] WARNING: Attempted to post duplicate ban for player 11. Cancelling operation.
[02:58:58 58] [AdKats] WARNING: Attempted to post duplicate ban for player 11. Cancelling operation.
But i can live with that, its only a message in the console which is much easier to live with than 7 lots of the same ban.

 

Again thank you for taking your time to look at these issues and providing such a speedy fix for them, it is much appreciated.

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

Originally Posted by ColColonCleaner*:

 

You're a genius, thanks for sorting this out, IL > Adkats working perfectly. All I need to try out now is if i want to ban from IL to Adkats if its player_ban or player_pban, but i'm sure that shouldn't be hard to figure out.

 

Duplicate ban issue is also fixed, I only see 1 ban in the database now, although the Console window in Procon did display the following

 

Code:

[02:58:36 22] [AdKats] WARNING: Attempted to post duplicate ban for player 11. Cancelling operation.
[02:58:47 70] [AdKats] WARNING: Attempted to post duplicate ban for player 11. Cancelling operation.
[02:58:58 58] [AdKats] WARNING: Attempted to post duplicate ban for player 11. Cancelling operation.
But i can live with that, its only a message in the console which is much easier to live with than 7 lots of the same ban.

 

Again thank you for taking your time to look at these issues and providing such a speedy fix for them, it is much appreciated.

Look in the adkats_commands table. All the command_key entries are there.

 

I'm probably going to reduce those warning message to level 4 debug messages in the release patch.

 

Please inform me of any other issues you come across.

Link to comment

Originally Posted by ZeroKooL*:

 

After updating to 5.0.0.5 reserved slots no longer work for Full Admin or any other group, any fox for this?

 

All i have done is set "Reserved Slot Player [ADMIN" to "Allow" and added the users to the admin group. Have also tried creating a new group and setting it to allow but still does not work.

 

Cheers

Zero

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

Originally Posted by ColColonCleaner*:

 

After updating to 5.0.0.5 reserved slots no longer work for Full Admin or any other group, any fox for this?

 

All i have done is set "Reserved Slot Player [ADMIN" to "Allow" and added the users to the admin group. Have also tried creating a new group and setting it to allow but still does not work.

 

Cheers

Zero

Feed Server Reserved Slots - True

Automatic Reserved Slot for User Cache - True

Link to comment

Originally Posted by ZeroKooL*:

 

Thanks buddie, im also having a little trouble with !punish !forgive, i have set the default group to "punish player [ADMIN]" "Allow" , "Forgive Player" "Allow" and then set "CDE9 | Punish player | Active" to "Active" Olny kill players on low population is also turned off, But when you get team killed you get no option to punish or forgive.

 

I was looking at the documentation and see you refer to it as Infraction Tracking but i can not find any option for that in the plugin.

 

Cheers

Zero

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

Originally Posted by ColColonCleaner*:

 

Thanks buddie, im also having a little trouble with !punish !forgive, i have set the default group to "punish player [ADMIN]" "Allow" , "Forgive Player" "Allow" and then set "CDE9 | Punish player | Active" to "Active" Olny kill players on low population is also turned off, But when you get team killed you get no option to punish or forgive.

 

I was looking at the documentation and see you refer to it as Infraction Tracking but i can not find any option for that in the plugin.

 

Cheers

Zero

The punish and forgive commands in AdKats are admin only. They are not for teamkilling.
Link to comment

Originally Posted by Jasonpb*:

 

Got our old problem back again of bans not being enforced on players that are banned sometimes, often I can disable the plugin then enable it again and it works but as of now a player who showed up as being kicked in the ACP isn't kicked from the game.

 

If I look up the player within the mini ban manager, it shows up just fine and lists it as active, however they are still playing in the server :ohmy:

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

Originally Posted by ColColonCleaner*:

 

Got our old problem back again of bans not being enforced on players that are banned sometimes, often I can disable the plugin then enable it again and it works but as of now a player who showed up as being kicked in the ACP isn't kicked from the game.

 

If I look up the player within the mini ban manager, it shows up just fine and lists it as active, however they are still playing in the server :ohmy:

Certain players only? I'm gonna need debug level 6 plugin logs of when they attempt to rejoin the server.
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.