question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Goals for a new Inventory

See original GitHub issue

Alright, I think it’s time to finally sit down and rewrite the inventory system. The current one has a lot of issues. Here’s a list of goals I’d like to accomplish:

  • Consolidate Item and Inventory into single classes. No more of this “grabbing the description for an item” crap. No more separate Inventory classes for TF2 vs. other games. No more “Item may have a Schema.Item, Inventory.Item, or both, depending on circumstances”.

    Note that we may still have multiple classes for different Inventory/Item types, but they should all be derived from a common base class.

  • Inventory should work with “friends-only” inventories, and private inventories during a trade.

  • Bot should not block the trade while waiting for inventories to load. Probably the easiest way to make this happen is to not call OnTradeItemAdded until all Inventories have been loaded.

  • Inventory should work with more than 2500 items.

  • Inventory should be loaded using the correct URL (if that’s even possible)

  • Should be compatible with StormReaper’s TradeOffer PR, since a lot of people are using that. Add partnerInventory API support.

  • New: Should work with items that have amounts, like gems.

  • As an optional goal, should work with Spiral Knights (does anyone even care about this?)

Can anyone think of anything else?

This is going to be a major breaking change, but I think that’s acceptable. This has been a long time coming.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
aleksamagickacommented, Nov 23, 2015

Any news? It’s been almost a year.

0reactions
ghostcommented, Apr 16, 2018

I dislike bumping old issues such as this. However, after watching the Steam API recently, I feel as though we need to have some of this pushed/updated as the API has become more and more unstable recently causing the bot to fail to login which if this was to be pushed, this would remove some of these issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inventory management objectives and goals and how to ...
The main objectives of inventory management · Smooth fulfillment · Having sufficient supply · Know when to scale or shrink the production of...
Read more >
Goals of Inventory Management
A goal of inventory management should be to keep the inventory database up to date. Each item sold should be removed from the...
Read more >
How to Establish Inventory Goals that Work
Set smart goals · Define min/max levels · Leverage supply chain data · Establish turnover rate targets · Use key metrics to measure...
Read more >
13 SMART Goals Examples for Inventory Management
1. Reduce Out-of-Stock Situations 2. Automate Tracking and Reporting 3. Improve Stock Accuracy 4. Create Forecasting Model 5. Increase Visibility of Inventory Data...
Read more >
Establishing Inventory Goals that Work
Once you've accurately counted and organized your inventory, it's essential to set attainable goals that will allow you to gain control and plan...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found