Howdy, Stranger!

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

GithubLoader v1.0.0-beta

edited July 2013 in General Posts: 305


For people who want make really big project and "share" it easily with other (for example for beta test). I've write share in double quotes because code are not save in tabs of project. One advantage of this technique : code is auto-updated when you commit on your github.

For : Project Author

If you want create a github project, you need to respect this organisation :


  • -- list of packages
  • Setup.lua -- setup function
  • Main.lua -- draw and other main functions
  • Package1, Package2, ...

    • -- list of files in package
    • File1, File2


For : Client

Create a codea project and replace the main by :
PROJECTURL = '' -- example
    .. 'token_hash=AAGw5ueVBqNSmff4HotZEr8WoNpCg7p0pOlw5uF5zY7gwA&dl=1', function(data)
end, alert)

/!\ Warning Don't forget to change the PROJECTURL by the project what you want ;)


  • Update stability with advanced callback system
  • Use of github api => System for auto-download sprites
  • Save code in tab or project data
  • Alert on new version (commit, release)
  • AutoGist compatibility


I will update this section with your suggestions


For the moment, the project in example is an old version of my current development (AllFighters)

[Edit] If you want run the template project, you need download this directory in your dropbox in a directory named "SpriteAllFighters":


  • BriarfoxBriarfox Mod
    Posts: 1,542

    Interesting Idea! However, It pulls the code but the loadstring does not seem to be executing allfighters.

  • BriarfoxBriarfox Mod
    Posts: 1,542

    It's working now, however it does not seem to be pulling images. Getting Texture errors.

  • edited July 2013 Posts: 305

    @Briarfox yes, you need this :

    In your dropbox codea directory, make a directory "SpriteAllFighters"

  • BriarfoxBriarfox Mod
    Posts: 1,542

    A little advice if I may, Have your program check for the images and download them if they are not present :)

  • @Briarfox yes, i think about that... But dropbox url are not user friend, and i don't know how to make an auto downloader...

  • BriarfoxBriarfox Mod
    Posts: 1,542

    I haven't looked into the dropbox api yet but that might be a solution. I'll see if I can make a loader. How are you uploading your projects to github? I've started re-writting the github codea project to work with oAuth. I like your loader idea!

  • edited July 2013 Posts: 305

    @Briarfox I write code and commit directly on my mac.

    And i think dropbox api are not the real solution because you need an authentication, and i think you are not able to list files of another user... and even if this is possible, you need to re-create architecture of dropbox directories and you can't made directory directly in lua (for the moment, i expect lfs with impatience).

  • Posts: 175

    Very interesting idea! As you mentioned would definitely want to cache the project in a tab so you don't end up re-downloading it for every build :) and perhaps an easy way round resources is have a "" file or a resources folder.

    You could also perhaps read project tab info and from the AutoGist tab order file if available so you don't have to add extra organisation to your project initially ;) and then use your project organisation to extend it :)

  • edited July 2013 Posts: 305

    @XanDDemoX Thanks !

    And for ressources, i try to find the best solution with the little configuration as possible...

    AutoGist is a really good solution, but i think, if you want use github with all features (commit, issues, releases, branch, etc...), you don't need gist...
    But i can make this easily if people really want this feature ^^

  • Posts: 175

    Gist compatibility would let small projects benefit too and it's also already quite widely in
    use already so it would help you get a bigger user-base ;) . Also a gist is essentially a mini GitHub repository and can be forked to a full one at any time, so would be useful for when a small project grows into a large one and is inevitably migrated to make use of the full feature set ;)

Sign In or Register to comment.