pc-hack

PC HACK 3.61 source code (archival)
git clone http://frotz.net/git/pc-hack.git
Log | Files | Refs

readme.txt (2938B)


      1 
      2 	Welcome to the sources for PC HACK (version 3.6).
      3 
      4 Introduction
      5 ------------
      6 This is a version of the public domain program HACK 1.03 (copyright
      7 Stichting Mathematisch Centrum, Amsterdam, 1984, 1985.) implemented
      8 under MSDOS with the Microsoft(tm) C v4.0 compiler.
      9 
     10 You may copy this version of PC HACK and make any changes you want to
     11 it.  You may give it away, but you may not sell it.
     12 
     13 The only major change from version 3.51 is to now use termcap, so there
     14 is a termcap.arc file which has the sources for the Fred Fish termcap
     15 library.  You should compile these separately and combine the .obj files
     16 into a library called LTERMCAP.LIB which gets linked in with the HACK obj
     17 files.  There is a sample TERMCAP file with a termcap entry for the
     18 IBM monochrome monitor.
     19 
     20 
     21 The sources are in ARC format in HACK351S.ARC.  The commands:
     22 
     23 	C> arc51 e hack351s * *.*
     24 
     25 will unpack the files.
     26 
     27 With a hard disk system, you should be able to type `make' and the sources
     28 will start to be compiled.  This takes a long time.  A floppy disk system
     29 does not really have enough storage.
     30 
     31 
     32 Compiling
     33 ---------
     34 The LARGE compiler model is used.  To add WIZARD mode, add a -DWIZARD
     35 to the MAKEFILE, or a #define WIZARD to the CONFIG.H file.
     36 
     37 The MAKEFILE included with PC HACK 3.6 sources is for my version of MAKE.
     38 It is very similar to UNIX(tm) `make'.  See MAKE.DOC for details.
     39 
     40 Linking
     41 -------
     42 I used the Microsoft 8086 Linker version 3.51
     43 
     44 To link the *.obj files by hand, the command is:
     45 	link @linkfile
     46 
     47 Where the contents of the linkfile (not supplied) should be:
     48 
     49 decl.obj apply.obj bones.obj cmd.obj do.obj +
     50 do_name.obj do_wear.obj dog.obj eat.obj end.obj +
     51 engrave.obj fight.obj hack.obj invent.obj lev.obj +
     52 main.obj makemon.obj mhitu.obj mklev.obj +
     53 mkmaze.obj mkobj.obj mkshop.obj mon.obj monst.obj +
     54 o_init.obj objnam.obj options.obj pager.obj +
     55 potion.obj pri.obj read.obj rip.obj rumors.obj +
     56 save.obj search.obj shk.obj shknam.obj steal.obj +
     57 termcap.obj timeout.obj topl.obj track.obj +
     58 trap.obj tty.obj unix.obj u_init.obj vault.obj +
     59 wield.obj wizard.obj worm.obj worn.obj zap.obj +
     60 version.obj rnd.obj alloc.obj msdos.obj 
     61 hack.exe 
     62 
     63 ltermcap /NOIG /STACK:4000 /CP:1; 
     64 
     65 
     66 Differences from UNIX HACK
     67 --------------------------
     68 Changes that were introduced to port UNIX HACK to the MSDOS environment
     69 are surrounded with `#ifdef MSDOS', `#endif' directives.
     70 
     71 Other changes I have made are surrounded by `#ifdef DGK', `#endif'
     72 directives.  It should be possible to compile these sources without
     73 any of my changes by removing the `#define DGK' line from CONFIG.H.
     74 
     75 Also, functions I have added are mainly restricted to the file msdos.c,
     76 although some of them are in other places (ie. wizard.c)
     77 
     78 
     79 Finally
     80 -------
     81 If you have any questions, contact me at one of:
     82 
     83 	Don Kneller
     84 	UUCP:	...ucbvax!ucsfcgl!kneller
     85 	ARPA:	kneller@ucsfcgl.ARPA
     86 	BITNET:	kneller@ucsfcgl.BITNET
     87 	USMAIL:	D. G. Kneller
     88 		2 Panoramic Way #204
     89 		Berkeley, CA 94704