Improvement request: AudioWait audio selection

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
rakkar
Posts: 51
Joined: Mon Jan 13, 2020 10:39 pm

Improvement request: AudioWait audio selection

Post by rakkar »

I just spent about 6 hours adding AudioWait to all my sequences, painstakingly copying filenames between the script and the Dialogue editor. Probably made mistakes along the way, which I'll later have to debug.

The upside of doing it this painstaking way is I can programatically select the filename, which I do using
AudioWait(Narration[lua(GetAvatarGender(true))]_Tutorial5Cutscene_01)

Another update is I can refer to filenames that don't exist yet, so I can set up everything even when the audio is still pending.

However, I'm not thrilled about the 6 hours + mistakes part and wouldn't want to go through this again for the sequel.

I'd like to request some kind of tool to more effectively process this. I'm not super sure what is the best approach, but what the other dialogue systems do might be a start.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Improvement request: AudioWait audio selection

Post by Tony Li »

Sorry you spent so much time setting them up manually. In the future, I recommend using entrytags like in the demo.

The basic steps are:

1. Write your dialogue.

2. Export a voiceover script to get the filenames for the audio files (e.g., Player_01_42).

3. Save the audio files using those filenames. If you're using gender, save them in a consistent format (e.g., Female_Player_01_42 and Male_Player_01_42).

4. Set the Dialogue Manager's Default sequence to something like:

Code: Select all

AudioWait([lua(GetAvatarGender(true))]_entrytag)
Or, if you've created localized versions in different languages:

Code: Select all

AudioWait([lua(GetAvatarGender(true))]_entrytaglocal)
5. Leave the dialogue entries' Sequence fields blank, or include {{default}} to include the Default Sequence.
rakkar
Posts: 51
Joined: Mon Jan 13, 2020 10:39 pm

Re: Improvement request: AudioWait audio selection

Post by rakkar »

Looks like this would have been easier.

Maybe add a reference to the manual under "Sequences and Dialogue Entries" instead of "Camera Angle Prefab"?
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Improvement request: AudioWait audio selection

Post by Tony Li »

Move the Entrytags section to be above Camera Angles? Would that have helped?
Post Reply