Updating old in-line scripts
If you fill out the information below, we will be able to help you better. 😎 You can also consider asking SigmundAI.eu, our AI assistant with expert knowledge of OpenSesame.
OpenSesame version
[e.g. 4.0.24]
If you are running an online experiment, also provide the version of OSWeb, which is shown when you launch an experiment in a browser. We regularly fix bugs, so always make sure that you are running the latest version of OpenSesame and other relevant packages.
Operating system
[e.g. Windows 10 / macOS Ventura / Ubuntu 22.04]
If you are running an online experiment, also provide the browser version.
Backend
[PsychoPy / Expyriment / legacy / OSWeb]
You can find the backend under "General Properties / Run experiment".
Expected behavior
[e.g. "The experiment should play two sounds."]
Clearly explain what you would like to happen.
Actual behavior (what goes wrong)
[e.g. "The experiment only plays one sound."]
Clearly explain what happens, and in what way this deviates from what you would like to happen.
Error messages (if any)
[Error message here]
Copy-paste the full error message from the console output at the bottom of the OpenSesame window (for the desktop version) or from the browser console (for OSWeb). You can also attach a screenshot.
What did you try already?
[e.g. "I changed the backend, but it didn't help."]
Did you already reinstall OpenSesame, change the backend, check for similar issues on the forum, ask SigmundAI, or try anything else.?
Experiment file (optional)
Consider attaching attaching your .osexp file. If you do not want to share your experiment file, you can also attach a minimal version of the experiment that illustrates the issue.
Comments
Old experiments, and especially the in-line scripts, don't work any longer with the current version of OpenSesame. This is an example of what I get from the code view, the scripts are no longer visible in the control view:
set description "Exécute du code Python"___run__
var.flag_boucle = 1
if var.response_Rep == "a" :
var.flag_autre = 1
else:
var.flag_autre = 0
__end__
set _prepare ""
Am I forced to throw out all my previous experiments ?
Cheers,
Gérard
The problem was solved by re-installing Opensesame.
Cheers,
Gérard