The Four-Eyed Guide to TADS 3 by David Welbourn index


VERSION

Default minimal behavior

>version
That Game Where You Blow Up The Rock Creatures version 1.0

TADS 3 Library version 3.0
T3 VM (mjr-T3) version 3.0.6

versionInfo: GameID
  name = 'That Game Where You Blow Up The Rock Creatures'
  byline = 'Leslie S. More'
  htmlByline = 'by <a href="mailto:lessmore@hotmail.ca">
                Leslie S. More</a>'
  version = '1.0'
  • • •
;

version matches VerbRule(Version) which invokes VersionAction. [TODO]

Summary of library references to version info

actions.t

Short description

DefineSystemAction(Version) Defines class VersionAction: SystemAction
Shows version information for each library:
foreach (local cur in ModuleID.getModuleList())
    cur.showVersion();
Note: DefineSystemAction(name) is a macro defined in adv3.h. Note: SystemAction is a class defined in action.t. ModuleID is a class defined in modid.t.

modid.t

Short description

class ModuleID: object The base class for storing module info.
ModuleID.showVersion() Calls libMessages.showVersion(name, version).
ModuleID.getModuleList() Finds, sorts, and returns a list of instances of ModuleID in the program.
class GameID: GameInfoModuleID Your game's sourcefile should define an instance of GameID (see yourgame.t below).
moduleAdv3: ModuleID Module info about the 'TADS 3 Library'.
anonymous ModuleID Module info about the T3 VM itself.

en_us\en_us.t

Short description

VerbRule(Version) Associates the grammar "version" with VersionAction.

en_us\msg_neu.t

Short description

libMessages.showVersion(name, version) "<<name>> version <<version>>"

yourgame\yourgame.t

Short description

versionInfo: GameID Define this instance of GameID in your game's source as suggested by the TADS 3 sample games.
versionInfo.name This should be a string with your game's name, e.g.: 'That Game Where You Blow Up The Rock Creatures'
versionInfo.version This should be a string with your game's version number, e.g.: '1.0'
NOTE: GameID is defined in modid.t (see above).