Jump to content

Chat, GUID, Stats and Mapstats Logger[3.0.2.2] 01.02.


ImportBot

Recommended Posts

Originally Posted by haclevan*:

 

Without any complete Errormessage i cant help you.

 

 

ATM i found a bug with top10 weapons fixing it now

Sry - thats the only message ( Problemsignatur 09: System.Data.Odbc.OdbcException)

How can I find more details to copy them into the forum?

Could this be a problem because of the new map names etc?

Pls, tell me how to give you more details. Thx :smile:
* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 837
  • Created
  • Last Reply

Top Posters In This Topic

  • ImportBot

    838

Originally Posted by haclevan*:

 

Enable plugin logging in procon look in the logfiles

Thx!

OK - after this error procon crash:

 

[19:10:48] INSERT INTO tbl_mapstats (TimeMapLoad, TimeRoundStarted, TimeRoundEnd, MapName, Gamemode, Roundcount, NumberofRounds, MinPlayers, AvgPlayers, MaxPlayers, PlayersJoinedServer, PlayersLeftServer)

VALUES (_,_,_,_,_,_,_,_,_,_,_,_)

[19:10:48] Error: System.Data.Odbc.OdbcException: ERROR [42S22] [MySQL][ODBC 5.1 Driver][mysqld-5.1.51-community]Unknown column 'M16K_kills' in 'field list'

bei System.Data.Odbc.OdbcConnection.HandleError(OdbcHa ndle hrHandle, RetCode retcode)

bei System.Data.Odbc.OdbcCommand.ExecuteReaderObject(C ommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)

bei System.Data.Odbc.OdbcCommand.ExecuteReaderObject(C ommandBehavior behavior, String method, Boolean needReader)

bei System.Data.Odbc.OdbcCommand.ExecuteNonQuery()

bei PRoConEvents.CChatGUIDStatsLogger.StartStreaming()

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

Originally Posted by XpKiller*:

 

Enable plugin logging in procon look in the logfiles

Thx!

OK - after this error procon crash:

 

[19:10:48] INSERT INTO tbl_mapstats (TimeMapLoad, TimeRoundStarted, TimeRoundEnd, MapName, Gamemode, Roundcount, NumberofRounds, MinPlayers, AvgPlayers, MaxPlayers, PlayersJoinedServer, PlayersLeftServer)

VALUES (_,_,_,_,_,_,_,_,_,_,_,_)

[19:10:48] Error: System.Data.Odbc.OdbcException: ERROR [42S22] [MySQL][ODBC 5.1 Driver][mysqld-5.1.51-community]Unknown column 'M16K_kills' in 'field list'

bei System.Data.Odbc.OdbcConnection.HandleError(OdbcHa ndle hrHandle, RetCode retcode)

bei System.Data.Odbc.OdbcCommand.ExecuteReaderObject(C ommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)

bei System.Data.Odbc.OdbcCommand.ExecuteReaderObject(C ommandBehavior behavior, String method, Boolean needReader)

bei System.Data.Odbc.OdbcCommand.ExecuteNonQuery()

bei PRoConEvents.CChatGUIDStatsLogger.StartStreaming()

Apply this to you database:

Code:

ALTER TABLE `tbl_weaponstats` ENGINE = MyISAM ;
ALTER TABLE `tbl_weaponstats` 
 ADD COLUMN `M16K_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M16_deaths` , 
 ADD COLUMN `M16K_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M16K_kills` , 
 ADD COLUMN `M16K_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M16K_hs` , 
 ADD COLUMN `UMPK_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `UMP_deaths` , 
 ADD COLUMN `UMPK_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `UMPK_kills` , 
 ADD COLUMN `UMPK_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `UMPK_hs` , 
 ADD COLUMN `MG3K_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `MG3_deaths` , 
 ADD COLUMN `MG3K_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `MG3K_kills` , 
 ADD COLUMN `MG3K_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `MG3K_hs` , 
 ADD COLUMN `M95K_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M95_deaths` , 
 ADD COLUMN `M95K_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M95K_kills` , 
 ADD COLUMN `M95K_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M95K_hs` , 
 ADD COLUMN `MP7_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0 ,
 ADD COLUMN `MP7_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0 ,
 ADD COLUMN `MP7_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0 ;
ALTER TABLE `tbl_weaponstats` ENGINE = InnoDB ;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Talon97-ca*:

 

I ran into this error: (windows would bring up an error, but procon would continue to run)

 

Code:

[13:43:17] Error: System.Data.Odbc.OdbcException: ERROR [HY000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.52-community]Data too long for column 'MapName' at row 1
   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
   at System.Data.Odbc.OdbcCommand.ExecuteNonQuery()
   at PRoConEvents.CChatGUIDStatsLogger.StartStreaming()
[13:44:05] TrueBalancer:  Still no data or GameMode not supported: IsqdmI
I believe this to be the culprit: "levels/bc1_harvest_day_sdm"

The length is 26 characters, thus throwing the mySQL error.

 

 

This error has only happened since the R26 patch, so it's just the new map names being a bit longer.

 

Solution:

 

I changed my table to reflect a larger value. Instead of 'MapName' being of length 25, it is now 32.

If I continue to have problems I'll report back.

 

Use something similar to this to alter tables:

Code:

ALTER TABLE `sql_db_name`.`tbl_mapstats` CHANGE COLUMN `MapName` `MapName` VARCHAR(32) NULL DEFAULT NULL  ;
'sql_db_name' being your db name.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by XpKiller*:

 

I ran into this error: (windows would bring up an error, but procon would continue to run)

 

Code:

[13:43:17] Error: System.Data.Odbc.OdbcException: ERROR [HY000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.52-community]Data too long for column 'MapName' at row 1
   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
   at System.Data.Odbc.OdbcCommand.ExecuteNonQuery()
   at PRoConEvents.CChatGUIDStatsLogger.StartStreaming()
[13:44:05] TrueBalancer:  Still no data or GameMode not supported: IsqdmI
I believe this to be the culprit: "levels/bc1_harvest_day_sdm"

The length is 26 characters, thus throwing the mySQL error.

 

 

This error has only happened since the R26 patch, so it's just the new map names being a bit longer.

 

Solution:

 

I changed my table to reflect a larger value. Instead of 'MapName' being of length 25, it is now 32.

If I continue to have problems I'll report back.

 

Use this to alter tables:

Code:

ALTER TABLE `bfbc2_stats`.`tbl_mapstats` CHANGE COLUMN `MapName` `MapName` VARCHAR(31) NULL DEFAULT NULL  ;
Good Find will change that in next release.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Talon97-ca*:

 

Thanks, hopefully it helps. It may not ever show up for folks using remote mySQL databases.

And could explain why SOME stats may never even record due to the error. (I'm just running a local copy for speed/simplicity)

 

Glad to be of help, I enjoy using the stats plugin. Thank you for your hard work and time/effort.

 

Chris.

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

Originally Posted by EBassie*:

 

I still got the problem that scores are not counted and / or updated :sad:

 

I thought it was maybe because of wrong table conversion.

So I just let the script create a new table setup in a new DB, starting from scratch, but again most players don't get a score.

 

stats-error.jpg[/attachment:11xslzng]

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

Originally Posted by EBassie*:

 

My local Test-Mysql = Server version: 5.1.41

My Online MySQL = Server version: 5.1.35

 

Never had any problems with it, until version 3 and the last database conversion.

 

BTW: Seems updating of EA_GUID is bugged. :sad:

 

Sorry for the trouble....

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

Originally Posted by EBassie*:

 

I found the bug why the eaguid was not update (sql typo mistake) but i cant find any thing related to the Score thing.

Do you have SESSIONS on? I do not use this feature. Maybe related?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by XpKiller*:

 

It looks like 3.0.0.4 solves the problem :smile:

Thanks! :biggrin: :biggrin: :biggrin:

 

Found a new bug though:

Autocreation of weaponstable is not correct.

It does not create the "QLZ8" columns .

This is because you dont have them in your keyword list. The reason is that procon writes back the old list every time.

So you have to delete the list first in the config file or add the weapon manually.

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

Originally Posted by marrr*:

 

Procon hosted at primary target = the following error

 

[12:52:30 52] Error in OpenConnection: System.Data.Odbc.OdbcException: ERROR [HY000] [MySQL][ODBC 5.1 Driver]Access denied for user 'xxxxxx_xxxxxx'@'xxx.xxx.xxx.xxx' (using password: YES)

ERROR [HY000] [MySQL][ODBC 5.1 Driver]Access denied for user 'xxxxx_xxxxxx'@'xxx.xxx.xx.xxx' (using password: YES)

at System.Data.Odbc.OdbcConnection.HandleError(OdbcHa ndle hrHandle, RetCode retcode)

at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcCo nnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle)

at System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConn ection outerConnection, OdbcConnectionString connectionOptions)

at System.Data.Odbc.OdbcConnectionFactory.CreateConne ction(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)

at System.Data.ProviderBase.DbConnectionFactory.Creat eNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)

at System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection)

at System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)

at System.Data.Odbc.OdbcConnection.Open()

at PRoConEvents.CChatGUIDStatsLogger.OpenOdbcConnecti on(Int32 type

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

Originally Posted by XpKiller*:

 

I have 2 people with a crazy amount of points

 

you can check it out here http://iogaming.net/bc2stats/index.php

 

I am using version 3.0.0.4.

There must be an error in the table.

i found a bug in the tablebuilder i will fix that in next version.

This happens if a negative Score is written to a table column which is unsigned.

Reset their Score to 0 and apply this to you database:

Code:

ALTER TABLE tbl_playerstats ENGINE = MyISAM ;
ALTER TABLE tbl_playerstats CHANGE COLUMN `playerScore` `playerScore` INT(10) NOT NULL DEFAULT '0'  ;
ALTER TABLE tbl_playerstats ENGINE = InnoDB ;
Than the error should never happen again.

This is one bad thing of mysql that doesnt report errors if a datatype doesnt fit in.

 

Tables convert from 2.x to 3.x are NOT affected.

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

Originally Posted by Stryker412*:

 

Has anyone seen this error before?

 

Code:

Error in OpenConnection: System.Security.SecurityException: Request for the permission of type 'System.Data.Odbc.OdbcPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=removedtoken#' failed.
   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
   at System.Security.PermissionSet.Demand()
   at System.Data.Common.DbConnectionOptions.DemandPermission()
   at System.Data.Odbc.OdbcConnection.PermissionDemand()
   at System.Data.Odbc.OdbcConnectionFactory.PermissionDemand(DbConnection outerConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.Odbc.OdbcConnection.Open()
   at PRoConEvents.CChatGUIDStatsLogger.OpenOdbcConnection(Int32 type)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Data.Odbc.OdbcPermission
The Zone of the assembly that failed was:
MyComputer
I removed the token# for posting purposes here, not sure if that's sensitive info or not.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Stryker412*:

 

Check you ODBC Settings in Procon

And enter you Mysql Server as Trusted Host/Domain in Procon even if localhost

And allow ODBC Connections.

Then restart Procon.

Ok I did all that on the remote side but still getting the error. Does it have to be done only on the server side?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Stryker412*:

 

OK my host has now opened ODBC and it appears we're pulling stats now but we're getting this error.

 

Code:

[13:06:26 26] Error: System.Data.Odbc.OdbcException: ERROR [42S22] [MySQL][ODBC 5.1 Driver][mysqld-5.0.91-community]Unknown column 'UMPK_deaths' in 'field list'
   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
   at System.Data.Odbc.OdbcCommand.ExecuteNonQuery()
   at PRoConEvents.CChatGUIDStatsLogger.StartStreaming()
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by marrr*:

 

This has to be done on the host where the plugin is running for example on the PROCON layer.

The host has to install the ODBC 5.1 driver and enter the info into mysql connector/ODBC data source configuration?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by XpKiller*:

 

This has to be done on the host where the plugin is running for example on the PROCON layer.

The host has to install the ODBC 5.1 driver and enter the info into mysql connector/ODBC data source configuration?
the datasource configuration is an unnecessary step can be left out.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by XpKiller*:

 

OK my host has now opened ODBC and it appears we're pulling stats now but we're getting this error.

 

Code:

[13:06:26 26] Error: System.Data.Odbc.OdbcException: ERROR [42S22] [MySQL][ODBC 5.1 Driver][mysqld-5.0.91-community]Unknown column 'UMPK_deaths' in 'field list'
   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
   at System.Data.Odbc.OdbcCommand.ExecuteNonQuery()
   at PRoConEvents.CChatGUIDStatsLogger.StartStreaming()
did you use 2.x before?

apply this to you database:

Code:

ALTER TABLE `tbl_weaponstats` ENGINE = MyISAM ;
ALTER TABLE `tbl_weaponstats`
ADD COLUMN `M16K_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M16_deaths` ,
ADD COLUMN `M16K_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M16K_kills` ,
ADD COLUMN `M16K_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M16K_hs` ,
ADD COLUMN `UMPK_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `UMP_deaths` ,
ADD COLUMN `UMPK_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `UMPK_kills` ,
ADD COLUMN `UMPK_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `UMPK_hs` ,
ADD COLUMN `MG3K_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `MG3_deaths` ,
ADD COLUMN `MG3K_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `MG3K_kills` ,
ADD COLUMN `MG3K_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `MG3K_hs` ,
ADD COLUMN `M95K_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M95_deaths` ,
ADD COLUMN `M95K_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M95K_kills` ,
ADD COLUMN `M95K_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0  AFTER `M95K_hs` ,
ADD COLUMN `MP7_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0 ,
ADD COLUMN `MP7_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0 ,
ADD COLUMN `MP7_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0 ,
ADD COLUMN `QLZ8_kills` INT(10) UNSIGNED NOT NULL DEFAULT 0 ,
ADD COLUMN `QLZ8_hs` INT(10) UNSIGNED NOT NULL DEFAULT 0 ,
ADD COLUMN `QLZ8_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0 ;
ALTER TABLE `tbl_weaponstats` ENGINE = InnoDB ;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by marrr*:

 

I keep getting the following errors..

Code:

[12:52:30 52] Error in OpenConnection: System.Data.Odbc.OdbcException: ERROR [HY000] [MySQL][ODBC 5.1 Driver]Access denied for user 'xxxxxxxx_xxxxxxx'@'xxx.xxx.xx.xxx' (using password: YES)
ERROR [HY000] [MySQL][ODBC 5.1 Driver]Access denied for user 'xxxxxxxx_xxxxxxx'@'xxx.xxx.xx.xxx' (using password: YES)
at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle)
at System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConnection outerConnection, OdbcConnectionString connectionOptions)
at System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.Odbc.OdbcConnection.Open()
at PRoConEvents.CChatGUIDStatsLogger.OpenOdbcConnection(Int32 type
Procon layer has ODBC enabled and mysql IP has been added to the trusted host domain.. They also verified they had the ODBC 5.1 driver installed.

Ive also added the IP of procon to the remote sql access list..

 

What am I missing?

* Restored post. It could be that the author is no longer active.
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.
Note: Your post will require moderator approval before it will be visible.

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.