Lines of Communication

version 1 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next

  • Section: Setup

    Before creating a file channel, you must first create one or both of its input and output files, using whatever internal name and file name you choose. ("Input" and "output" are from the perspective of the Inform program.) On most systems, the quoted filenames will have ".glkdata" appended to them when created.

        The File of chess-input is called "chessInput". The File of chess-output is called "chessOutput".

        The File of high scores is called "highScore".

    File channels are only active when they are switched on. They come in two types: background file channels, which only look for and execute incoming commands when the player submits a move, and real-time file channels, which pause the game and don't allow the player to type new commands until the channel is switched off.

    A file channel's i/o files are normally blanked out each time the story is restarted: to override this, they can optionally be declared persistent.

    File channels must be declared and assigned an input and/or output file:

        The chess computer is a real-time file channel. The input file is File of chess-input. The output file is File of chess-output.

        The high score roster is a persistent switched on background file channel. The output file is File of high scores.

    The extension can handle multiple file channels of any kind being switched on simultaneously, and will automatically queue multiple incoming commands for execution.