URL of experiment: Kartikeya Dhagat / REET · GitLab OS: Win10 PsychoPy version: v2020.2.1 Description of the problem: Working perfectly in PsychoPy (offline). On Pavlovia, the incomplete participant’s output file shows the input keys (VTrialResp.keys.keys) but not the correct answers stored in the conditions file (VcorrAns). I believe that the the correct answers are not being loaded and hence always shows the feedback to be wrong as VTrialResp.corr = 0.
VcorrAns, the correct answers, are in an array in the conditions file.
What I’m trying to do: An individual is to simply memorize the sequence of colors and, at its end, must reproduce it during the limited response time. This loops a couple of times.
What’s going wrong: Array of correct answers not being imported for any sequence, feedback shows as wrong every time
@wakecarter Hey, I see you extremely active on so many forums, and you have almost always managed to come up with a possible solution. Could you help me out here, if possible? Don’t want to take too much time of yours but I’m desperate at the moment.
Thank you!
@wakecarter That’s perfect, so I tried the first option and now it shows in the output file. The only problem I’m having now is that the .keys has brackets around it and the VcorrAns does not. Any idea how I can remove the brackets in the VTrialResp.keys / add brackets in VcorrAns in the output CSV file such that it is able to correlate.
@wakecarter Hey! I tried this but its now saying compareArrays not defined. Would it be possible for you check out the code here? Sign in · GitLab
The task seems so simple, I don’t know why I’m unable to get it to work. The function is not being defined. Is there something wrong in the translation?
It looks like the function is working but you should be checking the score in End Routine. In Begin Routine the response keys aren’t defined because no key has been pressed yet.
Alright, it is working now but I’m running into the same problem I was, i.e., VTrialResp.corr is always 0 and the data file looks like this. The code didn’t solve the problem. Any other ideas? Thank you.
I was in fact making direct edits to the JS file. Doing it on the builder makes it work again. Sadly, the score still shows false. I have attached the console log as well as the output file. Thank you for your assistance. I feel it’s extremely close to working.
Let me know if I could message you personally or is the forum a better method of communication for you.