If this template helps then use it. If not then just delete and start from scratch.
Mac Tahoe
PsychoPy 2026.1.3
Standard Standalone Installation? (y)
URL of experiment: localhost
Do you want it to also run locally? (y)
I have a loop including three routines. In the first three variables are assigned values like ‘sound1=voice1.mp3’, the second has a sound component named sound1_go playing $sound1, and the third plays $sound_2 and $video_1. The values change in every loop. The program runs smooth locally. when I deploy it online, with all media files preloaded, the routines play the same three media in every loop. They do not change. the logs shows that the loop advances but the variables like ‘sound1_go.sound’ keeps ‘undefined’, while ‘sound1’ changes as assigned from the first loop. I return to local program and find, even the program run correct but the ‘sound1_go.sound’ keeps ‘A’. I use stop() and setSound() in the begin routine tab, these problems persist. Please help me make it run correct.