Howdy, Stranger!

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

Supported by

Compressing the experiment for JATOS

Dear All!

When I export an experiment from lab.js and decompress it because I need to edit it, after re-compressing it into a zip file JATOS no longer accepts it and reports "Import of study failed: Study is invalid". What's the problem? Are there any settings on how to compress a lab.js experiment?

Thanks in advance for your reply, Marko

Comments

  • edited October 2023

    Hi Marko,

    That's a common confusion, and exactly the reason why we changed the extension from .zip to .jzip.

    If you want to edit an HTML/JS code, you should:

    1. Install a local JATOS instance. Run it locally.
    2. Import your .jzip study onto your local instance.
    3. Find your assets root folder (it's shown on your local JATOS landing homepage)
    4. Edit those files locally on your computer
    5. Create an updated .jzip by exporting the study from your local JATOS. You can them import this modified jzip on your server.

    Here's another page that describes this.

    Hope this helps

    Elisa

  • Dear Elisa,

    Thank you very much! I will do it now.

    Marko

  • It works! :-) Thanks a lot!

    Marko

  • Hi Marko!

    Just to add my 2 cents, it usually is possible to unzip a .jzip file (it's after all a ZIP package), change it and then zip it again. But whatever you change has to be in compliance with the JATOS study archive standard. But this standard is not complex and it's usually okay to e.g. edit a JS file or add an image. But some ZIP programs, especially on Windows, seem to produce a ZIP that is incompatible with JATOS. You can try a different ZIP, e.g. 7-Zip.

    Best,

    Kristian

Sign In or Register to comment.