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

[DEV] *DEAD* TF2ItemsInfo v1.8.17.7 (21 Nov 2013)


Post New Thread Reply   
 
Thread Tools Display Modes
Velture
Senior Member
Join Date: Jan 2011
Location: Poland, Warsaw
Old 06-10-2013 , 13:31   Re: [DEV] TF2ItemsInfo v1.8.16 (25 May 2013)
Reply With Quote #101

I'm still getting memory leak errors:

Code:
06/10/2013 - 15:50:32: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "tf2itemsinfo.smx")
L 06/10/2013 - 15:50:32: [SM] Unloading plugin to free 6068 handles.
L 06/10/2013 - 15:50:32: [SM] Contact the author(s) of this plugin to correct this error.
It happens couple times a day. I'm using latest version of tf2itemsinfo.
__________________

Last edited by Velture; 06-10-2013 at 13:31.
Velture is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 06-10-2013 , 15:09   Re: [DEV] TF2ItemsInfo v1.8.16 (25 May 2013)
Reply With Quote #102

known issue, trying to figure out the reson.
but...

what if there're
Click image for larger version

Name:	conspiracy-keanu.jpg
Views:	365
Size:	29.7 KB
ID:	121119
too many items
__________________
Leonardo is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-11-2013 , 13:23   Re: [DEV] TF2ItemsInfo v1.8.16 (25 May 2013)
Reply With Quote #103

Quote:
Originally Posted by Leonardo View Post
known issue, trying to figure out the reson.
but...

what if there're
Attachment 121119
too many items
Have you thought about updating it to save the parsed item info to a database?

I've thought about it, but I'm too busy/lazy to write it.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 06-11-2013 , 14:12   Re: [DEV] TF2ItemsInfo v1.8.16 (25 May 2013)
Reply With Quote #104

Quote:
Originally Posted by Powerlord View Post
Have you thought about updating it to save the parsed item info to a database?

I've thought about it, but I'm too busy/lazy to write it.
Interesting idea.
Maybe I'll do this.
But furst - exams.

EDIT:
wow shet
I've got it working
but it takes 4-7 seconds to add items' data to DB
(1611 items, 1612 queries (+ table creation))
so I'm not sure if it's good idea to add it
maybe write some small plugin that adds about 20 items per half-second?
__________________

Last edited by Leonardo; 06-12-2013 at 15:11.
Leonardo is offline
N3X15
Junior Member
Join Date: Nov 2012
Location: Seattle, WA
Old 06-14-2013 , 19:51   Re: [DEV] TF2ItemsInfo v1.8.16 (25 May 2013)
Reply With Quote #105

Quote:
Originally Posted by Leonardo View Post
Interesting idea.
Maybe I'll do this.
But furst - exams.

EDIT:
wow shet
I've got it working
but it takes 4-7 seconds to add items' data to DB
(1611 items, 1612 queries (+ table creation))
so I'm not sure if it's good idea to add it
maybe write some small plugin that adds about 20 items per half-second?
Presumably you're using SQLite, so I'm not sure if this'll work, but you can combine multiple INSERT queries into one on some database systems:

Code:
INSERT INTO Posts (pstID,pstName,pstContent) VALUES (1,'Bob','...'),(2,'Valerie','...')
It'll still take some time, but at least it'll only parse it once.
N3X15 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 06-15-2013 , 01:39   Re: [DEV] TF2ItemsInfo v1.8.16 (25 May 2013)
Reply With Quote #106

Quote:
Originally Posted by N3X15 View Post
Presumably you're using SQLite, so I'm not sure if this'll work, but you can combine multiple INSERT queries into one on some database systems:

Code:
INSERT INTO Posts (pstID,pstName,pstContent) VALUES (1,'Bob','...'),(2,'Valerie','...')
It'll still take some time, but at least it'll only parse it once.
I'm using MySQL
and I think your method will require just a HUGE STRING, longer than 4096 symbols. because INSERT INTO also contains ON DUPLICATE KEY SET thing.

EDIT:
1628 items
average length: 622 (min 461, max 783) chars.

Last edited by Leonardo; 06-18-2013 at 00:21.
Leonardo is offline
StayOx
SourceMod Donor
Join Date: Jun 2012
Location: Gliese 581g
Old 07-05-2013 , 21:12   Re: [DEV] TF2ItemsInfo v1.8.17.1 (15 Jun 2013)
Reply With Quote #107

please add a file on format .zip including source code, the current way is impossible to download the plugin already compiled.
StayOx is offline
island55
Senior Member
Join Date: Aug 2010
Location: charleston
Old 07-10-2013 , 12:52   Re: [DEV] TF2ItemsInfo v1.8.17.1 (15 Jun 2013)
Reply With Quote #108

question, I use the giveweapon plugin on a few of my servers so would it be better if I used tf2ii or not? this is probably a completely newb question, which is what I am so..

thanks for you time


edit: if it is best to use tf2ii with the tf2items give weapon, would be best to use MySQL or SQLite for the database?

thanks!

Last edited by island55; 07-10-2013 at 12:55. Reason: database question
island55 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 07-10-2013 , 17:07   Re: [DEV] TF2ItemsInfo v1.8.17.1 (15 Jun 2013)
Reply With Quote #109

Quote:
Originally Posted by island55 View Post
question, I use the giveweapon plugin on a few of my servers so would it be better if I used tf2ii or not? this is probably a completely newb question, which is what I am so..

thanks for you time
if you want to have new weapons right after tf2's update - Yes. otherwise - No.


Quote:
Originally Posted by island55 View Post
edit: if it is best to use tf2ii with the tf2items give weapon, would be best to use MySQL or SQLite for the database?

thanks!
DataBase storing feature is not completed yet.
but I suggest to use MySQL.
__________________

Last edited by Leonardo; 07-10-2013 at 17:08.
Leonardo is offline
island55
Senior Member
Join Date: Aug 2010
Location: charleston
Old 07-10-2013 , 19:06   Re: [DEV] TF2ItemsInfo v1.8.17.1 (15 Jun 2013)
Reply With Quote #110

thanks Leonardo!
island55 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 09:14.


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