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

 

Is there a way to desable msgs when player kicked for afk ?

 

 

Sent from my iPad using Tapatalk

I have one more bugfix to upload anyway, so i'll make those kicks silent if done automatically. Manual kicks for AFK using /afk command will still be visible.
Link to comment

Originally Posted by virusdead*:

 

It is the list of words/phrases that will cause the report auto-handler to accept certain reports from admin assistants.

What are the lists that could trigger quoted me some words if it pleases you.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Moli87*:

 

Hi COL

 

Thanks for the good explanation about the IRO punishment. :smile:

 

In the latest Version i have some database disconnects but not everytime just sometimes:

 

[18:24:11 39] [AdKats] ERROR: Database connection fault detected. This is fault 3. Critical disconnect at 10.

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

Originally Posted by ColColonCleaner*:

 

Hi COL

 

Thanks for the good explanation about the IRO punishment. :smile:

 

In the latest Version i have some database disconnects but not everytime just sometimes:

 

[18:24:11 39] [AdKats] ERROR: Database connection fault detected. This is fault 3. Critical disconnect at 10.

The connection to your database is throttled or faulty. That error happens when a query or request hits a timeout error, which is 10 seconds by default. If it's not reaching 10 faults it's not terrible, but you will still have some loss of data, and some records will not be pushed to the database.
Link to comment

Originally Posted by Moli87*:

 

The connection to your database is throttled or faulty. That error happens when a query or request hits a timeout error, which is 10 seconds by default. If it's not reaching 10 faults it's not terrible, but you will still have some loss of data, and some records will not be pushed to the database.

And what do you think could be the problem? Do you think it could be that my server where i host my Procon by myself is not stable enough? Maybe i need more power because the cpu jumps a lot times to 100% shortly and this can cause the database connection losts....could it be?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Hutchew*:

 

Start by checking how big you records_main table is. If it's over 1million, chances are you need to clean it up as discussed a few pages back. It will cause massive CPU and I/O disc reads, which in turn will cause timeouts, especially on cheap hosting accounts.

 

 

Hutchew

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

Originally Posted by Moli87*:

 

Start by checking how big you records_main table is. If it's over 1million, chances are you need to clean it up as discussed a few pages back. It will cause massive CPU and I/O disc reads, which in turn will cause timeouts, especially on cheap hosting accounts.

 

 

Hutchew

Thank you for the answer but the table is not so big. I think i found the problem...its another plugin Server Kills. When i turn it off everything work good and cpu look also not bad and Procon never crash, but when i activate server Kills the problems start after half an hour. Now i need to find out why only i have problem with this plugin.

 

AdKats work perfect when server kills disabled and he fixed the Log ServerSPAM...Thanks COL

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

Originally Posted by ColColonCleaner*:

 

Thank you for the answer but the table is not so big. I think i found the problem...its another plugin Server Kills. When i turn it off everything work good and cpu look also not bad and Procon never crash, but when i activate server Kills the problems start after half an hour. Now i need to find out why only i have problem with this plugin.

 

AdKats work perfect when server kills disabled and he fixed the Log ServerSPAM...Thanks COL

Glad you found the problem. That's strange though...server kills doesn't do any heavy processing as far as I know. I thought it was just an announcer of special kills like defibs/knife and stuff, does it do more than that?
Link to comment

Originally Posted by Moli87*:

 

Not just special kills or kill streak ...you can also enable ace squad, Round stats and Server Kills stats with an intervall you can set.(default 24h). I testet enough time...with all plugins and adKats included the layer works stable and did not crash when server kills disabled. When enabled the layer crash within 1hour...sometimes no chance to login even if the layer is running.

 

I will take a look maybe i setup something wrong...or could it be that i use the same database as adKats and statsloging plugin from xpkiller? I use for all 3 plugins the same database...

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

Originally Posted by ColColonCleaner*:

 

Not just special kills or kill streak ...you can also enable ace squad, Round stats and Server Kills stats with an intervall you can set.(default 24h). I testet enough time...with all plugins and adKats included the layer works stable and did not crash when server kills disabled. When enabled the layer crash within 1hour...sometimes no chance to login even if the layer is running.

 

I will take a look maybe i setup something wrong...or could it be that i use the same database as adKats and statsloging plugin from xpkiller? I use for all 3 plugins the same database...

AdKats needs the database from XpKiller, the whole plugin was started on that structure. Hope you find the issue.
Link to comment

Originally Posted by Moli87*:

 

AdKats needs the database from XpKiller, the whole plugin was started on that structure. Hope you find the issue.

Yes i know that but maybe i need a separate database for the server kills plugin...i will check this.

 

But i still have some errors from adkats:

[20:28:19 55] [AdKats] ERROR: Unable to find target weight for type|action: 12|20

[20:28:22 49] [AdKats] ERROR: Unable to find target weight for type|action: 14|35

[20:28:39 87] [AdKats] ERROR: Unable to find source weight for type|action: 12|20

[20:28:39 87] [AdKats] ERROR: Unable to find source weight for type|action: 12|35

[20:28:39 87] [AdKats] ERROR: Unable to find source weight for type|action: 14|20

[20:28:39 87] [AdKats] ERROR: Unable to find source weight for type|action: 14|35

[20:28:39 87] [AdKats] ERROR: Unable to find source weight for type|action: 22|35

[20:28:39 87] [AdKats] ERROR: Unable to find target weight for type|action: 12|20

[20:28:39 87] [AdKats] ERROR: Unable to find target weight for type|action: 12|35

 

What does this mean?

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

Originally Posted by ColColonCleaner*:

 

Yes i know that but maybe i need a separate database for the server kills plugin...i will check this.

 

But i still have some errors from adkats:

[20:28:19 55] [AdKats] ERROR: Unable to find target weight for type|action: 12|20

[20:28:22 49] [AdKats] ERROR: Unable to find target weight for type|action: 14|35

[20:28:39 87] [AdKats] ERROR: Unable to find source weight for type|action: 12|20

[20:28:39 87] [AdKats] ERROR: Unable to find source weight for type|action: 12|35

[20:28:39 87] [AdKats] ERROR: Unable to find source weight for type|action: 14|20

[20:28:39 87] [AdKats] ERROR: Unable to find source weight for type|action: 14|35

[20:28:39 87] [AdKats] ERROR: Unable to find source weight for type|action: 22|35

[20:28:39 87] [AdKats] ERROR: Unable to find target weight for type|action: 12|20

[20:28:39 87] [AdKats] ERROR: Unable to find target weight for type|action: 12|35

 

What does this mean?

Are there any exceptions? 35 is the code for exception record.
Link to comment

Originally Posted by staazvaind*:

 

Update latency manager, there used to be a conflict with AdKats which has since been fixed.

tried all three last versions :-/

its simply not even showing up in the plugin list anymore.

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

Originally Posted by Moli87*:

 

Look in your adkats_records_main table, for records that have the command_action = 35, but command_type that are NOT 35. What are the record_message entries for those records?

They are mostly this error:

 

[b__70][Error in email sending thread.]: System.NullReferenceException: Object reference not set to an instance of an object.

at PRoConEvents.AdKats.EmailHandler.c__DisplayClass 73.b__70()

 

one or two times i see this error:

 

[ProcessPlayerKill][Error while processing player kill.]: 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.ProcessPlayerKill(Kill kKillerVictimDetails)

 

But this records are very old from december 2013...i think this was when i setup adKats and i used an email provider which wont work but later i set it up with google mail and after that it worked.

 

How can i fix this? Can i delete these records without problems?

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

Originally Posted by ColColonCleaner*:

 

They are mostly this error:

 

[b__70][Error in email sending thread.]: System.NullReferenceException: Object reference not set to an instance of an object.

at PRoConEvents.AdKats.EmailHandler.c__DisplayClass 73.b__70()

 

one or two times i see this error:

 

[ProcessPlayerKill][Error while processing player kill.]: 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.ProcessPlayerKill(Kill kKillerVictimDetails)

 

But this records are very old from december 2013...i think this was when i setup adKats and i used an email provider which wont work but later i set it up with google mail and after that it worked.

 

How can i fix this? Can i delete these records without problems?

Which of these errors is the current one being spammed to your database?

 

If it is the email one, I will look into the problem and find out why it's happening. It looks like the record is becoming the exception, instead of simply throwing the exception to logs. This was an old way i did things, and thought i had removed all references to that method. I'll check it out.

 

If it's the kill processing one, that error should never happen anymore. If it still is, that could be a serious problem.

Link to comment

Originally Posted by markrlomas*:

 

Just wondered if someone can give me a quick piece of advice regarding adkats/Insane Limits.

 

I saw in the documention for adkats it says it has integration with other plugins, such as Insane limits can trigger the waring system in adkats, can anyone tell me how I would go about doing this? I haven't really had any plugins interact with each other so I don't know in the first place how I would get insane limits to do anything with any of the other plugins.

 

But for example, In a no explosives server, my usual setup would be 1st infraction kills player and warns, 2nd kicks (and stores a limit.RoundData Bool, if they then come back into the server and do it again a 60 minute ban. But instead of all of that how could i just make it start issuing warnings using the adkats warn/punish system?

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

Originally Posted by ColColonCleaner*:

 

Just wondered if someone can give me a quick piece of advice regarding adkats/Insane Limits.

 

I saw in the documention for adkats it says it has integration with other plugins, such as Insane limits can trigger the waring system in adkats, can anyone tell me how I would go about doing this? I haven't really had any plugins interact with each other so I don't know in the first place how I would get insane limits to do anything with any of the other plugins.

 

But for example, In a no explosives server, my usual setup would be 1st infraction kills player and warns, 2nd kicks (and stores a limit.RoundData Bool, if they then come back into the server and do it again a 60 minute ban. But instead of all of that how could i just make it start issuing warnings using the adkats warn/punish system?

The simplest way is to have insane limits issue a hidden admin say containing the wanted command. For example, have it admin say "/punish playername Using restricted weapon X". Just make sure in the AdKats command settings section you've enabled commands via admin say.
Link to comment

Originally Posted by markrlomas*:

 

Ok thanks, that sounds rather straightforward to what I was expecting lol.

 

So as long as I prefex punish with / then That line will be hidden from chat and only the response from the punishment will be shown in chat?

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

Originally Posted by markrlomas*:

 

Also I forgot to say in my last Post.

 

One of the role options in adkats that you can allow or deny is "Request server commands", what is this option for? What kind of server commands?

 

Lastly, I noticed when doing a fresh install of adkats yesterday that the SQL query fails (I pointed it out to prophet when he was helping me set up the web admin) but he said that he doens't dela with adkats, so I thought i'd post here.

 

I believe this line needs to be removed from the query?

 

https://github.com/ColColonCleaner/A...dkats.sql#L336

 

As apparently command ID 13 is no longer used but the insert command still exists, which then causes this part of the query to error:

 

Code:

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;
Once again thanks to you guys at =ADK= for these fantastic plugins though, adkats offers so much more than the default ingame admin, I not regret not using this plugin earlier.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Ok thanks, that sounds rather straightforward to what I was expecting lol.

 

So as long as I prefex punish with / then That line will be hidden from chat and only the response from the punishment will be shown in chat?

Correct, the only downside for using that simpler method is that it will show the admin name as "ProconAdmin" (Punished by ProconAdmin), since it assumes that command is being issued by an admin from the procon chat window. If you would like a different name, for example "AutoAdmin", etc, you will need to use the direct record method. I can describe how to do that if you want to try it.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Also I forgot to say in my last Post.

 

One of the role options in adkats that you can allow or deny is "Request server commands", what is this option for? What kind of server commands?

 

Lastly, I noticed when doing a fresh install of adkats yesterday that the SQL query fails (I pointed it out to prophet when he was helping me set up the web admin) but he said that he doens't dela with adkats, so I thought i'd post here.

 

I believe this line needs to be removed from the query?

 

https://github.com/ColColonCleaner/A...dkats.sql#L336

 

As apparently command ID 13 is no longer used but the insert command still exists, which then causes this part of the query to error:

 

Code:

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;
Once again thanks to you guys at =ADK= for these fantastic plugins though, adkats offers so much more than the default ingame admin, I not regret not using this plugin earlier.
Request server commands just lists the commands that person has access to. You can also define commands from outside the plugin (!stats, !rank, etc), in the command settings section.) There are two lists there, one for guests, and one for admins.

 

Thank you for finding that error with the sql, it has been fixed and uploaded.

 

Glad the plugin is being useful to you. Please inform me of any bugs or issues as they arise.

Link to comment

Originally Posted by markrlomas*:

 

Correct, the only downside for using that simpler method is that it will show the admin name as "ProconAdmin" (Punished by ProconAdmin), since it assumes that command is being issued by an admin from the procon chat window. If you would like a different name, for example "AutoAdmin", etc, you will need to use the direct record method. I can describe how to do that if you want to try it.

If you wouldn't mind doing that it would be appreciated.

 

I just hopped into your TS as I thought i could show you how our currently limit works but I'm guessing you aren't online in there lol

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