Relative Paths for module audio

Is it possible to use relative paths to play audio from a module?

I am trying to play some audio using Sequencer.
When using the absolute path it works fine:
.file("https://assets.forge-vtt.com/bazaar/modules/soundfxlibrary/assets/Combat/Single/Melee%20Hit/melee-hit-4.mp3")

Also when I put the audio files into my assets library and use relative paths:
.file("/Audio/melee-hit-4.mp3")

But what is not working is any iteration using relative paths to a module like:
.file("/bazaar/modules/soundfxlibrary/assets/Combat/Single/Melee%20Hit/melee-hit-4.mp3")

.file("/modules/soundfxlibrary/assets/Combat/Single/Melee%20Hit/melee-hit-4.mp3")
or
.file("/soundfxlibrary/assets/Combat/Single/Melee%20Hit/melee-hit-4.mp3")

Any thoughts on that are most welcome.

1 Like

Hey there :wave:
Yeah this should be possible. We do check the Bazaar if you use a relative path.
You’ll notice that there is an /assets/ in the absolute path. This is something that we add to the absolute path on our side but it doesn’t necessarily exist in the base module.

Try referencing this and see if it works for you :slight_smile:
.file("/modules/soundfxlibrary/Combat/Single/Melee%20Hit/melee-hit-4.mp3")

Internally, we’ll check the asset content of that module on the Bazaar.

1 Like

Great! Works!
Thanks for the ultra-fast reply!

1 Like

Awesome! Glad to hear it works! :raised_hands: