Three Extensions for TADS 3 released

Playing Cards for TADS 3

This extension to TADS 3 allows a programmer to work with a standard deck of 52 playing cards. Classes include Card_In_Hand, Hand_of_Cards, and Deck_of_Cards. Functions include “shuffleSound”. The .zip download file also provides a simple game of “War” as an example.

Playing Cards for TADS 3 is now available for downloading at this URL (678.4 Kb):

http://www.fileden.com/files/2008/10/13/2140959/Playing%20Cards/Playing%20Cards.zip

======================================================================

Subtitles Processing for TADS 3

This extension to TADS 3 allows a programmer to work with a subtitles file. In version 1 of Subtitles Processing for TADS 3, SubRip (.srt) files are supported.

Subtitles Processing for TADS 3 is now available for downloading at this URL (49.4 Kb):

http://www.fileden.com/files/2008/10/13/2140959/Subtitles%20Processing/Subtitles%20Processing.zip

======================================================================

Virtual Maze Generator for TADS 3 (version 2)

Version 2 includes these new features:

  • ‘msolve’ command in the TADS 3 component displays a map of the entire maze, including your current position, the location of the maze’s exit, and [color=red]the solution path;

  • Ability to create user-defined motifs in the TADS 3 component. The .zip download file provides three examples—cityStreetsMaze, mountainMaze, underworldMaze;

  • ‘graphicsDisplayMaze’ property in the TADS 3 component allows the player to display a map of the maze that is composed of graphics images or ASCII characters;

  • Similarly, the Java component now provides two commands to display a generated maze with ASCII characters or with 2D graphics.

The Virtual Maze Generator (version 2) is available for downloading at this URL (578.6 Kb):

http://www.fileden.com/files/2008/10/13/2140959/Maze%20Generator/Maze%20Generator.zip

======================================================================

Jeff Bowyer
JeffBowyer@seznam.cz

(After “beta testing”, I will upload these extensions to the IF archive.)

The SRT extension sounds interesting. What exactly does it do?

Btw, you might want to remove the “Thumbs.db” file from the “Playing Cards” ZIP and to provide a makefile for the example games so people can build them easily. Also, including torrents for warez scene releases in the SRT extension might not be the smartest thing to do :stuck_out_tongue:

RealNC, thanks for your comments.

Done.

It initializes a vector with the contents of a SubRip (.srt), one subtitle per element of the vector. During initialization, it performs some validation on the subtitles.

What to do with the vector?

  • I want to see the ideas that other TADS programmers develop for using a subtitles vector;
  • My idea–IF…interactive film…with TADS as the development system…but it will take time.

Yeah, I thought about it, too. I came to this conclusion…I wanted to show that Subtitles Processing for TADS 3 has been tested on a real-world SubRip (.srt) file. The torrent is part of documenting my sources. Ultimately, a torrent is not piracy. Using a torrent is.

Thanks again for your comments.

Jeff

That’s what Pirate Bay thought too :slight_smile:

There are .srt subtitles for movies that can be distributed freely, for example http://www.starwreck.com/download_subtitles.php. That would dodge the moral gray ground of distributing torrents to illegal shares.

I’ve found a bug in the IMG and SOUND tags. The images are not able to display and the sounds not able to play on Macs and Linux because you’re using backslashes ("") as directory separators. For example, you’re generating URLs like “graphics\C4.jpg”. This is wrong. URLs need to use forward slashes ("/"), like “graphics/C4.jpg”. This is true for every resource, be it images, sounds, or whatever. This is documented here:

tads.org/t3doc/doc/htmltads/res. … ativePaths

So instead of URLs like:

"<IMG SRC=\"graphics\\<<BACKDESC>>_back_vertical.jpg\">";

you need to use:

"<IMG SRC=\"graphics/<<BACKDESC>>_back_vertical.jpg\">";

Fixed in…

Playing Cards for TADS 3
Virtual Maze Generator for TADS 3 (version 2)
and even Frosty the Snow Man

Not applicable to…

Subtitles Processing for TADS 3

Thanks RealNC.

Jeff

P.S. Yes, I’m a Windows heathen. :slight_smile:

Are those extensions still available? The links seem to be broken (or at least FileDen is trying to get me to pay to download the files :confused: ).

Jeff