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

 

Hey :ohmy: ,

 

the key generator link for the admin cp doesn't work atm.

I opened a case on Github already but maybe you got access to it too ?

 

Thanks in advance.

 

Link: https://adkats.gamerethos.net/api/random_key

Use any random key gen ... google 32 random key generator will pull up several.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Hey :ohmy: ,

 

the key generator link for the admin cp doesn't work atm.

I opened a case on Github already but maybe you got access to it too ?

 

Thanks in advance.

 

Link: https://adkats.gamerethos.net/api/random_key

That key doesn't need to be generated by us, i think it just has to be a random base64 key that you keep secret once generated.

You can use sites like this to generate one: https://generate.plus/en/base64

Link to comment

Originally Posted by 5YRU5*:

 

That key doesn't need to be generated by us, i think it just has to be a random base64 key that you keep secret once generated.

You can use sites like this to generate one: https://generate.plus/en/base64

Thanks for your fast support. Then it's another problem I have to find out ^^
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TonyOffermans*:

 

Still have an issue with battlecries. If I set one for another player (setbattlecry) and want to remove it (setbattlecry soldiername with no text) it says I don't have any battlecries to remove. Same result when that player is online. I deleted the entries from the table but they persist, I take it I have to shut down AdKats before deleting then? And is there really no way to remove battlecries for other soldiers in-game?

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

Originally Posted by ColColonCleaner*:

 

Still have an issue with battlecries. If I set one for another player (setbattlecry) and want to remove it (setbattlecry soldiername with no text) it says I don't have any battlecries to remove. Same result when that player is online. I deleted the entries from the table but they persist, I take it I have to shut down AdKats before deleting then? And is there really no way to remove battlecries for other soldiers in-game?

Hmm, i'll give this a test tonight and see if I can replicate.

 

EDIT: Found the issue. Update to 7.5.0.51

 

https://github.com/AdKats/AdKats/com...64254dba7f0010

Link to comment

Originally Posted by sixpax12*:

 

myrcon.net/...advanced-in-game-admin-and-ban-enforcer-adkats#entry39160

 

Code:

SELECT 
    `InnerResults`.*,
    ROUND((`map_benefit` - `map_detriment`)/`map_rounds`, 2) AS `map_benefit_numeric`
FROM
(
SELECT
    `server_id` AS `server`,
    `tbl_server`.`ServerName` AS `server_name`,
    `target_name` AS `map_code`,
    (
        SELECT 
            count(`stat_id`)
        FROM 
            `adkats_statistics`
        WHERE
            `server_id` = `server`
        AND
            `target_name` = `map_code`
        AND
            `stat_type` = 'map_benefit'
    ) AS `map_rounds`,
    (
        SELECT 
            SUM(`stat_value`)
        FROM 
            `adkats_statistics`
        WHERE
            `server_id` = `server`
        AND
            `target_name` = `map_code`
        AND
            `stat_type` = 'map_benefit'
    ) AS `map_benefit`,
    (
        SELECT 
            SUM(`stat_value`)
        FROM 
            `adkats_statistics`
        WHERE
            `server_id` = `server`
        AND
            `target_name` = `map_code`
        AND
            `stat_type` = 'map_detriment'
    ) AS `map_detriment`
FROM
    `adkats_statistics`
INNER JOIN
    `tbl_server`
ON
    `server_id` = `tbl_server`.`ServerID`
WHERE
    `stat_type` = 'map_benefit'
    OR
    `stat_type` = 'map_detriment'
GROUP BY
    `server_id`, `target_name`
) AS `InnerResults`
ORDER BY
    `InnerResults`.`server` ASC, `map_benefit_numeric` DESC;
Another query: myrcon.net/...advanced-in-game-admin-and-ban-enforcer-adkats#entry39176

 

Looks like i never actually added that section to the manual with these queries.

Thanks !

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

Originally Posted by sixpax12*:

 

Any thoughts on why only once in a blue moon a report shows up on the BFACP in the section Reports when we get numerous reports everyday ? Not able to determine any differences between the ones that don't and the couple that have.

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

Originally Posted by ColColonCleaner*:

 

Any thoughts on why only once in a blue moon a report shows up on the BFACP in the section Reports when we get numerous reports everyday ? Not able to determine any differences between the ones that don't and the couple that have.

Perhaps you have it set to not send reports when admins are online in server? I don't know if the BFACP respects those settings but there is one for emails/discord etc that won't send reports if an admin is in the server. Perhaps your admins are seeding and it considers them online?

 

Other than that i'm not sure why.

Link to comment

Originally Posted by sixpax12*:

 

Perhaps you have it set to not send reports when admins are online in server? I don't know if the BFACP respects those settings but there is one for emails/discord etc that won't send reports if an admin is in the server. Perhaps your admins are seeding and it considers them online?

 

Other than that i'm not sure why.

Looks like I neglected to ever complete the Push Bullet settings ... many thanks.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Looks like I neglected to ever complete the Push Bullet settings ... many thanks.

Are these pushbullet settings in AdKats or in the BFACP? Because i think the ones in AdKats are not used there, specifically the settings in section 8-2.

 

But if filling out those settings fixed your issue, that's great.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I was referring to the settings in section 8.2 in Adkats ... the BFACFP push bullet settings are in the .ENV file ....

Yeah, those settings in AdKats are for custom pushbullet configurations, not related to the BFACP. Someone wanted notifications on their phone IIRC so they asked for pushbullet support. I don't think that's the source of your problem, might be something else. i'm not sure what it could be at the moment.
Link to comment

Originally Posted by sixpax12*:

 

Yeah, those settings in AdKats are for custom pushbullet configurations, not related to the BFACP. Someone wanted notifications on their phone IIRC so they asked for pushbullet support. I don't think that's the source of your problem, might be something else. i'm not sure what it could be at the moment.

ahh gotcha. will continue poking around. thank you for response.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TonyOffermans*:

 

So. CCC. I activated your 51 beta by !pupdate. THANKS! It works, I can now remove battlecries I have set for other players. One battlecry I left for one specific player may still cause an issue (player stuck in a move loop): https://cdn.discordapp.com/attachmen...44/unknown.png

Note that this player changed his soldiername before joining again, don't know if this may be of any importance. These messages lasted for a few seconds.

 

I also noticed today while trying to ban a cheater, it took about 30 seconds before my command was executed. This was a multihack cheater with invisibility, magic bullets, the works. Before and after that there was no delay. Never saw such delay before. Between the issuing and execute this cheater ragekilled 25 more players.....omg.

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

Originally Posted by ColColonCleaner*:

 

So. CCC. I activated your 51 beta by !pupdate. THANKS! It works, I can now remove battlecries I have set for other players. One battlecry I left for one specific player may still cause an issue (player stuck in a move loop): https://cdn.discordapp.com/attachmen...44/unknown.png

Note that this player changed his soldiername before joining again, don't know if this may be of any importance. These messages lasted for a few seconds.

 

I also noticed today while trying to ban a cheater, it took about 30 seconds before my command was executed. This was a multihack cheater with invisibility, magic bullets, the works. Before and after that there was no delay. Never saw such delay before. Between the issuing and execute this cheater ragekilled 25 more players.....omg.

Those move loop messages are from AdKats fighting with your auto-balancer when you move a player with an admin command or they move themselves via !assist. Both plugins want the player to be on opposite teams so they fight over the player, but i made AdKats detect the loop and stop fighting. You can ignore those messages when they happen.

 

As for the delayed ban, in section 13-2 turn off BF4 lenient kick. In BF4 for people joining through the in-game client they can't see ban messages, why they were banned, so by default it spams them with say/yell messages before kicking them out of the server. But turning off that leniency will make it immediately eject them.

Link to comment

Originally Posted by TonyOffermans*:

 

Those move loop messages are from AdKats fighting with your auto-balancer when you move a player with an admin command or they move themselves via !assist. Both plugins want the player to be on opposite teams so they fight over the player, but i made AdKats detect the loop and stop fighting. You can ignore those messages when they happen.

 

As for the delayed ban, in section 13-2 turn off BF4 lenient kick. In BF4 for people joining through the in-game client they can't see ban messages, why they were banned, so by default it spams them with say/yell messages before kicking them out of the server. But turning off that leniency will make it immediately eject them.

Okido CCC, thanks. Extreme coincidence this message was regarding the only player (of 35.000) with an active battlecry. I immediately assumed it had something to do with it. BF4 lenient kick was already set to false, normally a ban is immediate (it is now too), but in this case I issued the command three times (different reason texts) and even tried banning via procon before the first command was in effect (perma ban message was shown with first reason text). Weird. Would not expect the hack to have such an impact on either server or layer performance.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Okido CCC, thanks. Extreme coincidence this message was regarding the only player (of 35.000) with an active battlecry. I immediately assumed it had something to do with it. BF4 lenient kick was already set to false, normally a ban is immediate (it is now too), but in this case I issued the command three times (different reason texts) and even tried banning via procon before the first command was in effect (perma ban message was shown with first reason text). Weird. Would not expect the hack to have such an impact on either server or layer performance.

Yeah, if procon itself wasn't able to kick them out properly then that's not something my plugin can handle either. We had a similar problem in BF3 where you were unable to kick players but that was from a glitch they abused with their player names where the name on the server side didn't match what was displayed in game so any name-driven commands you tried to issue against them would fail. On top of this they utilized a secondary glitch that let them connect to the server without a valid GUID so you couldn't ban them that way either. After those issues were patched though i haven't seen it, but there might be other newer hacks that have put in kick blocking.
Link to comment

Originally Posted by sixpax12*:

 

Is there a safe way to delete a particular soldier's record out of the database ? we have one that never can display anything properly in the dashboard ( blade errors ) and can't see anything different anywhere ... so thought maybe we could just blast him as though he never visited.

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

Originally Posted by ColColonCleaner*:

 

Is there a safe way to delete a particular soldier's record out of the database ? we have one that never can display anything properly in the dashboard ( blade errors ) and can't see anything different anywhere ... so thought maybe we could just blast him as though he never visited.

Run these, in order, with their player id, and you should be good.

 

delete from adkats_bans where player_id = ?

delete from adkats_records_debug where source_id = ?

delete from adkats_records_debug where target_id = ?

delete from adkats_records_main where source_id = ?

delete from adkats_records_main where target_id = ?

delete from tbl_playerdata where playerid = ?

Link to comment

Originally Posted by sixpax12*:

 

Run these, in order, with their player id, and you should be good.

 

delete from adkats_bans where player_id = ?

delete from adkats_records_debug where source_id = ?

delete from adkats_records_debug where target_id = ?

delete from adkats_records_main where source_id = ?

delete from adkats_records_main where target_id = ?

delete from tbl_playerdata where playerid = ?

I completed the above with no issues shortly after you posted this. The offending player_id revisited a server a short time ago and somehow re-inherited the same player_id that was removed ?
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I completed the above with no issues shortly after you posted this. The offending player_id revisited a server a short time ago and somehow re-inherited the same player_id that was removed ?

Perhaps cached in the BFACP somewhere? Not sure how that could happen otherwise. Unless you kept your procon layers running while you deleted the records so they were still there in your running instance. If you did that delete without shutting down AdKats first it probably just realized something weird happened and re-loaded the player into the database.
Link to comment

Originally Posted by ty_ger07*:

 

The recommendation to stop the AdKats plugin (or the layer altogether) before making the change makes sense. But even if you already did that (or do that in the future), I have noticed that SQL servers seem to have a memory and refill old rows when similar data reappears, instead of starting a new auto-incremented row. In my experience, after deleting a row, a user with the same information, unexpectedly repopulated an old deleted row, while new users properly populated new auto-incremented rows as expected. Old deleted rows should normaly remain a gap in auto-incremented numbering instead of being filled back in. But it seems that something to do with the index caching causes auto-incrementing to stop working properly when the same information is given to the database which matches an old user/data which used to occupy a deleted row. In my experience, to avoid the oddity of the SQL server repopulating an old deleted auto-incremented row, after deleting the row(s) in the respective table(s), run the SQL optimize table query. That seems to take care of that problem. Optimizing the tables seems to clear the index cache and causes it to auto-increment new rows instead of re-filling old rows. The Optimize table process is real easy inside phpMyAdmin. You don't even need to know the SQL command(s). Just check-mark all tables, click the "with selected:" dropdown, and click Optimize table.

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

Originally Posted by sixpax12*:

 

The recommendation to stop the AdKats plugin (or the layer altogether) before making the change makes sense. But even if you already did that (or do that in the future), I have noticed that SQL servers seem to have a memory and refill old rows when similar data reappears, instead of starting a new auto-incremented row. In my experience, after deleting a row, a user with the same information, unexpectedly repopulated an old deleted row, while new users properly populated new auto-incremented rows as expected. Old deleted rows should normaly remain a gap in auto-incremented numbering instead of being filled back in. But it seems that something to do with the index caching causes auto-incrementing to stop working properly when the same information is given to the database which matches at old user/data which used to occupy a deleted row. In my experience, to avoid the oddity of the SQL server repopulating an old deleted auto-incremented row, after deleting the row(s) in the respective table(s), run the SQL optimize table query. That seems to take care of that problem. Optimizing the tables seems to clear the index buffer and causes it to auto-increment new rows instead of re-filling old rows. The Optimize table process is real easy inside phpMyAdmin. You don't even need to know the SQL command(s). Just check-mark all tables, click the "with selected:" dropdown, and click Optimize table.

most awesome info, thanks !
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by keb2*:

 

hi

in the console are constantly warnings

[20:37:49 45] [AdKats] WARNING: Ahmed_AJ spawned without being in player list.

[20:37:49 55] [AdKats] WARNING: nikhilxx18 spawned without being in player list.

these warnings appear every second for different players.How to 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.