Hi, So I am very new to pavlovia and psychopy. I am trying to make a go/no go task. I think I have done everything correctly however when I run my practice trials, the code for the stimuli appears instead of the stimuli.
I also have this other issue whereby sometimes the experiment delivers an “incorrect” message when the answer was correct or vice versa. I think I have fixed this latter issue but of course I can’t test it unless the first issue is solved.
Hi @Haqqim_eldeen, welcome to the forum! Looks like the problem is with line 736 where you assign your Letter component a text value of target, which is a TextStim instance, not a string as needed for the script to work.
If your intention was to give Letter the same text as target, you can use target.getText() or target.text. It might also be a good idea to rethink variable and/or component naming in your project. For example, I count three TextStim components all called target.
I have changed the text value “target” in the code to “target.getText()” and “target.text” but the code still appears instead of the text. Sorry, I could have done it incorrectly, as I am really new to all of this.
Hi @Haqqim_eldeen, I can tell the problem is caused by variable naming conflicts. You have components mirroring trial conditions columns such as ‘target’ and ‘distractor’, but it would greatly simplify things for me if you could send me a .psyexp to apply fixes to if at all possible? Thanks, s.
Hi @sotiri, Thank you so much for your help. I actually re uploaded the experiment, and changed the name of the variables so that they were less conflicting. I am not sure why, but this new experiment is working fine.
However, I still am running into the issue of the experiment sometimes giving me incorrect feedback when I try to run it online even though it works fine offline. Do you think you could help me with this issue as well?
Here is the new experiment, where the stimuli are presented fine but where some of the feedback given is incorrect;
I am completely lost with this, so any help would be greatly appreciated.
It is a go/no go task. So participants will be presented with a letter beside a coloured shape. Depending on the coloured shape, participants are asked to either identify the letter, either x or n (go trials), or refrain from pressing any keys (no go trials).
An example of incorrect feedback would be; when I press the correct key (either x or n) but the experiment gives me feedback saying that I’ve gotten it wrong, or when I have correctly refrained from responding, but the experiment gives me a message saying that I have gotten it wrong.
Hi @Haqqim_eldeen, no problem, I have created a merge request for you to accept the relevant fix into your project. Please note that if you now edit the project in PsychoPy and export for Pavlovia, you would need to again tweak lines 5-11 in your main script to import from ‘custom-lib’. Soon enough a permanent fix should be in place and I will be making sure to follow up here to inform you. Please let me know if you come across any more issues staging your study, x
Hi @Haqqim_eldeen, PsychoPy 2021.1.4 is just out with a permanent fix for dynamically adjusting opacity in JS so you should no longer have to rely on any custom patches for that, x