I would like to save my data (currently in a Lua table) to Steam Cloud Storage using steamworks.remote_storage_file_write
. The function doesn’t seem to like tables and I’ve only managed to get it to work by passing in a string. Is there a way to pass in a table or do I need to convert all my data to a string somehow?
1 Like
API reference (sys) sys.serialize:table
API reference (sys) sys.deserialize:buffer
You can use this to convert between strings and tables for serialization.
Also, for Steam cloud save, you don’t have to do this in code. You can give Steam directories to look at and it will sync save data on its own.
From Big Klondike’s config
9 Likes
That’s helpful, thanks. I’ll just do it the easy way!
1 Like