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

 

question.

as a experiment i am revamping my proconrulz admin command script for our bf3 server

to do so i had to disable some admin commands for admins, like kill,ban and tban

 

now if i use !kill i get this > Your role Full Admin (Power Level 162) cannot use Kill Player.

not that i mind on the !killme i dont get it at all anymore

bcouse i already disabled !killme (what for some reason does not show up in the role seting either anymore)

entry RLE1 CDE17 it is

 

my question is, is there a way to surpress the messages at all ?

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

Originally Posted by ColColonCleaner*:

 

question.

as a experiment i am revamping my proconrulz admin command script for our bf3 server

to do so i had to disable some admin commands for admins, like kill,ban and tban

 

now if i use !kill i get this > Your role Full Admin (Power Level 162) cannot use Kill Player.

not that i mind on the !killme i dont get it at all anymore

bcouse i already disabled !killme (what for some reason does not show up in the role seting either anymore)

entry RLE1 CDE17 it is

 

my question is, is there a way to surpress the messages at all ?

In the command list you can straight up disable a command, or change the text needed to use it. Changing either should fix your issue.
Link to comment

Originally Posted by sixpax12*:

 

Is anyone else experiencing issues with AdKats restarting constantly ?

 

Restarts after this:

 

16:36:33 82] [statslogger]Error: Error in UpdateCurrentPlayerTable:

[16:36:33 82] Message: 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 '( 10, 'fsu99phd','', 'EA_DF942E6C236F52065AE2502F0C0AE35A', '32992835a7d632abcb6' at line 1

[16:36:33 82] Native: -2147467259

[16:36:33 82] Source: MySql.Data

[16:36:33 82] StackTrace: at MySql.Data.MySqlClient.MySqlStream.ReadPacket()

at MySql.Data.MySqlClient.NativeDriver.GetResult(Int3 2& 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.ExecuteNonQuer y()

at PRoConEvents.CChatGUIDStatsLogger.UpdateCurrentPla yerTable(List`1 lstPlayers)

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

Originally Posted by ColColonCleaner*:

 

Is anyone else experiencing issues with AdKats restarting constantly ?

 

Restarts after this:

 

16:36:33 82] [statslogger]Error: Error in UpdateCurrentPlayerTable:

[16:36:33 82] Message: 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 '( 10, 'fsu99phd','', 'EA_DF942E6C236F52065AE2502F0C0AE35A', '32992835a7d632abcb6' at line 1

[16:36:33 82] Native: -2147467259

[16:36:33 82] Source: MySql.Data

[16:36:33 82] StackTrace: at MySql.Data.MySqlClient.MySqlStream.ReadPacket()

at MySql.Data.MySqlClient.NativeDriver.GetResult(Int3 2& 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.ExecuteNonQuer y()

at PRoConEvents.CChatGUIDStatsLogger.UpdateCurrentPla yerTable(List`1 lstPlayers)

Does the restart still happen if you disable the stat logger plugin temporarily?
Link to comment

Originally Posted by sixpax12*:

 

also getting this ... not sure if helps just sharing.

 

 

[17:20:26 41] [AdKats] (SELECT

`record_id`,

`server_id`,

`command_type`,

`command_action`,

`command_numeric`,

`target_name`,

`target_id`,

`source_name`,

`source_id`,

`record_message`,

`record_time`

FROM

`adkats_records_main`

WHERE

`record_id` = `record_id`

AND

(

`command_type` = "9"

OR

`command_action` = "9"

)

AND

(

`target_id` = "4139"

 

)

AND

(

DATE_ADD(`record_time`, INTERVAL "1000" DAY) > UTC_TIMESTAMP()

)

ORDER BY

`record_id` DESC

LIMIT

"1")

ORDER BY `record_id` ASC

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

Originally Posted by ColColonCleaner*:

 

Yes. Restarts with TIMEOUT OR DEADLOCK warning ...

Try shutting down the stat logger plugin, then rebooting your procon layer. I have not seen an issue where AdKats crashes layers for a few years now, but i have seen a couple where stat logger can cause issues.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

also getting this ... not sure if helps just sharing.

 

 

[17:20:26 41] [AdKats] (SELECT

`record_id`,

`server_id`,

`command_type`,

`command_action`,

`command_numeric`,

`target_name`,

`target_id`,

`source_name`,

`source_id`,

`record_message`,

`record_time`

FROM

`adkats_records_main`

WHERE

`record_id` = `record_id`

AND

(

`command_type` = "9"

OR

`command_action` = "9"

)

AND

(

`target_id` = "4139"

 

)

AND

(

DATE_ADD(`record_time`, INTERVAL "1000" DAY) > UTC_TIMESTAMP()

)

ORDER BY

`record_id` DESC

LIMIT

"1")

ORDER BY `record_id` ASC

AdKats will retry selecting from the database if you hit a 'deadlock' issue.

 

It will print the failing query in the following cases:

Unable to connect to any of the specified MySQL hosts

Reading from the stream has failed.

Too many connections

Timeout expired

An existing connection was forcibly closed by the remote host

Unable to read data

Lock wait timeout exceeded

 

All of these are issues between the procon layer and the database or the database itself.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Is it required to leave the stats logger login enabled after initial database setup is complete ? Or should it typically be enabled all the time.

You only need to keep stat logger running if you (1) want players to use the !stats !rank etc commands in that plugin or (2) have some other system that uses the map/player stats from that plugin's tables. For AdKats to run it just needs the server entry in tbl_server, which only takes 1 round of stat logger to be added, and can be disabled after that.
Link to comment

Originally Posted by spatieman*:

 

In the command list you can straight up disable a command, or change the text needed to use it. Changing either should fix your issue.

thank u !!!

 

* Update *

My litle experiment did exactly what it needs to do

admins cant kill,kick,ban tban or rban fellow admins any more ^^

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

Originally Posted by sixpax12*:

 

I created a brand new test database, ... created a new virgin procon layer server and installed the two plugins via ftp ... connected stats logger, waited a round, ran the adkats setup script, connected adkats, ran the bfacp setup script, connected bfacp. all appears well for a few minutes then stats logger dies and adkats keep displaying various SELECT scripts ... at a loss on what is happening.

.

Disabled stats logger, restarted layer and adkats loads, then starts printing random SELECT ... read earlier the reasons for that but not sure how anything can be wrong with a small test database freshly corrected ... could be our provider needs to install the updated version of Procon you posted in another thread ?

 

Here is the statlogger error:

Code:

[09:16:15 77] [Statslogger]Error: Error in UpdateCurrentPlayerTable: 
[09:16:15 77] Message: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
[09:16:15 77] Native: -2147467259
[09:16:15 80] Source: MySql.Data
[09:16:15 80] StackTrace:    at MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   at MySql.Data.MySqlClient.MySqlConnection.Throw(Exception ex)
   at MySql.Data.MySqlClient.MySqlConnection.HandleTimeoutOrThreadAbort(Exception ex)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at PRoConEvents.CChatGUIDStatsLogger.UpdateCurrentPlayerTable(List`1 lstPlayers)
[09:16:15 80] InnerException: System.TimeoutException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at MySql.Data.Common.MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   --- End of inner exception stack trace ---
   at MySql.Data.Common.MyNetworkStream.HandleOrRethrowException(Exception e)
   at MySql.Data.Common.MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.TimedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.MySqlStream.LoadPacket()
   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)
[09:16:51 57] [Statslogger]Error: SQLQuery:
[09:16:51 57] Message: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
[09:16:51 57] Native: -2147467259
[09:16:51 59] Source: MySql.Data
[09:16:51 59] StackTrace:    at MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   at MySql.Data.MySqlClient.MySqlConnection.Throw(Exception ex)
   at MySql.Data.MySqlClient.MySqlConnection.HandleTimeoutOrThreadAbort(Exception ex)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
   at PRoConEvents.CChatGUIDStatsLogger.SQLquery(MySqlCommand selectQuery)
[09:16:51 59] InnerException: System.TimeoutException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at MySql.Data.Common.MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   --- End of inner exception stack trace ---
   at MySql.Data.Common.MyNetworkStream.HandleOrRethrowException(Exception e)
   at MySql.Data.Common.MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.TimedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.MySqlStream.LoadPacket()
   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)
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

thank u !!!

 

* Update *

My litle experiment did exactly what it needs to do

admins cant kill,kick,ban tban or rban fellow admins any more ^^

There was already a solution to this. Power level. Power level is calculated by the number of commands/admincommands you have access to. You can't kill/kick/ban/etc someone who has a higher power level than you.

 

Do you just want me to mod the script so you also can't act against someone with the SAME power level as you?

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I created a brand new test database, ... created a new virgin procon layer server and installed the two plugins via ftp ... connected stats logger, waited a round, ran the adkats setup script, connected adkats, ran the bfacp setup script, connected bfacp. all appears well for a few minutes then stats logger dies and adkats keep displaying various SELECT scripts ... at a loss on what is happening.

.

Disabled stats logger, restarted layer and adkats loads, then starts printing random SELECT ... read earlier the reasons for that but not sure how anything can be wrong with a small test database freshly corrected ... could be our provider needs to install the updated version of Procon you posted in another thread ?

 

Here is the statlogger error:

Code:

[09:16:15 77] [Statslogger]Error: Error in UpdateCurrentPlayerTable: 
[09:16:15 77] Message: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
[09:16:15 77] Native: -2147467259
[09:16:15 80] Source: MySql.Data
[09:16:15 80] StackTrace:    at MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   at MySql.Data.MySqlClient.MySqlConnection.Throw(Exception ex)
   at MySql.Data.MySqlClient.MySqlConnection.HandleTimeoutOrThreadAbort(Exception ex)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at PRoConEvents.CChatGUIDStatsLogger.UpdateCurrentPlayerTable(List`1 lstPlayers)
[09:16:15 80] InnerException: System.TimeoutException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at MySql.Data.Common.MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   --- End of inner exception stack trace ---
   at MySql.Data.Common.MyNetworkStream.HandleOrRethrowException(Exception e)
   at MySql.Data.Common.MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.TimedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.MySqlStream.LoadPacket()
   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)
[09:16:51 57] [Statslogger]Error: SQLQuery:
[09:16:51 57] Message: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
[09:16:51 57] Native: -2147467259
[09:16:51 59] Source: MySql.Data
[09:16:51 59] StackTrace:    at MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   at MySql.Data.MySqlClient.MySqlConnection.Throw(Exception ex)
   at MySql.Data.MySqlClient.MySqlConnection.HandleTimeoutOrThreadAbort(Exception ex)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
   at PRoConEvents.CChatGUIDStatsLogger.SQLquery(MySqlCommand selectQuery)
[09:16:51 59] InnerException: System.TimeoutException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at MySql.Data.Common.MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   --- End of inner exception stack trace ---
   at MySql.Data.Common.MyNetworkStream.HandleOrRethrowException(Exception e)
   at MySql.Data.Common.MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.TimedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count)
   at MySql.Data.MySqlClient.MySqlStream.LoadPacket()
   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)
Looks like something is screwy between your layer and your database, if you're able to run the setup script locally without problems. Try setting up a local instance of procon with the same plugins, connect it directly to the game server, and point it at the same database. If your local instance works on your normal computer, but not from the layer, you're closer to finding the problem.
Link to comment

Originally Posted by spatieman*:

 

There was already a solution to this. Power level. Power level is calculated by the number of commands/admincommands you have access to. You can't kill/kick/ban/etc someone who has a higher power level than you.

 

Do you just want me to mod the script so you also can't act against someone with the SAME power level as you?

nah, this is fine and perfect.

as sayd ,it was a experiment to see how far i could push adkats in combo with my lame proconrulz coding skills.

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

Originally Posted by sixpax12*:

 

Looks like something is screwy between your layer and your database, if you're able to run the setup script locally without problems. Try setting up a local instance of procon with the same plugins, connect it directly to the game server, and point it at the same database. If your local instance works on your normal computer, but not from the layer, you're closer to finding the problem.

this sounds above my skill level at the moment but will try ...
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by sixpax12*:

 

Looks like something is screwy between your layer and your database, if you're able to run the setup script locally without problems. Try setting up a local instance of procon with the same plugins, connect it directly to the game server, and point it at the same database. If your local instance works on your normal computer, but not from the layer, you're closer to finding the problem.

setup local conx and have adkats and stats logger running and connected to the database for about 20 minutes ... no stats logger errors but still some occasional adkats messages printingsome SELECT queries to insert stuff ...
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HARAFAT69*:

 

hi, i try to add script but get thisq error

9 erreurs trouvées lors de l'analyse.

 

Caractère inattendu. (near "$" at position 41)

Caractère inattendu. (near "$" at position 43)

Une expression était attendue. (near "IN" at position 16)

Mot clé non reconnu. (near "IN" at position 16)

Mot clé non reconnu. (near "EXISTS" at position 19)

Jeton inattendu. (near "addLogPlayerID" at position 26)

Jeton inattendu. (near "$" at position 41)

Jeton inattendu. (near "$" at position 43)

Un nouvel énoncé a été trouvé, mais il n'y a aucun délimiteur entre celui-ci et le précédent. (near "CREATE" at position 46)

Requête SQL : Documentation

 

DROP PROCEDURE IN EXISTS addLogPlayerID $ $ CREATE PROCEDURE addLogPlayerID() COMMENCER - Ajouter la colonne logPlayerID en toute sécurité IF NOT EXISTS( ( SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND COLUMN_NAME = ' logPlayerID ' ET TABLE_NAME = ' tbl_chatlog ') ) ALORS ALTER TABLE ` tbl_chatlog ` ADD COLUMN ` logPlayerID ` INT(10) DEFAULT UNSIGNED NULL

 

MySQL a répondu : Documentation

 

#1064 - Erreur de syntaxe près de 'IN EXISTS addLogPlayerID $ $

CREATE PROCEDURE addLogPlayerID() COMMENCER - Ajou' à la ligne 2

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

Originally Posted by xloneshadowx*:

 

Translation:

9 errors found during the analysis.

 

Unexpected character (near "$" at position 41)

Unexpected character (near "$" at position 43)

An expression was expected. (near "IN" at position 16)

Unrecognized keyword. (near "IN" at position 16)

Unrecognized keyword. (near "EXISTS" at position 19)

Unexpected token (near "addLogPlayerID" at position 26)

Unexpected token (near "$" at position 41)

Unexpected token (near "$" at position 43)

A new statement has been found, but there is no delimiter between it and the previous one. (near "CREATE" at position 46)

SQL query: Documentation

 

DROP PROCEDURE IN EXISTS addLogPlayerID $ $ CREATE PROCEDURE addLogPlayerID () BEGIN - Add column logPlayerID safely IF NOT EXISTS ((SELECT * FROM info_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE () AND COLUMN_NAME = 'logPlayerID' AND TABLE_NAME = 'tbl_chatlog' )) THEN ALTER TABLE `tbl_chatlog` ADD COLUMN `logPlayerID` INT (10) DEFAULT UNSIGNED NULL

 

MySQL replied: Documentation

 

# 1064 - Syntax error near 'IN EXISTS addLogPlayerID $ $

CREATE PROCEDURE addLogPlayerID () START - Add 'to line 2

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

Originally Posted by ColColonCleaner*:

 

hi, i try to add script but get thisq error

9 erreurs trouvées lors de l'analyse.

 

Caractère inattendu. (near "$" at position 41)

Caractère inattendu. (near "$" at position 43)

Une expression était attendue. (near "IN" at position 16)

Mot clé non reconnu. (near "IN" at position 16)

Mot clé non reconnu. (near "EXISTS" at position 19)

Jeton inattendu. (near "addLogPlayerID" at position 26)

Jeton inattendu. (near "$" at position 41)

Jeton inattendu. (near "$" at position 43)

Un nouvel énoncé a été trouvé, mais il n'y a aucun délimiteur entre celui-ci et le précédent. (near "CREATE" at position 46)

Requête SQL : Documentation

 

DROP PROCEDURE IN EXISTS addLogPlayerID $ $ CREATE PROCEDURE addLogPlayerID() COMMENCER - Ajouter la colonne logPlayerID en toute sécurité IF NOT EXISTS( ( SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND COLUMN_NAME = ' logPlayerID ' ET TABLE_NAME = ' tbl_chatlog ') ) ALORS ALTER TABLE ` tbl_chatlog ` ADD COLUMN ` logPlayerID ` INT(10) DEFAULT UNSIGNED NULL

 

MySQL a répondu : Documentation

 

#1064 - Erreur de syntaxe près de 'IN EXISTS addLogPlayerID $ $

CREATE PROCEDURE addLogPlayerID() COMMENCER - Ajou' à la ligne 2

"IN EXISTS" is incorrect syntax. Something translated this code into an invalid state. Please run the script exactly as-is without any changes.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

what can cause tbl_extendedroundstats to be empty ? have adkats feeding the statlogger and table was created but nothing is ever written to it.

extended round stats is actually an AdKats table. AdKats creates it and fills it. It was probably dumb to create it with the stat logger prefix tbl though.

 

There were some issues with roundID not being incremented so that could be the reason. You'll know you have the issue if the 'Server Round (Display)' setting in the server setting section always shows 1. That issue was patched so update to the latest test version and wait for a few rounds.

Link to comment

Originally Posted by sixpax12*:

 

extended round stats is actually an AdKats table. AdKats creates it and fills it. It was probably dumb to create it with the stat logger prefix tbl though.

 

There were some issues with roundID not being incremented so that could be the reason. You'll know you have the issue if the 'Server Round (Display)' setting in the server setting section always shows 1. That issue was patched so update to the latest test version and wait for a few rounds.

thank you colcolon have updated all servers so will wait for some rounds to complete ... i noticed the server round setting was set to zero instead of 1 after layer reboot ...

 

Edit: The table is populating with data across all servers !

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

Originally Posted by sixpax12*:

 

i have searched for this query and have not been able to locate it anywhere.

 

'Post Map Benefit/Detriment Statistics' - Whether to post statistics on which maps are most beneficial/detrimental to the population of the server. Queries to extract meaning from this information can be acquired in the main AdKats forum thread.

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

Originally Posted by sixpax12*:

 

i have searched for this query and have not been able to locate it anywhere.

 

'Post Map Benefit/Detriment Statistics' - Whether to post statistics on which maps are most beneficial/detrimental to the population of the server. Queries to extract meaning from this information can be acquired in the main AdKats forum thread.

checking in on where I can find said query from above.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

i have searched for this query and have not been able to locate it anywhere.

 

'Post Map Benefit/Detriment Statistics' - Whether to post statistics on which maps are most beneficial/detrimental to the population of the server. Queries to extract meaning from this information can be acquired in the main AdKats forum thread.

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.

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.