📄 read_me.nr
字号:
.de @h'sp 4'tl 'TREK SETUP INSTRUCTIONS''%''sp 2.ns...de @f'bp...wh 0 @h.wh -6 @f.de pp.sp.ne 2.ti +5...de s1.sp 2.nr S1 +1.nr S2 0.ne 5.in 4.ti 0\\n(S1.\ \ \c...de s2.sp 1.nr S2 +1.ne 3.in 8.ti 4\\n(S2.\ \ \c...br.ceTREK SETUP INSTRUCTIONS.sp 2.ppThis document describes all sorts of nifty thingsyou should knowbefore you start to muck aroundwith the trek source code.Please read them carefully..s1MAINTENANCE.s2There are a number of shell fileswhich you may use to maintain the system."Prtrek" produces a copy of the source code.It pipes its output to lprand runs in background."Comp" compiles up to nine source modulesand leaves them in .o files."Compile" is the same as "comp"except that it loads after compiling.If stated without any arguments,it loads from .o files."Compall" compiles all the .c filesinto .o files,but does not load.It redirects its output to the file "output".To recompile the entire system,type.ti +8compall.ti +8compile.br.s2Main.c contains a variable called "Mother".This is initialized to the result of the"getuid()" call for the maintainer of trekat your installation.Only Mother is allowed to set trace flagsand run the game at other than the default priority..s2Speaking of priorities,trek eats up a lot of system resources.Hence, it normally runs at a very low priority.This makes it almost impossible to playif the system is loaded.However,the -pN flag sets the priority to N,which makes it possible to debugwhen the system is loaded.The default priority is set by a #define ofPRIO,which is set to 10 in the default system..s2Trace information is providedwhich may be useful in debugging things in the system.If you are in a bad way for space,comment out the #define xTRACEwhich appears in trek.h.This will cause the trace stuff to not occurin the object..s2The version of trek released to youis compiled with the -f flag (for no floating point)and should work without problems on your machine.You can edit out the -f flagin "compile" if you have floating point hardwareon your machineso that it will take less space..s1THE PORTABLE C LIBRARY.ppThe portable C library was usedto do I/O in trek.Unfortunately,the version which we had at Berkeleyhad a number of small bugswhich caused trek to do bad things at times.For some unknown reason(temporary insanity perhaps)I rewrote the portable C library.This version is much smaller than the old versionand has cleaner code.It also works right(???).However, there are a few minor differenceswhich you should be aware of..s2Scanf no longer ignores the noise characters "\\n","\\t", and space in the format string;i.e.,these characters now require a matchin the input stream..s2A variablef_loghas been addedwhich is the file descriptorof a "log" file.If f_log is greater than zeroa copy of everything read fromthe standard inputand written tothe standard outputis written in the file f_log..s1DISCLAIMERS.s2Frankly,I am getting pretty sick of playing this game.Hence,the version which you get may have several bugsin it;I freely admitthat it is probably buggierthan some previous versions.Sorry about that..s2Along with being buggy,the game never had quite everything implementedthat was originally intended.If you see things that look weird,that may be why.There are even some features which I have taken out(like ghost starsystems)upon deciding that I didn't have the energyto implement them correctly..s1REQUESTS.ppThere are several things that I would like to ask of anyonewho does work on the source code..s2Please let me know of any bugs which you findin the code,and any fixes which you may have.Other copies will probably be going out to other people later,and it would be nice if those copies where less buggy.Also,I would be interested in hearing about anyenhancements of the game which you might install..s2Please note that I have a distinct coding style.I feel that it is cleanerand easier to read than a morecasual style.If possible,please stick to it,especially if you end up sending tapes back to me.This goes along with my whole belief in clean code:I ask you to please avoid obscure codewhenever possible.If you throw some in,please don't let me see it.It just depresses me..s2Unfortunately,the game is huge.There are many neat thingswhich could go in,if there were only enough space.However,I have specifically not gone to seperated I/Dspace.The main reason is that I would like future versionsof the gameto be 11/40 compatible..s1SUGGESTIONS FOR THE FUTURE.ppIf you happen to have more energy than I do,you may want to examine the following areas.These are things that I may get to,but don't hold your breath..s2Frankly,making the portable C library work(even without bugs)was a bitch.I should have done the I/O in a moread hoc manner.It is my intent to rewrite the I/Oroutines to bypass the portable C library entirely..s2The routine "capture" is quite unclean.First, it should have a manner of selecting Klingonsother than random,either selecting the most likelyor asking the captain (probably best).It should either be fully implemented,which includes adding a "board" routine(half written,on some tapes as board.x)which sends a boarding party to forcefullytake over the Klingon,or it should go out completely,which is probably what I will end up doing.When this happens,the transporter will go completely.It seems that the space may be better usedfor something which more directly enhances the game..sp 3.in 0Well, that's about it.To get hold of me,write to:.nf.spEric P AllmanElectronics Research LaboratoryUniversity of CaliforniaBerkeley, California 94720.fiHappy trekking!!.pp
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -