Page 1 of 1

Data Logging?

Posted: October 11th, 2012, 8:21 am
by xantufrog
Hi folks,
I apologize if this has been aswered elsewhere - I didn't see it using my terminology.
What I am looking to do is explore my options for logging the data from a "game" in sandbox. Specifically, is there a way to save a log of the coordinates passed through, triggers being activated, button presses, etc?

The hope is to use this platform for psychology experiments, and what is critical is that I have some sort of time stamps for "when the navigator was 'here'" and "when the navigator passed through the door" etc.

Thanks!

Re: Data Logging?

Posted: October 11th, 2012, 10:42 am
by Hirato
You can just print things to the console and save that to file (the -g command line option for the binary).

for example...
echo $lastmillis coordinates: (getcampos)

You can add additional statements in the script declarations for the relevant items to print stuff, ie...
level_trigger_1 = [ echo $lastmillis activated trigger 1 ]