immersivecognition / unity-experiment-framework

UXF - Framework for creating human behaviour experiments in Unity
https://immersivecognition.github.io/unity-experiment-framework/
MIT License
221 stars 43 forks source link

Why does my tracked object appear twice in my trial_result.csv? #131

Closed JAQuent closed 2 years ago

JAQuent commented 2 years ago

I have encountered a weird situation where all of a sudden my one tracked object appears twice in the trial_result.csv. See

<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

player_movement_location_0 | player_movement_location_1 -- | -- OLM_mainTask/test/S001/trackers/player_movement_T001.csv | OLM_mainTask/test/S001/trackers/player_movement_T001.csv

This didn't happen in old versions of my experiment. I've no idea why that is all of a sudden.

  1. I do not have two tracked objects: image

When I actually try to track it twice I get this error:

InvalidOperationException: Two or more trackers in the Tracked Objects field in the Session Inspector have the following object name and descriptor pair, please change the object name fields on the trackers to make them unique: player_movement

  1. I do only have on instance of the script on my player game object: image

I mean on it's own this does not bother me too much but I a) don't understand why it is happening and b) I want to make sure that I am not saving things twice.

jackbrookes commented 2 years ago

This would only occur as far as I can tell if you have 2 data handlers. That's why they are marked location_0 and location_1.

JAQuent commented 2 years ago

Ah, that make sense I use HTTP Post as well as the normal file saver. Thanks this is very reassuring.