Saving

I’m really confused about saving data, please help. By the way, what is local data and global data?

@EpicPotato local data can only be read by the program that saves it. global data can be read by any program. There’s also project data. Here’s an example of saving global data and reading it back. To save local or project data, just replace global with local or project.


function setup()
    saveGlobalData("test1","global data test1")
    saveGlobalData("test2","global data test2")
    for a,b in pairs(listGlobalData("test")) do
        print(b)
    end    
end