Page 1 of 1

Logging conversation start

Posted: Wed Jul 06, 2022 2:13 pm
by urrmurrmur
Hi,

I'm currently working on a research project that uses DSFU. We need to track some user data for later analysis, so I've written a FileLogger class that has a method Log which writes the necessary info to a file, along with a timestamp.

One of the things I would like to log is the name of each conversation that is started. I've tried a couple of approaches, but none that works to my satisfaction:
  • Calling my log method from the onUse of a Usable works, but I need to set it for each individual usable and it doesn't log conversations that are started from a timeline or a script.
  • The OnConversationStart event doesn't know the name of the conversation as far as I can see, only the actor.
  • I wanted to adapt the source code and call my log method from DialogSystemController.StartConversation, but I can't use my own custom classes from there.
Any suggestions?

Re: Logging conversation start

Posted: Wed Jul 06, 2022 3:14 pm
by Tony Li
Hi,

You're on the correct track with OnConversationStart(Transform). Use it, and record DialogueManager.lastConversationStarted.