Raised This Month: $51 Target: $400
 12% 

[ANY] Player Analytics


Post New Thread Reply   
 
Thread Tools Display Modes
StayOx
SourceMod Donor
Join Date: Jun 2012
Location: Gliese 581g
Old 03-01-2014 , 18:41   Re: [ANY] Player Analytics
Reply With Quote #61

about the Web Panel, it would be cool a administration login, I think is not ideal theinformation available to everyone like ip of servers, players steamids, client ip...

apparently this has been planned however not implemented

Just a tip
StayOx is offline
Pickles47
Member
Join Date: Jun 2013
Old 03-02-2014 , 04:03   Re: [ANY] Player Analytics
Reply With Quote #62

I will probably release another update sometime in the next few days that fixes the issues with Premium, MOTD, and OS icons, as well as including the DatePicker, Maps, and improved Server management. I may add a login system, depends on how much time I have.
Pickles47 is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 03-02-2014 , 09:20   Re: [ANY] Player Analytics
Reply With Quote #63

Here are some changes for config.php so you don't need to write everytime SERVER1, SERVERNAME1 ... SERVER2, SERVERNAME2 etc.

Find this:
PHP Code:
define("SERVER1",             '1.1.1.1:27015');
define("SERVERNAME1",         'Server 1');
define("SERVER2",             '2.2.2.2:27015');
define("SERVERNAME2",         "Server 2"); 
Replace with this:
PHP Code:
$server = array(
    
"123.4.456.789:27015" => "PAYLOAD",
    
"123.4.456.789:27016" => "KOTH",
    
#"" => "",
);
define("SERVERLIST"serialize($server)); 
Replace function ConnServer with:
PHP Code:
function ConnServer($Server)
    {
      
$serverlist unserialize(SERVERLIST);
      if(isset(
$serverlist[$Server])) {
        return 
$serverlist[$Server];
      }
      else {
        return 
"Other";
      }  
    } 
__________________
AeroAcrobat is offline
Caliban Avenged
Junior Member
Join Date: Jun 2012
Old 03-03-2014 , 09:57   Re: [ANY] Player Analytics
Reply With Quote #64

Quote:
Originally Posted by Pickles47 View Post
I may add a login system, depends on how much time I have.
Looks like you already did on sinclairpcl.us, Pickles! Very excited to see what the final drop looks like!
Caliban Avenged is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 03-03-2014 , 17:50   Re: [ANY] Player Analytics
Reply With Quote #65

It appears that under the Sessions dashboard, it shows a max of "24" players.. While my server is 32 ;). It can't detect above 24 player servers?
__________________

Last edited by Skyrider; 03-03-2014 at 17:50.
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 03-04-2014 , 07:06   Re: [ANY] Player Analytics
Reply With Quote #66

Quote:
Originally Posted by Skyrider View Post
It appears that under the Sessions dashboard, it shows a max of "24" players.. While my server is 32 ;). It can't detect above 24 player servers?
That is because the plugin itself only counts the amount of slots used, but not the total amount of them.
So the Website logically can't show it.
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 03-04-2014 , 13:02   Re: [ANY] Player Analytics
Reply With Quote #67

Quote:
Originally Posted by pcmaster View Post
That is because the plugin itself only counts the amount of slots used, but not the total amount of them.
So the Website logically can't show it.
oh?



You sure about that? :p It displays the server has 29 players out of 24. Of which is basically impossible. So I went to sessions.php, altered the following code:

Code:
 <td style="text-align:center"><?php echo "$NUMPlayers/24" ?></td>
and changed the 24 to 32. And tada,



It appears that the max 24 server slots is hard set, so it would even appear if you have a eg, max 10 player slot server.

Also, small suggestion. Is there a way the web player search can be enhanced so it can search for SteamID's (ID32/64) as well?
__________________

Last edited by Skyrider; 03-04-2014 at 13:12.
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 03-04-2014 , 15:45   Re: [ANY] Player Analytics
Reply With Quote #68

@Skyrider

With plugin, I meant the Plugin which McKay posted here, not the Web Interface.
If you simply change the 24 to 32 in the sessions.php and also run Servers with 24 slots, it will be incorrect again.

So the best way would be if the Plugin itself (not the WI) tracks the max slot count too.
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
Pickles47
Member
Join Date: Jun 2013
Old 03-04-2014 , 21:21   Re: [ANY] Player Analytics
Reply With Quote #69

I have redone the web panel and it is available at https://github.com/Sinclair47/player_analytics
DEMO HERE


This should be much faster, requires less setup, and should improve performance on large databases.

Last edited by Pickles47; 09-11-2014 at 18:30.
Pickles47 is offline
StayOx
SourceMod Donor
Join Date: Jun 2012
Location: Gliese 581g
Old 03-04-2014 , 22:07   Re: [ANY] Player Analytics
Reply With Quote #70

Quote:
Originally Posted by Pickles47 View Post
Here is an update. SQL scripts in sql folder, you should delete them after you add them to your database.

...

*I believe I squashed most bugs, though you may encounter some.

simply amazing, good job and thanks for sharing
and a tip for those who want more map images, just use map images found in web sourcebans
in folder images > maps. Images already have the exact size and .jpg format

I hope they do not bother with it

Last edited by StayOx; 03-04-2014 at 22:21.
StayOx is offline
Reply



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 01:49.


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