1 .\" $NetBSD: read_me.nr,v 1.2 1995/04/22 10:59:44 cgd Exp $
4 'tl 'TREK SETUP INSTRUCTIONS''%'
37 TREK SETUP INSTRUCTIONS
40 This document describes all sorts of nifty things
42 before you start to muck around
43 with the trek source code.
44 Please read them carefully.
48 There are a number of shell files
49 which you may use to maintain the system.
50 "Prtrek" produces a copy of the source code.
51 It pipes its output to lpr
52 and runs in background.
53 "Comp" compiles up to nine source modules
54 and leaves them in .o files.
55 "Compile" is the same as "comp"
56 except that it loads after compiling.
57 If stated without any arguments,
58 it loads from .o files.
59 "Compall" compiles all the .c files
62 It redirects its output to the file "output".
63 To recompile the entire system,
71 Main.c contains a variable called "Mother".
72 This is initialized to the result of the
73 "getuid()" call for the maintainer of trek
75 Only Mother is allowed to set trace flags
76 and run the game at other than the default priority.
78 Speaking of priorities,
79 trek eats up a lot of system resources.
80 Hence, it normally runs at a very low priority.
81 This makes it almost impossible to play
82 if the system is loaded.
84 the -pN flag sets the priority to N,
85 which makes it possible to debug
86 when the system is loaded.
87 The default priority is set by a #define of
89 which is set to 10 in the default system.
91 Trace information is provided
92 which may be useful in debugging things in the system.
93 If you are in a bad way for space,
94 comment out the #define xTRACE
95 which appears in trek.h.
96 This will cause the trace stuff to not occur
99 The version of trek released to you
100 is compiled with the -f flag (for no floating point)
101 and should work without problems on your machine.
102 You can edit out the -f flag
103 in "compile" if you have floating point hardware
105 so that it will take less space.
107 THE PORTABLE C LIBRARY
109 The portable C library was used
112 the version which we had at Berkeley
113 had a number of small bugs
114 which caused trek to do bad things at times.
115 For some unknown reason
116 (temporary insanity perhaps)
117 I rewrote the portable C library.
118 This version is much smaller than the old version
119 and has cleaner code.
122 However, there are a few minor differences
123 which you should be aware of.
125 Scanf no longer ignores the noise characters "\\n",
126 "\\t", and space in the format string;
128 these characters now require a match
134 which is the file descriptor
136 If f_log is greater than zero
137 a copy of everything read from
141 is written in the file f_log.
146 I am getting pretty sick of playing this game.
148 the version which you get may have several bugs
151 that it is probably buggier
152 than some previous versions.
155 Along with being buggy,
156 the game never had quite everything implemented
157 that was originally intended.
158 If you see things that look weird,
160 There are even some features which I have taken out
161 (like ghost starsystems)
162 upon deciding that I didn't have the energy
163 to implement them correctly.
167 There are several things that I would like to ask of anyone
168 who does work on the source code.
170 Please let me know of any bugs which you find
172 and any fixes which you may have.
173 Other copies will probably be going out to other people later,
174 and it would be nice if those copies where less buggy.
176 I would be interested in hearing about any
177 enhancements of the game which you might install.
179 Please note that I have a distinct coding style.
180 I feel that it is cleaner
181 and easier to read than a more
185 especially if you end up sending tapes back to me.
186 This goes along with my whole belief in clean code:
187 I ask you to please avoid obscure code
189 If you throw some in,
190 please don't let me see it.
191 It just depresses me.
195 There are many neat things
197 if there were only enough space.
199 I have specifically not gone to separated I/D
201 The main reason is that I would like future versions
203 to be 11/40 compatible.
205 SUGGESTIONS FOR THE FUTURE
207 If you happen to have more energy than I do,
208 you may want to examine the following areas.
209 These are things that I may get to,
210 but don't hold your breath.
213 making the portable C library work
216 I should have done the I/O in a more
218 It is my intent to rewrite the I/O
219 routines to bypass the portable C library entirely.
221 The routine "capture" is quite unclean.
222 First, it should have a manner of selecting Klingons
224 either selecting the most likely
225 or asking the captain (probably best).
226 It should either be fully implemented,
227 which includes adding a "board" routine
229 on some tapes as board.x)
230 which sends a boarding party to forcefully
231 take over the Klingon,
232 or it should go out completely,
233 which is probably what I will end up doing.
235 the transporter will go completely.
236 It seems that the space may be better used
237 for something which more directly enhances the game.
240 Well, that's about it.
246 Electronics Research Laboratory
247 University of California
248 Berkeley, California 94720