Description of the problem:
I designed this experiment that runs fine on psychopy builder, however I keep getting this error ( * TypeError: Cannot read property ‘_gui’ of undefined) when I run online. Anybody knows what the problem might be?
I’m running on windows10 and psychopy version 2020.2.4
No problem, as it happens being able to parse array looking trial data like ‘[0, 0.8]’ is a relatively new addition to PsychoJS that is temporarily disabled on Pavlovia’s servers. I have now added the relevant bits in my fork, are you OK copying those changes over to your repo? Here to help, s.
Hi, sorry for the delay.
Of course, thanks for the modification. So if I’m understanding correctly, currently the format of my locations is preventing the experiment to run online. Can it be resolved with changing my location units to something more accurate?
Ultimately, my goal was to have specific locations so that the stimuli (2 or 3 depending on the trial) would all appear in the center conjointly.
Thank you again for your insight, I greatly appreciate your help!
Yes it now runs on my end as well. However, the issue seems to be that the position of my textstim vary by trial and PsychoJS I think isn’t retrieving or converting the position that I set within my csv file. My goal is to have the texstimuli to appear in the middle of the screen (which works when I run locally).
I appreciate your help a lot! I figured that instead of having the location of every textstim coded in my csv file, I would instead create a textstim at every position that would a target might appear at a given trial. Therefore, I would separate my stimuli within my csv file into different columns and link them to the corresponding location of the textstim.
I don’t know if I’m explaining this clearly. However, I have hope of resolving this very soon!
Thanks again. -K
Hey @KSal, thanks for holding. OK I’ve edited the begin trial and each frame blocks in your .psyexp to accommodate for better alignment around the centre mark regardless of whether there are two or three words on display, but ignoring the .xlsx sourced location variables. Those only apply to the desktop version of the experiment. Hope that makes sense, please let me know if you need more details. Thanks, x
I downloaded the version you modified to add a practiceloop and remove the blocks for one bigger loop with a rest component. It runs fine locally, but does not seems to be stuck on initialising when I go to run it online.
I don’t know if you can shed any light on the problem.
Thanks! Adding a space to that textstim solved the problem.
Now, I took your js code from each frame and adapted it to the practice loop and when I run the experiment online I have an error (reference error: text_17X not defined). This only occurs when text_17 contains a stimuli other than “.” and the program isn’t retrieving the Xposition from my conditions file.
Is it possible that I mistakenly editted the code? Thanks, K.
Hi @KSal, yes your current script is missing a few key bits from my fork, you would need to go back and add those in to make it work. Also, as explained above positioning text stimuli in the online version is works best independent of .xlsx variables, x