| 1 |
=========================================================================== |
| 2 |
--------------------------------------------------------------------------- |
| 3 |
| READ THIS FILE ALL THE WAY THROUGH BEFORE ATTEMPTING TO INSTALL FROTZ | |
| 4 |
--------------------------------------------------------------------------- |
| 5 |
=========================================================================== |
| 6 |
|
| 7 |
Frotz was originally written specifically for MS/PC DOS. When it began |
| 8 |
to be ported to other machines and operating systems, the DOS port |
| 9 |
lagged behind. Now it is more or less on par with Unix Frotz with the |
| 10 |
conspicuous exception that Blorb is not entirely supported. Blorb is |
| 11 |
supported only as far as extracting a zcode file, but not for getting |
| 12 |
audio and graphic data. For now, only the old Infocom-style mechanism |
| 13 |
for these are supported. |
| 14 |
|
| 15 |
Sound is supported through Soundblaster compatible sound cards. Graphic |
| 16 |
levels from Hercules to MCGA and VGA are supported. |
| 17 |
|
| 18 |
To compile DOS Frotz, you need one of following: |
| 19 |
|
| 20 |
* Borland Turbo C++ 3.00. This is the latest version I'm aware |
| 21 |
of that are capable of building 16-bit DOS applications. Turbo |
| 22 |
C 2.01 may also work, but is untested. Both of these may be |
| 23 |
obtained from archive.org. |
| 24 |
|
| 25 |
* Open Watcom C 2.0 or later. This application suite can be |
| 26 |
installed to a DOS machine to directly compile Frotz there or |
| 27 |
to a Linux machine to cross-compile Frotz for DOS. It may be |
| 28 |
obtained from https://github.com/open-watcom/open-watcom-v2. |
| 29 |
|
| 30 |
To compile in a DOS environment PC-DOS, MS-DOS or DR-DOS version 5.0 or |
| 31 |
higher is required. FreeDOS 1.2 and later will also work. The earliest |
| 32 |
version of PC-DOS or MS-DOS under which DOS Frotz will run is currently |
| 33 |
unknown. Real or virtualized hardware will work, including Virtualbox |
| 34 |
and DOSBox. |
| 35 |
|
| 36 |
DOS Frotz is currently built only as a 16-bit application. |
| 37 |
|
| 38 |
|
| 39 |
=================================== |
| 40 |
Installing Borland Turbo C / C++ || |
| 41 |
=================================== |
| 42 |
|
| 43 |
If you already have a copy of Turbo C++ or Turbo C, follow the |
| 44 |
instructions to install it on your DOS machine. Fortunately Borland's |
| 45 |
successor, Embarcadero Technologies, has released these compiler suites |
| 46 |
as freeware. They can be obtained from archive.org at |
| 47 |
https://archive.org/details/TURBOC3_20180515 and |
| 48 |
https://archive.org/details/msdos_borland_turbo_c_2.01. Instruction |
| 49 |
manuals can also be found there. |
| 50 |
|
| 51 |
You'll want the Turbo C and TASM binary directories in your path. This |
| 52 |
is what I use under DOSBox: |
| 53 |
|
| 54 |
path=z:\;c:\bin;%PATH%;c:\tc;c:\tc\bin;c:\tasm\bin |
| 55 |
|
| 56 |
|
| 57 |
=========================== |
| 58 |
Installing Open Watcom C || |
| 59 |
=========================== |
| 60 |
|
| 61 |
Visit https://github.com/open-watcom/open-watcom-v2/releases and go into |
| 62 |
one of the recent builds. Download ow-snapshot.tar.gz and open it into |
| 63 |
$HOME/watcom/. You can also download the source and build it yourself. |
| 64 |
|
| 65 |
Once you have $HOME/watcom/ populated correctly, add this to your |
| 66 |
.bashrc or .profile files or wherever you set this stuff: |
| 67 |
|
| 68 |
export WATCOM=$HOME/watcom |
| 69 |
|
| 70 |
You will then need to add to your path which bin directory is |
| 71 |
appropriate for your OS. |
| 72 |
|
| 73 |
If you are running Linux on amd64, add this: |
| 74 |
export PATH=$PATH:$WATCOM/binl64 |
| 75 |
|
| 76 |
If you are running Linux on i386, add this: |
| 77 |
export PATH=$PATH:$WATCOM/binl |
| 78 |
|
| 79 |
You will also want the Watcom tools binary directory in your path. This |
| 80 |
is what I use under DOSBox: |
| 81 |
|
| 82 |
path=z:\;c:\bin;%PATH%;C:\WATCOM |
| 83 |
|
| 84 |
It doesn't look like cross-compiling is supported from any combination |
| 85 |
of OS and architecture other than Linux on i386 or amd64. |
| 86 |
|
| 87 |
|
| 88 |
======================== |
| 89 |
Compilation under DOS || |
| 90 |
======================== |
| 91 |
|
| 92 |
1. On a Unix machine, prepare the source code for compilation on a DOS |
| 93 |
machine. |
| 94 |
|
| 95 |
2. Copy the source code into your DOS machine and configure the build. |
| 96 |
|
| 97 |
3. Compile Frotz. |
| 98 |
|
| 99 |
Here we go! |
| 100 |
----------- |
| 101 |
|
| 102 |
1. On your Unix machine, do "make dos" in the Frotz distribution |
| 103 |
directory, either in the Git repository or a downloaded tar.gz |
| 104 |
archive. This will create a directory named "snavig/" containing |
| 105 |
source code all set up for compilation. Zip up this directory and |
| 106 |
get it into your DOS machine. The zip file will easily fit onto a |
| 107 |
single 360K floppy. Snavig (the script that gets source code into a |
| 108 |
form for DOS compilation) requires the use of GNU sed, so if you're |
| 109 |
on macOS, BSD, or some other non-Linux platform; install GNU sed |
| 110 |
before proceeding. |
| 111 |
|
| 112 |
2. Back on the DOS machine, unzip the snavig archive into a directory |
| 113 |
on the hard drive. Go into it and edit the file "defs.h". This is |
| 114 |
where you can enable or disable features and adjust compile-time |
| 115 |
options. Disabling features will result in a smaller executable and |
| 116 |
run faster, which can be very important if you want to use Frotz on |
| 117 |
an original IBM PC. |
| 118 |
|
| 119 |
3. If you're using Turbo C, type "tcbuild". If you're using Open |
| 120 |
Watcom C, type "owbuild". These batch files simply call "make -f |
| 121 |
makefile.tc" or "wmake -f makefile.ow". After a couple minutes, |
| 122 |
Frotz will be compiled and ready for use. To clean up after a |
| 123 |
build, type "tcbuild clean" or "owbuild clean". |
| 124 |
|
| 125 |
|
| 126 |
======================= |
| 127 |
Minimum Requirements || |
| 128 |
======================= |
| 129 |
|
| 130 |
The minimum hardware and operating system requirements of DOS Frotz are |
| 131 |
unknown. It's fairly clear that the original IBM PC can run all Infocom |
| 132 |
games at least up to V5. Graphics or sound might be possible. |
| 133 |
|
| 134 |
Please send me reports of what hardware and games work and what don't. |