Github functionality

  • Hi there,

    In C2, you could save out as a folder/file structure, which made things much easier for source control solutions like github.

    Would there be any problem with using the single file format of C3 with github?

    When will we be able to save out as a folder structure to help track changes etc.?

  • I can't possibly be the only one who's interested in this issue, can I?

    I've tried searching the forums and can't find anything about this, which I must admit I find strange.

    Maybe I need to page Ashley?

  • You could always extract the c3p file to a folder. It's just a zip file.

  • Using folder based projects is planned for the desktop builds, which we will work on after we come out of beta.

  • You could always extract the c3p file to a folder. It's just a zip file.

    I know that, but to have to go and manually unzip the .c3p file everytime you want to change something? Then rezip it (if that even works) to carry on working. Not the best workflow.

    So basically, if a group were working on a project together using source control, would it be best for people to just use the same .c3p file and make sure their comments are good? Or should they unzip and rezip before/after they stage and push?

  • It sounds straightforward to me. You'd write a batch file that automates the unzipping and zipping.

  • It sounds straightforward to me. You'd write a batch file that automates the unzipping and zipping.

    Hmm. I suppose. I've never tried that kind of thing, so that's why I didn't think about it.

    It's something else to learn, but could be really useful. So do you mean writing a batch file so that it unzips the files, stages it and commits it? I'm not 100% sure how that would fit nicely with git stuff (plus, I tend to be lazy and use the GUI tools, but hey - I have always thought I should get used to the command line!).

    (thanks for replying Ashley and R0J0hound by the way, much appreciated).

    Could you point me towards some resources that would help me get my head round this?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This is what a batch file is:

    https://en.wikipedia.org/wiki/Batch_file

    Basically it's stuff you can do from the command line, except you put it in a file so you can just run that instead of typing everything out every time. I've used github only once, but it can be used from the command line. Here's an example of unzipping a capx to a folder and zipping it back up to a capx using z7ip. Just save it to a .bat file and it can be run like any other program.

    ; this removes the test subfolder if we already created it
    ; and extracts test.capx into that folder
    rmdir /s/q test
    "C:\Program Files\7-Zip\7z.exe" x -o".\test\" test.capx
    
    ; this removes test2.capx if we alreasy created it
    ; and zips up everything in the test directory into test2.zip
    ; it finally renames the zip into a capx
    del test2.capx
    "C:\Program Files\7-Zip\7z.exe" a -r test2.zip .\test\*.*
    rename test2.zip test2.capx[/code:1s4dva5v]
    
    Anyways that's a sample, i'm not sure if that's something you want to do.
  • that's really helpful, I'll take a look at all that.

    Thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)