Raised This Month: $ Target: $400
 0% 

Player Time Tracker v2.3.5


Post New Thread Reply   
 
Thread Tools Display Modes
DrGamez
Member
Join Date: Jan 2005
Location: Seattle
Old 09-09-2009 , 17:37   Re: Player Time Tracker v2.3.1
Reply With Quote #61

Didn't seem to fix anything, still getting errors on new people.

Code:
L 09/09/2009 - 16:36:09: [ptt.smx] [PTT] ERROR: Problem with the insert SQL query! (INSERT INTO TimeTracker VALUES ('Muffin', 'STEAM_0:1:25494851', '55', '1'))

L 09/09/2009 - 16:37:40: [ptt.smx] [PTT] ERROR: Problem with the insert SQL query! (INSERT INTO TimeTracker VALUES ('( + )> Dr. Glitzkrieg', 'STEAM_0:0:25024432', '9', '1'))
__________________
DrGamez is offline
DrGamez
Member
Join Date: Jan 2005
Location: Seattle
Old 09-09-2009 , 18:13   Re: Player Time Tracker v2.3.1
Reply With Quote #62

Quote:
Originally Posted by DrGamez View Post
Just got this error, not sure what it is:
Code:
L 09/08/2009 - 13:34:11: "Havoc_0987<12><STEAM_0:0:20619192><>" STEAM USERID validated
L 09/08/2009 - 13:35:03: [ptt.smx] [PTT] ERROR: Problem with the insert SQL query! (INSERT INTO TimeTracker VALUES ('Havoc_0987', 'STEAM_0:0:20619192', '52', '1'))
Just switched to 2.3.1 from the previous version (2.2.1).

edit: I deleted the cfg like the instructions state and let one be auto-generated again, let me see if that fixed any issues.

double edit:
Column count doesn't match value count when I try to paste the raw SQL into mysql either.
Fixed my own problem. I don't know if you even use StoredTime in the db anymore so I didn't just outright drop the column, so I just filled in the column you were missing with a harmless 0.

line 235
Code:
Format(query, sizeof(query), "INSERT INTO %s VALUES ('%s', '%s', '%i','%i')", pttTable, escapedName, steamid, RoundToFloor(GetClientTime(target)), action);
changed to
Code:
Format(query, sizeof(query), "INSERT INTO %s VALUES ('%s', '%s', '%i', 0,'%i')", pttTable, escapedName, steamid, RoundToFloor(GetClientTime(target)), action);
line 488
Code:
Format(query, sizeof(query), "INSERT INTO %s VALUES ('%s', '%s', '%i', '%i')", pttTable, escapedName, auth, RoundToFloor(GetClientTime(client)), action);
changed to
Code:
Format(query, sizeof(query), "INSERT INTO %s VALUES ('%s', '%s', '%i', 0, '%i')", pttTable, escapedName, auth, RoundToFloor(GetClientTime(client)), action);
__________________

Last edited by DrGamez; 09-09-2009 at 21:16.
DrGamez is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 09-09-2009 , 21:47   Re: Player Time Tracker v2.3.1
Reply With Quote #63

Yeah, that was it. I forgot to tell people to remove the StoredTime column. Oops.
crazydog is offline
DrGamez
Member
Join Date: Jan 2005
Location: Seattle
Old 09-15-2009 , 00:30   Re: Player Time Tracker v2.3.1
Reply With Quote #64

It seemed to be working fine, but all of a sudden now I'm getting corrupted times again. I went from 69 hours to now 1 hour :/
__________________
DrGamez is offline
decaprime
Junior Member
Join Date: Jun 2006
Old 09-15-2009 , 08:45   Re: Player Time Tracker v2.3.1
Reply With Quote #65

Quote:
Originally Posted by DrGamez View Post
It seemed to be working fine, but all of a sudden now I'm getting corrupted times again. I went from 69 hours to now 1 hour :/
Yeah, I just experienced the same. Not from 69->1 hour but my head admin idles in the server sometimes so he was over 80 hours and now he's at like 40 and jumped down the list =/

I mean no offense by this crazydog you've persevered through a lot of versions but this plugin seems inexorably cursed.
decaprime is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 09-15-2009 , 14:35   Re: Player Time Tracker v2.3.1
Reply With Quote #66

I really wish I knew why it would do that. The only thing I could think of is that the entry in the database is somehow being lost and re-added.

All that happens is that every x seconds, x seconds is added to everyone's time. I really have no idea why it would be dropping, unless they are getting removed+readded to the database.
crazydog is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 09-15-2009 , 16:49   Re: Player Time Tracker v2.3.1
Reply With Quote #67

I've decided to stop supporting this plugin. It's having problems that I can't figure out why they exist, and I don't have the time to debug or modify the plugin anymore. I have programming that I'm doing for a grade, and working on this would take away too much time from that.

if anyone wants to take it over, that would be fine. If not, I guess this plugin will eventually become unapproved since I won't support it anymore.
crazydog is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 09-27-2009 , 22:41   Re: Player Time Tracker v2.3.2
Reply With Quote #68

Yea for some reason even a fresh install of this plugin does not track player times correctly and makes up strange steamids.
__________________
zeroibis is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-23-2010 , 15:03   Re: Player Time Tracker v2.3.2
Reply With Quote #69

So this plugin doesnt work at all anymore or does it still work? Because it's in the approved section...

If not, can someone fix up the code maybe?
__________________


bouncer is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 11-05-2010 , 19:23   Re: Player Time Tracker v2.3.2
Reply With Quote #70

It doesnt work anymore. Im using a custom database on a remote sql server and this plugin keeps trying to connect to the local sqlite database instead (even though its configured to use the remote db).
PAL-18 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 06:03.


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