Loading table as resource [SOLVED]

My game has a simple inline editor which saves a lua table using sys.save

I want to bundle the outputted file as a custom resource but when I use sys.load_resource the loaded data is not recognised as a lua table.

I guess it’s not meant to be used in this way? How would I bundle a saved lua table and load it in at startup as a custom resource?

did you try to call sys.deserialize() after loading the buffer using sys.load_resource()

2 Likes

Ah! Perfect, thank you.

2 Likes