Debian Codegraph @

terps/agility/readme.agility

raw
1 =================================================
2 AGILITY: THE (MOSTLY) UNIVERSAL AGT INTERPRETER
3 Version 1.1.2
4 =================================================
5
6 This is an interpreter for game files created with Malmberg and
7 Welch's _Adventure Game Toolkit_. AGiliTy is universal in the sense
8 that it understands and interprets most of the many versions of the
9 AGT game file format (unlike the original interpreters which were
10 only intended to run the game file format associated with them) and
11 also in that it is written in ANSI C and so should be straightforward
12 to port to other systems.
13
14 It is *not* a port of the original interpreters but rather a
15 completely new interpreter built around the game file format; while it
16 follows the original interpreters on most things, there are some
17 differences which are described below.
18
19
20 ----------
21 CONTENTS
22 ----------
23 INTRODUCTION
24 ACKNOWLEDGMENTS
25 AGT AND AGX GAME FILES
26 AGT VERSIONS SUPPORTED
27 DIFFERENCES BETWEEN AGILITY AND THE ORIGINAL INTERPRETERS
28 LIST OF SPECIAL VERBS
29 CONFIGURATION FILES
30 DEBUGGING OPTIONS
31 AGT GAME LIST
32
33
34 --------------
35 INTRODUCTION
36 --------------
37 The most recent release of this program can be found at the
38 Interactive Fiction archive:
39 https://www.ifarchive.org/indexes/if-archive/programming/agt/agility/
40
41 This software is copyright 1996-1999,2001 by Robert Masenten.
42 This program is free software; you can redistribute it and/or modify
43 it under the terms of version 2 of the GNU General Public License,
44 as published by the Free Software Foundation.
45 This program is distributed in the hope that it will be useful,
46 but WITHOUT ANY WARRANTY; without even the implied warranty of
47 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48 GNU General Public License for more details.
49 You should have received a copy of the GNU General Public License
50 along with this program; if not, write to the Free Software
51 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
52
53 For information on compiling and porting this program, see the file
54 'porting.txt'. A list of known bugs is in the file 'buglist' and a
55 list of changes from earlier versions is in 'changes.txt'. (If this is
56 with an executable and not the source version, some of these files may not
57 be present).
58
59 The original author, Robert Masenten, has not been heard from in years,
60 but David Kinder has done some work on updating AGiliTy to fix bugs. Any
61 bugs you find can be reported at David's GitHub page for AGiliTy:
62 https://github.com/DavidKinder/Windows-AGiliTy/
63
64
65
66 -----------------
67 ACKNOWLEDGMENTS
68 -----------------
69 Thanks to the following people:
70 *Jay Goemmer, who has sent me pages and pages of comments and bug
71 reports.
72 *David Kinder, responsible for the both the Amiga and Windows ports and
73 a source of much valuable feedback.
74 *David Youd, who has uncovered many subtle and complex bugs in both
75 AGiliTy and Magx.
76 *Mitch Mlinar, who has contributed several patches.
77 *Jan-Erik Karlsson, for his bug report/patch.
78 *Everyone else who has sent me suggestions and bug reports, including
79 Audrey De Lisle (responsible for the red smoke), David Doherty, Al
80 Golden, John Hartnup, Walter Isaac, Sami Kivela, Alexander Lehmann,
81 Grant E. Metcalf, Paul Mikell, Adam Myrow, Olav Nielsen, D.J. Picton,
82 Kevin Soucy, Ben Straub, "Grand Moff Tarkin", Adam Thornton, Mark
83 Tilford, David Turpin, and Gil Williamson.
84 *Volker Blasius, maintainer of the Interactive Fiction Archive at
85 www.ifarchive.org.
86 *Robert Pelak, who suggested the name "AGiliTy".
87 *All of the other people on rai-f who suggested names for my interpreter.
88
89
90 ------------------------
91 AGT AND AGX GAME FILES
92 ------------------------
93 Games in the AGT format can be found at the Interactive Fiction archive:
94 https://www.ifarchive.org/indexes/if-archive/games/agt/
95
96 AGT games are recognizable by having several different files with
97 names like 'MYGAME.D$$', 'MYGAME.DA1', 'MYGAME.DA2', ... ,
98 'MYGAME.DA6', 'MYGAME.TTL', etc. They also usually come with a DOS
99 runtime interpreter (usually called RUN.EXE or MRUN.EXE), which can be
100 deleted without affecting AGiliTy. (DOS users might want to keep it
101 around 'just in case', depending on how much hard drive space is
102 available)
103
104 AGiliTy also has its own file format (with extension "AGX", which
105 stands for "Adventure Game eXecutable"); existing AGT games can be
106 converted into this format using the utility agt2agx which comes with
107 AGiliTy. They can also be created from AGT source code by using the
108 Magx compiler, available in
109 https://www.ifarchive.org/indexes/if-archive/programming/agt/magx/
110
111 The new format takes all of the various AGT files (MYGAME.DA1,
112 MYGAME.DA2, MYGAME.DA3, MYGAME.DA4, MYGAME.DA5, MYGAME.DA6, MYGAME.TTL,
113 MYGAME.INS, MYGAME.VOC, MYGAME.D$$, MYGAME.OPT, and parts of
114 MYGAME.CFG) and puts all of the data in one file (MYGAME.AGX).
115 Aside from the reduction in directory clutter, it has the
116 following advantages:
117 1)It's smaller; for large games the new format can save over 100K
118 (The most extreme case I've run across so far is Shades of Gray:
119 790K vs. 568K uncompressed or 273K vs. 148K ZIPed)
120 2)It loads more quickly since it's closer in structure to AGiliTy's
121 internal format. (In particular, the interpreter doesn't need to
122 build the dictionary or convert metacommand opcodes into a common
123 format).
124 3)It's more portable. For example, there are platforms out there that
125 can't handle the 'D$$' extension.
126
127
128 ------------------------
129 AGT VERSIONS SUPPORTED
130 ------------------------
131 AGiliTy understands the following versions of AGT (which includes
132 every AGT game at www.ifarchive.org that I know of):
133 --1.0
134 --1.18
135 --the early "Classic AGT": e.g. 1.19, 1.2, 1.21
136 --"Classic AGT", both big and small: e.g. 1.3, 1.32, 1.35, 1.5, 1.7
137 --the "Even Bigger 1.32" used by _Cosmoserve_
138 --the "Chemically Altered 1.32" used by _Shades of Gray_,
139 --Menichelli's 1.82[untested] and 1.83
140 --Both known "proto-Master's Edition" 1.5 variants
141 --The proto-Master's Edition 1.6 variant used by Pork.
142 --Both Master's Edition 1.0 variants.
143 --The Master's Edition 1.5/1.51, 1.55, and 1.56/1.6/1.7.
144
145 _The Pyramids of Mars_ and _Cliff Diver_ require configuration
146 options to be set; they use variant interpreters that are supported
147 but can't be detected by the interpreter.
148 In particular, _Pyramids_ needs the ALT_ANY option and
149 _Cliff Diver_ requires the IRUN option.
150
151 _Klaustrophobia_ is now supported. Use AGiliTy to play each of the
152 chapters as usual. To switch between chapters, just SAVE at the end
153 of one chapter and RESTORE at the beginning of the next (the
154 game will tell you when to switch chapters; however, use SAVE instead
155 of DONE1 or DONE2). This is still experimental and so I'd appreciate
156 any feedback on how well it works (or doesn't work, as the case may
157 be).
158 Unlike the MS-DOS programs that _Klaustrophobia_ originally used for
159 this, AGiliTy doesn't check that you've actually reached the end of the
160 previous chapter; be warned that if you switch chapters before the game
161 tells you to, things may break.
162 There is also no way for AGiliTy to support the intermission or
163 endgame text from the original game: these are all printed out
164 by DOS programs rather than by the AGT interpreter.
165
166
167 -----------------------------------------------------------
168 DIFFERENCES BETWEEN AGILITY AND THE ORIGINAL INTERPRETERS
169 -----------------------------------------------------------
170 --Disambiguation is done on the normal command entry line rather than
171 having a special prompt.
172 --When asked "Which object do you mean?", it is possible to reply
173 ANY, EITHER, BOTH, or ALL, as well as giving the name of an object.
174 --LISTEXIT ON, LISTEXIT OFF will turn automatic listing of exits on or
175 off (in AGT there is a LIST EXITS command, so some AGT games don't list
176 exits to rooms).
177 --OOPS, UNDO, and RESTART are supported (at least on systems with
178 enough memory).
179 --Adjective-only matches are accepted by the parser.
180 --The parser is capable of intelligent disambiguation.
181 --It is is also able to expand ALL and ALL EXCEPT (when appropriate
182 options are set).
183 --Some more multiple word verbs are automatically recognized (for
184 example, GET IN is automatically translated into ENTER).
185 --Some built-in verbs have additional synonyms. (In particular,
186 standard one-letter abbreviations are supported: X for EXAMINE, Z for
187 WAIT)
188 --Game-specific synonyms are given a higher priority by the parser than
189 the generic built-in synonyms.
190 --The standard error messages are different than the original (except
191 in Master's Edition games where most of the standard error messages
192 are included in the game file)
193 --SCRIPT output is sent to a file rather than to the printer.
194 --AGiliTy has an extended AGILDEBUG debugging verb and supports more
195 detailed metacommand tracing output.
196 --AGiliTy uses a different save file format.
197 --COLORS is not supported, although on some systems equivalent
198 functionality is supported in the configuration file.
199 --The special title screen effects of the Shades of Gray and Cosmoserve97
200 interpreters aren't duplicated.
201 --Graphics, sound, and fonts are not supported on all platforms.
202
203
204 -----------------------
205 LIST OF SPECIAL VERBS
206 -----------------------
207 These are all of the special verbs recognized by the interpreter:
208 SCORE Print out your score.
209 NOTIFY Turn score notification on and off
210 INSTRUCTIONS or INS Display the instructions for the game.
211 INTRODUCTION or INTRO Repeat the introduction of the game.
212 VIEW <picture> Views an illustration. (Not supported on all platforms.)
213 BRIEF Don't print room descriptions for rooms you've seen.
214 VERBOSE Print room descriptions even for rooms you've already seen.
215 LIST EXITS List the exits from a room.
216 LISTEXIT ON,OFF Turn on/off automatic listing of exits.
217 SCRIPT Start sending a transcript to a file.
218 UNSCRIPT Stop creating a transcript.
219 SOUND ON, OFF Turn sound on/off.
220 LOG Start sending all of your commands to a file.
221 REPLAY <number> Replay your commands from a file, one every <number>
222 seconds.
223 REPLAY FAST Replay your commands from a file without waiting for you
224 to read the scrolling text.
225 REPLAY STEP Replay your commands from a file, one for every keypress.
226 AGILDEBUG Access debugging commands.
227 MENU Toggle menu mode on or off.
228 OOPS Correct a word you just mistyped; must be the first command on
229 a line.
230 UNDO Undo your last move; must be the first command on a line.
231 SAVE Save the game.
232 RESTORE Restore the game.
233 RESTART Restart the game.
234 QUIT Quit
235
236
237 ---------------------
238 CONFIGURATION FILES
239 ---------------------
240 The interpreter gets configuration information from as many as three
241 places: the global configuration file (containing things that you want
242 to apply to every game you play), the game-specific configuration
243 file (usually with an extension '.cfg'), and, in the case of AGX-format
244 games, the game file itself.
245 Options in the game-specific file override options specified from
246 the other two sources; options in the AGX file override those in the
247 global file.
248
249 The following configuration options are supported on all platforms.
250 Other options may be supported on your particular system; see
251 appropriate platform-specific documentation for information.
252 Each option should be on a separate line in the configuration file.
253 Lines starting with '#' will be treated as comments and ignored.
254 Options can be negated by prefixing them with 'NO_' so that, for
255 example, DEBUG would become NO_DEBUG.
256
257 General options:
258 VERBOSE Start the game in VERBOSE mode
259 DEBUG Allow the use of AGILDEBUG for pre-Master's games (For
260 Master's Edition games, this decision is based on the DEBUG
261 flag in the game file itself)
262 DEFAULT_ERRORS Cause AGiliTy to use its own internal defaults
263 for standard error messages even if the game file defines its own.
264 (Recommended for most Master's Edition games.)
265 PATH Gives a space-separated search path for AGT games. [Not supported
266 on all platforms.]
267 TONE Enables the *tone* action token, which allows games to make
268 annoying beeps on some platforms. The only game I might recommend
269 enabling this for is _CosmoServe_ which has some interesting
270 sound effects. Not all platforms support this command.
271 INPUT_BOLD Makes the input line bold. (This doesn't work on all platforms)
272 IBM_CHAR Try to use the IBM character set; don't translate them.
273 If your platform doesn't support the IBM character set, this is
274 likely to produce garbage.
275 NO_ERROR Supress GAME ERROR messages during play. Some poorly written
276 AGT games contain bad metacommands, out-of-range tokens, or other
277 problems; this option will supress the messages reporting these
278 sorts of problems.
279 SMART_DISAMBIG This turns on smart disambiguation. This works better
280 with some games than others.
281 EXPAND_ALL This turns on ALL and ALL EXCEPT expansion in the parser (by
282 default, expanding them is the responsibility of the individual
283 verb execution routines); see remarks on SMART_DISAMBIG: both of these
284 options use the same engine and so they are likely to work or fail
285 together. If you're using this, you'll probably also want to set
286 FIX_MULTINOUN.
287 IGNORE_SIZE Ignore weight and size limits on how much the player can
288 carry. (There remain limits on the size and weight of any
289 individual object.)
290 STABLE_RANDOM Use a fixed algorithm for generating random numbers that
291 always produces the same sequence on any system.
292
293 Game specific options
294 (Many of these are more useful to game authors than game players.)
295 PROPER_CREATURE Treat all creature names as proper nouns.
296 (In particular, this will cause them to be capitalized and to
297 not have "the" appear in front of them.) Use of DEFAULT_ERRORS
298 is recommended with this option.
299 ROOMTITLE Print the room title in bold before the room description
300 in pre-Master's games. (Master's Edition games do this
301 automatically)
302 IRUN Print error messages in first person. This should be set for
303 _Cliff Diver_.
304 NO_BLOCK_HOSTILE Allow the player to leave a room containing a hostile
305 creature if they go back the way they came.
306 NO_GET_HOSTILE Prevents the player from picking up objects in a room
307 containing a hostile creature. (Intended to be used with
308 NO_BLOCK_HOSTILE)
309 NO_OBJECT_NOTES Turns off notes after object description,
310 such as '[providing light]'.
311 CONST_TIME Increment time at a constant rate instead of randomly.
312 SLASH_BOLD If set the slash character toggles bold on and off.
313 (This should be set automatically for 1.8x games, but you may still
314 need to set it explicitly for version 1.82 )
315 PRONOUN_SUBS Do $you$-style substitutions even in game-author
316 defined messages.
317 ALT_ANY This scans the ANY metacommands *with* the <verb>
318 metacommands rather than before them. Should be set for
319 _Pyramids of Mars_ and not for any other games I know of.
320 CHECK_GRAMMAR Print out error messages if the player enters a verb
321 with too many objects. (For example, "N KEY").
322 FORCE_LOAD Force AGX game to load even if interpreter isn't of the
323 right version. Don't use this unless you know what you're
324 doing: Magx doesn't assign minimum version numbers without
325 reason.
326 PURE_AFTER Causes LOOK and other end-of-turn actions to take place
327 after AFTER commands. (This is on by default for Master's
328 Edition games.)
329 FIXED_FONT
330 Force system to use a fixed-pitch font.
331 NO_FIXED_FONT
332 Allow the system to use proportional fonts.
333
334 Technical options: These are fine tuning.
335 FIX_METAVERB Don't run ANY metacommands when executing a metaverb.
336 FIX_MULTINOUN Only advance one turn when manipulating multiple nouns,
337 rather than a turn for each noun.
338 PURE_ANSWER Require AND-connected answers to be in the right order.
339 (The Master's Edition documentation claims order doesn't
340 matter, but with the actual interpreters it does)
341
342 Parse Options: These are all pretty technical.
343 PURE_DUMMY Allow dummy verbs to be run by typing "dummy_verb3"
344 PURE_SUBNAME Allow subroutines to be run by typing "subroutine3"
345 PURE_SYNONYM Treat synonyms exactly as nouns.
346 ADJ_NOUN Don't pick noun matches over adjective-only matches.
347
348
349
350 -------------------
351 DEBUGGING OPTIONS
352 -------------------
353 With AGILDEBUG you can access various debugging commands. You can
354 move objects around; change the values of flags, variables and
355 counters; list objects in the game; examine and edit objects; and turn
356 metacommand tracing on or off.
357
358 (Note: You can change almost all of the fields associated with
359 an object using the View/Edit Object option; be warned that many of
360 them are not SAVEd or RESTOREd since they can't be changed during
361 normal play. If you change one of these and then RESTORE or UNDO, it
362 will stay changed. Conversely, if you make a change, save, quit, and
363 restore, the changed value will not be preserved. The fields having
364 this behavior are marked.)
365
366 When metacommand tracing is on, every metacommand that is run will
367 be displayed. You can turn off tracing of ANY metacommands and tracing
368 of metacommands during disambiguation (the latter is off by default).
369
370 In addition, AGiliTy has a test mode which automatically reads a
371 log file from <gamename>.LOG (or equivalent) and writes a script to
372 <gamename>.SCR. In this mode, the random number generator is forced to
373 be non-random, allowing for automated testing of games.
374 To use this, you create a LOG file (either by hand, by using the
375 '-c' option, or by using LOG-- note that this log file needs to
376 include everything from the very beginning, including the key hit at
377 the end of the title screen, so if using the LOG command you'll need
378 to add a line or two at the beginning.)
379 Run AGiliTy in test mode once to get the script. Copy the script
380 to some other file. Then, whenever you make a change to your game
381 file, rerun AGiliTy and compare the new script with the old one.
382 (There are programs that will do this automatically and just print
383 out the lines that have changed.)
384
385
386 ---------------
387 AGT GAME LIST
388 ---------------
389 Here is a list of a few of the better or more popular AGT games,
390 along with their filename in https://www.ifarchive.org/indexes/if-archive/games/agt/;
391 it is in no way exhaustive.
392 I've also included references to reviews in issues of SPAG and
393 XYZZYnews; these can be found in if-archive/magazines/SPAG and
394 if-archive/magazines/XYZZYnews respectively.
395
396
397 Shades of Gray (soggy97.zip) by Mark Baker, Steve Bauman, Belisana
398 Magnificent, Mike Laskey, Judith Pintar, "Hercules", and Cindy Yans
399 Widely considered to be the best AGT game ever written. This is a
400 'real life' game that is concerned more with the protagonist's
401 ideals and mental state than with "adventuring". You open the game
402 with amnesia and need to figure out who you are and recover your
403 memory. To say more would give too much away. It's a bit uneven (it
404 was written by a team of seven people) and it opens with an
405 arbitrary puzzle that's a potental show-stopper, but overall this is
406 an excellent game.
407 SPAG 2, 8; XYZZY 11(interview with one of the authors)
408
409
410 Cosmoserve (cosmos97.zip) Judith Pintar
411 Another strong AGT game. In it, you take the role of R.J. Wright,
412 free-lance programmer/plumber, who is trying to finish a program
413 that is due the next morning. You will need to log on to Cosmoserve
414 and interact with the other users in order to be able to do this.
415 It has a clever interface that really captures both the DOS
416 command-line and life online pre-GUI. This is, however, a game
417 you'll have to play through several times to win since it requires
418 tight timing to be in all of the right places at the right times.
419 SPAG 5; XYZZY 1, 11(interview with the author)
420
421
422 The Jeweled Arena (tja.zip) David S. Raley
423 This game is divided into four chapters; in each chapter you are
424 a different person (although the first and third chapters share the
425 same main character). Games like this often suffer from a lack of
426 unity; this game, however, holds together quite well. In part, this
427 is because all of the chapters take place in a single, large,
428 setting: the city of Kumeran. You can visit locations multiple times, as
429 different characters. Locations that are unimportant in one chapter
430 may be of great importance in a later chapter. In general, the world
431 has a lot of depth, from diaries of the main characters to newspaper
432 articles to books on law. On the other hand, it could have used some
433 more beta-testing. There are several guess-the-verb puzzles and a quite
434 a few bugs; most of the bugs are just amusing, but at least one (in
435 chapter 3) can cause the game to become silently unwinnable for no
436 obvious reason if you do a certain action in the wrong place.
437
438
439 The Multi-Dimensional Thief (mdthief1.zip) Joel Finch
440 [Summary/review by Audrey De Lisle]
441 You are a thief desiring to become a member of the Thieves' Guild.
442 The test for this is to find the way out of the house. This seems
443 rather easy, but it's not. One feature is a visit to OZ; another
444 feat is done while quite small. The amazing machine is fun to use
445 and you must learn how to use it to get in an otherwise closed room.
446 You can order things from a catalog and part of the game is to
447 figure out which items you need. I would recommend this game to
448 those who like a little humor with their puzzles.
449 [There is also a non-AGT version of this game.]
450 SPAG 2, 4, 9
451