Error converting object to its numerical form

URL of the experiment: Ellen Murphy / where what when ONLINE TASK · GitLab

My experiment involves setting up different rooms, with objects that can be dragged around to various locations in the rooms. I have set up three of the four rooms that are working perfectly, but on the fourth room I am getting the following error code:

Unfortunately we encountered the following error:

  • when converting an object to its numerical form
  • unable to convert undefined to a number

Try to run the experiment again. If the error persists, contact the experiment designer.

I have defined all of the objects in the exact same way as the other rooms, so I’m not sure where I’m going wrong. Anyone have any ideas?

Are you using numbers 1-4 when you should be using 0-3?

What does your code look like?