Apologies for the many posts. I have tried a lot of different things to get my experiment to work online. Nothing seems to work. I have compared my code with similar experiment that also involve pictures, but I cannot seem to find what I am doing differently for my experiment not to work.
I would be very grateful if somebody would be able to help me with this.
ReferenceError: jars3 is not defined
at Scheduler.experimentInit [as _currentTask] (Communication Experiment Test 3.js:710)
at Scheduler._runNextTasks (util-2020.1.js:1091)
at Scheduler._runNextTasks (util-2020.1.js:1094)
at update (util-2020.1.js:1058)
with the offending line in the middle of
EmptyJar = new visual.ImageStim({
win : psychoJS.window,
name : 'EmptyJar', units : undefined,
image : (jars3 / jar0.jpg), mask : undefined,
ori : 0, pos : [(- 0.35), 0], size : [0.3, 0.45],
color : new util.Color([1, 1, 1]), opacity : 1,
flipHoriz : false, flipVert : false,
texRes : 128, interpolate : true, depth : 0.0
});
Is that a component created in Begin Experiment code or Begin Routine?
Does jar0.jpg exist in html/resources ?
It does exist in the html/resources folder under the map: ‘jars3’. I just tried to start a completely new experiment with only a picture and a text element, and the same error comes up that jars3 is still not defined. All the images have the right names as well and all images are present.
This is what it looks like in the resources folder (which is in the html folder):
It was, yes, I tried changing the name of the folder to have no capital letters thinking it would change in Pavlovia too. I thought that perhaps the capital letters had something to do with the error.
I have now changed the code so that it is accessing “Jars3/jar0.jpg”, however it is still giving similar errors.
EDIT : I just tried to replace all “jars3/jar500.jpg” calls in the image components by $picture[14] types. However, this did not change anything.