How to assign a new ID to each participant?

On Windows in Windows Explorer you can go to Options → Change folder and search options → View → Show hidden files, folders and drives.

The local .git folder is hidden by default and contains the information about the connection to the project online.

I’m on Mac and found how to show hidden files. I deleted the .git folder and synced and made a new project, but still no .js file created. I added you to the new project too (face_exp_hadhelp).

I downloaded your project and pressed the sync button and now you have a JS file.

Hello,
Thank you so much for that, I can now see there is a js file! I ran the experiment online using http://moryscarter.com/vespr/pavlovia.php?folder=lydiabrown&experiment=face_exp_hadhelp/ and it almost worked. The experiment actually started and ran which is a great step, but the counterbalancing using the participant counter url and the code component didn’t work, it ran both counterbalancing conditions rather than just 1. I also realised it hadn’t created a data folder, so I made one and tried to sync it and it won’t let me, I get the following error message saying the gitlab ID has changed and there is no .js file:

262.7090 WARNING Project lydiabrown/online_face_exp has changed gitlab ID since last use (was 118796 now 125133)
Generating PsychoJS script…

Traceback (most recent call last):
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 772, in findPathsInFile
File “”, line 1, in
NameError: name ‘group’ is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 74, in generateScript
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 245, in compileScript
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 217, in _makeTarget
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 210, in writeScript
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/experiment/flow.py”, line 277, in writeFlowSchedulerJS
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 819, in getResourceFiles
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 781, in findPathsInFile
NotADirectoryError: [Errno 20] Not a directory: ‘/Users/lydiabrown/Documents/local/online_exp_updated.js’

Pulling changes from remote…
Already up to date.
done
Pushing changes from remote…
done
Successful sync at: 11:57:33, took 0.902s508.3961 INFO Successful sync at: 11:57:33, took 0.902s

Hi @wakecarter ,

I think it’s still the same problem that I can’t make changes and update the js file…? I made a little change to the text just to see if I could update it and as shown below it updates the .psyexp file but not the js files.

Check this solution just in case

Just checked, export html is set to “on sync”. I then went file > export html and synced, but it still hasn’t updated the .js file.

When I clicked export html if gave this error message:
Generating PsychoJS script…

Traceback (most recent call last):
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 772, in findPathsInFile
File “”, line 1, in
NameError: name ‘group’ is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 74, in generateScript
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 245, in compileScript
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 217, in _makeTarget
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 210, in writeScript
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/experiment/flow.py”, line 277, in writeFlowSchedulerJS
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 819, in getResourceFiles
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 781, in findPathsInFile
NotADirectoryError: [Errno 20] Not a directory: ‘/Users/lydiabrown/Documents/local/online_exp_updated.js’

then if I press the sync globe button it says this:
Pulling changes from remote…
Already up to date.
done
Pushing changes from remote…
done
Successful sync at: 13:09:41, took 0.933s211.0915 INFO Successful sync at: 13:09:41, took 0.933s

Where do you define group?

BTW, on the original subject of this thread I now have a new web app which assigns new IDs to each participant with additional bells and whistles.

Dear @wakecarter,
stumbled upon your webapp and found what i was searching for - thank you so much!
I’ve had a few testruns with my custom experiment link and it works like a charm.
However, now that i want to start collecting new data from scratch, is there a way to start incrementing participant IDs, beginning from 1 again?
This is the link i’m using:
https://moryscarter.com/vespr/pavlovia.php?folder=rauelias&experiment=tripletvalidation

Thanks in advance,
Elias

Hi Elias,

Since resetting the participant count requires me to go into the database, but isn’t really necessary (participant numbers can start from any figure) I now ask people to “buy me a coffee” if they would like me to reset their counter. Licenced users of my new Study Portal can do this themselves.

Best wishes,

Wakefield

Dear Wakefield,
thanks for your quick reply.
Selection of conditions and shuffled trials depended on participant ID in my experiment, but i changed that now, so no need to reset the counter anymore. I’ll be happy to buy you a coffee anyways.
Enjoy and all the best,
Elias

Thanks for the coffee. I’m very happy to reset your counter if you’d like me to.

Hi,
normally I use https://run.pavlovia.org/dfeistauer/vb_2022/?Empra=FeistauerMo&Studienfach=Psychologie to set some parameters.
However, how do I do this with
https://moryscarter.com/vespr/pavlovia.php?folder=dfeistauer&experiment=vb_2022&Empra=FeistauerMo&Studienfach=Psychologie/

I always get an error with “404 Not Found”

Thanks
Daniela

https://moryscarter.com/vespr/pavlovia.php?folder=dfeistauer&experiment=vb_2022/&Empra=FeistauerMo&Studienfach=Psychologie

with this I don’t get an error anymore, but the parameters don’t work as i can still choose them manually.

The issue is that https://moryscarter.com/vespr/pavlovia.php only passes through id, session and researcher. Every additional parameter would need to be manually added and the functionality has been superseded by the VESPR Study Portal which allows you to include parameters in the study URL. It generates values for participant, session and group (which can be edited to different variable names) and passes through values of id.

can I use researcher and id in my Exp-Properties?

I tried: https://moryscarter.com/vespr/pavlovia.php?folder=Wake&experiment=prospective-memory-ldt&researcher=wakecarter

and https://moryscarter.com/vespr/pavlovia.php?folder=dfeistauer&experiment=vb_22&researcher=Smith/

I get with both links “404 Not Found”

it is because: https://moryscarter.com/vespr/pavlovia.php?folder=dfeistauer&experiment=vb_22&researcher=Smith/
changes to https://run.pavlovia.org/dfeistauer/vb_22/html/?participant=6&researcher=Smith/
instead of https://run.pavlovia.org/dfeistauer/vb_22/?participant=6&researcher=Smith/

https://moryscarter.com/vespr/pavlovia.php?folder=dfeistauer&experiment=vb_22/&researcher=Smith
seems to be the right combination.

Yes, that’s correct. folder=yourusername&experiment=yourexperimentfolder/&researcher=var1&session=var2&group=var3&id=var4. You then need to have participant and optionally researcher, session, group and/or id in your expInfo dialogue box to receive the values.

https://moryscarter.com/vespr/pavlovia.php?folder=dfeistauer&experiment=vbl_2022/&group=FeistauerMo&researcher=Psychologie

researcher works fine, but group doesn’t work.
Any idea, why?