Daniel
About
- Username
- Daniel
- Joined
- Visits
- 669
- Last Active
- Roles
- Member, Administrator, Moderator
Comments
-
The freetype font is already installed, but you need the python bindings for it. This used to be one package, but now the split the font and the python bindings. The latter can be installed with !conda install freetype-py -y I am uploading a new Ope…
-
Hi @danirus, The form items are not yet supported in osweb. If you search the forum, you can find a script that @sebastiaan wrote with which you can collect user input without using the form items. This is frequently asked, so it should be easy to f…
-
Hi @Skilli 900 MB is way too large for an online experiment. Even if you can reduce its size 100x to 9 MB this is still too big. For web-based stuff, always aim to keep your asset's size below 5MB. Less is even better. That being said. In Osweb's …
-
Hi @Galit, Named sketchpad elements indeed are not supported yet in osweb. It is weird that using vars.width doesn't work. This should contain the dimensions of the osweb Canvas and you should be able to use it to position elements on the display.
-
Hi @dsoto, Please refrain from crossposting questions in different categories. I have already answered this question in the other post
-
Hi @david, Osweb doesn't use the backends that OpenSesame itself does; it is a whole new separate implementation. As far as I know, there have not been any benchmarks yet for Oswebs performance. Under the hood, osweb uses pixi.js for stimuli present…
-
Hi @mithreal Depending on whether you need sound with the videos and the length of the clips, you could use animated gifs. These work out of the box. Anything else is a bit more complicated indeed. OpenSesame draws all its stimuli on a HTML5 Canvas…
-
Hi @dsoto You can achieve what you would like to do using ajax requests: https://developer.mozilla.org/en-US/docs/Web/Guide/AJAX/Getting_Started This brings you in the realm of asynchronous programming though, so you will have to deal with some ext…
-
Hi @Mad, first of all, which version of OpenSesame/osweb are you using? It is hard to tell what is going on without knowing how you implemented the experiment, but as a general rule, if something works in OpenSesame and behaves differently in osweb,…
-
Hi @quirkm I looked through your experiment, but there is nothing out of the ordinary, except for that in some sequences you have two loggers directly after each other, which seems a bit peculiar. each participant run only had one row of data that l…
-
Hi afkeve, Important here is that this code is enclosed by jatos.onload. Is this the case?
-
Hi @Skilli, The long explanation you can find here: https://osdoc.cogsci.nl/3.3/manual/prepare-run/ The short explanation: everything in the prepare phase section of script items is executed before the trial starts (i.e. the first display is shown).…
-
Hi @Skilli You need to place this code in the prepare phase while you put it in the run phase.
-
Hi @MarjoleinT Unfortunately the feature set of osweb is still very limited. I think what you desire to do is simply not easily possible at the moment. OSWEB is built around [pixi.js](https://www.pixijs.com/), and that definitely has the possibilit…
-
Hi @Skilli The stepping makes it more difficult. Unfortunately javascript doesn't have a random.choice like function, so you will have to do something like: var baseISI = 500 var increments = 100 var step = parseInt(Math.random()*10) vars.ITI = ba…
-
Hi @ethanweed If the OpenSesame app is located in the /Applications folder then you can fire it up with /Applications/OpenSesame.app/Contents/MacOS/OpenSesame Alternatively, you can ask the students to run OpenSesame from source, see https://osdoc…
-
Hi both. I remember this to have been a reported bug, but I am not sure if it is fixed. Opensesame is at 3.3.3 at the moment which also has a new version of osweb. Could you try upgrading to that and see if the bug still occurs?
-
Hi @afkeve, Mousetrap is developed by a different team than the one working on osweb, so if they do not have any plans for developing the plugin for osweb, there will be no integration in the foreseeable future. There also is a mousetrap channel on…
-
It may be a cleanup issue, where the listener function is not property removed. Maybe the same function is attached multiple times to the same event, see: https://stackoverflow.com/questions/26146108/addeventlistener-firing-multiple-times-for-the-sa…
-
Hmm, maybe instead of listening to keypress try keydown or keyup . Does that fix this problem? EDIT: Oh wait, you already are listening to keydown. Give me a sec.
-
Hi @jeboydirk , The array does not become empty, but the console represents it as a foldable object. the length parameters still says 6 so when you press the expansion symbol (triangle), you should see all values again. I don't understand the secon…
-
😁 it doesn't appear in OpenSesame's debug window, but in the browser's. If you are using Chrome, you can open the browser console by pressing ctrl+shift+i (non-macs) or cmd+option+j (macs)
-
and thus also not print to the debug window using console.log() console.log() should work in browser mode at least. It will not work in OpenSesame. In quick run mode in OpenSesame (non-browser), there are sadly no ways to do this, as it is very diff…
-
I just thought of something. Jatos also allows you to set session variables, see http://www.jatos.org/jatos.js-Reference.html#studys-session-data. What if you create such a session variable in the lab.js script, e.g.: jatos.studySessionData.subject_…
-
Hi @drorgarbi If you leave the `possible subject numbers` field empty in the osweb extension then the jatos component result ID will be used as the subject_nr. You should be able to set the worker ID yourself at the start of your experiment using a…
-
I tried my example myself because it was untested, and turns out, it didn't work 😅. So the code below did work for me in osweb: /* Script at the start of a trial (run phase) */ vars.keypresses = [] vars.keyboard_listener = function(event) { // …
-
Right, I see. Your timestamp approach is a good one. Javascript works asynchronously which means that unlike Python, it never really pauses (or halts operations) but only suspends them while it does other tasks in the background. (see https://www.yo…
-
Hi @carolyn. In javascript most of these functions are located in the Math library. the function Math.random() returns a value between 0 and 1, so you could translate your statement as such: vars.fix_duration = parseInt(750 + Math.random()*500) I…
-
Right, I missed that. I have to look a little bit deeper into why this doesn't work and sadly I am a bit strained on time at the moment. I can reiterate though that if it works in OpenSesame and not in osweb, it is probably a bug in osweb, as the tw…
-
Hi @quirkm This could well be due to the fact that you are using multiple loggers, especially if they follow up each other in rapid succession. It is hard to tell why the call to appendResultData happens so frequently in your experiment without fur…