Description of the problem: The experiment has some code that works fine in python. However, when trying to run it on Pavlovia, “append” function seems not to work as expected. I leave here every code used (in case you found another future mistake)
In every trial (python):
contador2 += 1
if not flechas_3.keys:
feedback = “muy lento!”
elif flechas_3.keys == str(correct_key):
feedback = “bien hecho :)”
puntitos2.append(1)
else:
feedback = “error :(”
puntitos2.append(0)
append needs to be translated to push for online use. However, this can be done once at the start of the experiment instead of every time if you don’t have editable text boxes (or possibly if you use the latest version)
Or alternatively use the newest release if you can (depending how deep you are into making the experiment!) - the translations will be much smoother - append included!
I think it should have been in that release - but can confirm it is in 2021.2.2 (and I would recommend downloading that one, or 2021.2.3 if on mac, if you are making the big switchover!)
That means that the thing you are trying to append/push isn’t defined yet is there a place in your code that you initialize the variable? i.e. puntitos = []