I’m having trouble getting HAL to work. I’m pretty sure I’m using Harlowe, and I’ve copied the .js and .css files into the story javascript and stylesheets. The bar on the left side is there and shows the volume and mute buttons, and I’ve created a special passage titled ‘hal.tracks’ with a single track definition within it that looks like this:
ocean: ./audio/3 - Phat Phrog Studios - Sailing Ship In A Storm Ambience - 3 Minute.mp3
I’ve put the audio file within a folder titled ‘audio’ in the /Twine/stories/ directory where the html file is stored, and in one of my passages I’ve put this:
However, when I get to that passage, nothing plays. I’m using the latest release of HAL at the moment, 2.3.0; does anyone know what I could be doing wrong here? I’ve tried running it on multiple browsers and it doesn’t work on any of them so I assume I’ve just messed up somewhere along the way. I’m brand new to Twine, but I have experience with making games with other programs and langauges.
@palette Twine creates testing copies of your project—i.e., any working copy that was not created via Publish—within and runs them from a temporary directory somewhere on your filesystem. Thus, attempting to test audio from such will not work, because the paths will not match up.
When you want to test A/V media, the usual recommendation is to Publish your project and place the resulting HTML file into a directory—which is not the Twine directory—where your A/V media resides.
To be precise, browsers block audio until an activation triggering input event occurs—i.e., until the end user has interacted meaningfully with the page. Generally, this means until the end user: presses a key, clicks the mouse, or touches within the page.
We’ve been trying to determine if ours is malfunctioning as well or if that’s simply the way @HAL9000 was intended to operate. Our technicians still haven’t come to a conclusion.
@pinkunz
The 9000 series is the most reliable computer ever made. No 9000 computer has ever made a mistake or distorted information. We are all, by any practical definition of the words, foolproof and incapable of error.