Logging conversation start

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
urrmurrmur
Posts: 47
Joined: Wed May 05, 2021 1:57 pm

Logging conversation start

Post 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?
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: Logging conversation start

Post by Tony Li »

Hi,

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