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

[TF2] backpack.tf Price Check


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Plugin ID:
3211
Plugin Version:
2.11.1
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    32 
    Plugin Description:
    Provides an in-game price check command that uses prices from backpack.tf
    Unapprover:
    Reason for Unapproving:
    Abandoned, doesn't work
    Old 08-31-2012 , 22:24   [TF2] backpack.tf Price Check
    Reply With Quote #1

    [TF2] backpack.tf Price Check

    v2.11.1

    This is abandoned and probably doesn't work. You might find some success using this version instead.

    Description:
    Downloads the latest price list from backpack.tf every hour and provides a !pc command that allows users to quickly look up the prices of items. The item name can be partial, for instance !pc napper's will present prices for Napper's Respite. Displays prices for all qualities, including unusual. !pc without any item name will present a list of all items.

    The price list is updated every hour automatically. When a price list update is loaded, a notification is displayed to all users, followed by a list of all prices that have changed in the past hour. Example:
    • Price list updated.
    • Type !pc for a price check.
    • Demoman's Fro: Up from 1.33-1.44 refined to 1.55-1.66 refined
    • Orbiting Fire Handyman's Handle: Down from 1.5 buds to 1.3-1.5 buds

    This plugin also provides !backpack and !bp commands that use backpack.tf. Set backpack_tf_bp_command to 0 if you have a separate backpack viewing plugin.



    Servers running this plugin will be listed at http://backpack.tf/servers

    Commands:
    sm_pc [item name] - price checks an item
    sm_pricecheck [item name] - same as above
    sm_bp [username] - opens a player's backpack (or displays a list of clients if no match is found)
    sm_backpack [username] - same as above
    sm_updateprices - forces the price list to update (updates every hour automatically)

    Cvars:
    backpack_tf_version - plugin version
    backpack_tf_bp_command - enables the !bp command (defaults to 1)
    backpack_tf_display_update_notification - enables the HUD + sound update notification and price update ticker (defaults to 1)
    backpack_tf_display_changed_prices - if backpack_tf_display_update_notification is enabled, displays all prices that have changed since the last update as a ticker (defaults to 1)
    backpack_tf_update_notification_x_pos - X-position for HUD text (defaults to -1.0)
    backpack_tf_update_notification_y_pos - Y-position for HUD text (defaults to 0.1)
    backpack_tf_update_notification_red - Red value of HUD text (defaults to 0)
    backpack_tf_update_notification_green - Green value of HUD text (defaults to 255)
    backpack_tf_update_notification_blue - Blue value of HUD text (defaults to 0)
    backpack_tf_update_notification_message_time - Seconds to keep each HUD message on the screen (defaults to 5)
    backpack_tf_menu_open_time - Seconds to keep the price check menu open, 0 for forever (defaults to 0)
    backpack_tf_api_key - API key obtained from http://backpack.tf/api/register/
    backpack_tf_add_tag - Adds the "backpack.tf" tag to sv_tags, which is required for the server to be listed at http://backpack.tf/servers (defaults to 1)
    backpack_tf_auto_update - enables automatic updating of the plugin (has no effect if Updater is not installed) (defaults to 1)

    Plugin generates and loads cfg/sourcemod/plugin.backpack-tf.cfg.

    Requirements:
    Requires the SteamTools extension.

    Installation:
    Install SteamTools, extract backpack-tf.zip, upload its contents to your /addons/sourcemod directory, and reboot your server or type "sm plugins load backpack-tf" into your console or rcon. Once loaded, the plugin will generate a configuration file under cfg/sourcemod. Get a backpack.tf API key and fill it into the appropriate cvar in the configuration file, then reload it (sm plugins reload backpack-tf).

    Auto Update:
    Install Updater. The plugin will be autoupdated according to your Updater settings. It'll work without Updater.

    Changelog:[list][*]v2.11.0 (1/26/15)
    • Added Halloween 2014 taunt unusual effects
    • v2.10.0 (12/9/14)
      • Added EOTL unusual effects
    • v2.9.0 (11/24/14)
      • Added Halloween 2014 unusual effects
    • v2.8.0 (9/16/14)
      • Added new taunt effects
    • v2.7.0 (1/1/14)
      • Added support for Collector's
      • Added graceful MOTD failure messages
    • v2.6.0 (11/2/13)
      • Added support for Vintage Uncraftable
      • Added new Halloween Unusual effects
    • v2.5.0 (10/23/13)
      • Added Russian translation
    • v2.4.0 (9/23/13)
      • Added support for Strange Uncraftable
      • Added Spanish and German translations
    • v2.3.0 (7/21/13)
      • Added more verbose error logging
    • v2.2.0 (6/26/13)
      • Added new Unusual effects
    • v2.1.0 (5/19/13)
      • Added new robot Unusual effects
    • v2.0.0 (3/8/13)
      • Updated plugin to use v3 of the backpack.tf IGetPrices API
      • Plugin now requires a backpack.tf API key which can be obtained at http://backpack.tf/api/register/ and should be set in backpack_tf_api_key
      • Added backpack_tf_update_notification_red, backpack_tf_update_notification_green, and backpack_tf_update_notification_blue cvars to control HUD text color
      • Added backpack_tf_update_notification_message_time cvar to control HUD message duration
      • Added backpack_tf_add_tag cvar which allows you to disable automatic sv_tags appending
      • Plugin now generates a config file under cfg/sourcemod/plugin.backpack-tf.cfg
      • Added translation file under sourcemod/translations/backpack-tf.phrases.txt
      • Added price ranges
      • Improved HUD notifications
      • Removed dependency on doctormckay.com web server
      • Various other improvements
    • v1.7.0 (2/11/13)
      • Added backpack.tf tag to sv_tags
    • v1.6.0 (1/10/13)
      • Fixed some rounding inaccuracy
      • Items that have prices that are 1+ buds will now display their key prices in parenthesis
      • Keys no longer display their prices as '1.00 Keys'
      • Buds no longer display their prices as '1.00 Buds'
    • v1.5.0 (11/5/12)
      • Added new Halloween Unusual effects
      • Improved Updater integration
    • v1.4.0 (9/23/12)
      • Added backpack_tf_menu_open_time cvar
      • When multiple items are matched, a menu of results will now be presented
      • Changed update URL to SVN repository
    • v1.3.0 (9/11/12)
      • Added support for uncraftable prices
    • v1.2.0 (9/9/12)
      • Fixed the plugin not automatically updating prices
    • v1.1.0 (9/5/12)
      • Added backpack_tf_display_changed_prices cvar
      • Added backpack_tf_update_notification_x_pos and backpack_tf_update_notification_y_pos cvars
      • Fixed potential bug if SteamTools takes a while to load
    • v1.0.0 (8/31/12)
      • Initial release

    Download Plugin (backpack-tf.zip)

    .zip file includes compiled binary, source, and translations
    Translate this plugin


    Requires updater.inc, mckayupdater.sp, advanced_motd.inc, and steamtools.inc to compile.
    __________________

    Last edited by Dr. McKay; 07-07-2022 at 19:22.
    Dr. McKay is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 08-31-2012 , 22:35   Re: [TF2] backpack.tf Price Check
    Reply With Quote #2

    I was going to attempt something like this before with the spreadsheet, didn't know how to set up the database and the the search bar doesn't effect the url of the web site. Good plugin though *-*
    ReFlexPoison is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-31-2012 , 22:36   Re: [TF2] backpack.tf Price Check
    Reply With Quote #3

    Quote:
    Originally Posted by ReFlexPoison View Post
    I was going to attempt something like this before with the spreadsheet, didn't know how to set up the database and the the search bar doesn't effect the url of the web site. Good plugin though *-*
    I recommend backpack.tf prices over spreadsheet prices because the spreadsheet owner has been proven to be untrustworthy, and also backpack.tf prices are based on community voting.
    __________________
    Dr. McKay is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 08-31-2012 , 22:36   Re: [TF2] backpack.tf Price Check
    Reply With Quote #4

    Looks ok but it conflicts with my other !bp plugin which I prefer for for TF2items with a larger MOTD window... I'd have to edit it out. I'll have to test this out with that edited out to see if its better to use than me linking !price command to open up tf2trends.com in the MOTD.
    Horsedick is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-31-2012 , 22:37   Re: [TF2] backpack.tf Price Check
    Reply With Quote #5

    Quote:
    Originally Posted by Horsedick View Post
    Looks ok but it conflicts with my other !bp plugin which I prefer for for TF2items with a larger MOTD window... I'd have to edit it out. I'll have to test this out with that edited out to see if its better to use than me linking !price command to open up tf2trends.com in the MOTD.
    backpack_tf_bp_command 0
    __________________
    Dr. McKay is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 08-31-2012 , 22:37   Re: [TF2] backpack.tf Price Check
    Reply With Quote #6

    Quote:
    Originally Posted by Dr. McKay View Post
    I recommend backpack.tf prices over spreadsheet prices because the spreadsheet owner has been proven to be untrustworthy, and also backpack.tf prices are based on community voting.
    yep for those that do not know about this:
    http://forums.steamrep.com/threads/7...-updated.9825/


    edit: aww ok about the "0" , excuse me as I've not looked at the source yet.
    edit#2: the video doesn't come up for me either

    Last edited by Horsedick; 08-31-2012 at 22:40.
    Horsedick is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-31-2012 , 22:41   Re: [TF2] backpack.tf Price Check
    Reply With Quote #7

    Video is still uploading and will be live in about a half hour. FRAPS is a huge disk hog; 745 MB for a 42 second video.
    __________________

    Last edited by Dr. McKay; 08-31-2012 at 22:41.
    Dr. McKay is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 08-31-2012 , 23:32   Re: [TF2] backpack.tf Price Check
    Reply With Quote #8

    Ok I tested this with just a change of the !backpack cvar and I'm getting unknown command when attempting something like !pricecheck key or !pc key or just !pc/!pricecheck in general - the !updateprices seems to be working which I seem to have to do right after the server restarts.

    Perhaps make it so it auto checks for that right after a map/server restart but the other issue I have no clue. I made sure that steamtools ext was also updated.
    Horsedick is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-31-2012 , 23:33   Re: [TF2] backpack.tf Price Check
    Reply With Quote #9

    Quote:
    Originally Posted by Horsedick View Post
    Ok I tested this with just a change of the !backpack cvar and I'm getting unknown command when attempting something like !pricecheck key or !pc key or just !pc/!pricecheck in general - the !updateprices seems to be working which I seem to have to do right after the server restarts.

    Perhaps make it so it auto checks for that right after a map/server restart but the other issue I have no clue. I made sure that steamtools ext was also updated.
    Yeah, I just installed it and am testing it, and it appears that doing a query in OnPluginStart doesn't work. Update coming soon.
    __________________
    Dr. McKay is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 08-31-2012 , 23:49   Re: [TF2] backpack.tf Price Check
    Reply With Quote #10

    Quote:
    Originally Posted by Dr. McKay View Post
    Yeah, I just installed it and am testing it, and it appears that doing a query in OnPluginStart doesn't work. Update coming soon.
    Also, you might want to format display output like so: <Item name>: <price>.

    The - threw me off at first.
    Mr. Man is offline
    Reply


    Thread Tools
    Display Modes

    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:16.


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