Jump to content

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


ImportBot

Recommended Posts

Originally Posted by Panther*:

 

Just a small hint for the people who use any kind of webstats.

There is the row showing the time. The problem is, that this time is not shown correctly. If somebody has played more than 60 hours on your server, it is not shown correctly.

 

How to fix it:

 

Search in the index.php for these lines:

Code:

$hours=($playertime/3600)%60;
$minutes=sprintf("%02d",($playertime/60)%60);
This line should be somewhere around line 680.

 

Replace those lines with:

Code:

$hours=sprintf("%d",($playertime/3600));
$minutes=sprintf("%02d",($playertime/60)%60);
And you will see the complete time player have played on your server.

 

 

Keep up the good job XPKilla.

 

Regards

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

 

I have done a mistake found it already and fix it

only 3 columns a effected: ClanTag, IP and CountryCode

Now the data is wrong in this 3 columns

I see it sets these columns for all players the same :smile:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by XpKiller*:

 

I have done a mistake found it already and fix it

only 3 columns a effected: ClanTag, IP and CountryCode

Now the data is wrong in this 3 columns

I see it sets these columns for all players the same :smile:
Is fixed now.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Panther*:

 

yes - good job!

update to 3.0.0.1 and everything seems fine.

 

Hey guy, just a short hint.

 

STOP APPOLOGIZING FOR CODING ERRORS! YOU ARE THE MAN!

If you make mistakes, it is normal. The community needs to be very happy, having such a guy programming a huge plugin like this.

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

Originally Posted by haclevan*:

 

Hello!

Since the last procon-update procon crashed after a view minutes ( Problemsignatur 09: System.Data.Odbc.OdbcException)

If I disable your logger procon runs without problems. Could you help me to fix the problem?

Thx

Ha

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

Originally Posted by RedOne1*:

 

Hi

 

I love this plugin. I tried to update to 3.x with 2.x_to_3.x.sql but i get error.

 

Can somebody give me a step by step guide how to update from 2.6.3 to 3.0.0?

When i update i lose the names and the guides in the stats. I am sure I do something wrong.

 

Thx

 

GrTz Red

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

Originally Posted by XpKiller*:

 

Apply this to your database:

 

Code:

ALTER TABLE `tbl_playerstats` ENGINE = MyISAM ;
CREATE TABLE tbl_playerstats_old SELECT * FROM tbl_playerstats;
ALTER TABLE `tbl_playerstats_old` CHANGE COLUMN `ID` `ID` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT , ADD PRIMARY KEY (`ID`) ;
CREATE TABLE tbl_playerdata SELECT ID AS PlayerID, SoldierName, GUID, CountryCode FROM tbl_playerstats;
ALTER TABLE `tbl_playerdata` ADD COLUMN `ClanTag` VARCHAR(45) NULL DEFAULT NULL  AFTER `PlayerID` , ADD COLUMN `EAGUID` VARCHAR(35) NULL DEFAULT NULL  AFTER `GUID` , ADD COLUMN `IP_Address` VARCHAR(15) NULL DEFAULT NULL  AFTER `EAGUID` , CHANGE COLUMN `PlayerID` `PlayerID` INT(10) UNSIGNED NULL AUTO_INCREMENT  
, ADD PRIMARY KEY (`PlayerID`) 
, ADD INDEX `UNIQUE_SoldierName` (`SoldierName` ASC, `GUID` ASC) ;
CREATE TABLE tbl_weaponstats SELECT * FROM tbl_playerstats;
ALTER TABLE `tbl_weaponstats` DROP COLUMN `LastSeenOnServer` , DROP COLUMN `FirstSeenOnServer` , DROP COLUMN `CountryCode` , DROP COLUMN `playerRounds` , DROP COLUMN `playerHeadshots` , DROP COLUMN `playerPlaytime` , DROP COLUMN `playerScore` , DROP COLUMN `playerSuicide` , DROP COLUMN `playerDeaths` , DROP COLUMN `playerKills` , DROP COLUMN `playerTKs` , DROP COLUMN `GUID` , DROP COLUMN `SoldierName` , CHANGE COLUMN `ID` `WeaponStatsID` INT(10) UNSIGNED NOT NULL  
, ADD PRIMARY KEY (`WeaponStatsID`) ;
DROP TABLE tbl_playerstats;
CREATE TABLE tbl_playerstats SELECT ID AS StatsID, playerScore, playerKills, playerHeadshots, playerDeaths, playerSuicide, playerTKs, playerPlaytime, playerRounds, FirstSeenOnServer, LastSeenOnServer FROM tbl_playerstats_old;
ALTER TABLE `tbl_playerstats` CHANGE COLUMN `StatsID` `StatsID` INT(10) UNSIGNED NOT NULL, CHANGE COLUMN `playerScore` `playerScore` INT(11)  NOT NULL DEFAULT 0
, ADD PRIMARY KEY (`StatsID`) ;
ALTER TABLE `tbl_playerstats_old` 
ADD UNIQUE INDEX `UNIQUE` (`SoldierName` ASC, `GUID` ASC) ;
ALTER TABLE `tbl_playerstats` ADD COLUMN `Killstreak` INT NOT NULL DEFAULT 0  AFTER `LastSeenOnServer` , ADD COLUMN `Deathstreak` INT NOT NULL DEFAULT 0  AFTER `Killstreak` ;
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_playerstats` ENGINE = InnoDB ;
ALTER TABLE `tbl_weaponstats` ENGINE = InnoDB ;
ALTER TABLE `tbl_playerdata` ENGINE = InnoDB ;
ALTER TABLE `tbl_playerstats_old` ENGINE = InnoDB ;
The data is now split up into multiply tables.

If you dont got a real SQL Error while apply the script everything is fine.

 

Use this SQL Query to get a full Dataset for a Player:

Code:

SELECT a.* ,b.*, c.*
 FROM tbl_playerdata a
 INNER JOIN tbl_playerstats b ON a.PlayerID = b.StatsID
 INNER JOIN tbl_weaponstats c ON a.PlayerID = c.WeaponstatsID
 WHERE a.SoldierName LIKE "%XpKiller%";
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by RedOne1*:

 

Code:

ADD COLUMN `MP7_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0 ;
Does ";" dont have to be ","?

 

Keep up the good work and the fast service :smile:

 

GrTz Red

 

Edit: No playernames and guides in stats yet:sad:

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

Originally Posted by XpKiller*:

 

Code:

ADD COLUMN `MP7_deaths` INT(10) UNSIGNED NOT NULL DEFAULT 0 ;
Does ";" dont have to be ","?

 

Keep up the good work and the fast service :smile:

 

GrTz Red

 

Edit: No playernames and guides in stats yet:sad:

Yepp you are right typo mistake fixed it

 

the Scripte creates a a backup of you old table called tbl_playerstats_old

 

*Bump*

 

New Version 3.0.0.2

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

Originally Posted by XpKiller*:

 

I used the simple stats and log script earlier in this topic. But the player names are gone there. What should I do to solve this?

 

GrTz Red

Which script do you use?

 

Otherwise you could use this:

download/file.php_id=660*

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

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?

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

Originally Posted by Flyswamper*:

 

I'm not sure how elegantl this could be handled but....

 

 

For those of us that are using the table_suffix option in the plugin.......

 

It creates tables that include the suffix. Then when you run the SQL code to migrate/fix your tables for the version 2.x to version 3.x switch.... It won't do what it is supposed to.

 

You need to edit every instance of the tablename in the SQL code to adjust it to include your custom suffix.

 

 

I am NOT an SQL coder, but I do wonder if it might be possible to rewrite your sql code so that it allows the end user to more automatically handle the tablename suffix issue?

 

 

My situation is this....

 

I am storing data/logs from a couple of different servers into the same database. I've used the suffix for table names. I have used the port# for our hosted-Procon-parent layer as the tablename suffix. So... I end up with tablenames like

 

tbl_playerstats23434

tbl_playerstats23435

 

making the need to edit the SQL code carefully for the switchover fairly important. :smile:

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

Originally Posted by EBassie*:

 

Thanks for making it an option! :smile:

 

Hmm.. that's weird you don't have this problem.

 

New players get a score sometimes, but existing players won't be updated at all.

I've this problem on all 3 servers. :sad:

 

This is the tabledesign:

Code:

CREATE TABLE IF NOT EXISTS `tbl_playerstats_bc2rush` (
  `StatsID` int(10) unsigned NOT NULL,
  `playerScore` int(11) NOT NULL DEFAULT '0',
  `playerKills` int(10) unsigned NOT NULL DEFAULT '0',
  `playerHeadshots` int(10) unsigned NOT NULL DEFAULT '0',
  `playerDeaths` int(10) unsigned NOT NULL DEFAULT '0',
  `playerSuicide` int(10) unsigned NOT NULL DEFAULT '0',
  `playerTKs` int(10) unsigned NOT NULL DEFAULT '0',
  `playerPlaytime` int(10) unsigned NOT NULL DEFAULT '0',
  `playerRounds` int(10) unsigned NOT NULL DEFAULT '0',
  `FirstSeenOnServer` datetime DEFAULT NULL,
  `LastSeenOnServer` datetime DEFAULT NULL,
  `Killstreak` int(11) NOT NULL DEFAULT '0',
  `Deathstreak` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`StatsID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Has it maybe something to do with the table-suffix?
* 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.

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.