After a long hiatus from the world of IF, I’m considering writing some of my own stuff. That is, if I can ever actually finish a whole game.
I was wondering, though… what’s the best way to make a TADS 3 game available for online play, in a normal web browser? I confess I don’t understand how to implement HTML TADS in that way. I do have some experience with setting up web sites, so I’m not a total newbie. Do you need an actual back-end server, or is it something that can be handled with HTML and JavaScript? Are there any existing guides to setting up a browser based game? Does anyone out there already host a service that makes this possible? That would be the ideal solution, I think…
I did notice a recent thread on making TADS 2 playable in a browser. I was hoping, however, that something similar might have happened for TADS 3. Any thoughts?
When you’re ready to publish the game, upload the game file somewhere, and use the gs.tads.io service to run it (it provides servers hosted on Amazon AWS.) You only need to provide a link to gs.tads.io that loads the game file from somewhere on the internet. This looks like this:
(Click the “Play online” link in the upper-right.)
You might want to keep your game non-WebUI compatible, so that it can be played in normal interpreters locally. You would need to keep two project files (.t3m files) for this, one set up for WebUI and one for the normal version.)
I checked out your site, and js-dosbox is definitely something to think about. Although I do feel a little old, knowing that a whole operating system I once used can fit into a browser…
To RealNC:
Thanks for the info! I’m especially happy to learn about the gs.tads.io service. That simplifies things a great deal.
I’m trying to follow the method above so that I can test my Web UI game in a modern browser (rather than the standalone version). So, I build the game in Workbench (on Windows 10) using the ‘compile for release’ option in the ‘build’ menu, which gives me a .t3 file.
Error
The story file doesn’t appear to be a valid TADS game file.
Try again
I’m changing the https:// of the Github address to , but I assume that isn’t what’s causing this problem. I’ve tried different .t3 files, and I always get the same error. I should also mention that the .t3 file works fine locally.
I tried linking to the released file (and encoding the url), but now when i try to run the file from Github, I get the following:
Error
A network error occurred retrieving the story file.
Try again
Error details: Story file location: github.com/Otto73/TADS3/tree/1.0/Ward_Z.t3
HTTP error: 301 Moved Permanently
Using a different hosting service (again, with an encoded URL) , I still get the ‘storyfile’ error:
Error
The story file doesn’t appear to be a valid TADS game file.
Try again
Error details: Story file location: 000webhost.com/members/websi … /Ward_Z.t3
This file isn’t a valid .t3 compiled game file. Possible causes:
the original Web link you clicked to launch the game is broken
the story file on the server is corrupted
the file was uploaded with a compressed format such as ZIP, rather than as a plain .t3 file
the file was garbled while being transferred across the network
You might try again, in case the problem was a random network glitch or other temporary condition. If the problem persists, you should contact the person who maintains the page where you found the launch link.
That’s not a link to t3 file despite t3 extension at the end of URL, but rather a link to HTML page with a description of the file. If you want to link to the file, you need to link to github.com/Otto73/TADS3/blob/1. … 3?raw=true URL, but unfortunately TADS launcher does not support HTTPS protocol, you need to host your file somewhere it is accessible over plain HTTP.
That’s not valid URL of game file, it just redirects to login page, probably it’s not shared publicly.
I’m now able to run the game through gs.tads.io. I wasn’t aware that I needed to add ?raw=true to link to the actual file. I still can’t launch it from Github, but it runs fine from ottocondliffe.000webhostapp.com/ … 3?raw=true. The site is set up for https:, but it seems to work fine just changing the address to http:
Thanks - however, when I try to run the game from the address above, I get the same error:
Error
A network error occurred retrieving the story file.
Try again
Error details: Story file location: github.com/Otto73/TADS3/blob/1.0 … 3?raw=true
HTTP error: 301 Moved Permanently