Unknown resources error... 'all resources downloaded' but progress bar remains blank?

I got mine to work. Im a little worried because I did a bunch of stuff and hoping it doesn’t mess up randomly later. Basically though I deleted the contents of my HTML folder altogether because I had another copy of my JS code in there that was wrong. Also I don’t need a resources file inside my html folder because all my resources are already in my repo and I noticed the path to them looked like {‘name’: ‘BIC/BIC/Stim84ind.jpg’, ‘path’: ‘BIC/BIC/Stim84ind.jpg’} instead of {‘name’: ‘BIC/BIC/Stim84ind.jpg’, ‘path’: ‘resources’}.

Anyways hope you work it out. If that doesn’t work^^ you may also want to try

psychoJS.downloadResources({
resources: [
{‘name’: ‘BIC/BIC/Stim84ind.jpg’, ‘path’: ‘resources’}
{‘name’: ‘BIC/BIC/Stim84ind.jpg’, ‘path’: ‘resources’}
{‘name’: ‘BIC/BIC/Stim84ind.jpg’, ‘path’: ‘resources’}
]
});

at the beginning of your experiment with all your resources listed and you could also make the path the file itself like I did so it is grabbing the resources from the master repo and not your resources folder.

Best of luck
Clark

1 Like

Cheers, I’ll give it a go. I thought it would do all of these things (i.e. download resources) automatically, but I suppose not then… Thanks a lot for taking the time to respond though!

I tried all of your suggestions and still nothing… I still get that dialog box that says ‘all resources downloaded’ and the progress bar remains blank, even when I manually try to get to the resources.

Finally managed to get the resources to be downloaded properly. I put ‘html’ as an output folder in the experiment settings (online tab). Previously I was able to create the html files and .ps files, so I didn’t think there was an issue. That, and manually adding the resources did the trick I think.

Now, I get reference errors (‘sound not defined’), but I’ll walk through the crib sheets again first, I must have overlooked something…

3 Likes