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

 

Logic change that you guys should know about. I am refactoring how the ban/kick reason is displayed on battelog to reflect some changes they made.

 

Currently reasons show up like this:

Posted Image

 

Due to the wrapping they have, it looks like the admin name is actually the reason. Some people were coming to us confused, "why was I banned for ? what is that_".

 

Old:

ColColonCleaner [8m38s] Self-Inflicted - Appeal at TESTING

New:

Self-Inflicted [8m38s][ColColonCleaner][Appeal at TESTING]

 

Posted Image

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

TESTERS ONLY

 

This is the beta release for AdKats 4.0.0.0 (3.9.9.0), and is intended for testing purposes only. The 4.0 release needs to be clean, so this release is dedicated to finding any errors that currently exist in it. Over 8000 lines have been changed since the previous release, so there are obviously things i've overlooked at some point.

 

For now, only test this if you can create a new database/schema to run this on. It is UNTESTED, and it would not be pretty if something happened to your existing instances.

 

The changes are as follows:

  • The database structure has been completely changed, the definition is now using 11 tables (soon to be 12). I will be adding an import script for your old records to the new version soon. Once officially released you will be able to install this over your old instance and it will import/update your old records.
  • New user system has been added with editable roles and commands.

    • On first enable you will need to add a user, you can have as many users as you want.
    • Note: Anywhere a setting says "delete_" to perform the delete you need to type the word delete in the box and hit enter, i did this so there are no accidental deletions of users/roles/etc.
    • When a user is added you need to assign them a role.

      • The default role is "Default Guest" and the allowed commands for that role are shown to you in the role section. The default guest role cannot be deleted, but can be edited to your heart's content.
      • You can add more roles by typing a new role name in the "add role" field. All roles that are added default to allow all commands, so you will need to edit the allowed commands for new roles.
      • When you change a user's role and they are currently in-game they will be told that their role has changed, and what it was changed to.
    • When a user is added you need to assign them soldiers.

      • Users can have multiple soldiers, so if your admins have multiple accounts you can assign all of those soldiers under their user.
      • All soldiers added need to be in your database before they can be added to a user. This system tracks user's soldiers, so if they change their soldier names they will still have powers without needing to contact admins about the change.
      • Type their soldier's name in the "new soldier" field to add them. It will error out if it cannot find the soldier in the database.

        • To add soldiers to the database quickly, have them join any server you are running this version of AdKats on and their information will be immediately added.
    • Commands now have logging options, enable options, and editable command text. These can be edited in the command list section
  • AdKats can now send emails for player reports and admin calls, enable the email system and email fields will appear next to each user.

    • I've included credentials to send through the adkatsbattlefield gmail account, so you can leave that default if you want, no need for your own SMTP server.
  • The internal hacker checker has been updated to work with BF3Stats and BF4Stats.

    • It is currently in debug mode for this beta release so you will be console spammed with some statistics if you enable it. Also not all weapon damages are included yet, so some weapons wont be found.
  • AdKats now accepts commands sent via procon's chat tab.

    • You must prefix the command with a / for it to work through that method. The admin name for those commands is "ProconAdmin" since the real admin name is undetectable.
  • Auto-Enable/KeepAlive added.

    • If you ever have issues where your layer/instance is leaving AdKats disabled on restart, enable this. To disable AdKats after this is turned on you must change the setting to false.
  • All AdKats functions now run in UTC time.
  • IRO punish can now be disabled/edited.
  • You can now give units to temp ban times, such as @tban 10h player reason for a 10 hour ban.

    • Valid suffixes are m, h, d, w, y, for minutes, hours, days, weeks, and years respectively.
  • the @tell and @ptell commands have been added.

    • These commands will perform a say and yell at the same time.
  • Admin name can now be shown in global kick/ban messages per the available option.
  • AdKats now implements @rules/!rules and logs when players request rules.
  • Ban reasons have been updated per the previous post.
  • Callable methods have been added so other plugins can call AdKats commands like punish and mute, and keep all the logging options. All commands are accessible, i'm just waiting on a plugin capable of sending AdKats the commands.
  • Small bugs fixed from previous versions.

The new AdKats.cs file is here:

https://raw.github.com/ColColonClean...test/AdKats.cs

The new adkats.sql file is here:

https://raw.github.com/ColColonClean...est/adkats.sql

 

Good luck boys, let me know when you find issues.

Link to comment

Originally Posted by jking54*:

 

Created new database, enabled it then disabled it then got this error when I ran the new script:

 

Error

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

 

ERROR: Unknown Punctuation String @ 13

STR: //

SQL:

 

DELIMITER //

 

DROP PROCEDURE IF EXISTS addLogPlayerID //

 

 

SQL query:

 

DELIMITER // DROP PROCEDURE IF EXISTS addLogPlayerID //

 

MySQL said: Documentation

 

#1548 - Cannot load from mysql.proc. The table is probably corrupted

 

I get this error every single time I run that script, are you sure it's correct? I think there is an issue with it now as I created a whole new schema and database on a separate server which doesn't fill very often so I guinea pigged it, same error so gotta be something on that end (script etc.)

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

Originally Posted by ColColonCleaner*:

 

Created new database, enabled it then disabled it then got this error when I ran the new script:

 

Error

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

 

ERROR: Unknown Punctuation String @ 13

STR: //

SQL:

 

DELIMITER //

 

DROP PROCEDURE IF EXISTS addLogPlayerID //

 

 

SQL query:

 

DELIMITER // DROP PROCEDURE IF EXISTS addLogPlayerID //

 

MySQL said: Documentation

 

#1548 - Cannot load from mysql.proc. The table is probably corrupted

 

I get this error every single time I run that script, are you sure that script is correct?

Your client doesnt know what // means, it's just a delimiter, i'll update it to $$ and you should be fine.

 

EDIT: Updated

Link to comment

Originally Posted by jking54*:

 

Now I get this:

 

Error

SQL query:

 

DELIMITER $$ DROP PROCEDURE IF EXISTS addLogPlayerID $$

 

MySQL said: Documentation

 

#1548 - Cannot load from mysql.proc. The table is probably corrupted

 

I am with NFO and they currently use phpMyAdmin 4.0.7 if that matters.

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

Originally Posted by Prophet731*:

 

Oh well guess I'll just wait for release, no worky work on this end.

I ran the SQL just fine. Re-create the new database, maybe it got corrupted somehow.

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 www-battleplay4u-com*:

 

Hi

 

i get this error:

 

lowstack.png

 

I try to increase the stack but

 

mysqld -O thread_stack=256000

 

das not work.

 

#1064.png

 

still working on that

----------------------------------

 

Update:

Could fix that by increasing the my.ini file to 256k

 

Its running now....waiting if errors occurs

 

BTW....looks massive :-)

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

Originally Posted by www-battleplay4u-com*:

 

ok tables were created

 

datas are written into DB....hell ya...you heared correct....problem of me is solved i guess...you rock like hell mannnn

 

working.png

 

punish works correct

 

user are written into tables

 

just look at the pic it tells nearly everythink!!!

 

GREAT JOB SO FAR CLEANER

 

Attached Files:

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

Originally Posted by ColColonCleaner*:

 

ok tables were created

 

datas are written into DB....hell ya...you heared correct....problem of me is solved i guess...you rock like hell mannnn

 

working.png

 

punish works correct

 

user are written into tables

 

just look at the pic it tells nearly everythink!!!

 

GREAT JOB SO FAR CLEANER

Glad to see this fixed your issue. If you could test the other functions/commands changed as well that would be great, i want to make sure there are no bugs for the 4.0 release.
Link to comment

Originally Posted by jking54*:

 

I ran the SQL just fine. Re-create the new database, maybe it got corrupted somehow.

lol I've recreated it about a half dozen times, not working. Goes like clockwork with the release scripts, same error guys. As expected, I get the normal 15 tables form GUID Stats logger upon startup of that. Guess I'll pass for now until you get it straightened out...

 

Error

SQL query:

 

DELIMITER $$ DROP PROCEDURE IF EXISTS addLogPlayerID $$

 

MySQL said: Documentation

 

#1548 - Cannot load from mysql.proc. The table is probably corrupted

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

Originally Posted by jking54*:

 

run that sql

 

mysql_upgrade

 

or

 

mysql_upgrade.exe -uroot -p --force

 

tell me if it helped you

 

DONT FORGET: GOOGLE IS YOUR FRIEND

Run this where, on the database? BTW FYI, I'm with NFO, the MySQL stuff is on them, all the release AdKats stuff has worked without issue up until this point so with respect please no Google is your friend stuff....

 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql_upgrade.exe -uroot -p --force' at line 1

 

FYI, NFO is running the most current MySQL...

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

Originally Posted by ColColonCleaner*:

 

lol I've recreated it about a half dozen times, not working. Goes like clockwork with the release scripts, same error guys. As expected, I get the normal 15 tables form GUID Stats logger upon startup of that. Guess I'll pass for now until you get it straightened out...

 

Error

SQL query:

 

DELIMITER $$ DROP PROCEDURE IF EXISTS addLogPlayerID $$

 

MySQL said: Documentation

 

#1548 - Cannot load from mysql.proc. The table is probably corrupted

King, did you try running the previous script i posted? The one that checked if people could create procedures? The error is not with the current SQL script posted, all of the syntax is correct. Your SQL server seems to have an issue creating procedures. I'll look into it further later.

 

https://raw.github.com/ColColonClean...siontester.sql

Link to comment

Originally Posted by jking54*:

 

King, did you try running the previous script i posted? The one that checked if people could create procedures? The error is not with the current SQL script posted, all of the syntax is correct. Your SQL server seems to have an issue creating procedures. I'll look into it further later.

 

https://raw.github.com/ColColonClean...siontester.sql

Error

SQL query:

 

DELIMITER $$ DROP PROCEDURE IF EXISTS addLogPlayerID $$

 

MySQL said: Documentation

 

#1548 - Cannot load from mysql.proc. The table is probably corrupted

 

I'm working with NFO also on this

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

Originally Posted by ColColonCleaner*:

 

Error

SQL query:

 

DELIMITER $$ DROP PROCEDURE IF EXISTS addLogPlayerID $$

 

MySQL said: Documentation

 

#1548 - Cannot load from mysql.proc. The table is probably corrupted

 

I'm working with NFO also on this

Yeah it appears to be a problem with NFO and procedures, all of the syntax is correct. Let me know what happens.
Link to comment

Originally Posted by jking54*:

 

Yeah it appears to be a problem with NFO and procedures, all of the syntax is correct. Let me know what happens.

Ok, I just didn't foresee this as a problem, having to have an updated MySQL when all the other scripts work fine, was this planned or due your revamping everything?
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Ok, I just didn't foresee this as a problem, having to have an updated MySQL when all the other scripts work fine, was this planned or due your revamping everything?

I have never had a procedure in the sql scripts before, that is what is causing the issue for you specifically, some part of your mysql config is not allowing it. AdKats and the webadmin need player IDs in chat logs, so that procedure adds a column to your chatlog table for player ID. The trigger below it automatically adds the IDs when stat logger inserts new messages.

 

In 3.7 i had AdKats take over chat logging directly, but that caused far too many user based problems for it to continue.

Link to comment

Originally Posted by jking54*:

 

I have never had a procedure in the sql scripts before, that is what is causing the issue for you specifically, some part of your mysql config is not allowing it. AdKats and the webadmin need player IDs in chat logs, so that procedure adds a column to your chatlog table for player ID. The trigger below it automatically adds the IDs when stat logger inserts new messages.

 

In 3.7 i had AdKats take over chat logging directly, but that caused far too many user based problems for it to continue.

Great, John at NFO says:

 

We run mysql_upgrade after every update, but I can run it again. Which website is this in reference to?

 

Also, I don't believe that we allow the use of stored procedures here, due to their global nature. You can try it, but I don't think that this will work.

 

Any way to have a version without the web admin stuff, frankly I can live without that since I consider it redundant for my needs.

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

Originally Posted by ColColonCleaner*:

 

Great, John at NFO says:

 

We run mysql_upgrade after every update, but I can run it again. Which website is this in reference to?

 

Also, I don't believe that we allow the use of stored procedures here, due to their global nature. You can try it, but I don't think that this will work.

Ugh, that's what i was afraid of. They are off limits in NFO. The problem was nobody confirmed it when i asked before. I'll put it into the AdKats source and run the contents of the procedure from there.
Link to comment

Originally Posted by jking54*:

 

Ugh, that's what i was afraid of. They are off limits in NFO. The problem was nobody confirmed it when i asked before. I'll put it into the AdKats source and run the contents of the procedure from there.

Your patience is appreciated, can't say that enough.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Administrators

Originally Posted by Prophet731*:

 

Any way to have a version without the web admin stuff, frankly I can live without that since I consider it redundant for my needs.

You can run it without the web admin, you just wont have the easy ability to edit bans and view a player history.

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

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.