Skip to main content

1.1.0

Added a CVar named LogLootTableCompositionDebug. When enabled, it will log what happens during composition: Which templates are used, filtered rows, modifier applications, and final weight/count. You can enable/disable CVars using the console, e.g., "LogLootTableCompositionDebug true". Note that this CVar is not available in shipping builds.

Added a function named Duplicate for duplicating distributions and loot tables.

Added blueprint functions for getting parent/child lists from STNestedBag.

Added functions to STLimitedDiscreteDistribution and all derived classes for restocking items' counts:

  • ModifyRestockCount
  • SetRestockCount
  • RestockItem
  • RestockAllItems
  • GetRestockCount

These functions enable you to 'Restock' the item(s), which sets count equal to restock count. Restock counts will be initialized to the count from the loot table. You may edit restock counts using the Modify Restock Count or Set Restock Count functions. These functions are much faster than recomposing or reinstancing when you have a distribution which will be reused many times.

Experimental

Added an Editor Utility Widget EUW_VisualizeComposition which will show the results of loot table composition in a table. This feature is a prototype and not fully implemented as of yet:

  • Nesting is not shown as a tree.
  • Nested items are not shown in their nesting order, e.g., children of an item might not be listed after it.
  • It may contain bugs.

The widget is located in Content Browser > Stoch Content > Experimental. You must enable the Show Engine Content and Show Plugin Content view options to see content from Stoch. You can activate the widget by right clicking on the asset and selecting Run Editor Utility Widget.