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

[TF2] Item Logger (With Web Panel)


Post New Thread Reply   
 
Thread Tools Display Modes
Geit
Senior Member
Join Date: Oct 2009
Location: Home
Old 10-03-2010 , 08:00   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #11

Quote:
Originally Posted by asherkin View Post
Great system, found a few issues though.

Line 189 of index.php needs the / in the beginning of the string removed.

In avatars_cron.php there are a few issues:
$path_to_avatars should have "avatars/" added on directly in the variable.
The first time $xml is set should be removed, as it's switched to use the web api below it.
Then the correct way to get the avatar would be $profile->players->player->avatarmedium.
Cheers! Updated the web panel yet again.

(Issues with avatar_cron are purely because I quickly adapted it from our, GamingMaster's, Daemon which is a lot more dated and complicated then what is included)
Geit is offline
DeJaDeW
SourceMod Donor
Join Date: Jul 2009
Location: California
Old 10-03-2010 , 13:14   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #12

Thanks, no major problems yet. Great job.

http://bfused.com/?page_id=272

Now all I need to setup a cron job
__________________
DeJaDeW is offline
aRcTiC
SourceMod Donor
Join Date: Apr 2010
Old 10-06-2010 , 19:12   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #13

nnCron and wget works well for the avatars cron job i set it to 5 minutes
also Geit can you also add item search as well?
aRcTiC is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 10-07-2010 , 00:15   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #14

Sooo... does this require a lot of constant mysql use or does it send the data on map end so it doesnt lag users during gameplay.
__________________

DontWannaName is offline
Geit
Senior Member
Join Date: Oct 2009
Location: Home
Old 10-07-2010 , 03:29   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #15

Quote:
Originally Posted by aRcTiC View Post
nnCron and wget works well for the avatars cron job i set it to 5 minutes
also Geit can you also add item search as well?
Will do.

Quote:
Originally Posted by DontWannaName View Post
Sooo... does this require a lot of constant mysql use or does it send the data on map end so it doesnt lag users during gameplay.
It uses threaded queries (minus the connection event) and doesn't process results so there should be no lag at all.
Geit is offline
aRcTiC
SourceMod Donor
Join Date: Apr 2010
Old 10-07-2010 , 03:29   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #16

plugin hooks item_found event and logs it instantly when someone finds,crafts,unboxes,trades,earns,gifts,purch ases,refunds something...
so ya it constantly uses your mysql db and not just on map change

edit:
i couldn't wait so i edited a few things and added item search myself
also made it search the whole db not just from midnight of that day

notice ip localhost was related to how you got ip in your plugin, so i changed the ip cvar to my outside ip
all should be better i hope

http://uberz.servegame.com/drops

Last edited by aRcTiC; 10-07-2010 at 03:38.
aRcTiC is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 10-07-2010 , 09:54   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #17

It keeps saying:
Quote:
Table 'my1094_drops.log' doesn't exist
I've edited both index & update.php and also ran it.

EDIT:
I manually ran:
Quote:
CREATE TABLE IF NOT EXISTS `log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `steam_id` varchar(25) NOT NULL DEFAULT '0', `time` int(11) NOT NULL DEFAULT '0', `players` int(11) NOT NULL DEFAULT '0', `item` varchar(50) NOT NULL DEFAULT '0', `server` varchar(32) NOT NULL DEFAULT '0', `method` tinyint(2) NOT NULL DEFAULT '0', `quality` tinyint(2) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `actualderptime` (`time`), KEY `Index 3` (`steam_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Through Phpmyadmin. Works good now.

I am getting errors though when using update.php
Quote:
[07-Oct-2010 13:49:46] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so: undefined symbol: sqlite3_libversion in Unknown on line 0
[07-Oct-2010 13:50:07] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so: undefined symbol: sqlite3_libversion in Unknown on line 0
[07-Oct-2010 13:52:06] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so: undefined symbol: sqlite3_libversion in Unknown on line 0
[07-Oct-2010 13:52:11] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so: undefined symbol: sqlite3_libversion in Unknown on line 0
The site doesn't really seem to update though:
http://drops.forcepit.com/

I'm pretty sure everything is set correctly in the database.cfg file. No errors within the sourcemod logs..

Plus,
Number of items found/crafted today: 0
That's 0 per hour!

It's not updating.

Does the plugin show any kind of SQL errors within the error log if it can't connect?
__________________

Last edited by Skyrider; 10-07-2010 at 10:34.
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
aRcTiC
SourceMod Donor
Join Date: Apr 2010
Old 10-07-2010 , 11:29   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #18

found the rimmed raincatcher (aka drinking_hat.png) lulz
heres the pack for people who couldn't use update.php for whatever reason

Last edited by aRcTiC; 10-07-2010 at 13:58.
aRcTiC is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 10-07-2010 , 12:59   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #19

Quote:
Originally Posted by aRcTiC View Post
found the rimmed raincatcher (aka drinking_hat.png) lulz
heres the pack for people who couldn't use update.php for whatever reason
File attachment doesn't work.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
aRcTiC
SourceMod Donor
Join Date: Apr 2010
Old 10-07-2010 , 13:58   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #20

fixed, here again

Last edited by aRcTiC; 10-07-2010 at 16:45. Reason: mediafire suks
aRcTiC 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 20:18.


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