Giter Site home page Giter Site logo

tf2-automatic-gui's Introduction

TF2-Automatic GUI

An easy to use graphical user interface that helps you add items faster to your bot's pricelist!

Guide

Please see the Wiki for an installation / usage guide.

Note

This project is open source and thus it takes more time to fix bugs, please be patient.

Contributing

For contributing, please use eslint for linting, it makes code more readable and usable. Your PR can be closed if you don't follow this rule.

tf2-automatic-gui's People

Contributors

arik123 avatar armored-dragon avatar danocmx avatar dependabot[bot] avatar zeusjunior avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tf2-automatic-gui's Issues

[Suggestion] - Top Buyers/Sellers Info & Price bumping queue

Suggestion 1 (Top Buyers/Sellers Info):
In my opinion integrating the top 3-5 buyers/sellers from backpack.tf below an item's price change page (after you click it to change it's price).
This would make price changes much faster because it wouldn't require you to open up backpack.tf for every item and overall make the experience just a little better overall.

Suggestion 2 (Price bumping queue)
This could be a setting or just a default option, but in a nutshell this gives you the option to "Save and Continue" as a button next to the "Save" button so you can pricebump items even faster.

And when combining these 2 suggestions price bumping, especially for unusuals would be much, much faster.

[Bug] Unnecessary scroll bar at botton of page

Website renders unnecessary scrollbar at botton of page.
I would suggest enclosing page content with
<div class="container-fluid"></div>
and put everything exept navbar inside to fix it.

Pricelist.json

I cant find the pricelist.json
just have pricelist.js

[Suggestion] - Copy/paste

Be able to copy selected items from one instance of gui to another or even share copied items.
Could be usefull for managing multiple bots

[Suggestion] add search box

Add a search menu for adding items with potentially photo of the item. Just like the bp.tf and bot.tf. It's gonna be pretty complicated i think but it is quite an improvement.

Besides, maybe add search box for existing item in the listings. But tbh, it isn't really practical imo. User can Ctrl F i think and it's the same thing

[Bug] Won't delete all selected items

What is the problem?
Some items that are in the pricelist and marked with checkmarks are not removed from the pricelist.

How to reproduce:

  1. On "Home" page, select "Show 25 entries"

image

  1. Select every item on these first page of 25 items.

  2. Try to delete this, click on "Delete Selected".

(First try) image

(Second try) image

It can be less than 25.

Check ratelimit

Pause for x time when ratelimit has been hit, then continue

[Bug] Change minimum stock

What is the problem?
Won't change minimum tock, when the first number of maximum stock is less than minimum stock

How to reproduce:

  1. Simply change the minimum stock from one item, for example ToD:
    image
    image
  2. But if the first number of maximum stock has been more than number of minimum stock, then do this:
    image
    image

This bug can be the same as #33

[Error] Script breaks

The script breaks when there's an item failed to add and the user continues to add new items. For example, the user added an "Air Strike" to the listing and it failed, when the user tries to add other new items to the listings, the script breaks with an error.

Error:

C:\Users\User\Desktop\tf2-automatic-gui-master\utils.js:292
if (pricelist[i].sku == items[j].sku) {
^

TypeError: Cannot read property 'sku' of undefined
at C:\Users\User\Desktop\tf2-automatic-gui-master\utils.js:292:42
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
Press any key to continue . . .

Not all items in the box are added

I added around 100 items to the box and only 30 were added.

Input:
Strange Specialized Killstreak Air Strike
Strange Specialized Killstreak Ambassador
Strange Specialized Killstreak Atomizer
Strange Specialized Killstreak Australium Ambassador
Strange Specialized Killstreak Australium Black Box
Strange Specialized Killstreak Australium Flame Thrower
Strange Specialized Killstreak Australium Force-A-Nature
Strange Specialized Killstreak Australium Frontier Justice
Strange Specialized Killstreak Australium Grenade Launcher
Strange Specialized Killstreak Australium Knife
Strange Specialized Killstreak Australium Medi Gun
Strange Specialized Killstreak Australium Minigun
Strange Specialized Killstreak Australium Rocket Launcher
Strange Specialized Killstreak Australium Scattergun
Strange Specialized Killstreak Australium Sniper Rifle
Strange Specialized Killstreak Australium Stickybomb Launcher
Strange Specialized Killstreak Australium Tomislav
Strange Specialized Killstreak Australium Wrench
Strange Specialized Killstreak AWPer Hand
Strange Specialized Killstreak Axtinguisher
Strange Specialized Killstreak Back Scatter
Strange Specialized Killstreak Back Scratcher
Strange Specialized Killstreak Backburner
Strange Specialized Killstreak Battalion's Backup
Strange Specialized Killstreak Bazaar Bargain
Strange Specialized Killstreak Beggar's Bazooka
Strange Specialized Killstreak Big Earner
Strange Specialized Killstreak Black Box
Strange Specialized Killstreak Blutsauger
Strange Specialized Killstreak Bonk! Atomic Punch
Strange Specialized Killstreak Boston Basher
Strange Specialized Killstreak Brass Beast
Strange Specialized Killstreak Bread Bite
Strange Specialized Killstreak Buff Banner
Strange Specialized Killstreak Bushwacka
Strange Specialized Killstreak Candy Cane
Strange Specialized Killstreak Chargin' Targe
Strange Specialized Killstreak Claidheamh Mòr
Strange Specialized Killstreak Cleaner's Carbine
Strange Specialized Killstreak Cloak and Dagger
Strange Specialized Killstreak Concheror
Strange Specialized Killstreak Conniver's Kunai
Strange Specialized Killstreak Cow Mangler 5000
Strange Specialized Killstreak Crit-a-Cola
Strange Specialized Killstreak Crusader's Crossbow
Strange Specialized Killstreak Dead Ringer
Strange Specialized Killstreak Degreaser
Strange Specialized Killstreak Detonator
Strange Specialized Killstreak Diamondback
Strange Specialized Killstreak Direct Hit
Strange Specialized Killstreak Disciplinary Action
Strange Specialized Killstreak Enforcer
Strange Specialized Killstreak Equalizer
Strange Specialized Killstreak Escape Plan
Strange Specialized Killstreak Eyelander
Strange Specialized Killstreak Family Business
Strange Specialized Killstreak Fan O'War
Strange Specialized Killstreak Festive Ambassador
Strange Specialized Killstreak Festive Axtinguisher
Strange Specialized Killstreak Festive Backburner
Strange Specialized Killstreak Festive Black Box
Strange Specialized Killstreak Festive Bonesaw
Strange Specialized Killstreak Festive Buff Banner
Strange Specialized Killstreak Festive Crusader's Crossbow
Strange Specialized Killstreak Festive Eyelander
Strange Specialized Killstreak Festive Flame Thrower
Strange Specialized Killstreak Festive Flare Gun
Strange Specialized Killstreak Festive Force-A-Nature
Strange Specialized Killstreak Festive Frontier Justice
Strange Specialized Killstreak Festive Grenade Launcher
Strange Specialized Killstreak Festive Jarate
Strange Specialized Killstreak Festive Knife
Strange Specialized Killstreak Festive Medi Gun
Strange Specialized Killstreak Festive Minigun
Strange Specialized Killstreak Festive Revolver
Strange Specialized Killstreak Festive Rocket Launcher
Strange Specialized Killstreak Festive Sandvich
Strange Specialized Killstreak Festive Sapper
Strange Specialized Killstreak Festive Scattergun
Strange Specialized Killstreak Festive Shotgun
Strange Specialized Killstreak Festive SMG
Strange Specialized Killstreak Festive Sniper Rifle
Strange Specialized Killstreak Festive Stickybomb Launcher
Strange Specialized Killstreak Festive Ubersaw
Strange Specialized Killstreak Festive Wrangler
Strange Specialized Killstreak Festive Wrench
Strange Specialized Killstreak Flame Thrower
Strange Specialized Killstreak Flare Gun
Strange Specialized Killstreak Flying Guillotine
Strange Specialized Killstreak Force-A-Nature
Strange Specialized Killstreak Frontier Justice
Strange Specialized Killstreak Gloves of Running Urgently
Strange Specialized Killstreak Grenade Launcher
Strange Specialized Killstreak Half-Zatoichi
Strange Specialized Killstreak Hitman's Heatmaker
Strange Specialized Killstreak Holiday Punch
Strange Specialized Killstreak Homewrecker
Strange Specialized Killstreak Huo-Long Heater
Strange Specialized Killstreak Iron Bomber
Strange Specialized Killstreak Jag
Strange Specialized Killstreak Jarate
Strange Specialized Killstreak Killing Gloves of Boxing
Strange Specialized Killstreak Knife
Strange Specialized Killstreak Kritzkrieg
Strange Specialized Killstreak Kukri
Strange Specialized Killstreak L'Etranger
Strange Specialized Killstreak Liberty Launcher
Strange Specialized Killstreak Loch-n-Load
Strange Specialized Killstreak Mad Milk
Strange Specialized Killstreak Mantreads
Strange Specialized Killstreak Market Gardener
Strange Specialized Killstreak Medi Gun
Strange Specialized Killstreak Minigun
Strange Specialized Killstreak Mutated Milk
Strange Specialized Killstreak Natascha
Strange Specialized Killstreak Neon Annihilator
Strange Specialized Killstreak Original
Strange Specialized Killstreak Panic Attack
Strange Specialized Killstreak Persian Persuader
Strange Specialized Killstreak Phlogistinator
Strange Specialized Killstreak Pistol
Strange Specialized Killstreak Pomson 6000
Strange Specialized Killstreak Powerjack
Strange Specialized Killstreak Pretty Boy's Pocket Pistol
Strange Specialized Killstreak Quick-Fix
Strange Specialized Killstreak Quickiebomb Launcher
Strange Specialized Killstreak Red-Tape Recorder
Strange Specialized Killstreak Rescue Ranger
Strange Specialized Killstreak Reserve Shooter
Strange Specialized Killstreak Revolver
Strange Specialized Killstreak Righteous Bison
Strange Specialized Killstreak Rocket Launcher
Strange Specialized Killstreak Sandman
Strange Specialized Killstreak Sandvich
Strange Specialized Killstreak Scattergun
Strange Specialized Killstreak Scorch Shot
Strange Specialized Killstreak Scotsman's Skullcutter
Strange Specialized Killstreak Scottish Resistance
Strange Specialized Killstreak Shortstop
Strange Specialized Killstreak Shotgun
Strange Specialized Killstreak Snack Attack
Strange Specialized Killstreak Sniper Rifle
Strange Specialized Killstreak Soda Popper
Strange Specialized Killstreak Southern Hospitality
Strange Specialized Killstreak Splendid Screen
Strange Specialized Killstreak Spy-cicle
Strange Specialized Killstreak Stickybomb Launcher
Strange Specialized Killstreak Sydney Sleeper
Strange Specialized Killstreak Tomislav
Strange Specialized Killstreak Ubersaw
Strange Specialized Killstreak Vaccinator
Strange Specialized Killstreak Warrior's Spirit
Strange Specialized Killstreak Widowmaker
Strange Specialized Killstreak Winger
Strange Specialized Killstreak Wrangler
Strange Specialized Killstreak Wrench
Strange Specialized Killstreak Your Eternal Reward

Output in the website: 0 items added, 2 items failed, 28 items were already in your pricelist.

Logs from terminal: Currently handling: 1104;11;kt-2 Currently handling: 61;11;kt-2 Currently handling: 450;11;kt-2 Currently handling: 61;11;australium;kt-2 Currently handling: 228;11;australium;kt-2 Currently handling: 21;11;australium;kt-2 Currently handling: 45;11;australium;kt-2 Currently handling: 141;11;australium;kt-2 Currently handling: 19;11;australium;kt-2 Currently handling: 4;11;australium;kt-2 Currently handling: 29;11;australium;kt-2 Currently handling: 15;11;australium;kt-2 Currently handling: 18;11;australium;kt-2 Currently handling: 13;11;australium;kt-2 Currently handling: 14;11;australium;kt-2 Currently handling: 20;11;australium;kt-2 Currently handling: 424;11;australium;kt-2 Currently handling: 7;11;australium;kt-2 Currently handling: 851;11;kt-2 Currently handling: 38;11;kt-2 Currently handling: 1103;11;kt-2 Currently handling: 326;11;kt-2 Currently handling: 40;11;kt-2 Currently handling: 226;11;kt-2 Currently handling: 402;11;kt-2 Currently handling: 730;11;kt-2 Currently handling: 461;11;kt-2 Currently handling: 228;11;kt-2 Queue empty, writing to file... Currently handling: 36;11;kt-2

Allow the user to select multiple items through click & drag

  • Given a user is at the "Home" page
  • When the user clicks the "Select multiple items" button
  • And the user clicks & drags across multiple items (in either the "list" view or "grid" view)
  • Then the application highlights all items that the user has dragged their mouse over

This enhancement would allow users to select multiple items without having to manually click each row (in the list view) or tile (in the grid view).

[Bug] Price sorting

What is the problem?
When sorting by the price of items, the wrong sorting algorithm is used. For examples:

image

And if you look a little lower, then in this place the numbers are sorted by the "first digits", and not by the total value:

image

How to reproduce:
Just sort items for price from higher to lower

Selection deletion bug

Promise {
  <rejected> TypeError: Cannot read property 'sku' of undefined
      at fs.readJSON.then (C:\Users\Glen\Documents\Code\tf2-automatic-gui\app\pricelist.js:232:23) }

Got an issue using your gui.

`tf2-automatic-gui v2.2.2 is starting...

listening on port 3000

Couldn't get defindex for item: Mann Co. Supply Crate Key

TypeError: pricelist.push is not a function
at D:\TF2Bot\Gui\tf2-automatic-gui\app\pricelist.js:218:15

TypeError: pricelist.push is not a function
at D:\TF2Bot\Gui\tf2-automatic-gui\app\pricelist.js:218:15

Couldn't get defindex for item: The Nostromo Napalmer

Getting all prices...

Execution time: 9950ms

Got all prices, continuing...

Received an unhandled rejection.

Promise {
TypeError: pricelist.push is not a function
at D:\TF2Bot\Gui\tf2-automatic-gui\app\pricelist.js:218:15
at async Object.pricelist.addItems (D:\TF2Bot\Gui\tf2-automatic-gui\app\pricelist.js:111:19)
}
Please report this @ https://github.com/ZeusJunior/tf2-automatic-gui/issues/new
`

[Suggestion] Compress trades

Make trades load faster by decreasing json size.
Could be done by sending item array and using skus only in trades so we dont repeat so much data

[v3] Working version and guide on VPS

  • Needs steam login, should compare to the bots admins array
  • Will need to assume they’re running with pm2/ecosystem
  • Because of that, needs support for multiple bots

Will edit if I find out more stuff it needs

[Issue] Waiting For Localhost

Sometimes, the GUI takes a very long time with only a few listings in the adding box. There're no empty spaces after the final item so this issue is not caused by that. Maybe it's the limit of the price.tf token or other reasons.

[Suggestions] A text box for failed items

Maybe add a text box to show items that failed to add in the process. It makes managing listings and adding listings easier as the user doesn't have to check them one by one to see which failed to add.

[Suggestions] Add temporary storage for user's input

The GUI breaks when a user tries to add more than a certain amount of listings at once. So maybe add some sort of temporary storage for the user's input and the GUI can add the listings without hitting the limit, which might cause the break.

[Bug] Items with quality or effect in name dont work

Items with a quality or effect in their name dont work when adding with name. Result is Couldn't get defindex for item: x.
Adding with SKU or stats page does work.
For example:

A Head Full of Hot Air
Atomic Accolade
Cool Breeze
Cool Capuchon
Cool Cat Cardigan
Hot Case
Hot Dogger
Hot Heels
Hot Huaraches
Smoking Skid Lid
Vintage Merryweather
Vintage Tyrolean

Website crashed(?)

The website crashed when I am adding a lot of listings. The terminal is still running so I guess it's fine.

"This page isn’t working localhost didn’t send any data.
ERR_EMPTY_RESPONSE
"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.