I’ve been working on a web-playable version of It, and I pretty much have everything compatible with WebUI now. There’s just one problem left, and I’m finding it a doozy. I can’t get the WebUI version of the game to display images.
For testing purposes, I’ve dropped this code into gameMain.showIntro():
"""<.p><img src="cover art/cover.jpg"><.p>""";
It works just fine in the original UI version of the game, but when I run the WebUI version, all I get is a broken image link icon (you know, that irritating red-cross-in-a-box thing). The .t3 and .t3m files for both versions are all in the same folder, so they shouldn’t have any trouble finding the cover art, and I added the file to the Resources section of the project file. I tried placing the cover art file in the same folder as the .t3m and .t3 files, rather than a subfolder. I tried messing with the format of the tag. I tried compiling the game for release. I tried running the game (both the debug version and the release version) in the stand-alone HTML TADS for Windows interpreter, rather than through Workbench. I created a new WebUI project from scratch and tried getting an image to display in that. I even uninstalled and reinstalled the TADS Author’s Kit and Player’s Kit. No dice.
I’m completely baffled. Anyone have any ideas?