How to assign a new ID to each participant?

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?

no idea?

group wasn’t on the list of passthrough variables so I’ve just added it.

great, thanks. Now it works.

Hi,

moryscarter seems to be broken.

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

Of 47 people I got 9 times 43 at different days

                       date vp
401 2022-11-29_19h54.41.084 43
421 2022-11-30_08h20.02.560 43
441 2022-11-30_08h50.36.925 43
461 2022-11-30_14h11.20.379 43
581 2022-11-30_23h29.24.909 43
601 2022-12-01_07h59.41.851 43
641 2022-12-01_11h39.39.246 43
821 2022-12-01_21h39.54.254 43
901 2022-12-02_06h34.49.210 43

Interesting seems to be that 44 given was before 43
2022-11-29_19h14.46.343 44
2022-11-29_19h54.41.084 43
OS is sometimes Win32 and sometimes Mac.

Do you have any idea what causes this problem?

cheers
Daniela

The most likely explanation is that participant 43 shared their run link (the one pointing directly at Pavlovia containing their participant number). Have you checked to see what participant number is generated if you try your own link?

If they didn’t actually do the experiment when they copied their run link.