home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
GAMES
/
colossal.lzh
/
advent.doc
< prev
next >
Wrap
Text File
|
1991-09-19
|
4KB
|
116 lines
7 JUNE 1991
Notes on ADVENTURE (for OS9/68K)
1) TO PLAY ADVENTURE
The ADVENTURE game requires one single sided drive & 96K of
memory. ADVENT must be in the execution directory or accessable
via the search PATH. The following files MUST be present in the
current directory:
ADVENT1.TXT
ADVENT2.TXT
ADVENT3.TXT
ADVENT4.TXT
The game may be started by typing "ADVENT<cr>".
A saved game may be restarted by typing "ADVENT -r<cr>".
Debug data will be output by typing "ADVENT -d -d -d<cr>".
Helpful instructions will be output by
typing "ADVENT -?<cr>"
2) TO HACK ADVENTURE
The ADVENTURE game source files are header, code or
text files. A make file is also provided.
MAKEFILE - a make file to rebuild the Adventure system
ADVENT .C - initialization
ENGLISH .C - interpret game player's commands
DATABASE.C - text file management & output
ITVERB .C - intransitive verbs execution
VERB .C - transitive verbs execution
TURN .C - analysis & execution of player's command
SAVE .C - save and restore a game
LTOA .C - source for a function needed by ADVENT0
ADVENT0 .C - utility to create "ADVTEXT.H" file
ADVENT1 .TXT - long cave description
ADVENT2 .TXT - short cave description
ADVENT3 .TXT - long & short object description
ADVENT4 .TXT - conversational descriptions & responses
ADVENT .DOC - this ADVENTURE documentation file
ADVENT .H - #define & structure statements
ADVWORD .H - words & codes array
ADVCAVE .H - cave & travel arrays
ADVTEXT .H - TXT file message indexes
ADVDEF .H - data constants & variables definitions
ADVDEC .H - data constants & variables declarations
WARNING:
The TXT files are the ASCII text messages used throughout the
game. They may be modified ONLY if you have the utility
program, "ADVENT0" or the source "ADVENT0.C". This program
creates the header file "ADVTEXT.H" which is "#include"d into
"ADVENT.C" during compilation. After ANY changes to the "TXT"
files, recreate a new "ADVTEXT.H" file and rebuild ADVENT.
Make sure that the four "TXT" files are in the current directory
and ADVENT0 is in the execution directory, then type "ADVENT0<cr>".
"Any changes" includes porting the game to a new computer as the
line separators in text files may differ (CR/LF in MS-DOS against
LF in Unix and CR in OS9/68K). In other words, compile ADVENT0 and
use it to recreate ADVTEXT.H before compiling ADVENT.
The game was first released in the Public Domain for the IBM PC.
This involved translation from BDS C to CII C86 and standardizing on
UNIX standard i/o library functions plus some DOS-specific memory
management functions. The following changes were instituted:
0) UNIX standard i/o
1) "include"d header files & "extern"al statements added
2) cave/travel data arrays are now internal
3) word/code data arrays are now internal
4) TXT message index arrays are now internal
5) TXT file format doesn't require # terminator character
6) save & restore game overlays intergrated with "ADVENT.C"
7) word/code syntax parsing optimized in "ENGLISH.C"
BINARY LEX-ORDERED WORD LOOK-UP added in "DATABASE.C"
8) TXT message indexing & output optimized in "DATABASE.C"
9) TXT message typos corrected
A) created "ADVENT0.C" utility (cf. #1, #4 & #5)
B) created "ADVENT.DOC" documentation file
The modifications described above were implemented by:
Jerry D. Pohl
1922 Junction Avenue
San Jose, CA 95131
(408) 298-1262 / (408) 298-3185 (both 8..6, m..f)
The version described above was ported to OS9/68K. This involved the
following changes:
1) writing an OS9 version of ltoa().
2) introducing declarations of printf() and probj()
to advent.h
3) using #define to allow fputc() as an alias of putc()
4) using #define to allow setmem() as an alias of memset()
5) modifying rspeak() for text files with <cr> separator
in place of <cr><lf>
6) rewriting the save/restore game functions to use write()
and read() in place of counted loops.
7) setting up a make file
These modifications were carried out by:
Martin Gregorie
10 Sadlers Mead
Harlow, Essex
U.K. (0279) 445 174