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

 

Do a db query for any records in your adkats_records_main table with adkats_read = N

 

If you have any, remove them.

 

If not, i'm surprised this hasn't come up in the 2.5M records our servers have issued.

 

I'm adding a patch so that it won't happen even in that weird edge case, however i'm mid dev on the ping limiter ticket so i can't upload it right now.

Sure enough, I went in and found two entries with "N". I have deleted them and all is well in the land of AdKats. I put the new version back in and launched it. Debug level was set to 5. During startup I noticed this in the console:

 

[09:45:16 81] [AdKats] SQL updates found. Parsing...

[09:45:16 81] [AdKats] Parsing SQL Update 'command57adminfix'

[09:45:16 81] [AdKats] SQL update 'command57adminfix' version_minimum: 5.0.0.0

[09:45:16 81] [AdKats] SQL update 'command57adminfix' version_maximum:

[09:45:16 81] [AdKats] SQL update 'command57adminfix' message_name: Fix command 57 admin-only status

[09:45:16 81] [AdKats] SQL update 'command57adminfix' message_success: Command 57 admin-only status fixed

[09:45:16 81] [AdKats] SQL update 'command57adminfix' message_failure: Failed to fix command 57 admin-only status

[09:45:16 81] [AdKats] SQL update 'command57adminfix' update_checks: 2

[09:45:16 81] [AdKats] SQL update 'command57adminfix' update_execute_requiresModRows: True

[09:45:16 81] [AdKats] SQL update 'command57adminfix' update_execute: 1

[09:45:16 81] [AdKats] SQL update 'command57adminfix' update_success: 0

[09:45:16 81] [AdKats] SQL update 'command57adminfix' update_failure: 0

[09:45:17 10] [AdKats] Cancelling SQL update 'command57adminfix'. Update failed initial conditions.

Also, I didn't see anything about manually adding admin assistants in the settings, or is that because that SQL update failed?

 

EDIT: For the sake of not spamming, I noticed something just now. Using the @admin command can call an admin, but it sends a report email as if a player had been reported. Is it intended for both @admin and @report to serve the same function?

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

Originally Posted by ColColonCleaner*:

 

Sure enough, I went in and found two entries with "N". I have deleted them and all is well in the land of AdKats. I put the new version back in and launched it. Debug level was set to 5. During startup I noticed this in the console:

 

 

 

Also, I didn't see anything about manually adding admin assistants in the settings, or is that because that SQL update failed?

 

EDIT: For the sake of not spamming, I noticed something just now. Using the @admin command can call an admin, but it sends a report email as if a player had been reported. Is it intended for both @admin and @report to serve the same function?

1. Glad you found it. Adding records manually is not a good idea in invalid cases. I'll make sure that can't happen anymore for the kick records though.

2. That is a normal SQL update, if it failed initial conditions it just means it doesn't apply to your database. SQL updates only apply in some cases.

3. There is a new command, aawhitelist.

4. report and admin are basically the same command with different names. This is because so many servers run different configurations, and on some it's report to report a player, and on others its admin to report a player. This just makes it so they both work the same. That said, if you really want your admin command to be just a message to admins. Rename the admin command text something random, then change the adminmsg command text to admin.

Link to comment

Originally Posted by dmmaciag*:

 

1. Glad you found it. Adding records manually isn't a good idea.

2. That is a normal SQL update, if it failed initial conditions it just means it doesn't apply to your database. SQL updates only apply in some cases.

3. There is a new command, aawhitelist.

4. report and admin are basically the same command with different names. This is because so many servers run different configurations, and on some it's report to report a player, and on others its admin to report a player. This just makes it so they both work the same. That said, if you really want your admin command to be just a message to admins. Rename the admin command text something random, then change the adminmsg command text to admin.

I understand now, cool. Thanks!

 

EDIT: Was just thinking about what we discussed before about making it an option for emails not to send if admins are online. Would that also pertain to AA? If an AA is online would a report email not be sent?

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

Originally Posted by ColColonCleaner*:

 

I understand now, cool. Thanks!

 

EDIT: Was just thinking about what we discussed before about making it an option for emails not to send if admins are online. Would that also pertain to AA? If an AA is online would a report email not be sent?

I can add another option for that, sure, but it wouldn't be the default as those players are not technically admins.

 

I'll also update the SQL update debug messages to be more understandable like "This update doesn't apply to this database" instead of just spitting out debug like "Failed initial conditions".

Link to comment

Originally Posted by dmmaciag*:

 

I can add another option for that, sure, but it wouldn't be the default as those players are not technically admins.

 

I'll also update the SQL update debug messages to be more understandable like "This update doesn't apply to this database" instead of just spitting out debug like "Failed initial conditions".

Up to you, we're happy either way. Have started testing the AA function and all is good so far
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Fonta*:

 

Just came accros an little thing.

Whenever I enable the plugin, it starts spamming admin.listPlayers all in the console which makes procon unresponsive.

It takes a while and will stop on a sudden moment, maybe when the ingame commands are loaded?

Could you take a look at this?

http://i.imgur.com/q1mm7mN.png

 

and here it finally stopped:

http://i.imgur.com/P8rbqRh.png

 

In chat:

http://i.imgur.com/tE464cx.png

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

Originally Posted by ColColonCleaner*:

 

Just came accros an little thing.

Whenever I enable the plugin, it starts spamming admin.listPlayers all in the console which makes procon unresponsive.

It takes a while and will stop on a sudden moment, maybe when the ingame commands are loaded?

Could you take a look at this?

http://i.imgur.com/q1mm7mN.png

 

and here it finally stopped:

http://i.imgur.com/P8rbqRh.png

 

In chat:

http://i.imgur.com/tE464cx.png

Unless there is a bug i have not seen, the fastest interval player list is called is once every 10 seconds in normal operation, and slightly faster if you have people queued to switch teams. I'll look into it.

 

Edit: I found out why, it's because of a change I made to the startup process. Thanks for bringing this to my attention.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

TESTERS ONLY

The long lasting issue with "XpKiller's tables not found" after changing databases without restarting procon has been fixed.

If your database UTC time and procon layer UTC time are mismatched by over 5 minutes, it will not allow AdKats to start. Override provided, but time sensitive commands like punish are disallowed if override active.

Fixed commands with logging marked "unable" still being logged.

Added tban2days and tban3days to punishment options.

Released ping enforcer publicly.

Released commander manager publicly.

If a player reports someone recently kicked or banned, it tells them the player has already been removed, and cancels the report.

Added surrender and votenext commands, BUT THEY DO NOT WORK YET, don't use them.

Modified the admin responses for self_rules command to be more helpful.

 

If someone could test 5.1.4.7 for this functionality that would be great.

 

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

Link to comment

Originally Posted by dmmaciag*:

 

TESTERS ONLY

The long lasting issue with "XpKiller's tables not found" after changing databases without restarting procon has been fixed.

If your database UTC time and procon layer UTC time are mismatched by over 5 minutes, it will not allow AdKats to start. Override provided, but time sensitive commands like punish are disallowed if override active.

Fixed commands with logging marked "unable" still being logged.

Added tban2days and tban3days to punishment options.

Released ping enforcer publicly.

Released commander manager publicly.

If a player reports someone recently kicked or banned, it tells them the player has already been removed, and cancels the report.

Added surrender and votenext commands, BUT THEY DO NOT WORK YET, don't use them.

Modified the admin responses for self_rules command to be more helpful.

 

If someone could test 5.1.4.7 for this functionality that would be great.

 

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

Does this include the changes with the AA that we're testing?
* Restored post. It could be that the author is no longer active.
Link to comment
  • Administrators

Originally Posted by Prophet731*:

 

Colon, can your upgrade script do database changes as well? I've made a change to the tbl_chatlog table to add an index on the logDate column. It helped increase the speed of searching the chatlog table by datetimes from 3 seconds down to under 500ms on the query I ran.

 

This is the query that needs to be ran.

 

Code:

ALTER TABLE `tbl_chatlog` ADD INDEX (logDate);

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

 

Colon, can your upgrade script do database changes as well? I've made a change to the tbl_chatlog table to add an index on the logDate column. It helped increase the speed of searching the chatlog table by datetimes from 3 seconds down to under 500ms on the query I ran.

 

This is the query that needs to be ran.

 

Code:

ALTER TABLE `tbl_chatlog` ADD INDEX (logDate);
That's what the adkatsupdates.json is for. Look in there for the structure and post a block i can add to it.
Link to comment
  • Administrators

Originally Posted by Prophet731*:

 

That's what the adkatsupdates.json is for. Look in there for the structure and post a block i can add to it.

So like this?

 

Code:

{    "SQLUpdates":[
        {
            "update_id":"addIndexToChatlogTable",
            "version_minimum":"5.0.0.0",
            "version_maximum":null,
            "message_name":"Adds an index to the logDate column in tbl_chatlog for increase speed",
            "message_success":"Index succesfully added",
            "message_failure":"Failed to added index to tbl_chatlog",
            "update_checks":[],
            "update_execute_requiresModRows":true,
            "update_execute":[
                "ALTER TABLE `tbl_chatlog` ADD INDEX (logDate);"
            ],
            "update_success":[],
            "update_failure":[]
        }
    ]
}

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

 

So like this?

 

Code:

{    "SQLUpdates":[
        {
            "update_id":"addIndexToChatlogTable",
            "version_minimum":"5.0.0.0",
            "version_maximum":null,
            "message_name":"Adds an index to the logDate column in tbl_chatlog for increase speed",
            "message_success":"Index succesfully added",
            "message_failure":"Failed to added index to tbl_chatlog",
            "update_checks":[],
            "update_execute_requiresModRows":true,
            "update_execute":[
                "ALTER TABLE `tbl_chatlog` ADD INDEX (logDate);"
            ],
            "update_success":[],
            "update_failure":[]
        }
    ]
}
You need a check for validity. Add a query that will return rows if the update should be executed. Otherwise its good.

 

EDIT: I might need to add a field for saying the checks should/shouldn't return rows to be valid for the update.

 

EDIT: Added. https://raw.githubusercontent.com/Co...tsupdates.json

Link to comment

Originally Posted by durangod*:

 

Hi,

 

i have it all installed and everything seems to be working, however im a bit confused here.

 

1. Which process are my admins going to log into, the default admin or this admin?

 

2. I seem to be creating users for ADKats but where do they log into - i mean doesnt the procon go off their game name just as the other admin did but yet i dont see anywhere to put their gamename on this admin?

 

3. I also dont see anywhere to set a pw for them, how do they log in?

 

4. I dont see any kind of interface for the stats like a display, do i have to build my own php files to display the info from the db for this or is there a stats interface that i am not seeing?

 

5. I assume if they are online their name will be green in the account section right?

 

Thanks :smile:

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

Originally Posted by ColColonCleaner*:

 

Hi,

 

i have it all installed and everything seems to be working, however im a bit confused here.

 

1. Which process are my admins going to log into, the default admin or this admin?

 

2. I seem to be creating users for ADKats but where do they log into - i mean doesnt the procon go off their game name just as the other admin did but yet i dont see anywhere to put their gamename on this admin?

 

3. I also dont see anywhere to set a pw for them, how do they log in?

 

4. I dont see any kind of interface for the stats like a display, do i have to build my own php files to display the info from the db for this or is there a stats interface that i am not seeing?

 

5. I assume if they are online their name will be green in the account section right?

 

Thanks :smile:

Ok, almost all of your questions are about people logging in, which is strange because a large portion of the control is done in-game.

 

 

  • The process they log into is battlefield, their soldiers are their log in. When they come into your servers they have access.
  • Each user is assigned a soldier, or list of soldiers. Those soldiers have access in-game to the commands you assign to their role. You can see the "Add Soldier" line under their user. If you use their in-game name as their user name, the soldier is automatically added when you create the user.
  • Procon accounts do not apply to users in AdKats (yet, im planning on adding that later), this means you don't need to create a procon account for each user, just add them in AdKats settings.
  • BFAdminCP is the web interface for AdKats (Example: https://gcp.adkgamers.com/), and a major update is being pushed soon. You don't need to make any of your own files. If you view a player's profile it will show you all the sessions of time they were online in your servers, not to mention a lot of other useful stats and logs.
  • You can see all online admins with the /admins command. Please review the AdKats command list.
Make sense?
Link to comment

Originally Posted by durangod*:

 

yes somewhat and ill know more once i get into the game and see whats what, but for item 3, when i create a user in adkats with special chars like ? in the gamename it gives warning on bottom of invalid name.

 

If i need to add the user to the adkats then how does adkats know that i want JohnWayne_Duke to be an admin which is my player name when i cant use ? and all i can do is create a username in adkats like JohnWayneDuke and how does the system know which user if i dont use their gamename in adkats.

 

i did make them an admin limited account, and told them to leave the basic admin ingame stats deactivated as we are using the new one now. So your saying that they dont even need to go in there for playerlists, maps or anything at all, they can do it all via inside the game now.

 

this is where i get this

https://github.com/Prophet731/BFAdmi...ter/server.php

 

i was looking for an install readme file for the bfadmincp but i dont see one.

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

Originally Posted by durangod*:

 

i am totally having a hard time with this whole deal. I have had to basically rebuild the tables for the bfadmincp and errors and stuff and still not working http://bfadmin.teamxrossfire.com/dashboard almost 4 15 hour days just to set up a server and get some idea of how to manage players, how long has gaming been around, this should be sooooo easy by now. Between doing this and that and reading about this and fixing that. It just wears you out.

 

so i went in the game and i typed !kill and then it told me that my default guest role was not auth to use that. Well im not def guest im admin, it says im admin on every screen, it even said admin on the message that told me i was not lmao.. So i have no clue how this is suppose to work and honestly im starting to think it all a bunch of huey... sorry im just very tired.

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

Originally Posted by ColColonCleaner*:

 

i am totally having a hard time with this whole deal. I have had to basically rebuild the tables for the bfadmincp and errors and stuff and still not working http://bfadmin.teamxrossfire.com/dashboard almost 4 15 hour days just to set up a server and get some idea of how to manage players, how long has gaming been around, this should be sooooo easy by now. Between doing this and that and reading about this and fixing that. It just wears you out.

 

so i went in the game and i typed !kill and then it told me that my default guest role was not auth to use that. Well im not def guest im admin, it says im admin on every screen, it even said admin on the message that told me i was not lmao.. So i have no clue how this is suppose to work and honestly im starting to think it all a bunch of huey... sorry im just very tired.

It is easy, if you do it correctly. I do not control BFAdminCP, that's prophet. I noticed you posted about 12 replies to that thread without waiting for a response, maybe wait for him?

 

As for your user issue. Look at your user in AdKats. You don't have a soldier connected to it.

 

It should look like this:

 

Posted Image

Link to comment

Originally Posted by durangod*:

 

thanks i feel better after some much needed rest... :smile: yeah thats alot of messages oops... well i did finally get it going with 1.5 with some small tweeks in the sql install. So i am much happier now. yes mine does have a user but it dont show.

 

I think its because i got frustrated and deleted the default, then added it back. So instead of having

 

rec id 1 default and rec id 2 my name

its rec id 2 myname and rec id 3 default

 

so maybe thats why.

 

adkats.jpg

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

Originally Posted by ColColonCleaner*:

 

thanks i feel better after some much needed rest... :smile: yeah thats alot of messages oops... well i did finally get it going with 1.5 with some small tweeks in the sql install. So i am much happier now. yes mine does have a user but it dont show.

 

I think its because i got frustrated and deleted the default, then added it back. So instead of having

 

rec id 1 default and rec id 2 my name

its rec id 2 myname and rec id 3 default

 

so maybe thats why.

 

adkats.jpg

Wow, you can't just go editing things without knowing how they work. Please, just SLOW DOWN. default guest must be role id 1, with key "guest_default", do not edit the roles table manually unless you know what you are doing.
Link to comment

Originally Posted by TMiland*:

 

Hi, what are the changes regarding this: "All player orchestration in other plugins is done by player EAGUID now, instead of player name."

 

Seems that my custom reserved slots system is borked, and has been since i upgraded...

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

Originally Posted by ColColonCleaner*:

 

Hi, what are the changes regarding this: "All player orchestration in other plugins is done by player EAGUID now, instead of player name."

 

Seems that my custom reserved slots system is borked, and has been since i upgraded...

This does not apply to reserved slots, only orchestration through other plugins. For example if you are feeding the multibalancer whitelist, it feeds based on player GUID now, instead of player name.

 

Reserved slots are still added by name, as that is required by the server, the server does not accept GUIDs for that list.

 

What version did you update to when this started happening?

Link to comment

Originally Posted by TMiland*:

 

Hmm, okay, looks like this started after upgrading to the official version.

 

This is how it looks in the db:

https://myrcon.net/recovered/img/110333_attachment.php_attachmentid3589ampd1413395002

 

Notice the dates... :huh:

 

I tried to remove me and re-add from the forum cp, and i am re-added to the db, but i don't appear in the slot list

 

Attached Files:

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

Originally Posted by durangod*:

 

Wow, you can't just go editing things without knowing how they work. Please, just SLOW DOWN. default guest must be role id 1, with key "guest_default", do not edit the roles table manually unless you know what you are doing.

ok i will fix it
* 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.