Jump to content

Chat, GUID, Stats and Mapstats Logger[1.1.0.1][BF3]


ImportBot

Recommended Posts

  • Replies 1.9k
  • Created
  • Last Reply

Top Posters In This Topic

  • ImportBot

    1934

Originally Posted by iNilo*:

 

Thx :smile:

 

Its working now,

 

Btw, how can I setup this plugin so the top 10 players are from all our servers ? (5 servers),

basically recording all the players & having cross server stats ?

so if I'm playing on server 2 and type !top10 I will see the top ten across all our servers (1,2,3,4,5) ?

 

 

 

Thx

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

Originally Posted by XpKiller*:

 

Just use 1 database and put the 1 database settings into each plugin config for each server.

Nope this is not working anymore due the new database design.

 

There is no need to split server up.

 

If you want to have your serverstats combined i need to add code for this.

 

New toDo:

add global ranking option

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

Originally Posted by XpKiller*:

 

I have a question.

 

If I change the name of my server, will the database be no good anymore ? Or can I just edit the server name in the database to match my new server name ?

Changing the name of the Server has no effect on the database. The data is still valid. It depends on the Server IP address + port.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by DeadWalking*:

 

Anyone here using this any good with coding for PHP/WebSpace and grabbing the info's in the MySQL DB's?

 

Would love to see a web stats page added. I would try but it would probably take my nubsauce *** 6 months to write.

 

I hate to copy or mimic, but something similar to what xlrstats is trying to do for B3 would be excellent.

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

Originally Posted by EBassie*:

 

Found a bug in the @top10 command:

It shows the top10 of serverID 1 when I am on serverID 2

 

 

Also there is a difference between my @rank and the @top10 when I'm on serverID 1:

@top10 gives me the the 7th position, while rank says I'm the number 16th :smile:

Both are showing the correct points though

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

Originally Posted by XpKiller*:

 

Found a bug in the @top10 command:

It shows the top10 of serverID 1 when I am on serverID 2

 

 

Also there is a difference between my @rank and the @top10 when I'm on serverID 1:

@top10 gives me the the 7th position, while rank says I'm the number 16th :smile:

Both are showing the correct points though

Damn, looks like i missed something in the query again thanks for report.

Will look at this again today. :-)

 

@feeblemedic

No you can put all servers in to one db.

Actually the max server per DB is 65535 different servers.

I dont think you hit this, aren't you? :-)

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

Originally Posted by Pegasus829*:

 

Does anyone have a preset PHP page for showing the stats? Can't find any info on it anywhere and am not a coder by any means! All I need is the basic calling to get the xml data through, the web page itself I can do with ease. Cheers.

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

Originally Posted by FARSTAN*:

 

Hello, I return to the forum for two things, I see the welcome message, according to (Nice to see you again on our Server, FARSTAN) and after my server stats displayed:smile:

 

2 nd point, the number of kills (%playerKills%) on the server it is not moving a block 51 for 2 days, then yesterday I had to make 200

 

I board do not crush the sql to each new version of the plugin, I have to do?

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

Originally Posted by XpKiller*:

 

Will take a look tomorrow . Today I won't have time. But looks for me like a bug in the gameserver or the way procon or my pluging react on the onplayerkilled event. The insert and update queries are fine you would get error if they were broken.

You don't need to drop your tables unless I explicit say to do t

his the tables are compatible to previous versions

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

Originally Posted by Sebokan*:

 

Requirements:

Access to a MySQL database that accepts remote connections is required so you need to create a user and database if not exists.

It requires the use of a MySQL database with INNODB engine that allows remote connections.(MYSQL Version 5.1.x is required!!!)

Also the ODBC 5.1 Driver (the latest is 5.1.9) is needed and can be found here http://dev.mysql.com/downloads/connector/odbc/5.1.html .

 

READ THE CHANGELOG

 

Installation:

Extract CChatGUIDStatsLogger.cs into plugin directory.

Set DB Server Settings and the Plugin Settings

 

Add the machine running the plugin to the remote mysql access host list.

Will throw a permissions error if not done

 

Enable outgoing ODBC Connections, located in Tools -> Options -> Plugins

Will throw a permissions error if not done

I'm currently using a webhotel for hosting my php websites. The solution I currently have is a MySQL 5.1 DB running on Linux server. According to the host, only Windows servers have the ODBC DNS connection (ASP), not Linux server like I have access to.

So my question is, do I need to install MySQL server on my homecomputer with ODBC and somehow syncronize the 2 databases?

 

Sorry if this sound strange, but my knowledge is limited when it comes to databases and MySQL.

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

Originally Posted by XpKiller*:

 

Maybe there is a misunderstanding , only the procon host server need the mysql ODBC driver. It's no problem to have the DB on a Linux based host. You don't need to install a ODBC Driver on your DB host.

If you got further questions feel free to ask.

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

Originally Posted by FARSTAN*:

 

I'm currently using a webhotel for hosting my php websites. The solution I currently have is a MySQL 5.1 DB running on Linux server. According to the host, only Windows servers have the ODBC DNS connection (ASP), not Linux server like I have access to.

So my question is, do I need to install MySQL server on my homecomputer with ODBC and somehow syncronize the 2 databases?

 

Sorry if this sound strange, but my knowledge is limited when it comes to databases and MySQL.

look this tuto whit linux

http://team-gsp.net/tuto_mysql_stats...r_v0.0.0 0.2. pdf

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

Originally Posted by FARSTAN*:

 

XpKiller since the update 0.0.0.4, I get this error, I have to stop the plugin, and then back, and it works.

but the message back every 10/15 minutes

 

 

Error: SQLQuery:System.InvalidOperationException: Erreur interne du fournisseur de données .Net Framework 12.

à System.Data.ProviderBase.DbConnectionInternal.Crea teReferenceCollection()

à System.Data.ProviderBase.DbConnectionInternal.AddW eakReference(Object value, Int32 tag)

à System.Data.Odbc.OdbcCommand.GetStatementHandle()

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

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

à System.Data.Odbc.OdbcCommand.ExecuteReader(Command Behavior behavior)

à System.Data.Odbc.OdbcCommand.ExecuteDbDataReader(C ommandBehavior behavior)

à System.Data.Common.DbCommand.System.Data.IDbComman d.ExecuteReader(CommandBehavior behavior)

à System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

à System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)

à System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)

à PRoConEvents.CChatGUIDStatsLoggerBF3.SQLquery(Odbc Command selectQuery)

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

Originally Posted by iNilo*:

 

What does this means ?

Code:

Error: getUpdateServerID1: System.Data.Odbc.OdbcException: ERROR [HY001] [MySQL][ODBC 5.1 Driver][mysqld-5.5.16]Memory allocation error
   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)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by XpKiller*:

 

@FARSTAN and iNilo

 

On the way to solve this problems i properly release a new Version.

 

@Sebokan

You can choose if want a ranking by score or by kills.

to turn on ranking Score set the option "Ranking by Score" to Yes.

 

Ranking by score is recommend because the queries are easer for the db.

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

Originally Posted by g34rfr34k*:

 

It works flawlessly. Thank you for creating this plugin!

 

For those who'd like to know my hosting company:

 

I use HostGator.com (business plan).

 

I had some issues with setting up the server remotely but they replied back with really dead-on info on how to solve it.

 

The really impressive part of their support is the fact that the time is 4AM lol.

 

Also, the new R10 update is released which fixes the vars idletime.

 

Not a bad night afterall :smile:

 

Happy Thanksgiving everyone!!!

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

Originally Posted by Grovax*:

 

Hi, i get this error message ... is the ODBC Connector disabled on this Layer-Server?

 

 

[16:51:03 55] Error: System.Security.SecurityException: Fehler bei der Anforderung des Berechtigungstyps "System.Data.Odbc.OdbcPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=*************".

bei System.Security.CodeAccessSecurityEngine.Check(Obj ect demand, StackCrawlMark& stackMark, Boolean isPermSet)

bei System.Security.PermissionSet.Demand()

bei System.Data.Common.DbConnectionOptions.DemandPermi ssion()

bei System.Data.Odbc.OdbcConnection.PermissionDemand()

bei System.Data.Odbc.OdbcConnectionFactory.PermissionD emand(DbConnection outerConnection)

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

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

bei PRoConEvents.CChatGUIDStatsLoggerBF3.tablebuilder( )

Die Aktion, bei der ein Fehler aufgetreten ist:

Demand

Der Typ der ersten Berechtigung, bei der ein Fehler aufgetreten ist:

System.Data.Odbc.OdbcPermission

Die Zone der Assembly, bei der ein Fehler aufgetreten ist:

MyComputer

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

Originally Posted by FARSTAN*:

 

Hello, I wonder if I could create another table (SQL SoldierNames) in tbl_playerstats?

 

I create, SoldierNames, in your indantique located in tbl_playerdata with the same index, everything has indantique.

 

After that I think we have a "relationship" between the SoldierNames playerdata and playerstats, but I get this error

because

 

Erreur

Requête SQL:

 

ALTER TABLE `tbl_playerstats` ADD FOREIGN KEY ( `SoldierNames` ) REFERENCES `gspmegah_serv32hc`.`tbl_playerdata` (

 

`SoldierName`

) ON DELETE RESTRICT ON UPDATE RESTRICT ;

 

MySQL a répondu:

 

#1452 - Cannot add or update a child row: a foreign key constraint fails (`gspmegah_serv32hc`., CONSTRAINT `#sql-624_196c9_ibfk_1` FOREIGN KEY (`SoldierNames`) REFERENCES `tbl_playerdata` (`SoldierName`))

 

I am in a project, import the stats of the DB in a php script, for visitors to our website

 

why I would like to display the username in the page or is the kills

 

Attached Files:

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

Originally Posted by XpKiller*:

 

@flashback

I know this issue atm i dont know what cause the problem has

It would help if you could give me the version and os of your mysql server

 

@FARSTAN

 

There is not direct relation between tbl_playerdata and tbl_playerstats.

The most parts of the DB are normalized tables.

So you dont need a new table.

 

Use this query to get your result:

Code:

SELECT tpd.*, tps.*, tsp.*,ts.*
FROM tbl_server_player tsp
INNER JOIN tbl_server ts ON tsp.ServerID = ts.ServerID
INNER JOIN tbl_playerdata tpd ON tsp.PlayerID = tpd.PlayerID
INNER JOIN tbl_playerstats tps ON tsp.StatsID = tps.StatsID
WHERE tpd.SoldierName = 'FARSTAN';
This is only a short example. this query gives you results for the player Farstan per Server.

Dont be afraid to use joins. InnoDB performs joins very fast so it doesn't matter.

If yoi have more questions regarding queries feel free to as.

A golden rules is only query fields you really need. The query is post is "bad" because it gets all fields of the tables which were joined.

 

Also you should use on DB for all your servers.

The Stats dont get mixed in the DB so dont worry.

* 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.