Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Backup and read projects

in Questions Posts: 207

I don't know why I'm having trouble, but I haven't been able to backup my projects with the code from @dave1707. Can someone link me to an updated version of how to read and save projects with Dropbox?
Thanks in advance

Tagged:

Comments

  • dave1707dave1707 Mod
    edited May 16 Posts: 5,896

    @CamelCoder I have a new version that uses some new functions that are in the next version of Codea. You're listed as a beta tester so you should have them if you have the beta version of Codea. See the link below. I got a new iPad and used this code to save 501 projects from my old iPad and install them on the new one. It took about 30 seconds to install them all.

    https://codea.io/talk/discussion/8269/backup-options#latest
    

    EDIT: Sorry for the mixup. This program will backup all of your projects, but will restore one selected project at a time. My other program will restore all of them at once.

  • Posts: 207

    @dave1707 this works for the most part, except I found the error, it only backs up projects without spaces, is there a fix to it

  • dave1707dave1707 Mod
    Posts: 5,896

    @CamelCoder I found that error when I wrote my updated program. Projects with spaces are in the backup file, but they don't show when an extract is done. The fix is to replace the %g+ in "==(%g+)==" with .- in the functions showProjects and extractProjects so you have "==(.-)==" .

  • Posts: 207

    @dave1707 So, everything's working, except it doesn't save any of the shaders, sprites, sounds, music etc

  • dave1707dave1707 Mod
    Posts: 5,896

    @CamelCoder That's correct. I wrote it only to backup the Codea projects. It was mainly done so that if I totally messed up one of my projects, I could easily get the code back. I wasn't worried about the other stuff.

  • Posts: 207

    @dave1707 so, is there any way to save them?

  • dave1707dave1707 Mod
    Posts: 5,896

    @CamelCoder There is, but trying to save all that other stuff was more than I wanted to get into. If you go to the Codea home page and tap the gears in the upper right, then at the bottom right is an export projects tab. That saves everything as a zip file. The only problem is Apple won't allow the Codea app to read it back in. So it can be done. If you want to write your own program to read a zip file, you can read the file and extract stuff. I'll stick to using text files, it's a lot easier.

Sign In or Register to comment.