| 1 |
AGiliTy, notes for the Linux version |
| 2 |
---------------------------------------- |
| 3 |
|
| 4 |
(General information can be found in readme.agility) |
| 5 |
|
| 6 |
COMMAND LINE |
| 7 |
To run an AGT game file, run *agil* with the game file name as an |
| 8 |
argument; don't include any extensions. For example, to run 'mygame', enter |
| 9 |
|
| 10 |
>agil mygame |
| 11 |
|
| 12 |
The interpreter expects the filename extensions to be lower-case |
| 13 |
('.da1', '.da2', and '.agx' rather than '.DA1', '.DA2', and '.AGX'). |
| 14 |
If you are unpacking AGT files from ZIP archives, remember to use the |
| 15 |
'-L' option to ensure this. |
| 16 |
|
| 17 |
Command line options can be seen by running agil without any |
| 18 |
arguments, but most of them were intended for debugging the |
| 19 |
interpreter and will probably not be of general interest. The one |
| 20 |
possible exception is the -d command which outputs metacommand |
| 21 |
debugging information; this might be of interest to authors developing |
| 22 |
AGT games. |
| 23 |
Under Linux this is sent to stderr; if stderr and stdin point to |
| 24 |
the same device, it will send output through the interpreter's display |
| 25 |
routines. |
| 26 |
|
| 27 |
----------- |
| 28 |
COMPILING |
| 29 |
----------- |
| 30 |
To compile this, just unpack the source files somewhere and type "make". |
| 31 |
This should automatically generate the three files agil, agtout, and agt2agx. |
| 32 |
(If you are running on a non-32-bit platform, you will first need to delete |
| 33 |
the line containing "#define FAST_FIXSIGN" in the Linux configuration in |
| 34 |
config.h.) |
| 35 |
|
| 36 |
|
| 37 |
--------------- |
| 38 |
CONFIGURATION |
| 39 |
--------------- |
| 40 |
The Linux global configuration file is ~/.agilrc; the interpreter |
| 41 |
will also look for game-specific configuration files, named |
| 42 |
<game-name>.cfg-- for example, 'mygame.cfg'-- in the same directory as |
| 43 |
the other game files. |
| 44 |
|
| 45 |
The Linux version of AGiliTy supports several additional options: |
| 46 |
|
| 47 |
COLORTERM -- this can be used to specify terminal types that support |
| 48 |
ANSI color; e.g. |
| 49 |
colorterm console |
| 50 |
colorterm xterm |
| 51 |
This only works with the termcap version of AGiliTy, not with the |
| 52 |
curses version. |
| 53 |
|
| 54 |
COMPASS -- Turn on listing of exits just below the status line. |
| 55 |
|
| 56 |
FONT -- Enable fonts. This is off by default since font changes |
| 57 |
affect *all* virtual consoles. |
| 58 |
|
| 59 |
HISTORY -- This specifies the size of the command history list. |
| 60 |
A value of 0 indicates no limit (the interpreter will remember |
| 61 |
every line you typed since the beginning of the game); this is |
| 62 |
the default. E.g. |
| 63 |
history 0 |
| 64 |
history 20 |
| 65 |
|
| 66 |
IBM_CHAR -- If you're using the regular Linux console, specifying this |
| 67 |
will cause the interpreter to use the IBM character set for display; |
| 68 |
this improves the appearance of a lot of AGT games. |
| 69 |
|
| 70 |
NAVARROW-- Use the keys on the numeric keypad for entering |
| 71 |
movement commands instead editing. |
| 72 |
|
| 73 |
KEY <key> <text> -- |
| 74 |
KEY <key> <text> -- |
| 75 |
Define the text to be inserted on the line when a given function key is |
| 76 |
typed. <key> can be 'F1', 'F2', 'F3', ..., 'F12'. (If NAVARROW is set, |
| 77 |
then 'HOME', 'END', 'PGUP', 'PGDN', 'UP', 'DOWN', 'LEFT', 'RIGHT', |
| 78 |
'INS', 'DEL', 'PLUS', and 'MINUS' can also be redefined.) |
| 79 |
A '+' at the end of the last word of the text will be converted to a |
| 80 |
newline. Otherwise, a space will be added on to the end. Extra whitespace |
| 81 |
will be ignored. |
| 82 |
|
| 83 |
LOWER_FILE -- Force font, picture, and sound file names to be all |
| 84 |
lower case, regardless of what case the game file has. |
| 85 |
(This is useful since most AGT games were created under DOS, |
| 86 |
which is not case-sensitive.) |
| 87 |
|
| 88 |
PATH -- This should contain a whitespace-separated list of directories |
| 89 |
which will be searched for AGT games. |
| 90 |
If the environmental variable AGT_PATH is set, its value will |
| 91 |
override this option. AGT_PATH entries may be separated by colons |
| 92 |
as well as whitespace. |
| 93 |
|
| 94 |
VIEWER <filename> -- Give the name of the program to be used |
| 95 |
for viewing graphics files. (Most AGT illustrations are in the |
| 96 |
PCX file format with nonstandard filename extensions, although AGT |
| 97 |
theoretically also supports the FLI animation format.) |
| 98 |
I've include a sample shell script, linux_pict, which chooses |
| 99 |
between file viewers depending on the file-name extension. |
| 100 |
Extensions currently recognized by AGiliTy: |
| 101 |
gif, png, bmp, jpg, fli, flc, pcx |
| 102 |
as well as all of the nonstandard PCX extensions (p13, p14, p19, etc.) |
| 103 |
Note: if the program sends any output to stderr, it may confuse |
| 104 |
AGiliTy's screen routines (which don't expect anyone else to be writing |
| 105 |
to the screen). Ctrl-L should fix any problems. |
| 106 |
|
| 107 |
|
| 108 |
-------------- |
| 109 |
LINE EDITING |
| 110 |
-------------- |
| 111 |
The following keys can be used when typing in commands: |
| 112 |
<Backspace>, <Delete> -- do what you would expect. |
| 113 |
<Left Arrow> or <Ctrl-B> -- Move left. |
| 114 |
<Right Arrow> or <Ctrl-F> -- Move right. |
| 115 |
<Home> or <Ctrl-A> -- Move to beginning of the line. |
| 116 |
<End> or <Ctrl-E> -- Move to end of the line. |
| 117 |
<Up Arrow> or <Ctrl-P>-- Scroll back through past commands |
| 118 |
<Down Arrow> or <Ctrl-N> -- Scroll forward through past commands. |
| 119 |
<Ctrl-K> -- Kill to end of line. |
| 120 |
<Ctrl-Y> -- Yank back the last thing killed. |
| 121 |
<Ctrl-L> -- Redraw screen. |
| 122 |
|
| 123 |
<F1>-<F12> -- These can be configured with strings of your choice; |
| 124 |
see the KEY option above. By default, they are: |
| 125 |
F1: get |
| 126 |
F2: drop |
| 127 |
F3: examine |
| 128 |
F4: read |
| 129 |
F5: open |
| 130 |
F6: close |
| 131 |
F7: inventory+ |
| 132 |
F8: look+ |
| 133 |
F9: score+ |
| 134 |
F10: help+ |
| 135 |
F11: save+ |
| 136 |
F12: restore+ |
| 137 |
|
| 138 |
If NAVARROW is set, then the keys on the numeric keypad will generate |
| 139 |
generate movement commands instead of being used for editing; these |
| 140 |
can also be redefined with KEY: |
| 141 |
UP: n+ |
| 142 |
DOWN: s+ |
| 143 |
LEFT: w+ |
| 144 |
RIGHT: e+ |
| 145 |
HOME: nw+ |
| 146 |
END: sw+ |
| 147 |
PGUP: ne+ |
| 148 |
PGDN: se+ |
| 149 |
INS: enter+ |
| 150 |
DEL: exit+ |
| 151 |
PLUS: up+ |
| 152 |
MINUS: down+ |
| 153 |
|
| 154 |
|
| 155 |
--------------- |
| 156 |
MISCELLANEOUS |
| 157 |
--------------- |
| 158 |
The program *agtout* prints out the "disassembled" contents of AGT |
| 159 |
game files, in human readable format, writing to standard output. |
| 160 |
Running it without arguments will give a list of command line options. |
| 161 |
|
| 162 |
AGT files can be converted into the new AGT format by running agt2agx. |
| 163 |
By default, the new file will be named <game name>.agx; this can be |
| 164 |
changed by using the -o option; e.g. |
| 165 |
> agt2agx mygame -o thegame |
| 166 |
will create a file called 'thegame.agx'. |
| 167 |
|
| 168 |
Script and log files can be piped to another program by putting a |
| 169 |
'|' character before/after the program's command line (before for |
| 170 |
files being written, after for files being read). |
| 171 |
E.g. '|lpr' to send output to the print spooler. |
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|