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

 

Sadly thats empty aswell :sad:

Code:

PB_SV_BanList 
PunkBuster Server: End of Ban List (0 of 0 displayed)
I do not modify PB bans in any way. After import of procon bans i call banlist.clear, which empties procon's banlist, and later saves the changes to your server's banlist.txt, but this action does not affect PB bans. Something else must have cleared your PB bans.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I may have been overlooking something here, however I have added the plugin to the BF4 folder of my procon. It does not seem to be appearing yet, and I am getting these messages. I suspect I have overlooked something simple, aha.

 

Your massive list of errors...

Which version are you attempting to install? For now install using the BF4 install instructions linked at the beginning of this thread.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I did read that it said to install like any other plugin. I'm new to this, and have only installed a couple plugins so far, most were just one or two files that went into the plugins/bf4 folder. the file with bf3 in its name is making me wonder this

 

do all of the files in the adcats zip go into that folder, or are there some that go into other areas?

 

thank you

You need to install using the BF4 install instructions linked at the beginning of this thread, the one in massive red letters. There is not an official version released for BF4 yet, so that is the beta until a stable version is released.
Link to comment

Originally Posted by Morgedoo*:

 

Which version are you attempting to install? For now install using the BF4 install instructions linked at the beginning of this thread.

Sorry about the errors, I thought the more that were there the more information you would get :P

I am trying to install version 3.5.2.0 from this page https://github.com/ColColonCleaner/AdKats

I believe I have followed the instructions correctly, even if the plugin wasn't working etc. Should it not show up in the plugin list regardless of the dependencies required?

 

Edit: If it would help, I can talk on your TeamSpeak, if you want clearer explanation etc.

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

Originally Posted by ColColonCleaner*:

 

Sorry about the errors, I thought the more that were there the more information you would get :P

I am trying to install version 3.5.2.0 from this page https://github.com/ColColonCleaner/AdKats

I believe I have followed the instructions correctly, even if the plugin wasn't working etc. Should it not show up in the plugin list regardless of the dependencies required?

 

Edit: If it would help, I can talk on your TeamSpeak, if you want clearer explanation etc.

Please use the correct link posted in the guide: myrcon.net/...advanced-in-game-admin-and-ban-enforcer-adkats#entry36517
Link to comment

Originally Posted by XpKiller*:

 

Already in progress. Not much has changed between the versions (at least for what AdKats needs), so it should be a rather painless merge.

 

However, he did not update his chatlog table to include player ID. We need this for AdKats webadmin to function, as it will be fetching chat logs by player ID (if a player changes their name you currently lose all reference to previous chat logs). So for the webadmin to function I need to add that column to his table, and use AdKats to store chat logs with player IDs, just like the beta version is right now.

 

AdKats will automatically add that column to the table on first log, and chat will be logged to the table the same way his logger does, except player IDs will be logged as well. So chat logging through his plugin will be disabled, but his tables will still be used.

damn

i forgot it.

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

Originally Posted by ColColonCleaner*:

 

Alright guys, test version that should work with both the BF3 and new Universal versions of XpKiller's Stat logger, on both BF3 and BF4. Let me know how it operates.

 

(Currently 3.6.9.2) https://raw.github.com/ColColonClean...test/AdKats.cs

 

Note: It will automatically disable chat logging through stat logger, and will post chatlogs using it's own internal systems per my previous comments about this issue. Player ID is needed in chat logs for the BF4 version of webadmin.

 

If you get an error about "GameID" not having a default value, I know where it's coming from. It had stopped causing issues for me, but if you get it let me know and i'll give the fix.

Link to comment

Originally Posted by tonnic*:

 

Alright guys, test version that should work with both the BF3 and new Universal versions of XpKiller's Stat logger, on both BF3 and BF4. Let me know how it operates.

 

(Currently 3.6.9.2) https://raw.github.com/ColColonClean...test/AdKats.cs

 

Note: It will automatically disable chat logging through stat logger, and will post chatlogs using it's own internal systems per my previous comments about this issue. Player ID is needed in chat logs for the BF4 version of webadmin.

So we don't need to run the script from the beginning thread anymore? It can be run as is on the normal logger database?
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

So we don't need to run the script from the beginning thread anymore? It can be run as is on the normal logger database?

Just make sure the AdKats tables and stat logger tables are in your database and you're fine.

 

If you are setting up a new database:

 

Install and run the universal version of stat logger: myrcon.net/.../stats-webpage-for-xpkillers-stats-logger-plugin

Run the default AdKats SQL script: https://raw.github.com/ColColonClean...ter/adkats.sql

Install and run the test version of AdKats: https://raw.github.com/ColColonClean...test/AdKats.cs

Link to comment

Originally Posted by Mavy*:

 

Getting some contradicting info in the console:

Code:

[10:19:52 41] [AdKats] Initializing AdKats 3.6.9.3 components.
[10:19:52 41] [AdKats] SUCCESS: Server IP is 85.236.109.76:19777!
[10:19:52 44] [AdKats] Attempting database connection. Attempt 1 of 5.
[10:19:52 44] [AdKats] SUCCESS: Database connection open.
[10:19:52 51] [AdKats] WARNING: Updating your records table to include source ID. This may take some time if you have many records! Be patient!
[10:19:53 59] [AdKats] ERROR: Unable to add source_id column to records table.
[10:19:53 62] [AdKats] ERROR: Database structure errors detected, not set up for AdKats use.
[10:19:53 63] [AdKats] Attempting database connection. Attempt 1 of 5.
[10:19:53 63] [AdKats] SUCCESS: Database connection open.
[10:19:53 74] [AdKats] SUCCESS: Database confirmed functional for AdKats use.
[10:19:53 90] [AdKats] SUCCESS: Database Server Info Fetched. Server ID is 1!
[10:19:55 00] [AdKats] Enabled! Version: 3.6.9.3
[10:19:55 00] [AdKats] WARNING: Preparing to queue procon bans for import. Please wait.
What table should i be looking at to pinpoint this?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mavy*:

 

The column exists and is NULL for all existing records. Structure dump is below.

Code:

CREATE TABLE IF NOT EXISTS `adkats_records` (
  `record_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `server_id` smallint(5) unsigned NOT NULL,
  `command_type` varchar(45) NOT NULL DEFAULT 'DefaultCommand',
  `command_action` varchar(45) NOT NULL DEFAULT 'DefaultAction',
  `command_numeric` int(11) NOT NULL DEFAULT '0',
  `target_name` varchar(45) NOT NULL DEFAULT 'NoTarget',
  `target_id` int(11) unsigned DEFAULT NULL,
  `source_name` varchar(45) NOT NULL DEFAULT 'NoNameAdmin',
  `source_id` int(11) unsigned DEFAULT NULL,
  `record_message` varchar(100) NOT NULL DEFAULT 'NoMessage',
  `record_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `adkats_read` enum('Y','N') NOT NULL DEFAULT 'N',
  `adkats_web` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`record_id`),
  KEY `source_id` (`source_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='AdKats Records' AUTO_INCREMENT=1138 ;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by jking54*:

 

Test version updated to 3.6.9.3. Fixed some obscure errors.

 

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

Is AdKats working now with the updated ...* plugin?

 

nvm, I see the post above, so business as usual with the myrcon.net/...advanced-in-game-admin-and-ban-enforcer-adkats#entry36517?

 

I'm still showing 3.5.1.3 is this normal?

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

Originally Posted by ColColonCleaner*:

 

The column exists and is NULL for all existing records. Structure dump is below.

Code:

CREATE TABLE IF NOT EXISTS `adkats_records` (
  `record_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `server_id` smallint(5) unsigned NOT NULL,
  `command_type` varchar(45) NOT NULL DEFAULT 'DefaultCommand',
  `command_action` varchar(45) NOT NULL DEFAULT 'DefaultAction',
  `command_numeric` int(11) NOT NULL DEFAULT '0',
  `target_name` varchar(45) NOT NULL DEFAULT 'NoTarget',
  `target_id` int(11) unsigned DEFAULT NULL,
  `source_name` varchar(45) NOT NULL DEFAULT 'NoNameAdmin',
  `source_id` int(11) unsigned DEFAULT NULL,
  `record_message` varchar(100) NOT NULL DEFAULT 'NoMessage',
  `record_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `adkats_read` enum('Y','N') NOT NULL DEFAULT 'N',
  `adkats_web` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`record_id`),
  KEY `source_id` (`source_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='AdKats Records' AUTO_INCREMENT=1138 ;
It appears that it successfully added in the column, but the foreign key and assignment wasn't done. I'll add double checks for those.

 

For now you can run this to get all of your previous source IDs populated:

Code:

UPDATE 
	`adkats_records`
INNER JOIN 
	`tbl_playerdata`
ON 
	`adkats_records`.`source_name` = `tbl_playerdata`.`SoldierName` 
SET 
	`adkats_records`.`source_id` = `tbl_playerdata`.`PlayerID`
WHERE 
	`tbl_playerdata`.`SoldierName` <> 'AutoAdmin' 
AND 
	`tbl_playerdata`.`SoldierName` <> 'AdKats' 
AND 
	`tbl_playerdata`.`SoldierName` <> 'Server' 
AND 
	`tbl_playerdata`.`SoldierName` <> 'BanEnforcer'
AND 
	`adkats_records`.`source_id` IS NULL;
Link to comment

Originally Posted by tonnic*:

 

Not sure what to do here:

 

[18:20:56 57] [AdKats] Attempting database connection. Attempt 1 of 5.

[18:20:56 57] [AdKats] SUCCESS: Database connection open.

[18:20:56 58] [AdKats] WARNING: Updating your records table to include source ID. This may take some time if you have many records! Be patient!

[18:20:56 58] [AdKats] ERROR: Unable to add source_id column to records table.

[18:20:56 59] [AdKats] ERROR: Database structure errors detected, not set up for AdKats use.

 

I ran the script and followed your instructions, but I'm sure that based on this, I'm missing something.

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

Originally Posted by ColColonCleaner*:

 

Not sure what to do here:

 

[18:20:56 57] [AdKats] Attempting database connection. Attempt 1 of 5.

[18:20:56 57] [AdKats] SUCCESS: Database connection open.

[18:20:56 58] [AdKats] WARNING: Updating your records table to include source ID. This may take some time if you have many records! Be patient!

[18:20:56 58] [AdKats] ERROR: Unable to add source_id column to records table.

[18:20:56 59] [AdKats] ERROR: Database structure errors detected, not set up for AdKats use.

 

I ran the script and followed your instructions, but I'm sure that based on this, I'm missing something.

One other person had this issue so i'm looking into it. Did it shut down AdKats after this? It should have.
Link to comment

Originally Posted by Mavy*:

 

It appears that it successfully added in the column, but the foreign key and assignment wasn't done. I'll add double checks for those.

 

For now you can run this to get all of your previous source IDs populated:

Ran that and it updated 170 records out of 1500. Keep in mind that i am not seeing any errors in the plugin logs.

The plugin also seems to work ok. If you want/prefer i can start on a new database to see the effects on that.

 

EDIT: Had a coffee and realized the query did work ok. Most of the records are whitelistings so the are supposed to be NULL.

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

Originally Posted by ColColonCleaner*:

 

Ran that and it updated 170 records out of 1500. Keep in mind that i am not seeing any errors in the plugin logs.

The plugin also seems to work ok. If you want/prefer i can start on a new database to see the effects on that.

Aha! My logic is detecting errors when there aren't any. Fixing and uploading.
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.