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

 

I fixed the error remember :P, i know where it was lol

I remember, but i cant upgrade to that version remember?

 

You said that you will add it to the next update, that update is the new one lol! :tongue:

 

*edit

You missed this: myrcon.net/...advanced-in-game-admin-and-ban-enforcer-adkats#entry37394 :biggrin:

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

Originally Posted by ColColonCleaner*:

 

I remember, but i cant upgrade to that version remember?

 

You said that you will add it to the next update, that update is the new one lol! :tongue:

 

*edit

You missed this: myrcon.net/...advanced-in-game-admin-and-ban-enforcer-adkats#entry37394 :biggrin:

No what i mean is i know where the error was, the error only applied when records were being acted on from webadmin, not from in-game.

 

And for adding admins it's a little more complicated. A user has to be added for them, their in-game soldiers linked to that user, and the user role set to an admin role you create.

Link to comment

Originally Posted by TMiland*:

 

No what i mean is i know where the error was, the error only applied when records were being acted on from webadmin, not from in-game.

 

And for adding admins it's a little more complicated. A user has to be added for them, their in-game soldiers linked to that user, and the user role set to an admin role you create.

But the error is present when using the cmd both from admin panel and !punish in-game, that's why i haven't used it since you debugged my server.

 

I am using this query to add admins in both admin userclass 1 and in the reserved slots class on the forums:

Code:

if(in_array($value,$adminClass_1))
	{
		if(in_array($value,$reservedPlayers))
		{
			if(!in_array($value,$oldAdminPlayers))
			{
				mysql_query("INSERT INTO adkats_accesslist (player_name, member_id, player_email, access_level) VALUES ('$value', 1, 'NoEmail', 0) ON DUPLICATE KEY UPDATE access_level = 1");
				echo "Adding Admin: ".$value."\n";
			}
		}
	}
If not in admin userclass, add as class 5:

Code:

if(!in_array($value,$oldReservedPlayers))
        {
                mysql_query("INSERT INTO adkats_accesslist (player_name, member_id, player_email, access_level) VALUES ('$value', 0, 'NoEmail', 5) ON DUPLICATE KEY UPDATE access_level = 5");
                echo "Adding Player: ".$value."\n";
        }
This is working like a charm! :smile:

 

How would i go about converting this to the new system? :smile:

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

Originally Posted by ColColonCleaner*:

 

But the error is present when using the cmd both from admin panel and !punish in-game, that's why i haven't used it since you debugged my server.

 

I am using this query to add admins in both admin userclass 1 and in the reserved slots class on the forums:

Code:

if(in_array($value,$adminClass_1))
    {
        if(in_array($value,$reservedPlayers))
        {
            if(!in_array($value,$oldAdminPlayers))
            {
                mysql_query("INSERT INTO adkats_accesslist (player_name, member_id, player_email, access_level) VALUES ('$value', 1, 'NoEmail', 0) ON DUPLICATE KEY UPDATE access_level = 1");
                echo "Adding Admin: ".$value."\n";
            }
        }
    }
If not in admin userclass, add as class 5:

Code:

if(!in_array($value,$oldReservedPlayers))
        {
                mysql_query("INSERT INTO adkats_accesslist (player_name, member_id, player_email, access_level) VALUES ('$value', 0, 'NoEmail', 5) ON DUPLICATE KEY UPDATE access_level = 5");
                echo "Adding Player: ".$value."\n";
        }
This is working like a charm! :smile:

 

How would i go about converting this to the new system? :smile:

Prophet is working on an API for the webadmin to accept requests for player access changes, since the actual process to manage it is rather involved.
Link to comment
  • Administrators

Originally Posted by Prophet731*:

 

But the error is present when using the cmd both from admin panel and !punish in-game, that's why i haven't used it since you debugged my server.

 

I am using this query to add admins in both admin userclass 1 and in the reserved slots class on the forums:

Code:

if(in_array($value,$adminClass_1))
    {
        if(in_array($value,$reservedPlayers))
        {
            if(!in_array($value,$oldAdminPlayers))
            {
                mysql_query("INSERT INTO adkats_accesslist (player_name, member_id, player_email, access_level) VALUES ('$value', 1, 'NoEmail', 0) ON DUPLICATE KEY UPDATE access_level = 1");
                echo "Adding Admin: ".$value."\n";
            }
        }
    }
If not in admin userclass, add as class 5:

Code:

if(!in_array($value,$oldReservedPlayers))
        {
                mysql_query("INSERT INTO adkats_accesslist (player_name, member_id, player_email, access_level) VALUES ('$value', 0, 'NoEmail', 5) ON DUPLICATE KEY UPDATE access_level = 5");
                echo "Adding Player: ".$value."\n";
        }
This is working like a charm! :smile:

 

How would i go about converting this to the new system? :smile:

Prophet is working on an API for the webadmin to accept requests for player access changes, since the actual process to manage it is rather involved.

It won't be for a couple versions anyway, but, here is how I think I will do it.

 

For the API you will need to send a POST request with the following values. Reason for no player name is that it's not a unique key in the database.

 

  • API Key
  • EAGUID
  • Game (BF3, BF4, Both)
  • Type (Admin, Res(Reserved Slot))
  • Role Name (Only needed if the type is Admin)

To remove a player the request will be slightly different. Instead of a POST request you would send a DELETE request with only these values. This will check both reserved slots and admin slots and if they exist in them it will remove them.

  • API Key
  • EAGUID
  • Game (BF3, BF4, Both)

As for a format I was thinking about parsing a simple text file as one option. It would have to be in a certain format to be valid though.

 

Adding Examples:

 

Adding an Admin

Code:

<span style="font-family: Arial">EA_4409D49F6F05C0CCC3B71330E535961B,both,admin,Veteran Admin</span>
Adding a reserved slot player (Note: Admins have reserved slot access already so you don't need to do one for both)

Code:

<span style="font-family: Arial">EA_4409D49F6F05C0CCC3B71330E535961B,bf4,res</span>
Updating a player to a different type is the same as adding except in the code I check to see if the information is different than what I have in the database.

 

Deleting Examples:

Code:

<span style="font-family: Arial">EA_4409D49F6F05C0CCC3B71330E535961B,both</span>
Code:
<span style="font-family: Arial">EA_4409D49F6F05C0CCC3B71330E535961B,bf4</span>
I will provide a PHP script with everything setup you just need to tell it what database to use and what format it's in.

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

 

Running adkats on our locker server.

 

@kill/!kill command from ingame is killing a user twice, Kills them once straight away then again when they respawn. Admin gets the messge twice also "User has been killed for reason"... anything i should check?

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

Originally Posted by TMiland*:

 

It won't be for a couple versions anyway, but, here is how I think I will do it.

 

For the API you will need to send a POST request with the following values. Reason for no player name is that it's not a unique key in the database.

 

  • API Key
  • EAGUID
  • Game (BF3, BF4, Both)
  • Type (Admin, Res(Reserved Slot))
  • Role Name (Only needed if the type is Admin)

To remove a player the request will be slightly different. Instead of a POST request you would send a DELETE request with only these values. This will check both reserved slots and admin slots and if they exist in them it will remove them.

  • API Key
  • EAGUID
  • Game (BF3, BF4, Both)

As for a format I was thinking about parsing a simple text file as one option. It would have to be in a certain format to be valid though.

 

Adding Examples:

 

Adding an Admin

Code:

<span style="font-family: Arial">EA_4409D49F6F05C0CCC3B71330E535961B,both,admin,Veteran Admin</span>
Adding a reserved slot player (Note: Admins have reserved slot access already so you don't need to do one for both)

Code:

<span style="font-family: Arial">EA_4409D49F6F05C0CCC3B71330E535961B,bf4,res</span>
Updating a player to a different type is the same as adding except in the code I check to see if the information is different than what I have in the database.

 

Deleting Examples:

Code:

<span style="font-family: Arial">EA_4409D49F6F05C0CCC3B71330E535961B,both</span>
Code:
<span style="font-family: Arial">EA_4409D49F6F05C0CCC3B71330E535961B,bf4</span>
I will provide a PHP script with everything setup you just need to tell it what database to use and what format it's in.
This is great news guys! What a great job you are doing with the admin tools! :biggrin:

 

Okay, for now i think i'll go back to the original way i did the reserved slots, writing the names to a txt file, then import the names with a plugin, so i can upgrade to the new version. :smile:

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

Originally Posted by TMiland*:

 

I get a bunch of these errors on upgrade:

 

Code:

[15:43:51 44] [AdKats] EXCEPTION: Line 0: [UploadRecord][Unexpected error uploading Record.]: MySql.Data.MySqlClient.MySqlException: Cannot add or update a child row: a foreign key constraint fails (`nbfc_bf4log`.`adkats_records_main`, CONSTRAINT `adkats_records_main_fk_server_id` FOREIGN KEY (`server_id`) REFERENCES `tbl_server` (`ServerID`) ON DELETE CASCADE ON UPDATE CASCADE)
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at PRoConEvents.AdKats.UploadRecord(AdKatsRecord record)
What gives? :smile:
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

[13:56:20] AdKats > Say > TommyMiland > Your user role Default Guest does not have access to Force Move Player.

:woot:

 

Posted Image

This can happen when you have soldiers for different games with the same name. 1929 is not the ID of your soldier in the game you are trying to have access in. It's fixed in the new version, but that version has instability issues. The threads started hanging after a couple hours of use on our layers so i obviously missed an optimization step. However, if you want to give it a try anyway, 4.0.1.0 is on the "test" github branch.

 

If you want to fix it without updating, find your soldier ID for the game you want (assuming BF4), and add that ID to your user id (1) in the usersoldiers table.

Link to comment

Originally Posted by TMiland*:

 

This can happen when you have soldiers for different games with the same name. 1929 is not the ID of your soldier in the game you are trying to have access in. It's fixed in the new version, but that version has instability issues. The threads started hanging after a couple hours of use on our layers so i obviously missed an optimization step. However, if you want to give it a try anyway, 4.0.1.0 is on the "test" github branch.

 

If you want to fix it without updating, find your soldier ID for the game you want (assuming BF4), and add that ID to your user id (1) in the usersoldiers table.

Okay, i have already updated to that version, and have instability issues on two servers.

 

Any chance you will be patching that issue like just now, or do i have to revert back?

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

Originally Posted by ColColonCleaner*:

 

Okay, i have already updated to that version, and have instability issues on two servers.

 

Any chance you will be patching that issue like just now, or do i have to revert back?

Dang it man...please, nobody update to a test version unless I say to, that's exactly what they are, tests, and will usually have issues.

 

Reverting back is advisable.

Link to comment

Originally Posted by TMiland*:

 

Dang it man...please, nobody update to a test version unless I say to, that's exactly what they are, tests, and will usually have issues.

 

Reverting back is advisable.

But you said so :P

 

Already reverted. :ohmy:

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

Originally Posted by ColColonCleaner*:

 

For clarity purposes only, do you run the adkats.sql SQL script against 'XpKiller's Procon Chat, GUID, Stats and Mapstats Logger' database or against a second database?

 

Thanks in advance.

TM is right, they must run on the same database. Did i forget to say that in the installation instructions? If i did then my apologies.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I have no idea!

 

I got this error all of a sudden:

myrcon.net/...chat-guid-stats-and-mapstats-logger#entry45292

Did you copy your tables or table contents from somewhere? That error means when you did it carried a user from the old definition to your new database and that user has no powers in the new database (i think that's right, someone please correct me if i'm wrong). You need to remove the user definer. Prophet/blackhawk talked about how to do it earlier in the thread.
Link to comment

Originally Posted by TMiland*:

 

Did you copy your tables or table contents from somewhere? That error means when you did it carried a user from the old definition to your new database and that user has no powers in the new database (i think that's right, someone please correct me if i'm wrong). You need to remove the user definer. Prophet/blackhawk talked about how to do it earlier in the thread.

I have recreated the procedure, still the same error msg:

Code:

[22:08:43 61] [Statslogger]Error: LogChat:
[22:08:43 61] Message: The user specified as a definer ('cpses_nbUhhQ5fkB'@'localhost') does not exist
[22:08:43 61] Native: -2147467259
[22:08:43 61] Source: MySql.Data
[22:08:43 61] StackTrace:    at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at PRoConEvents.CChatGUIDStatsLogger.LogChat(String strSpeaker, String strMessage, String strType)
[22:08:43 61] [Statslogger]Error: LogChat_2: System.NullReferenceException: Object reference not set to an instance of an object.
   at PRoConEvents.CChatGUIDStatsLogger.DisplayMySqlErrorCollection(MySqlException myException)
   at PRoConEvents.CChatGUIDStatsLogger.LogChat(String strSpeaker, String strMessage, String strType)
Not really sure what he means by "Yea you need to remove the user definer from the trigger or procedure."?

 

*Edit

PROBLEM SOLVED!

Posted Image

 

I edited the TRIGGERS in phpmyadmin, and changed all 3 "cpses_nbUhhQ5fkB" to user@localhost!

 

Hurray! :biggrin:

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

Originally Posted by Piranha16*:

 

Hey ColColonCleaner,

 

 

we have 8 Gameservers(4x64, 1x 48, 2x32, 1x24, 1x20, Webspace (AdKats Webadmin 1.4.1 and Procon Layers by Fragnet.

The Plugin AdKats 4.0.0.0 is crashing my Procon Layer Server.

The CPU and Memory Usage is with AdKats very high.

From 30MB to 120MB. And CPU from 3% to 70-80%. (Logs from Fragnet).

 

 

So i can't connect with my Procon Client to my Procon Layers.

The most Problem comes with my 48/64 Slot Servers.

 

 

All Layers connects to 1 DB from Fragnet.

 

 

Sometimes Procon Layers is shutting down and sometimes we have big laggs to administrate it.

 

 

Best regards,

Piranha16 & Breakmaster

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

Originally Posted by ColColonCleaner*:

 

Hey ColColonCleaner,

 

 

we have 8 Gameservers(4x64, 1x 48, 2x32, 1x24, 1x20, Webspace (AdKats Webadmin 1.4.1 and Procon Layers by Fragnet.

The Plugin AdKats 4.0.0.0 is crashing my Procon Layer Server.

The CPU and Memory Usage is with AdKats very high.

From 30MB to 120MB. And CPU from 3% to 70-80%. (Logs from Fragnet).

 

 

So i can't connect with my Procon Client to my Procon Layers.

The most Problem comes with my 48/64 Slot Servers.

 

 

All Layers connects to 1 DB from Fragnet.

 

 

Sometimes Procon Layers is shutting down and sometimes we have big laggs to administrate it.

 

 

Best regards,

Piranha16 & Breakmaster

Did you install the beta version (4.0.0.5+) or the stable 4.0.0.0? This issue is known with the beta version, certain threads are hanging. If you did install that beta version please revert to 4.0.0.0 until that issue is resolved.
Link to comment

Originally Posted by jking54*:

 

Did you install the beta version (4.0.0.5+) or the stable 4.0.0.0? This issue is known with the beta version, certain threads are hanging. If you did install that beta version please revert to 4.0.0.0 until that issue is resolved.

Did I miss something, what beta? ty
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Did I miss something, what beta? ty

NOOOO, i mentioned it to ONE person to attempt to fix their user problem, did not say for testers to install it. You will see the giant red "TESTERS ONLY" text above beta release posts. If you install the beta in its current state your layers will lock up, i'm still trying to find out why.
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.