3.3.1

Inventory Component

  • Count is now revealed if ShowCount is set to true. This is automatically set, but can be changed by fragments. The random count fragment shows an example of this.

  • A new template system has been introduced. Documentation can be found here

  • Added a new PreItemRemoved delegate

  • Unique ID's are now global and never change when items move from one inventory to another. Once an item or container has received an ID, it will remain valid for as long as that item exists.

    • This is slightly experimental. The old system can be toggled through the runtime IFP project settings.

  • StartComponent now calls numerous virtual functions. This can help projects inject custom logic into the inventory initialization process.

Quality of Life

  • Many functions inside the item asset are now virtual.

  • The function library can now be overriden. Greatly improving a projects ability to override some of IFP's functionality without touching the source code.

    • Not all functions have been made virtual, but the most popular ones have been made virtual. More will be added when people ask for them.

Editor

  • The struct customization for containers and items have been improved and should now work no matter where the struct is, meaning the custom title and other utilities are no longer restricted to just the inventory component or some item assets.

  • The item count variable is now revealed when an item is stackable and has no random count fragment assigned.

Bug fixes

  • GetItemsPrice had a faulty if else statement leading to all items being worth 0

  • AdjustContainerSize was miscalculating items TileIndex so items were moving to wrong places

  • ItemMoved was not returning the correct ItemIndex

  • Odd crash from containers tick event

3.3.1 fixes

  • GetContainerSettingsForSpawningItem was not wiping the item widget reference.

  • GetItemsShapeWithContext would unnecessarily validate the item, when it doesn't need to. This would cause GetFirstAvailableContainerAndTile to break only for grid containers

  • Item instances were getting their ItemID assigned in the editor, causing a crash when opening a context menu in the blueprint.

Last updated