Trouble with Twine's HAL

Twine Version: 2.9.0 (in-browser)
Story Format: Harlowe 3.3.9

I’m trying to get the Harlowe Audio Library to work in my game but I’m having issues. I’ve followed the setup instructions and added the provided .js and .css files into the Javascript and Stylesheet respectively, and added a passage named hal.tracks with the following code (though I’ve removed the actual URL):

smallLaugh: url

In the passage where I want the sound to play, I have:

(track: 'smallLaugh', 'play')

However, when I try to play the passage I get three errors saying “Error in A.newTrack() → see the console for more information” and “Error in A.track() → see the console for more information” and “Error in the (track:) macro: o is undefined”

I’ve tried using A.newTrack and A.track in Javascript instead but this hasn’t fixed the issue. Any help would be greatly appreciated, thanks!

1 Like

I’ve only used HAL in the browser version of Twine, but the problems I had mostly stemmed from the program referencing the correct files. Since you’re using URLs, it might be different… I’d try asking in the Harlowe channel in the Twine discord, Chapel’s pretty active there and I bet you’d find help!

1 Like

Thanks, I’ll try there!

1 Like