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

Very Basic Player Tracker (Updated 7/15/10)


Post New Thread Reply   
 
Thread Tools Display Modes
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 11-20-2009 , 12:20   Re: Basic Player Tracker
Reply With Quote #11

Nice Plugin! Great Work

Add to the next relase of Sourcemod-Webadmin.

Thx
__________________



Sorry for my very bad english
Greetings HSFighter

Last edited by HSFighter; 11-20-2009 at 12:24.
HSFighter is offline
Send a message via ICQ to HSFighter
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 11-20-2009 , 12:21   Re: Basic Player Tracker
Reply With Quote #12

I found a smal Bug:

Quote:
PHP Code:
CREATE TABLE player_tracker (
    
id int(11auto_increment not null,
    
steamid varchar(255not null,
    
playerip varchar(255not null,
    
servertype varchar(255not null,
    
serverip varchar(255not null,
    
PRIMARY KEY (id),
    
UNIQUE steamid (steamid)
); 
your missing the 'status' column in your SQL-Dump! ( status varchar(255) not null )

Code:
[tracker.smx] SQL Error: Unknown column 'status' in 'field list'
Else nice work



Request:
Any chance to log players Name?
__________________



Sorry for my very bad english
Greetings HSFighter

Last edited by HSFighter; 11-20-2009 at 14:28.
HSFighter is offline
Send a message via ICQ to HSFighter
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 12-14-2009 , 20:06   Re: Basic Player Tracker
Reply With Quote #13

Okay I have fixed the SQL on the first page, thanks for catching that.

As I have said before, I have no real need to track player name but adding support for it would not be difficult at all. I'll see if I can make the small addition to track name.
__________________
msleeper is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 12-23-2009 , 04:05   Re: Basic Player Tracker
Reply With Quote #14

I updated the plugin to 1.2. I added name tracking due to popular request. The plugin will now update player name instead of player IP on duplicate entry.
__________________
msleeper is offline
vertexshader
Senior Member
Join Date: Mar 2008
Old 01-09-2010 , 12:56   Re: Basic Player Tracker
Reply With Quote #15

Quote:
CREATE TABLE `player_tracker` (
`
id` int(11) NOT NULL auto_increment,
`
steamid` varchar(255) NOT NULL,
`
playername` varchar(255) NOT NULL,
`
playerip` varchar(255) NOT NULL,
`
servertype` varchar(255) NOT NULL,
`
serverip` varchar(255) NOT NULL,
`
status` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `steamid` (`steamid`),
KEY `playername` (`playername`),
KEY `playerip` (`playerip`),
KEY `servertype` (`servertype`),
KEY `serverip` (`serverip`),
KEY `status` (`status`),
);
Got this:

Quote:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 16
vertexshader is offline
fnaskari
Junior Member
Join Date: Jan 2010
Old 01-17-2010 , 02:09   Re: Basic Player Tracker
Reply With Quote #16

PHP Code:
CREATE TABLE `player_tracker` (
  `
idint(11NOT NULL auto_increment,
  `
steamidvarchar(255NOT NULL,
  `
playernamevarchar(255NOT NULL,
  `
playeripvarchar(255NOT NULL,
  `
servertypevarchar(255NOT NULL,
  `
serveripvarchar(255NOT NULL,
  `
statusvarchar(255NOT NULL,
  
PRIMARY KEY  (`id`),
  
UNIQUE KEY `steamid` (`steamid`),
  
KEY `playername` (`playername`),
  
KEY `playerip` (`playerip`),
  
KEY `servertype` (`servertype`),
  
KEY `serverip` (`serverip`),
  
KEY `status` (`status`)
); 
commas in wrong spot
fnaskari is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 02-12-2010 , 17:15   Re: Basic Player Tracker
Reply With Quote #17

Doh, thanks. First post fixed.
__________________
msleeper is offline
vertexshader
Senior Member
Join Date: Mar 2008
Old 02-14-2010 , 07:08   Re: Basic Player Tracker
Reply With Quote #18

msleeper, can you release version which checks in GeoIP and adds country and the city of player in the table too ?

Last edited by vertexshader; 06-29-2010 at 06:25. Reason: deleted incorrect info and asking for update
vertexshader is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 07-14-2010 , 16:45   Re: Basic Player Tracker
Reply With Quote #19

I can look into that. I don't know if I can do city, but I think I can do country. I've never really worked with GeoIP stuff before.
__________________
msleeper is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 07-14-2010 , 19:57   Re: Basic Player Tracker (Updated 7/14/10)
Reply With Quote #20

Well that was pretty easy. New version is updated. Also it looks like I forgot to update the plugin to 1.3, so here is the changelog for both 1.3 and 1.4 (current).

Code:
-- 1.3 (6/16/10)
 . Removed duplicate error messaging.
 . Increased MySQL query sizes for instances where the string would be
   longer than expected (that's what she said).

-- 1.4 (7/14/10)
 . Added GeoIP Country field to table, and added new cvar to control how the
   country name is stored.
 . Changed INSERT statement to update all possible fields (name, player IP,
   game type, server IP and GeoIP country) when a duplicate entry is found.
 . Added query to properly handle UTF8 player names.
Here is the SQL you can run to modify an existing table with the new GeoIP Country field:

PHP Code:
    ALTER  TABLE  `player_tracker`  ADD  `geoipcountryVARCHAR255  )  NOT  NULL  AFTER  `serverip` ; 
And lastly, here is the new cvar. I recommend simply deleting your config file and letting the plugin generate a new one.

sm_tracker_geoiptype - Add player's GeoIP country to the database. 0 = Disabled, 1 = 2 letter Country Code, 2 = 3 letter Country Code, 3 = full Country Name.
__________________
msleeper 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 16:06.


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