intfiction.org

The Interactive Fiction Community Forum
It is currently Sun Jul 22, 2018 11:34 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Wed Mar 07, 2018 12:38 am 
Offline

Joined: Mon Aug 17, 2015 5:22 pm
Posts: 8
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?

EDIT: I did find this: viewtopic.php?f=10&t=20672 -- though there seems to have been several problems. Anyone ever get it working correctly?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Mar 07, 2018 8:43 am 
Offline
User avatar

Joined: Sun May 21, 2017 4:59 pm
Posts: 174
Location: Michigan
Well, I did manage to fool around and get tads3 (dos version) to run in js-dosbox, but it's kind of klunky still.

http://howtophil.com/tads/

(less clunky in Chrome for whatever reason)

_________________
~~~
My ebooks on Amazon
My ebooks on Smashwords


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Mar 07, 2018 9:13 am 
Offline
User avatar

Joined: Tue Apr 20, 2010 2:48 pm
Posts: 999
Location: Greece
To set up your project so that it creates a WebUI-enabled game file, follow this guide from the System Manual:

http://tads.org/t3doc/doc/sysman/webui.htm

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:

Code:
http://gs.tads.io/?storyfile=http://example.com/MyGame.t3


See this game for a working example:

http://ifdb.tads.org/viewgame?id=pjvpa5u0sej5enyf

(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.)

_________________
@realnc


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Mar 07, 2018 10:28 pm 
Offline

Joined: Mon Aug 17, 2015 5:22 pm
Posts: 8
To howtophil:

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.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Mar 07, 2018 10:49 pm 
Offline
User avatar

Joined: Sun May 21, 2017 4:59 pm
Posts: 174
Location: Michigan
pbSecord wrote:
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....


I know the feeling.

_________________
~~~
My ebooks on Amazon
My ebooks on Smashwords


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Mar 08, 2018 8:43 am 
Offline
User avatar

Joined: Tue Apr 20, 2010 2:48 pm
Posts: 999
Location: Greece
Well, to make you feel better, it's not just DOS that fits in a browser. It's modern operating systems too:

https://bellard.org/jslinux/

_________________
@realnc


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Jun 06, 2018 8:43 pm 
Offline

Joined: Sat Feb 25, 2017 8:10 pm
Posts: 14
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.

I upload this to Github, and then link to it using http://gs.tads.io/?storyfile=[url]

However, I then get the following error:

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 http://, 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.

Is there something obvious I've missed?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Jun 07, 2018 12:56 am 
Offline

Joined: Sat Jul 16, 2011 3:48 pm
Posts: 285
Maybe wrong url? Don't forget that the parameter should be url encoded especially when containing conflicting characters.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Jun 07, 2018 10:32 am 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5693
Are you uploading it to Github as a released file, or are you linking to the repository?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Jun 10, 2018 5:51 am 
Offline

Joined: Sat Feb 25, 2017 8:10 pm
Posts: 14
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: http://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: http://www.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.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group