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

 

Hello! When I call server rules an error appears:

EXCEPTION-7010-D-b__a00-RulePrinter11: [Error while printing server rules][system.InvalidOperationException: Sequence contains no matching element

at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)

at PRoConEvents.AdKats.c__DisplayClassa0f.b__a00()]

 

The Server is New.

Which game is this for?
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Hello,

 

Is there anyway that we can get the challenge reward system set up before you leave this project?

 

Also, as a suggestion, is there a way you could add a setting so that we can regulate when the challenge system begins. For example, I would like it show that we can set the minimum number of players who have to be in the server before the challenge system begins. I ask this because players are getting easy challenge completions when the server has only 3 or less players Be nice if the challenge system was set up so that it would not run unless there were at least 4 players in the server or a setting that allowed the admins to set the number of players who had to be in the server before the challenge system began.

I'll be finishing it up this week.
Link to comment

Originally Posted by Esccape*:

 

The server has 50 slots. 48 players and 2 commander. It doesn't matter how many are on it. The mistake always comes.

I testet version 7.0.1.0 and 7.0.1.153. The error is the same.

Server:

http://battlelog.battlefield.com/bf4...d-b9bb20422521

 

Version: 7.0.1.153

EXCEPTION-701153-0,39-D-b__a56-RulePrinter13: [Error while printing server rules][system.InvalidOperationException: Sequence contains no matching element

at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)

at PRoConEvents.AdKats.c__DisplayClassa65.b__a56()]

 

Version: 7.0.1.0

EXCEPTION-7010-D-b__a00-RulePrinter11: [Error while printing server rules][system.InvalidOperationException: Sequence contains no matching element

at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)

at PRoConEvents.AdKats.c__DisplayClassa0f.b__a00()]

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

Originally Posted by ColColonCleaner*:

 

The server has 50 slots. 48 players and 2 commander. It doesn't matter how many are on it. The mistake always comes.

I testet version 7.0.1.0 and 7.0.1.153. The error is the same.

Server:

http://battlelog.battlefield.com/bf4...d-b9bb20422521

 

Version: 7.0.1.153

EXCEPTION-701153-0,39-D-b__a56-RulePrinter13: [Error while printing server rules][system.InvalidOperationException: Sequence contains no matching element

at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)

at PRoConEvents.AdKats.c__DisplayClassa65.b__a56()]

 

Version: 7.0.1.0

EXCEPTION-7010-D-b__a00-RulePrinter11: [Error while printing server rules][system.InvalidOperationException: Sequence contains no matching element

at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)

at PRoConEvents.AdKats.c__DisplayClassa0f.b__a00()]

Try the latest version.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Hello,

 

Is there anyway that we can get the challenge reward system set up before you leave this project?

 

Also, as a suggestion, is there a way you could add a setting so that we can regulate when the challenge system begins. For example, I would like it show that we can set the minimum number of players who have to be in the server before the challenge system begins. I ask this because players are getting easy challenge completions when the server has only 3 or less players Be nice if the challenge system was set up so that it would not run unless there were at least 4 players in the server or a setting that allowed the admins to set the number of players who had to be in the server before the challenge system began.

Rewards are added, please test.
Link to comment

Originally Posted by Timm*:

 

Hello.

 

Today Adkats stoped working, and i got this error

 

Code:

[22:48:44 73] [AdKats] INFO: AdKats challenge reward table not found. Attempting to add.

[22:48:44 86] [AdKats] CREATE TABLE IF NOT EXISTS `adkats_challenge_reward` (

                      `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,

                      `ServerID` smallint(5) unsigned NOT NULL,

                      `Tier` int(10) unsigned NOT NULL,

                      `Reward` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'None',

                      `Enabled` int(1) unsigned NOT NULL DEFAULT 0,

                      `DurationMinutes` int(10) unsigned NOT NULL DEFAULT 60, -- 4294967295

                      `CreateTime` datetime NOT NULL,

                      `ModifyTime` datetime NOT NULL,

                      PRIMARY KEY (`ID`),

                      UNIQUE (`ServerID`, `Tier`, `Reward`),

                      KEY `adkats_challenge_reward_idx_CreateTime` (`CreateTime`),

                      KEY `adkats_challenge_reward_idx_ModifyTime` (`ModifyTime`),

                      CONSTRAINT `adkats_challenge_reward_fk_ServerID` FOREIGN KEY (`ServerID`) REFERENCES `tbl_server` (`ServerID`) ON DELETE NO ACTION ON UPDATE CASCADE

                    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='AdKats - Challenge Rewards'

[22:48:44 86] [AdKats] ERROR-701158: [Non-Query failed. [Adding challenge reward table]: MySql.Data.MySqlClient.MySqlException: Error writing file './xl_stat_bf4/adkats_challenge_reward.frm' (Errcode: 28)

   ? PRoConEvents.AdKats.SafeExecuteNonQuery(MySqlCommand command)

   ? PRoConEvents.AdKats.SendNonQuery(String desc, String nonQuery, Boolean verbose)]

[22:48:45 03] [AdKats] ALTER TABLE adkats_settings MODIFY setting_value varchar(10000)

[22:48:48 20] [AdKats] ERROR-701158: [AdKats tables not present or valid in the database. Have you run the AdKats database setup script yet_ If so, are your tables InnoDB_]

[22:48:48 23] [AdKats] INFO: Shutting down AdKats.

[22:48:50 28] [AdKats] SUCCESS: Database timing confirmed.

[22:48:53 83] [AdKats] AdKats 7.0.1.158 Disabled! =(
I do not change anything, now i must run Adkats database setup script?
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Hello.

 

Today Adkats stoped working, and i got this error

 

Code:

[22:48:44 73] [AdKats] INFO: AdKats challenge reward table not found. Attempting to add.

[22:48:44 86] [AdKats] CREATE TABLE IF NOT EXISTS `adkats_challenge_reward` (

                      `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,

                      `ServerID` smallint(5) unsigned NOT NULL,

                      `Tier` int(10) unsigned NOT NULL,

                      `Reward` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'None',

                      `Enabled` int(1) unsigned NOT NULL DEFAULT 0,

                      `DurationMinutes` int(10) unsigned NOT NULL DEFAULT 60, -- 4294967295

                      `CreateTime` datetime NOT NULL,

                      `ModifyTime` datetime NOT NULL,

                      PRIMARY KEY (`ID`),

                      UNIQUE (`ServerID`, `Tier`, `Reward`),

                      KEY `adkats_challenge_reward_idx_CreateTime` (`CreateTime`),

                      KEY `adkats_challenge_reward_idx_ModifyTime` (`ModifyTime`),

                      CONSTRAINT `adkats_challenge_reward_fk_ServerID` FOREIGN KEY (`ServerID`) REFERENCES `tbl_server` (`ServerID`) ON DELETE NO ACTION ON UPDATE CASCADE

                    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='AdKats - Challenge Rewards'

[22:48:44 86] [AdKats] ERROR-701158: [Non-Query failed. [Adding challenge reward table]: MySql.Data.MySqlClient.MySqlException: Error writing file './xl_stat_bf4/adkats_challenge_reward.frm' (Errcode: 28)

   ? PRoConEvents.AdKats.SafeExecuteNonQuery(MySqlCommand command)

   ? PRoConEvents.AdKats.SendNonQuery(String desc, String nonQuery, Boolean verbose)]

[22:48:45 03] [AdKats] ALTER TABLE adkats_settings MODIFY setting_value varchar(10000)

[22:48:48 20] [AdKats] ERROR-701158: [AdKats tables not present or valid in the database. Have you run the AdKats database setup script yet_ If so, are your tables InnoDB_]

[22:48:48 23] [AdKats] INFO: Shutting down AdKats.

[22:48:50 28] [AdKats] SUCCESS: Database timing confirmed.

[22:48:53 83] [AdKats] AdKats 7.0.1.158 Disabled! =(
I do not change anything, now i must run Adkats database setup script?
Error code 28 for MySQL is the OS error for 'No space left on device'.

Please confirm your database's disk drive is not full.

Once the drive space issue is fixed you should be able to start AdKats normally.

Link to comment

Originally Posted by SmackDown*:

 

Hello,

 

Thank you so much for completing the reward section. It appears to be working for me!

 

I have multiple challenges running at once and I have a question about the reward section.

 

Tier Level : What does this mean? If I have 5 challenges running, Do I have to create a separate reward for each challenge and that I set the tier to match the challenge number? Not sure what this means exactly.

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

Originally Posted by ColColonCleaner*:

 

Hello,

 

Thank you so much for completing the reward section. It appears to be working for me!

 

I have multiple challenges running at once and I have a question about the reward section.

 

Tier Level : What does this mean? If I have 5 challenges running, Do I have to create a separate reward for each challenge and that I set the tier to match the challenge number? Not sure what this means exactly.

Tier basically means difficulty. Set all your easy challenges at tier 1, slightly harder at tier 2, etc. All the challenges of a specific tier get the same rewards when completed.

 

EDIT: For automatic challenge assignment each round it looks for tier 1 challenges with 1 round duration.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Added a minimum player setting to the challenge manager, defaulting to 0 players.

Players can still select challenges during low population, but the challenges will not progress until the player count is reached.

Also, progress on a challenge will stop if the server falls below the minimum player count while a challenge is running, it's checked continuously while the challenges are running.

Players are notified of low population status on their challenge when they issue the /ch or /ch p commands, an extra text line is appended to the end.

Link to comment

Originally Posted by SmackDown*:

 

Added a 24 hour timeout to the command lock challenge reward. Any other rewards on challenges will still activate but the command lock reward can only activate once every 24 hours per player.

Hello,

 

I am trying to set up the challenge system with three different reward tiers. Tier 1 would get 24 hour reserve slot, tier 2 would get 7 day reserve slot and tier 3 would get a 14 day reserve slot. Is this possible with the current challenge system. I thought it was and it seemed to be working until I updated to adkats version 7.0.1.186. Now when I try to run a challenge, I get this error code: [06:35:16 40] [AdKats] ERROR-701186: [Round state was invalid when assigning entry.]

 

Any suggestions?

 

Also, I don't understand how to use "Challenge Command Lock Timeout Hours" and "Use Different Round Rule for each player".

 

Thank you for your help!

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

Originally Posted by ColColonCleaner*:

 

Hello,

 

I am trying to set up the challenge system with three different reward tiers. Tier 1 would get 24 hour reserve slot, tier 2 would get 7 day reserve slot and tier 3 would get a 14 day reserve slot. Is this possible with the current challenge system. I thought it was and it seemed to be working until I updated to adkats version 7.0.1.186. Now when I try to run a challenge, I get this error code: [06:35:16 40] [AdKats] ERROR-701186: [Round state was invalid when assigning entry.]

 

Any suggestions?

 

Also, I don't understand how to use "Challenge Command Lock Timeout Hours" and "Use Different Round Rule for each player".

 

Thank you for your help!

I will be writing up all the docs when i'm done, i have most of them written already.

 

Yes you can set up your tiers like that. Just convert the days you want to minutes and put that in the reward minutes box for reserved slot at each tier you create. There are 1440 minutes in a day.

 

At what point are you getting that error? It just means you're trying to start a challenge when a round is not active. Are you playing in the server when you try to assign the challenge to yourself?

 

Command lock timeout is how often a player can receive the command lock reward.

 

Use different round rule for each player means instead of selecting 1 round rule (random selection of tier 1 rules having 1 round duration) for the entire server, instead it will do the randomness on each player. So you won't run into the case where the whole server is told to use shotguns for example. People didn't like that. So i added an option for it to randomize for each player instead of the whole server.

Link to comment

Originally Posted by SmackDown*:

 

Hello,

 

I am having trouble getting the challenges to work now since the latest update to Adkats. I have deleted all of my challenges and just created on tier 1 challenge. When I go into the server, it will list the challenge if I type !ch list. But it will not activate, and I see the below Procon error: Round state was invalid when assigning entry.

 

Here are my settings:

 

Challenge Settings.jpg

 

Any Ideas?

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

Originally Posted by ColColonCleaner*:

 

Hello,

 

I am having trouble getting the challenges to work now since the latest update to Adkats. I have deleted all of my challenges and just created on tier 1 challenge. When I go into the server, it will list the challenge if I type !ch list. But it will not activate, and I see the below Procon error: Round state was invalid when assigning entry.

 

Here are my settings:

 

Challenge Settings.jpg

 

Any Ideas?

Strange. If you joined the server and spawned it should have transitioned the state to playing. There are three round states, loaded, playing, and ended. The challenges (since they can be round based) can only activate in 'playing' state. After a level is loaded it's in loaded state, if a player spawns it should transition everything to playing state.

 

I'll take a look tonight to see if there are any cases where this might trip up and stop transitioning properly.

Link to comment

Originally Posted by SmackDown*:

 

Hello,

 

I think I fixed my issue. When I reported my issue to you, I had entered the game, but was in the main deploy page and had not deployed into the map. So while in the deploy page, I was entering the challenge code to select a challenge when I got those above mention errors. When entering the server, the challenge system worked and the error code stopped.

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

Originally Posted by ColColonCleaner*:

 

Hello,

 

I think I fixed my issue. When I reported my issue to you, I had entered the game, but was in the main deploy page and had not deployed into the map. So while in the deploy page, I was entering the challenge code to select a challenge when I got those above mention errors. When entering the server, the challenge system worked and the error code stopped.

Alright great. I'll make that message spit back at the player that they need to spawn in addition to throwing an error. Only one player needs to spawn to transition the system to playing state each round, the rest can operate without spawning. Thanks for the testing.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

How can I do to transfer the adkats configuration to another game server?

Connect your new game server's layer to the same database that your old server is on and keep it that way.

In the 'setting import' field in section 1, type the server ID of your old server. All settings from that server will be imported to this one. It will overwrite any settings you currently have modified on the new server.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

AdKats 7.5.0.0 (21-SEP-2018)

 

Bugfix/enhancement release for AdKats 7. Been tested for some time now but keep me posted with anything strange. Cheers.

 

If you are running 5.2.0.0+, your layer will automatically update and only require a reboot to run this version.

If not, update one layer, run it to complete startup, then repeat on your other layers.

 

https://sourceforge.net/projects/adk...atest/download

 

Enhancements

 

  • Added the C32 challenge system. This is probably the biggest feature added to AdKats since the ban enforcer.
  • Added monitoring of players who join the server while AdKats' first player list is still being processed.
  • Added option to only fire ticket difference based nukes while in high population.
  • Added option to auto-kick players who first joined the server after a certain date. This is used as an anti-cheat measure if a large number of hackers are invading your server at once. Allows regular players to stay in the server while brand new players are auto-kicked.
  • Added lenient reassignment option to the team power monitor. Allows players to be reassigned to the weak team even if they currently have a map advantage. A percentage difference setting is available to tweak this, defaulting to 30%.
  • Updated assorted console messages to be more descriptive.
  • Added purge of adkats statistics once they are 90 days old for performance reasons.
  • Added colors to many of the AdKats chat messages so they are more easily distinguished.
  • A player requesting to assist when they are already queued will now refresh the timeout back to 5 minutes on that auto-assist.
  • Added player clan tag history display to the pinfo command.
  • Added SWAP functionality to the assist command. If two players, one on each team, request to assist, it will swap them both regardless of team state.
  • Added AdKats/procon running time to exception messages.
  • Updated multi-threading system to be more easily controlled and efficient.

New Commands

 

  • All the new challenge commands. Please look at the docs for those.

Changes

 

  • Disabled and hid all metabans configurations/actions since that service is offline permanently.
  • Added a limit of 1 ticket based nuke per team per round.
  • Added force kill command to the power level restriction list.
  • Changed all references of chat commands in messages to (exclaim)command, e.g. !command. All prefixes are still accepted, this is only a display change.
  • Special player statuses like reserved slot, spectator slots, anti-cheat whitelisting, etc, can now be issued again even if the target player already has a matching status on them. The new status duration will overwrite the existing status duration.
  • Modified the winning team prediction to be unsure if both estimates are less than 1 minute apart.
  • Added a maximum duration of 30 seconds to the countdown command.
  • Increased command timeout for player_kick from 30 to 45 seconds.
  • Players who are command locked are now whitelisted from loadout enforcement for the duration of the lock.

Bugs Fixed

 

  • Fixed a bug where weapons might be detected as BF3 on other games.
  • Fixed an issue where auto-nukes with a duration still active when a round ends would keep posting messages and issuing kill commands.
  • Added an automatic fix for the command ID mismatch issue caused by old versions of the BFAdminCP.
  • Fixed some cases where startup time could be extended unnecessarily by some old list invalidation logic.
  • Fixed some ban message codes from the LIVE anti-cheat system to have proper syntax.
  • Reduced some unnecessary spam from the assist command.
  • Fixed some issues with player name history display in the pinfo command.
  • Fixed some state management issues around MULTIBalancer's unswitcher.
  • Cleaned up some unused code.

Upgrade SQL from 4.0.0.0 - Current

 

No manual upgrade SQL required.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.