| Reference | Downloads | Github

Feedback loop does not find the appropriate resource

URL of experiment: general-training [PsychoPy]

Description of the problem:
My experiment gives feedback on correct or incorrect input in form of a .png picture of either a tick or cross.

The following is the code that is responsible for the selection of the picture.
if resp.corr:#stored on last run routine
i = ‘tick.jpg’
i = ‘cross.jpg’

The picture is below the code in the builder and references $i for the image source. It works fine locally in PsychoPy but gives me the following error message online:

Unfortunately we encountered the following error:

  • when setting the image of ImageStim: image_8
  • when getting the value of resource: tick.jpg
  • unknown resource

I don’t understand why he can’t find the resource as he is apparently correctly defining the parameter i but then can’t access the picture? Any help would be greatly appreciated!

You need to add resources set in code via Experiment Settings / Online / Additional Resources.

1 Like

Thank you!