Raised This Month: $ Target: $400
 0% 

[TF2] Plugin keeper for tf2itemsinfo


Post New Thread Reply   
 
Thread Tools Display Modes
bottiger
AlliedModders Donor
Join Date: Dec 2010
Old 01-25-2015 , 02:29   Re: [TF2] Plugin keeper for tf2itemsinfo
Reply With Quote #31

Quote:
Originally Posted by Potato Uno View Post
Or we can use Friagram's extension which works entirely in sourcepawn.
Frigram's extension uses the web api which goes down as much as steamcommunity.com. Not something you want to rely on.

As proven by TF2ItemsInfo, parsing the VDF in sourcepawn is going to take 10x longer than doing it in Python.

Quote:
Originally Posted by Potato Uno View Post
Or we can not use tf2itemsinfo and write our own parser (since items_game.txt is ultimately a keyvalue file). In the case of TF2 BWR (Michal's, Leornado's, Benoist's plugin), they don't need all the offerings of TF2ItemsInfo. They only need it to get the weapon class of an item (e.g. "tf_weapon_minigun"), which can also be obtained directly from items_game.txt itself (and parsed into an adt_trie). They don't need any data on hats or cosmetics (bar gatebot hats). So purposely ignore the thousands of miscs Valve has put in the game, and suddenly the data needed from items_game.txt is much smaller. This also applies for the give weapon plugin.

Take only what you need, not what you don't need. (Inspired from asherkin from here.)

There are other alternatives. [For once I agree with Michal.]
And what happens when one day you need the slot of an item or an attribute? Are you going to end up duplicating tf2itemsinfo? What happens when you need another plugin that requires the same thing? Are you going to have 3 different plugins parsing items_game.txt? Things like this belong in a single plugin.
__________________

Last edited by bottiger; 01-25-2015 at 02:29.
bottiger is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-25-2015 , 03:45   Re: [TF2] Plugin keeper for tf2itemsinfo
Reply With Quote #32

Quote:
Originally Posted by Michalplyoutube View Post
Good luck trying to spawn a working sapper with TF2Items
Um. But I'm pretty sure giveweapon (which uses tf2items) can do that. Go look at its source.
__________________

Last edited by Chdata; 01-25-2015 at 03:46.
Chdata is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 05-22-2015 , 13:04   Re: [TF2] Plugin keeper for tf2itemsinfo
Reply With Quote #33

Thanks a lot for this plugin, I had installed the unusual plugin recently that let's you put unusual effects on your weapons, and one day it had stopped working. So I googled a round a bit and found this, so it was probably a crash.
I'll let you know if I experience any problems with this plugin.
__________________

Last edited by Wormy; 05-22-2015 at 13:07.
Wormy 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:33.


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