Experiment works on OpenSesame but not in browser
I'll try and keep this short. My experiment works perfect on OpenSesame. According to OpenSesame there should be no issue running it on the browser. It doesn't work on the browser.
The first part where I get them to enter a participant number DOES work, although there are some errors reported in the console (I copied this code from another discussion post so I'm not sure what those issues are). This uses sketchpads and inline javascript.
Following this, a whole sequence (with lots of sequences in it) doesn't work at all. It just gets skipped. That is an n-back task. It consists of keyboard responses and sketchpads mostly. There are a few instances where I used inline javascript for timing purposes (to keep the stimuli on the screen for a set amount of time instead of going away with the keyboard response). Also there are run if statements based on variables defined in the first part of the experiment (that works). Further, I use the shuffle function to randomize one column of my loop.
Next, the part where participants just listen to .wav files from a sampler doesn't play.
After that, it just stops (well, freezes and doesn't continue).
Any help is appreciated. I attached a screenshot of the console below. I am at a loss (I am not a programmer by any means!)
Comments
here's the experiment file
Sorry for all the comments. I think what went wrong is lots of the core parts of the program ('run if' statements, loops, variables that didn't make sense). I'm currently remaking the program from scratch and checking everything on OSWeb as I go so this mess doesn't happen again.
Thanks for everything you do! Both OSWeb and OpenSesame are a godsend, especially in times like these. Feel free to close this ticket (or however this works).
Hello,
I was wondering if you were able to get your experiment to work in OSWeb. Specifically, whether you were able to use the 'shuffle' function in the loop's script.
I am using a similar command, 'slice', however it does not seem to work when tested in browser.
I believe I have isolated my issue to that command, since removing it from the loop script works fine in browser (simply going through all the conditions in the loop as written), however advanced loop commands seem to be supported based on online documentation.
Thanks!
Daniel