As you run through your task, the console will show a full log of what’s happening behind the scenes, with errors popping out in red. For example, here’s a screenshot of where your task is currently getting stuck:
The error is a
To fix this, you’d need to define your variable side-by-side with the python above, e.g. add
var inputText = '' to the js side, but for the other blocks of the code component the conversion won’t be quite as simple. In the
EachFrame block, you’d start by re-writing the python
n = len(theseKeys) with
False with js’
I don’t think there’s a psychopy-specific guide to conversion [yet], but most of the code you have looks straightforward to translate, and if you get stuck you can give a few of the automated converters a try, specifically looking at transcrypt, jiphy, or the answers here. I haven’t tied any of them myself, but may give them a shot, and feel free to ask more questions if you get stuck. Good luck!
nb - I’m not sure why I’m getting different errors from you (i.e. the ReferenceError instead of the
_renderer.gl or why the safari link wasn’t the same (e.g. no .org in pavlovia and no html before run; see the address I was able to succesfully get running). Try the same url and see if that gives renderer errors again?