Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Playing Cards, Subtitles Processing, Virtual Maze Generator for TADS 3

23 views
Skip to first unread message

Jeff Bowyer

unread,
May 16, 2010, 10:33:26 PM5/16/10
to

**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 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
JeffB...@seznam.cz

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


--

Kathrel

unread,
May 17, 2010, 1:56:40 AM5/17/10
to
Out of curiosity; what exactly does subtitle processing do? I understand the
cards and the virtual maze, but that one got me baffled... Do you have a
webpage with further description/documentation, somewhere?

Kath

"Jeff Bowyer" <jbo...@seznam.cz> skrev i melding
news:hsq9tm$tsn$1...@news.eternal-september.org...

Jeff Bowyer

unread,
May 17, 2010, 9:59:58 AM5/17/10
to
Kathrel wrote:

> Out of curiosity; what exactly does subtitle processing do?
>

Good question, Kath.

"Subtitles Processing" loads a SubRip (.srt) file into a TADS 3 vector.
While loading, it performs some validation on the subtitles.

Before writing "Subtitles Processing", I checked _Subtitle Workshop_,
my favorite program for editing subtitles. I was surprised at the
minimal amount of validation that it performed. If I intentionally
screwed up a subtitle in a SubRip (.srt) file, _Subtitle Workshop_
1) didn't display an error message, 2) loaded the SubRip (.srt) file,
but 3) often trashed every subtitle after the errant one.

On the other hand, "Subtitle Processing" doesn't valid everything;
I've left some items (one example: verify a subtitle's start/end times
do not overlap with another subtitle ) for the next version. Right
now, "Subtitle Processing" loads the vector very quickly. Add more
verification, and the loading process may slow down noticeably.

What to do with the vector?

* I want to see the ideas that other TADS programmers develop for
using a subtitles vector.

"Subtitles Processing" saves a TADS programmer from having to
write the code to load the vector.

My idea--IF...interactive film...with TADS as the development
system...but it will take time (and the ability to embed a [simple]
[.avi] video player in a TADS program.)

The manual included with the .zip download file is thorough (I hope).

Jeff

--

Jeff Bowyer

unread,
May 17, 2010, 10:05:33 AM5/17/10
to
Kathrel wrote:

> Out of curiosity; what exactly does subtitle processing do?

One other note...

A TADS programmer is **not** restricted to using a SubRip (.srt) file
from a real video.

If desired, the programmer could create a file according to the SubRip
(.srt) format, and it could contain whatever lines of text (with
accompanying start/end times) that the programmer wanted.


--

0 new messages