Jump to content

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


ImportBot

Recommended Posts

Originally Posted by Basert*:

 

got a problem with this plugin.

I correctly inserted the hostname for the mysql database but I get the Error :

 

Code:

ERROR [HY000] [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '85.93.2.145 (10061)
bei System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
and so on.

 

And if the game round ends procon crashes because of that plugin. Does anyone know what to do?

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

 

The plugin is not able to connect to the mysql server.

Check if the odbcdriver is properly installed,

if the port and ip address of the mysqlserver is right,

Password and user ist right and you firewall is configued properly.

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

Originally Posted by EBassie*:

 

For some reason I get this error once every few hours:

Code:

[21:34:25] Error in SQLQuery: System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Data.Odbc.OdbcDataReader.GetRowCount()
   at System.Data.Odbc.OdbcDataReader.FirstResult()
   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.ExecuteReader(CommandBehavior behavior)
   at System.Data.Odbc.OdbcCommand.ExecuteReader()
   at PRoConEvents.CChatGUIDStatsLogger.SQLquery(String str_selectSQL, Int32 sort)
[21:34:25] Error GetID: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at PRoConEvents.CChatGUIDStatsLogger.GetID(String strSoldierName)
[21:34:25] Error GetID: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at PRoConEvents.CChatGUIDStatsLogger.GetID(String strSoldierName)
[21:34:25] Error GetID: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at PRoConEvents.CChatGUIDStatsLogger.GetID(String strSoldierName)
[21:34:25] Error in SQLQuery: System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Data.Odbc.OdbcDataReader.GetRowCount()
   at System.Data.Odbc.OdbcDataReader.FirstResult()
   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.ExecuteReader(CommandBehavior behavior)
   at System.Data.Odbc.OdbcCommand.ExecuteReader()
   at PRoConEvents.CChatGUIDStatsLogger.SQLquery(String str_selectSQL, Int32 sort)
[21:34:25] Error GetID: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at PRoConEvents.CChatGUIDStatsLogger.GetID(String strSoldierName)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Panther*:

 

Hallo XP,

 

since 3.0.0.1 The points are not counted correctly.

 

I made a new Database to check and here is the result:

No Errors in debug mode.

 

Here is the new Database where you can see that some players didn't get any points:

http://178.77.65.206/hp/index.php_optio ... &Itemid=68

 

This database was made with the new 3.0.0.5 plugin.

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

Originally Posted by EBassie*:

 

since 3.0.0.1 The points are not counted correctly.

Hey Panther,

 

I reported the same problem last week: viewtopic.php_f=18&t=694&start=420#p11511*

XP say's he can't find no bug. But somehow it got fixed for me since 3.0.0.4.

 

I started to use sessions since 3.0.0.4 and i changed the 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 ;
Maybe it helps you too.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Panther*:

 

since 3.0.0.1 The points are not counted correctly.

Hey Panther,

 

I reported the same problem last week: viewtopic.php_f=18&t=694&start=420#p11511*

XP say's he can't find no bug. But somehow it got fixed for me since 3.0.0.4.

 

I started to use sessions since 3.0.0.4 and i changed the 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 ;
Maybe it helps you too.
Hey,

thanks for that. Gonna test it out. You use sessions? How do you mean with that?

Gonna change the table too and check if it will help, thanks.

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

Originally Posted by EBassie*:

 

You use sessions? How do you mean with that?

@session is a new stats recording option introduced in 2.0.6.4.

I never used it until 3.0.0.4. as I was trying to fix the score's. Dunno if this helps, but somehow my scores are OK. :smile:

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

Originally Posted by Panther*:

 

Hey,

first round went well, with turning Session ON on Yes.

 

I am getting some Errors i was not realy concered about them, but now i see, that the second round didn't got recorded due to that error message.

The error message is this:

Code:

[13:22:12 62] Error: System.Data.Odbc.OdbcException: ERROR [42S22] [MySQL][ODBC 5.1 Driver][mysqld-5.0.45-community-nt]Unknown column 'MG3K_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 Panther*:

 

Hey,

first round went well, with turning Session ON on Yes.

 

I am getting some Errors i was not realy concered about them, but now i see, that the second round didn't got recorded due to that error message.

The error message is this:

Code:

[13:22:12 62] Error: System.Data.Odbc.OdbcException: ERROR [42S22] [MySQL][ODBC 5.1 Driver][mysqld-5.0.45-community-nt]Unknown column 'MG3K_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()
found the solution for the error a couple of pages before.

Killa, i have installed a new table and the new specact weapons are not in the list if you install 3.0.0.4 new.

LG

 

 

EDIT:

After turning session On to YES it looks like everything is recorded fine now. 2 Rounds all of em recoreded as they should

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

Originally Posted by XpKiller*:

 

Is PROCON issue its overwrite the new keyword list with the old one .

You must delete the related line in your config first or add the weapons manually and then let the tablebuilder build tthe table.

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

Originally Posted by Panther*:

 

Is PROCON issue its overwrite the new keyword list with the old one .

You must delete the related line in your config first or add the weapons manually and then let the tablebuilder build tthe table.

Ah ok, i added the weapons manually. It should be fine now.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BB-Insomnia*:

 

any plans on releasing a more detailed version of webstatstats?

Yeah, planning it for about, well, since those details can be logged... but i do not find enough time and motivation to do :-( sorry

My aim is to to something like:

http://css.blood-boys.de/hlstats.php_mo ... &player=24

 

Maybe sometimes... in a country far far away :ohmy:

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

Originally Posted by stepper*:

 

Hey hey :smile:

 

Just can´t get it to work.

 

Have tryed many things and confirmed the pass word and still it will not connect

 

Do you now what i am doing wrong ?

 

Code:

[13:15:42 27] Index #0
[13:15:42 31] Message: [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '212.97.133.210' (10060)
[13:15:42 31] Native: 2003
[13:15:42 32] Source: 
[13:15:42 33] SQL: HY000
[13:15:42 33] Index #1
[13:15:42 34] Message: [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '212.97.133.210' (10060)
[13:15:42 34] Native: 2003
[13:15:42 35] Source: 
[13:15:42 36] SQL: HY000
[13:16:03 52] Index #0
[13:16:03 54] Message: [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '212.97.133.210' (10060)
[13:16:03 54] Native: 2003
[13:16:03 56] Source: 
[13:16:03 57] SQL: HY000
[13:16:03 57] Index #1
[13:16:03 58] Message: [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '212.97.133.210' (10060)
[13:16:03 59] Native: 2003
[13:16:03 59] Source: 
[13:16:03 60] SQL: HY000
[13:16:24 91] Index #0
[13:16:24 92] Message: [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '212.97.133.210' (10060)
[13:16:24 93] Native: 2003
[13:16:24 94] Source: 
[13:16:24 95] SQL: HY000
[13:16:24 96] Index #1
[13:16:24 96] Message: [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '212.97.133.210' (10060)
[13:16:24 97] Native: 2003
[13:16:24 98] Source: 
[13:16:24 99] SQL: HY000
[13:16:46 07] Index #0
[13:16:46 08] Message: [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '212.97.133.210' (10060)
[13:16:46 08] Native: 2003
[13:16:46 09] Source: 
[13:16:46 10] SQL: HY000
[13:16:46 11] Index #1
[13:16:46 12] Message: [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '212.97.133.210' (10060)
[13:16:46 13] Native: 2003
[13:16:46 14] Source: 
[13:16:46 14] SQL: HY000
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by stepper*:

 

The IP and Port is 100% right :smile:

Have check and doublet check it. and tryed the Adresse that surftown use also.

 

And in Tools --> Options --> Plugins --> i have set in 3 addresses just to be sure.

 

The https my php admin site and the IP and the alternative addresses that surtown provides that my site fi. use

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

Originally Posted by QUACK-Major-Pain*:

 

Not sure you get what I meant.

Maybe you do and I misunderstand your reply.

 

 

If your procon and database are NOT on the same server:

 

What is the IP where your Procon is hosted?

(If on your CP, then it's your IP - If it is hosted, then the IP of your host)

 

Then in the cPanel of where your database is, you need to add that IP to the Remote Sql to give Procon permission to communicate with your database.

 

 

If they are both on the same server, no permissions needed.

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

Originally Posted by executoronline*:

 

Hi

 

One little Bug, the entries

 

M16K_kills M16K_hs M16K_deaths UMPK_kills UMPK_hs UMPK_deaths MG3K_kills MG3K_hs MG3K_deaths M95K_kills M95K_hs M95K_deaths

 

are missing in the Table "tbl_weaponstats". Without them it can happen that he didn't save the stats. This entries are from the new "Battlefield Bad Company 2: SPECACT Kit Upgrade"

 

eXe

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

Originally Posted by MorpheusX(AUT)*:

 

Have you given remote sql permissions?

Remote ?

Dont now what you mean with that

Remote Access = access from another computer (not the one the mysql-Server is running on).

This should give you some rough information on mySQL-Remote Access, although you don't need the iptables-part on a windows-Server...

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

Originally Posted by EBassie*:

 

I just saw there were 20 duplicate players in the database. The duplicates were recorded at least until december 10.

 

Don't know if the bug exists in latest version, but I will let you know :smile:

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

Originally Posted by EBassie*:

 

The bug with duplicate player records is still present in latest version (3.0.0.6).

I don't know for sure, but I think it has something to do with these error-messages:

 

Code:

[15:44:11 08] Error in SQLQuery: System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Data.Odbc.OdbcDataReader.GetRowCount()
   at System.Data.Odbc.OdbcDataReader.FirstResult()
   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.ExecuteReader(CommandBehavior behavior)
   at System.Data.Odbc.OdbcCommand.ExecuteReader()
   at PRoConEvents.CChatGUIDStatsLogger.SQLquery(String str_selectSQL, Int32 sort)
[15:44:11 12] Error GetID: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at PRoConEvents.CChatGUIDStatsLogger.GetID(String strSoldierName)
[15:44:11 22] Error in SQLQuery: System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Data.Odbc.OdbcDataReader.GetRowCount()
   at System.Data.Odbc.OdbcDataReader.FirstResult()
   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.ExecuteReader(CommandBehavior behavior)
   at System.Data.Odbc.OdbcCommand.ExecuteReader()
   at PRoConEvents.CChatGUIDStatsLogger.SQLquery(String str_selectSQL, Int32 sort)
[15:44:11 23] Error GetID: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at PRoConEvents.CChatGUIDStatsLogger.GetID(String strSoldierName)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by XpKiller*:

 

Duplicates are not possible by default because of the the unique index.

so the unique index must be missing in the tbl_playerdata.

Pls check this.

I look at my table too, the unique index was missing there too. So there must be a misstake in my conversion script. :shock:

 

To repair the database delete the rows where the playerID = StatsID = WeaponstatsID and in tbl_dogtags KillerID and VictimID of all duplicates then create the new unique index

 

For delete a index:

Code:

DROP INDEX indexname ON tbl_playerdata;
to create the correct index:

Code:

CREATE UNIQUE INDEX SoldierNameGuid ON tbl_playerdata (SoldierName, GUID);
and a query to find duplicates:sad:takes some time coz its a hard query)

Code:

SELECT * FROM tbl_playerdata 
WHERE (SoldierName,Guid) IN (SELECT SoldierName,Guid
   FROM tbl_playerdata
   GROUP BY SoldierName,Guid
   HAVING COUNT(*)>1);
[/code]
* 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.