[Mod] Workshop Inventory Display


#1

Hi everyone!

This mod shows an additional information panel in the crafter’s workshop to display the number of items you already have (in stock and deployed) for the currently selected crafting recipe.

Changes:

  • July 13: Updated to be much much more efficient.
  • July 11: Update to increase compatibility. This version is compatible with Alpha 24+ and Beta release-874
  • July 11: Updated to support current unstable release-874.
  • July 10: initial version that works with release-870.

Known issues:

  • does not count equipped talisman items such as the carpenter’s saw or trapper’s knife. Talisman items in stockpiles/containers will be counted though.

Download:
workshop_inventory_display.smod

Steam Workshop:
Workshop Inventory Display

Github:
stonehearth-workshop-inventory-display


Potential Mod - workshop inventory display
[r874] Hearthlings still do not bother restocking items
#2

I’ve just made an update that supports the current unstable release-874 version of the game.

The update is not yet in Steam Workshop.

download at the first post ^^^

:merry:


#3

Heads up: tracking items like that is super expensive, and makes the JS garbage collector very, very sad (to the point of eventually killing the whole UI). That fetches the JSON for every item from the C++ client to the JS process whenever anything in the inventory updates. A bunch of our code was doing that in the past, so sorry for setting a bad example - it’s been fixed since. You should be able to access anything you need from those items using App.catalog.


#4

Oh yes? Just remove the "uri" and "canonical_uri" component parts?

Thank you for the tip. :merry:


#5

Thank you for fast responding. It will heavy affect me :smile:


#6

Thanks @max99x and @Nikolay.

The mod is now much more efficient and it is updated on the download links on the first post and on the steam workshop.