Page 1 of 1

Entrytag AudioClip in a special hierarchy inside the Resources folder

Posted: Mon Sep 04, 2023 11:14 am
by Jaximus
Hi Tony,

Is there a way, or some modification I can do in some script, to be able to put my entrytag audioClip in a special hierachy inside the Resources Folder ?

For now, it work fine if I put all my audioClip in the root folder as explained in the documentation. And as soon as I put the audioClip in something like Resources/Audio/MyChapter/etc to have something a bit more organise, it's not working.

Edit : for exemple edit GetEntryTag() inside DialogueDatabase but in a nice way to allow updates ?

Re: Entrytag AudioClip in a special hierarchy inside the Resources folder

Posted: Mon Sep 04, 2023 11:51 am
by Tony Li
Hi,

Let's assume your sequencer command is:

Code: Select all

AudioWait(entrytag)
There are two ways to organize your audio files into subfolders:

1. Use multiple Resources folders:

Audio/Chapter1/Resources/
Audio/Chapter2/Resources/
Audio/Chapter3/Resources/
etc.


2. Or include the path in the AudioWait command. For example, say you've grouped them into characters Ann, Bob, and Cal:

Resources/Ann/
Resources/Bob/
Resources/Cal/

Then you can use this AudioWait command for Ann:

Code: Select all

AudioWait(Ann/entrytag)
Or, to use the same command for all NPCs (assuming they're the conversation conversants):

Code: Select all

AudioWait([var=Conversant]/entrytag)

Note: Other options include using addressables or asset bundles.

Re: Entrytag AudioClip in a special hierarchy inside the Resources folder

Posted: Mon Sep 04, 2023 12:32 pm
by Jaximus
The first solution is exactly what I needed. I'm not used to create multiple Resources folder in my project so I totally forget I could. But it's perfect and easy.

Thank you !

Re: Entrytag AudioClip in a special hierarchy inside the Resources folder

Posted: Mon Sep 04, 2023 1:45 pm
by Tony Li
Glad to help!