Howdy, Stranger!

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

ImageToProject - Converts your project to an Image!

BriarfoxBriarfox Mod
edited July 2013 in Code Sharing Posts: 1,542

Hey All, here is a little app that will allow you to select a project. It will encode the project to an image. You can also run projects that are saved as an image. Currently all images are saved to documents. Creating the image is slow becuase of string.dump. I couldnt figure out a way to show its loading status at this point.

I'm not sure if there is any current practical use but I'd like some feedback and/or any ideas you may have.

https://gist.github.com/briarfox/6015788

Comments

  • edited July 2013 Posts: 391

    Ah, so that's why when I copied it earlier and tried it out it just said Loading. I guess I just didn't wait long enough being as impatient as I am, hehe.

    I'll have to try this out again and let it sit longer.

  • BriarfoxBriarfox Mod
    Posts: 1,542

    There are more loading indicators with % done. I just couldn't find a way to show string.dumps speed.

  • Posts: 2,042

    I tried this and as far as I can tell it doesn't work... It says Image Loaded but nothing happens

  • BriarfoxBriarfox Mod
    Posts: 1,542

    I just reinstalled the above copy and it worked. It will run the projects setup and draw/touch functions. Also as a note. you can not have any includes in the project. Can you try it with a different project and let me know if it works?

  • Posts: 175

    @Briarfox you are calling string.dump on the entire project upfront which is probably be why it's taking a long time ;) if you do it on a per - tab basis you could report progress based on number of tabs "dumped" vs number remaining :)

  • BriarfoxBriarfox Mod
    Posts: 1,542

    Duh! Thats right! I had thought about that yesterday and forgotten about it! Thank you :)

  • Posts: 2,042

    I've only been trying it with the Life Sim one that the first version created

  • BriarfoxBriarfox Mod
    Posts: 1,542

    oh that wont work. That image doesn't have a setup and draw.

  • Posts: 2,042

    I tested it on a different program and it works. Nifty program, but not sure it has any practical uses

  • edited July 2013 Posts: 494

    why not? it is by far simpler to use as gist or even git repos.. another advantage (for paranoiac people :-)), it is stored locally, or on dropbox, if you prefer. very cool idea, as I think..

    EDIT: I actually over-read this ... I meant this project by @Ignatz http://twolivesleft.com/Codea/Talk/discussion/2408/utility:-automatic-backup-and-recovery-of-your-project-code/p1
    I knew I saw this idea somewhere before.. ;)

  • BriarfoxBriarfox Mod
    Posts: 1,542

    Thats right! I had forgotten about that. oh well, good learning experience :)

Sign In or Register to comment.