Raised This Month: $182 Target: $400
 45% 

[ANY] Player Analytics


Post New Thread Reply   
 
Thread Tools Display Modes
Pythong
SourceMod Donor
Join Date: Dec 2008
Old 12-06-2013 , 10:43   Re: [ANY] Player Analytics
Reply With Quote #21

FYI I got some errors from the dev. web panel.

For starts, i'm running PH 5.3.10

The config.php had to be edited to include quotes or i received errors
<?php
define('PA_DATABASE_SERVER', 'localhost');
define('PA_DATABASE_USER', 'user');
define('PA_DATABASE_PASSWORD', 'password');
define('PA_DATABASE_NAME', 'player_analytics');
?>

And on the main page i'm getting:
Quote:
Notice: Undefined property: UserSessions::$mTimeAvg in /path/to/data/users.php on line 44


EDIT: I had to add at line 25:
Quote:
private $mTimeAvg;
That fixed the error above.

Last edited by Pythong; 12-06-2013 at 10:58.
Pythong is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-07-2013 , 02:55   Re: [ANY] Player Analytics
Reply With Quote #22

Updated to v1.1.0. The method by which it detects players' operating systems has been updated. It now requires a gamedata file, which is in the .zip file.
__________________
Dr. McKay is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 12-07-2013 , 08:24   Re: [ANY] Player Analytics
Reply With Quote #23

If a player connects twice, does it write 2 logs or overwrite the first?.


edit: it just keeps making logs. Mabye you can provide a cvar for that in the future?

Edi2:actually that's probably not the best idea
__________________

Last edited by nineteeneleven; 12-07-2013 at 08:56.
nineteeneleven is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 12-07-2013 , 10:04   Re: [ANY] Player Analytics
Reply With Quote #24

Added support for this in Donations Control

https://github.com/nineteeneleven/Donations-Control/
__________________
nineteeneleven is offline
StayOx
SourceMod Donor
Join Date: Jun 2012
Location: Gliese 581g
Old 12-07-2013 , 16:09   Re: [ANY] Player Analytics
Reply With Quote #25

this plugin is very useful ^^, the plugin creates a table with charset utf8, however the charset of querys was not set to utf8

[IMG]http://s29.************/536ght8sn/non_utf8.png[/IMG]

Last edited by StayOx; 12-07-2013 at 16:19. Reason: added a image xD
StayOx is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-07-2013 , 18:48   Re: [ANY] Player Analytics
Reply With Quote #26

Isn't the connect_date not needed since the connect_time has it already?

1386450476 translates to:
Sat, 07 Dec 2013 21:07:56 GMT

Unless it's there to help with front end displaying of data?
__________________
View my Plugins | Donate
TnTSCS is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-07-2013 , 19:41   Re: [ANY] Player Analytics
Reply With Quote #27

Quote:
Originally Posted by TnTSCS View Post
Unless it's there to help with front end displaying of data?
That's what it's there for.
__________________
Dr. McKay is offline
Impact123
AlliedModders Donor
Join Date: Oct 2011
Location: Germany
Old 12-08-2013 , 13:00   Re: [ANY] Player Analytics
Reply With Quote #28

PHP Code:
SELECT DATE_FORMAT(FROM_UNIXTIME(connect_time), "%Y-%m-%m"
Same result as connect_date, let the database do the work.
__________________

Last edited by Impact123; 12-08-2013 at 13:35.
Impact123 is offline
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 12-09-2013 , 10:53   Re: [ANY] Player Analytics
Reply With Quote #29

Great plugin, thanks!

Seeing this on our CSGO servers:

Code:
L 12/09/2013 - 01:17:49: SourceMod error session started
L 12/09/2013 - 01:17:49: Info (map "ar_arena_box") (file "errors_20131209.log")
L 12/09/2013 - 01:17:49: [SM] Native "CloseHandle" reported: Handle 25050489 is invalid (error 1)
L 12/09/2013 - 01:17:49: [SM] Displaying call stack trace for plugin "player_analytics.smx":
L 12/09/2013 - 01:17:49: [SM]   [0]  Line 168, D:\Libraries\Documents\Repos\Public Plugins\scripting\player_analytics.sp::OnMOTDQueried()
L 12/09/2013 - 01:17:49: [SM] Native "CloseHandle" reported: Handle 2506048d is invalid (error 3)
L 12/09/2013 - 01:17:49: [SM] Displaying call stack trace for plugin "player_analytics.smx":
L 12/09/2013 - 01:17:49: [SM]   [0]  Line 202, D:\Libraries\Documents\Repos\Public Plugins\scripting\player_analytics.sp::OnOSQueried()
L 12/09/2013 - 01:26:56: Error log file session closed.
__________________
tigerox is offline
Pickles47
Member
Join Date: Jun 2013
Old 12-13-2013 , 22:58   Re: [ANY] Player Analytics
Reply With Quote #30

Seeing some errors in my database, sometimes the server IP is not added correctly, filling a server_ip as 0.0.0.0:27015.

Also seeing problems with flags, a few times flags are not added properly. For example, my flags are 'azop' on a few occasions the flags are only 'az'. There are no errors in my sourcemod log file when these occur.
Pickles47 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:10.


Powered by vBulletin®
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Theme made by Freecode