Jump to content

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


ImportBot

Recommended Posts

Originally Posted by fantasticplayer*:

 

Sorry dont read, wrong thread.

 

Hello again. Ive create a new msql database and ive got this error:

[19:38:41 70] [statslogger]Info: Connection MySqlConn closed

[19:38:41 79] [statslogger]Info: Streamingprocess duration: 0,562 seconds

[19:38:41 79] [statslogger]Error: Error in Startstreaming OuterException: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

bei PRoConEvents.CChatGUIDStatsLogger.DisplayMySqlErro rCollection(MySqlException myException)

bei PRoConEvents.CChatGUIDStatsLogger.StartStreaming()

[19:38:43 18] [statslogger]Error: getUpdateServerID1: System.InvalidOperationException: Nested transactions are not supported.

bei MySql.Data.MySqlClient.ExceptionInterceptor.Throw( Exception exception)

bei MySql.Data.MySqlClient.MySqlConnection.BeginTransa ction(IsolationLevel iso)

bei PRoConEvents.CChatGUIDStatsLogger.getUpdateServerI D(CServerInfo csiServerInfo)

Anyone know what to do?
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 months later...
  • Replies 837
  • Created
  • Last Reply

Top Posters In This Topic

  • ImportBot

    838

Originally Posted by ty_ger07*:

 

I don't have option to view the stats from web page currently, is there any way to view or search through the stats/logs somehow without php website? Thank you

You have to open up the database with something. You can do it with a desktop application like heidiSQL. Or with a web application like phpmyadmin.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 3 months later...

Originally Posted by Hawk*:

 

Hello, i have run into a (potential) problem.

We are currently changing hosting of the database, we have database backed up, but how do we get it to run again?

Because plugin creates the tables automatically, when it creates them, can i jsut replace them with our 90mb database?

Will it work? or all our stats will be gone for good.

 

Thank you!

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

Originally Posted by ty_ger07*:

 

Hello, i have run into a (potential) problem.

We are currently changing hosting of the database, we have database backed up, but how do we get it to run again?

Because plugin creates the tables automatically, when it creates them, can i jsut replace them with our 90mb database?

Will it work? or all our stats will be gone for good.

 

Thank you!

Are you using this old plugin version? Maybe you meant to post in the other newer thread.

myrcon.net/.../stats-webpage-for-xpkillers-stats-logger-plugin

 

 

You have to transfer the database while the plugin is disabled. Do not try to merge the data. Disable the plugin, delete all tables in the new database so that the database is empty, and then import the data into the new database from your backup.

 

After that is done, enable the plugin.

 

Let us know once you have completed this process. If after this has been completed, you still see the new data being stored in a new server ID instead of being stored into the old server ID, there is a way to make it switch back to the old server ID.

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

Originally Posted by Hawk*:

 

Are you using this old plugin version? Maybe you meant to post in the other newer thread.

myrcon.net/.../stats-webpage-for-xpkillers-stats-logger-plugin

 

 

You have to transfer the database while the plugin is disabled. Do not try to merge the data. Disable the plugin, delete all tables in the new database so that the database is empty, and then import the data into the new database from your backup.

 

After that is done, enable the plugin.

 

Let us know once you have completed this process. If after this has been completed, you still see the new data being stored in a new server ID instead of being stored into the old server ID, there is a way to make it switch back to the old server ID.

Yes i am afraid we still use version 3.0.2.2

So do u think we should start new database within the new version of this plugin, or continue with the old version fo the plugin?

When we use new version (plugin), are the tables same or is there any difference in storing stats etc.?

I am leaning to use new version i saw there is some cool features like top players of week etc :smile:

 

Thank you very much for your answer by the way!

* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...
  • 2 months later...

Originally Posted by Cablekiller*:

 

Hey guys, so im the First Admin of a good known BFBC2 (old gme i know) Clan. We have had 1 Server over the years which was always full (day and night) and it ran really well with the Plugins, but since a half year we have some Lag issue with the hoster and we hostet a 2nd Server, we got a database for free with it and with the help of Hand of Shadow we made this Plugin run there. But we use the 3... version because if i upload the 1...version it just doesnt appear in the Plugin list...why is that like that? Can someone help me?

 

And my second question is, both servers are always good visitet so we want to change the lag server to that provider too, so we would have 2 Servers with ranking systems, but we want to have all players the same score on both servers, i saw there is a "suffix table" but i dont know what i can do with is or what to write in if we have the 2nd server.

 

Thanks everyone for the answeres, i dont want to get on HandoFShadows nerves even longer =)

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

Originally Posted by BalboaCZ*:

 

Ok, I have tried using 1.0.0.2, tables built but no data was collect.

 

I switched to 3.0.2.2 and nothing. No tables, no data, nothing. I did set up ODBC and no joy. All I get is:

 

[03:55:54 25] Error in OpenConnection:

[03:55:54 26] Index #0

[03:55:54 26] Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

[03:55:54 27] Native: 0

[03:55:54 28] Source:

[03:55:54 28] SQL: IM002

 

 

I know this works because I see other servers using it. But I just can't seem to get this going.

 

Any ideas? And remember I am a MySQL noob.

 

BCZ

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

Originally Posted by ty_ger07*:

 

Ok, I have tried using 1.0.0.2, tables built but no data was collect.

 

I switched to 3.0.2.2 and nothing. No tables, no data, nothing. I did set up ODBC and no joy. All I get is:

 

[03:55:54 25] Error in OpenConnection:

[03:55:54 26] Index #0

[03:55:54 26] Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

[03:55:54 27] Native: 0

[03:55:54 28] Source:

[03:55:54 28] SQL: IM002

 

 

I know this works because I see other servers using it. But I just can't seem to get this going.

 

Any ideas? And remember I am a MySQL noob.

 

BCZ

From earlier in this thread:

myrcon.net/...chat-guid-stats-and-mapstats-logger-0102#entry1192

 

This is my error

 

[21:56:43 66] Start tablebuilder

[21:56:43 67] Error in OpenConnection:

[21:56:43 67] Index #0

[21:56:43 67] Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

[21:56:43 67] Native: 0

[21:56:43 67] Source:

[21:56:43 67] SQL: IM002

 

very strange the plugin has been working fine then tonight this error then it crashes procon console

 

database screwed ?

You dont have a Problem with the DB. You have a ODBC Driver issue on the machine on which procon is running. So reinstall the ODBC Driver and double check your connection parameter (user, password,...).

lol thanks for your help got mine working spoke to our hosts who do our procon they reinstalled the driver now all working

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

Originally Posted by BalboaCZ*:

 

Ok, some progress. After banging my head with the latest ODBC 5.3.x, I loaded 5.1.x and got a new error (without procon crashing).

 

[01:42:54 18] Error in Tablebuilder:

[01:42:54 20] Index #0

[01:42:54 22] Message: [MySQL][ODBC 5.1 Driver][mysqld-5.7.11-log]All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead

[01:42:54 23] Native: 1171

[01:42:54 24] Source: myodbc5.dll

[01:42:54 25] SQL: HY000

 

So, yes a "ty_ger07 corrected" version will be needed or I need to rip out everything I have done so far and just start over with an older version of SQL.

 

I'd rather a corrected version. Perhaps you could even fix the need for the 5.1 driver and update it to work with the newer 5.3.x driver?

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

Originally Posted by ty_ger07*:

 

Ok, some progress. After banging my head with the latest ODBC 5.3.x, I loaded 5.1.x and got a new error (without procon crashing).

 

[01:42:54 18] Error in Tablebuilder:

[01:42:54 20] Index #0

[01:42:54 22] Message: [MySQL][ODBC 5.1 Driver][mysqld-5.7.11-log]All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead

[01:42:54 23] Native: 1171

[01:42:54 24] Source: myodbc5.dll

[01:42:54 25] SQL: HY000

 

So, yes a "ty_ger07 corrected" version will be needed or I need to rip out everything I have done so far and just start over with an older version of SQL.

Give this one a try:

https://github.com/tyger07/Unofficia...ive/master.zip

 

Like before, you need to stop the procon service, update the file, clear out your database tables which were created before, and then start the procon service again.

 

Let me know if that fixes the table builder error.

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

Originally Posted by BalboaCZ*:

 

ty_ger07,

 

3 "I am not worthy" coming your way.

 

Not only did it cure the error, data is being collected, even on my non-ranked server. So far, I have tested on the non-ranked server and one ranked (scoring was off so...). No errors, no crashes and data collected!! On the non-ranked server, the "pseudo-scores" are even retrievable.

 

On the ranked (scoring off) server, it collected player data and the welcome msg displayed the fact K/D=0, kills=0, etc. So, it is "aware" of players even when scoring is off.

 

I am enabling your plugin on all my servers for a hard core test for the next few days.

 

Preliminary test score: 98.99%.

 

Thank you,

BCZ

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

Originally Posted by ty_ger07*:

 

All I changed is one query to fix the table builder error. It was a very easy modification.

 

The unranked restriction must not have been added to this older plugin version. XpKiller must have only added that restriction to the newest plugin version. I didn't change anything in regards to that.

 

Regarding modifying this plugin to use a newer version of ODBC, I don't know how to do that. I think the ODBC connector is built into Procon and I think Procon would need to be modified to support a newer version of ODBC.

 

I am glad that it worked.

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

Originally Posted by BalboaCZ*:

 

After nearly a week, data is collecting data nicely on all 9 servers.

 

Now to build web front end so my admins can analyze the data. Any suggestions?

 

Thank you again.

 

BCZ

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

Originally Posted by ColColonCleaner*:

 

Everyone running Stat Logger should run this on their database. It's an updated fix for the blank data bug that stat logger has.

 

Code:

DELIMITER $$
DROP TRIGGER IF EXISTS `Player_Update_BlankDataFix`$$
CREATE TRIGGER `Player_Update_BlankDataFix` BEFORE UPDATE ON `tbl_playerdata`
 FOR EACH ROW BEGIN
    IF (NEW.SoldierName IS NULL OR CHAR_LENGTH(NEW.SoldierName) = 0) 
       AND OLD.SoldierName IS NOT NULL
       AND CHAR_LENGTH(OLD.SoldierName) > 0
        THEN SET NEW.SoldierName = OLD.SoldierName;
    END IF;
    IF (NEW.EAGUID IS NULL OR CHAR_LENGTH(NEW.EAGUID) = 0)
        AND OLD.EAGUID IS NOT NULL 
        AND CHAR_LENGTH(OLD.EAGUID) > 0
        THEN SET NEW.EAGUID = OLD.EAGUID;
    END IF;
    IF (NEW.PBGUID IS NULL OR CHAR_LENGTH(NEW.PBGUID) = 0)
        AND OLD.PBGUID IS NOT NULL 
        AND CHAR_LENGTH(OLD.PBGUID) > 0
        THEN SET NEW.PBGUID = OLD.PBGUID;
    END IF;
    IF (NEW.IP_Address IS NULL OR CHAR_LENGTH(NEW.IP_Address) = 0)
        AND OLD.IP_Address IS NOT NULL 
        AND CHAR_LENGTH(OLD.IP_Address) > 0
        AND OLD.IP_Address <> '127.0.0.1'
        THEN SET NEW.IP_Address = OLD.IP_Address;
    END IF;
    IF CHAR_LENGTH(NEW.ClanTag) = 0
        THEN SET NEW.ClanTag = NULL;
    END IF;
END$$
DELIMITER ;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BalboaCZ*:

 

How do I modify this to do the KDR calculation?

 

SELECT a.* ,b.*, c.*

FROM tbl_playerdatabc2sqdm a

INNER JOIN tbl_playerstatsbc2sqdm b ON a.PlayerID = b.StatsID

INNER JOIN tbl_weaponstatsbc2sqdm c ON a.PlayerID = c.WeaponstatsID

WHERE a.SoldierName LIKE "%%";

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

Originally Posted by ty_ger07*:

 

ColColonCleaner,

 

Do we copy and paste that into the command line utility or some where else?

 

SQL n00b here.

 

BCZ

Use phpMyAdmin to log into your database and then execute it from there. It is easy to do and there are a lot of YouTube videos to explain much better than I can with text.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

How do I modify this to do the KDR calculation?

 

SELECT a.* ,b.*, c.*

FROM tbl_playerdatabc2sqdm a

INNER JOIN tbl_playerstatsbc2sqdm b ON a.PlayerID = b.StatsID

INNER JOIN tbl_weaponstatsbc2sqdm c ON a.PlayerID = c.WeaponstatsID

WHERE a.SoldierName LIKE "%%";

Here is a thread XpKiller created with a bunch of different queries:

myrcon.net/.../advanced-in-game-admin-and-ban-enforcer-adkats

 

Some may not work since this older plugin version has some tables organized differently.

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

Originally Posted by BalboaCZ*:

 

Here is a thread XpKiller created with a bunch of different queries:

myrcon.net/.../advanced-in-game-admin-and-ban-enforcer-adkats

 

Some may not work since this older plugin version has some tables organized differently.

Took me a couple hours of tweaking but what do you think? Yes, produces the expected output. Figuring out that I only needed data from two tables vs the three in the original was like "Hallelujah!" moment. Understanding the temp table naming assignment was the next. (What "FROM tbl_playerstatsbc2r24 tps" actually meant and how to use it.)

 

SELECT tpd.PlayerID AS PlayerID, tpd.SoldierName AS SoldierName, SUM(tps.playerScore )AS Score, SUM(tps.playerKills) AS Kills, SUM(tps.playerDeaths) AS Deaths, (SUM(tps.playerKills)/SUM(tps.playerDeaths)) AS KDR,

SUM( tps.playerHeadshots) AS Headshots, (SUM(tps.playerHeadshots)/SUM(tps.playerKills) * 100) AS HeadPerc ,SUM(tps.playerSuicide) AS Suicide, SUM(tps.playerTKs) AS TKs, SUM(tps.playerPlaytime) AS Playtime,

( SUM(tps.playerPlaytime) / 3600) AS Hours, (SUM(tps.playerKills)/(SUM( tps.playerPlaytime)/60)) AS KPM ,SUM(tps.playerRounds) AS Rounds, MAX(tps.Killstreak) AS Killstr, MAX(tps.Deathstreak) AS Deathstr

FROM tbl_playerstatsbc2r24 tps

INNER JOIN tbl_playerdatabc2r24 tpd ON tpd.PlayerID = tps.StatsID

GROUP BY PlayerID

HAVING (SUM(tps.playerKills)/SUM(tps.playerDeaths)) >= 3 AND (SUM(tps.playerHeadshots)/SUM(tps.playerKills) )>= 0.4 AND MAX(tps.Killstreak) >= 10

ORDER BY KPM DESC

 

Based off the original below:

 

SELECT tpd.PlayerID AS PlayerID, tpd.SoldierName AS SoldierName, SUM(tps.Score )AS Score, SUM(tps.Kills) AS Kills, SUM(tps.Deaths) AS Deaths, (SUM(tps.Kills)/SUM(tps.Deaths)) AS KDR,

SUM( tps.Headshots) AS Headshots, (SUM(tps.Headshots)/SUM(tps.Kills) * 100) AS HeadPerc ,SUM(tps.Suicide) AS Suicide, SUM(tps.TKs) AS TKs, SUM(tps.Playtime) AS Playtime,

( SUM(tps.Playtime) / 3600) AS Hours, (SUM(tps.Kills)/(SUM( tps.Playtime)/60)) AS KPM ,SUM(tps.Rounds) AS Rounds, MAX(tps.Killstreak) AS Killstr, MAX(tps.Deathstreak) AS Deathstr

FROM tbl_playerstats tps

INNER JOIN tbl_server_player tsp ON tsp.StatsID = tps.StatsID

INNER JOIN tbl_playerdata tpd ON tsp.PlayerID = tpd.PlayerID

GROUP BY PlayerID

HAVING (SUM(tps.Kills)/SUM(tps.Deaths)) >= 3 AND (SUM(tps.Headshots)/SUM(tps.Kills) )>= 0.4 AND MAX(tps.Killstreak) >= 10

ORDER BY KPM DESC

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

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.