You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When making a simple yarn script with voice-over that has a node that jumps to itself, we experience a:
ArgumentExpection: An item with the same key has already been added.
error inside of the AudioLineProvider at line 231.
Please provide the steps to reproduce, and if possible a minimal demo of the problem:
Create a simple yarn script with a single node.
Inside of this starting node, include a single line of dialogue with a single option response that leads to a jump command to the starting node.
Pull into a fresh scene the default DialogueRunner prefab.
Hook up an AudioLineProvider to the DialogueRunner.
Generate a yarn project for this script.
Set up simple addressables/localization for this yarn project.
Set up some audio to be associate with the single line of dialogue in our script, ensuring that it loads appropriately.
Run the script, observing the console and halting of the yarn script.
What is the expected behavior?
The Audio Line Provider should be able to account for loading into the current node. This can be done through either ignoring a duplicate key or full clearing the dictionary before loading a future node's assets.
Please tell us about your environment:
Yarn Spinner Version: 2.4.2
Unity Version: 2022.3.47
Other information
I have implemented a simple fix for my version that ignores a complete load if the loaded content already exists, but the more appropriate solution would be to remove the duplicate load task before it is performed to save on runtime.
You will want to look at the PrepareForLines function inside of the AudioLineProvider to implement this fix.
The text was updated successfully, but these errors were encountered:
What is the current behavior?
When making a simple yarn script with voice-over that has a node that jumps to itself, we experience a:
ArgumentExpection: An item with the same key has already been added.
error inside of the AudioLineProvider at line 231.
Please provide the steps to reproduce, and if possible a minimal demo of the problem:
What is the expected behavior?
The Audio Line Provider should be able to account for loading into the current node. This can be done through either ignoring a duplicate key or full clearing the dictionary before loading a future node's assets.
Please tell us about your environment:
Other information
I have implemented a simple fix for my version that ignores a complete load if the loaded content already exists, but the more appropriate solution would be to remove the duplicate load task before it is performed to save on runtime.
You will want to look at the PrepareForLines function inside of the AudioLineProvider to implement this fix.
The text was updated successfully, but these errors were encountered: