inventorySaveScript does not save/load data table from inventoryScript

Describe the bug:
the data table in the inventoryScript is not saved OnSave or loaded OnLoad. it is not included in those functions.

How do you cause this bug?

  • save data to the data table in the inventoryScript
  • auto save on user saves inventory data
  • close game or go back to editor
  • open game or preview
  • the data in the data table isn’t there as it was not saved or loaded in the inventorySaveScript

Screenshots / video of bug:
not included. it would be just screenshots of the scripts above.

Which platform: Stadia

Which input: Controller / keyboard + mouse

Your Crayta username: sinjin

Game seen in (including “Hub” or “Editor for XYZ”):
working on an equippable items in new Backpack widget of the inventory.

Game original name: “Adventure: Two Window Nav”
game current name: “Adventure: Backpack”

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible):
3/3 as the code is missing in the script described above.

Time + date seen: 2022-01-22 1500GMT

Version number (found in Help tab in Settings):

The more information you provide, the more likely it is that this bug can be fixed quickly! Also, if this was discussed in Discord / Reddit / elsewhere, it might help to include a screenshot of that discussion!


  • added one line 22
  • modified one line 59 (originally 58)

added line 22

inventoryScript.inventory[index].data = -- added data 

modfied line 59 (originally 58)

saveData.items[index] = { name = item.template:GetName(), count = item.count, data =}

Hey there @sinjin!

Thank you for bringing this to our attention!
I have submitted a ticket with the additional comments added so that our internal investigation team to look further into this. :slight_smile:

i found the inventoryViewScript also references the data table on items. it’s not affected by this bug.