jsPsych experiment to JATOS
in JATOS
Hello,
I programmed a task with jsPsych and it works perfectly in my browser. However, I would like to run it through jatos and I am having difficulties when it comes to importing my study to jatos.
I followed all the steps explained on this page https://www.jatos.org/jsPsych-and-JATOS.html but everytime I try to import a zip folder to jatos, it tells me that the study is invalid. I don´t know what I am doing wrong.
Did anyone have a same problem?
Comments
Hi Angelina,
What probably happened is that you just zipped your HTML/JS files by hand. JATOS in fact expects a .jzip file (in reality a .zip file renamed to discourage people from doing what you did). The .jzip file contains a lot of other information including component and study properties.
Please do the following instead:
-In your local JATOS, click on New Study
-A Study properties pop-up overlay appear. Give your study a name. JATOS will create a folder with that name in your jatos directory. (If you don't know where that is, it will be written at the bottom of your JATOS homepage).
-On your local computer, find that folder. paste your HTML/JS files into that folder.
-On JATOS (on your new, empty study) click Components -> new. Specify the name and properties of a component, and add the name of the .html file that corresponds to your study. Don't forget the extension.
If you made the correct changes in the JS, you can now run your study on your local JATOS. To run it on the server, click on more->Export. You'll get the .jzip file you're looking for. You can import this study on the server.
Best
Elisa
Hi Elisa,
Thank you so much for your prompt reply!!!! At least now I know what my biggest mistake was (zip instead of jzip).
When I create a new study on my jatos account, it asks me for Study assets' directory name
What should I put there? Also, how to I paste my folders into Jatos?
I am sorry for these naive questions, but I am completely lost :(
Don't worry, you are not the first one, we'll improve the docs when we have the time.
First question is: do you have a local JATOS instance, or are you working on a server? I.e., did you download JATOS and run it on your local computer? That'S the first step.
-You can choose any name for the Study assets. Just give it the name of your study (ideally no spaces). If I were doing a study on lexical decisions, I would call it lexical_decision
-Do you have the HTML file with your jsPsych code? That's what you should put in that folder, along with any images, video, audio etc that your study requires.
Best
Elisa
I am using my universities account, so I don t have it locally. I realized while reading your message that I need to download jatos to have a local acces. I just did it but I don t know how to enter (I cannot use my old account).
I understand what you are saying, and as soon as I figure out how to enter locally I will do as you explained in your first message
log in with username: admin, password: admin
http://www.jatos.org/Installation.html
I successfully imported my jsPsych experiment to jatos!!! Everytjing wokrs perfectly!!! Thank you so much Elisa for your super quick responses and the amazing work!! :)))))
Perfect!