• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.
SoundFromAssetBundle

Plugins + Scripts SoundFromAssetBundle

Download [<1 MB]
Question: does this allow me to shuffle all songs, and then iterate through that (shuffled) list by triggering a play for each song?

Or does a play trigger, give me a random song?

The key is, that the former would prevent songs being played more than once, since the whole list would be played through first. The latter would potentially play the same song twice.
 
@pinosante The shuffle feature uses the PlayRandom logic of the original SoundFromAB script. It only prevents playing the same song twice, it doesn't generate a random order for the folder and then play in the random order. However, that would be a cool feature and probably not too hard to implement.
 
@pinosante The shuffle feature uses the PlayRandom logic of the original SoundFromAB script. It only prevents playing the same song twice, it doesn't generate a random order for the folder and then play in the random order. However, that would be a cool feature and probably not too hard to implement.
Ah thanks for the explanation. That feature would be pretty cool! I have some conversational remarks as audio files and it just sounds super unnatural if a character literally says the same thing twice within a minute of talking :).
 
Ah thanks for the explanation. That feature would be pretty cool! I have some conversational remarks as audio files and it just sounds super unnatural if a character literally says the same thing twice within a minute of talking :).

Yeah. I think a good solution would be just to make the number of how many previously played clips to prevent from playing again a configurable setting, i.e. when picking a random clip, prevent picking any of the last 10 for example. This would work with both the PlayRandom trigger, and the shuffle feature (which is fundamentally an autoplay feature).
 
Yeah. I think a good solution would be just to make the number of how many previously played clips to prevent from playing again a configurable setting, i.e. when picking a random clip, prevent picking any of the last 10 for example.
Oh that would also be a nice fix. Except that you have to check that if you configure that to 100 and there are only 90 clips, it would loop indefinitely, trying to find a clip. But that's easily checked for.
 
Back
Top Bottom