home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / games / vmsnet / vmstrek / part25 < prev    next >
Encoding:
Text File  |  1992-11-13  |  14.7 KB  |  378 lines

  1. Newsgroups: vmsnet.sources.games
  2. Path: uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!usenet.coe.montana.edu!news.u.washington.edu!raven.alaska.edu!acad2.alaska.edu!asdmf
  3. From: asdmf@acad2.alaska.edu
  4. Subject: Vmsnetrek 25/47
  5. Message-ID: <1992Nov13.140614.1@acad2.alaska.edu>
  6. Lines: 365
  7. Sender: news@raven.alaska.edu (USENET News System)
  8. Nntp-Posting-Host: acad2.alaska.edu
  9. Organization: University of Alaska
  10. Date: Fri, 13 Nov 1992 18:06:14 GMT
  11. Xref: uunet vmsnet.sources.games:511
  12.  
  13. -+-+-+-+-+-+-+-+ START OF PART 25 -+-+-+-+-+-+-+-+
  14. X`009cc -o x10netrek $(CFLAGS) $(R_OBJS) $(INPUT) $(MAINOBJ) $(X10OBJS) $(X10
  15. VLIB) $(LIBS)
  16. X
  17. Xglnetrek: $(R_OBJS) $(MAINOBJ) $(INPUT) $(GLOBJS)
  18. X`009cc -o glnetrek $(CFLAGS) $(R_OBJS) $(MAINOBJ) $(INPUT) $(GLOBJS) $(GLLIB
  19. V) $(LIBS)
  20. X
  21. Xx11netrek: $(R_OBJS) $(MAINOBJ) $(INPUT) $(X11OBJS)
  22. X`009cc -o x11netrek $(CFLAGS) $(R_OBJS) $(INPUT) $(MAINOBJ) $(X11OBJS) $(X11
  23. VLIB) $(LIBS)
  24. X
  25. Xclean:
  26. X`009rm -f $(R_OBJS) $(MAINOBJ) $(INPUT) $(X10OBJS) $(X11OBJS) $(GLOBJS)
  27. Xclobber: clean
  28. X`009rm -f x11netrek
  29. X
  30. Xtags: $(R_FILES)
  31. X`009ctags $(R_FILES) $(INCLUDES)
  32. X
  33. Xinstall:
  34. X`009-mv $(DESTDIR)/netrek $(DESTDIR)/netrek.old
  35. X`009-rm -f $(DESTDIR)/netrek.old
  36. X`009mv x11netrek $(DESTDIR)/netrek
  37. X`009chown $(XTREKOWNER) $(DESTDIR)/netrek
  38. X`009chmod 755 $(DESTDIR)/netrek
  39. X
  40. Xtar:
  41. X`009tar cvfh netrek.tar README Makefile $(R_FILES) $(INCLUDES)
  42. X#####
  43. $ CALL UNPACK MAKEFILE.;1 840586278
  44. $ create/nolog 'f'
  45. XFrom: tom@ocf.berkeley.edu (Tom Holub)
  46. XNewsgroups: rec.games.netrek,alt.games.xtrek,news.answers
  47. XSubject: rec.games.netrek FAQ List
  48. XDate: 20 Jun 92 03:09:00 GMT
  49. XFollowup-To: rec.games.netrek
  50. XOrganization: University of California, Berkeley
  51. XSupersedes: <netrekFAQ_706850674@ocf.berkeley.edu>
  52. XNNTP-Posting-Host: sandstorm.berkeley.edu
  53. XOriginator: tom@sandstorm.berkeley.edu
  54. X
  55. XArchive-Name: netrek/faq
  56. XLast-Updated: 19 Jun 1992
  57. XChanges: Added METASERVER.
  58. X
  59. X
  60. X1) What is Netrek?
  61. X
  62. X Netrek is a 16-player graphical real-time battle simulation with a`032
  63. XStar Trek theme.  The game is divided into two teams of 8 (or less), who
  64. Xdogfight each other and attempt to conquer each other's planets.  There
  65. Xare several different types of ships, from fast, fragile scouts up to
  66. Xbig, slow battleships; this allows a great deal of variance in play
  67. Xstyles.
  68. X
  69. X Netrek is set up as a client/server combination; if you want to play,
  70. Xyou'll need the client binary for your machine (most are X-based).
  71. X
  72. X
  73. X2) It sounds interesting; how do I get started?
  74. X
  75. X First, you need to get a client binary for your machine; read the`032
  76. XNetrek FTP List (which is usually posted along with this FAQ
  77. Xlist) to find an FTP site.  The client should run on anything that
  78. Xruns X Windows, although the slower your machine is, the harder it's
  79. Xgoing to be to play.  Slow networks are even harder to play with.
  80. X
  81. XIf you don't know how to use FTP, ask your local guru about it.
  82. X
  83. XIf you don't have access to FTP, you can use the mail server at
  84. Xdecwrl.dec.com.  Mail ftpmail@decwrl.dec.com with 'help' in the body
  85. X(nothing else) and you'll get an automatic reply with instructions.
  86. X
  87. XOnce you have the binary, rename it to something logical like 'netrek'
  88. Xand run it with 'netrek -h <hostname> -p <port>'.  Read the Netrek Server/
  89. XFTP List to find a server near you; the nearer, the better.
  90. X
  91. X
  92. X3) What's the difference between Xtrek and Netrek?
  93. X
  94. X Xtrek is a precursor to Netrek.  It has many of the same elements,
  95. Xbut it doesn't work as well because it isn't set up as a client-server
  96. Xcombination. `032
  97. X
  98. XUnfortunately, Netrek is often called Xtrek.  This causes much confusion.
  99. XThis newsgroup really is dedicated to Netrek, but feel free to talk about
  100. XXtrek if you want; many people here play both.
  101. X
  102. X
  103. X4) I've seen a game called Nettrek for the Macintosh; is that the same
  104. Xthing as Netrek?
  105. X
  106. X No.  Nettrek is in the same family as Netrek (it's unclear which was
  107. Xcreated first), but it's not the same game.  It runs over Appletalk
  108. Xand doesn't have a whole lot of complexity.  If you're interested in it,`032
  109. Xthe original version can be found in most net archive sites that support
  110. XMac games.  The most recent version is a commercial program called
  111. X"Nettrek 3.0 - The Real Version," and is published by Premiere Technology,
  112. XInc.
  113. X
  114. X
  115. X5) Can I play Netrek on my Mac/IBM PC/Amiga?
  116. X
  117. X Probably not.  If you aren't connected directly to the net via
  118. Xethernet card, you can't.  If you ARE connected via ethernet but
  119. Xaren't running X windows, you have a chance--there are ports for`032
  120. Xthe Mac and the Amiga in the works, but nothing has yet been released.
  121. XIf you're running Unix and X windows, you should be able to compile
  122. Xthe source and it should work, emphasis on the 'should.'
  123. X
  124. X
  125. X6) I would like to start a new server; what kind of hardware will I need?
  126. X
  127. X The server should run on anything that has shared memory and a good`032
  128. Xamount of CPU power.  Good net connections are essential if you want
  129. Xlots of players.
  130. X
  131. XRead the Netrek FTP list to find out where you can get the server`032
  132. Xsource.
  133. X
  134. XPlease get the permission of your sysadmins before setting up a server.
  135. XNetrek doesn't need any additional bad publicity.
  136. X
  137. X
  138. X7) I'm trying to start a new server, and I'm having problems.  Where can
  139. XI get help?
  140. X
  141. X Very much so.  Read the Netrek FTP list to find out where`032
  142. Xthe server-secrets files are stored (currently as gs69.sp.cs.cmu.edu).
  143. X
  144. X There is also a server maintainer's mailing list, netrek@iastate.edu.
  145. XIf you want to be put on the list, mail a short message to`032
  146. Xnetrek-request@iastate.edu and include the amount of C experience
  147. Xyou have, how much you know about netrek code, and anything else
  148. Xthat might be interesting.
  149. X
  150. X
  151. X8) I compiled the client source, but every time I try to connect to a server
  152. X   it kicks me out or tells me to get a 'blessed' binary.  What gives?
  153. X
  154. X It's possible to modify the client source to do lots of tedious tasks
  155. X(like aiming, dodging, that sort of thing) for you.  Since this gives
  156. Xyou a big advantage over a mere human, netrek has a way of knowing whether
  157. Xyou have a client that was compiled by the netrek Gods or by you.  If
  158. Xyou compiled it, netrek will assume it's a cyborg, and will kick you out
  159. Xif it's not cyborg hours.  Check the Netrek Server List for cyborg
  160. Xhours of the servers; sometimes they're legal, sometimes they aren't. `032
  161. X
  162. X  If you're not interested in playing a modified binary, get one of the`032
  163. Xpre-compiled 'blessed' binaries available at any of the FTP sites.  If`032
  164. Xthere isn't a blessed binary for your particular machine, get in touch`032
  165. Xwith one of the server Gods (sfd@miro.Berkeley.EDU,`032
  166. Xterence@bronco.ece.cmu.edu, scott@sting.Berkeley.EDU) and they'll try`032
  167. Xto help you out.
  168. X
  169. X   If you *are* interested in playing a modified binary, get the source
  170. Xfrom one of the FTP sites and start hacking, or download one of the
  171. Xpublic cyborgs.  It's probably not a good idea for new players to
  172. Xuse cyborgs; cyborg players get called lots of nasty names, and
  173. Xthey tend not to learn how to play the game (since their client is
  174. Xdoing most of the work).
  175. X
  176. X
  177. X9) I'm running under OpenWindows, and the game runs fine, but when the
  178. X   Xtrek window comes up, I can't type anything into it.  How can I fix this
  179. V?
  180. X
  181. XAdd the line "OpenWindows.FocusLenience: True" to your .Xdefaults file.
  182. XLog out and log back in and it should work.
  183. X
  184. X
  185. X10) OK, the game runs fine and I found a server and logged in, but there
  186. X    doesn't seem to be anyone else around.  How can I find a game with
  187. X    people in it?
  188. X
  189. XEric Mehlhaff has written a nifty little hack called METASERVER.
  190. XDo 'telnet sickdog.cs.berkeley.edu 2520' and it will dump out a list
  191. Xof servers with the number of people currently on each one.
  192. X
  193. X
  194. X11) OK, now I'm in a game with other people.  What do I do?
  195. X
  196. XThe first thing you should do is bring up your message window (by
  197. Xhitting '?') and your player list (by hitting 'L').  Pressing a number
  198. Xkey chooses your warp speed.  The left mouse button fires torpedos at
  199. Xyour cursor, the middle mouse button fires phasers at your cursor, and`032
  200. Xthe right mouse button turns your ship towards your cursor.  Hitting
  201. X'h' will bring up a help window with a list of basic commands.
  202. X
  203. X
  204. X12) When I'm playing the game, people keep sending messages to me.  How do
  205. X    I talk back to them?
  206. X
  207. XOn the bottom right-hand side of your main window you'll see two`032
  208. Xlong boxes.  The top one is where messages like "Not enough fuel for
  209. Xphaser" come up just before you die.  The bottom one is the one you
  210. Xuse to talk to people.  Move your cursor down there and type a character
  211. Xto choose who to send the message to: 'A' for ALL, the capitalized`032
  212. Xteam letter for the team (i.e., 'F' for Federation), or the player
  213. Xnumber for a message to a single player (i.e., 'c' to send to Rc).
  214. XType your message and hit enter when you're done.  Don't do this in
  215. Xcombat.
  216. X
  217. X
  218. X13) I would like to change what some of the keys do; for example, I'd
  219. X    like 't' instead of 'T' to activate my tractor beam.  Is there a way
  220. X    to change this?
  221. X
  222. XThere are two ways: first, do a shift-O.  This brings up the options
  223. Xwindow.  Near the bottom there is a box for 'New keymap entries'. `032
  224. XMove your cursor to this box and type your new keymap entries.  The
  225. Xformat is <newchar><oldchar>, so 'tT' will remap tractor beam to 't'.
  226. X
  227. XNetrek also recognizes a .xtrekrc file; a 'keymap:' line in there`032
  228. Xwill allow you to map as many as you want.  Format is the same
  229. Xas above.
  230. X
  231. X
  232. X14) How does the rating/promotion system work?
  233. X
  234. X Do a shift-I on yourself; you'll see four ratings there, one for planets,
  235. Xone for bombing, one for offense, and one for defense.  The planet,`032
  236. Xbombing, and offense ratings are measured in DI/hour; for each planet
  237. Xyou take, army you bomb, and player you kill you get a certain amount
  238. Xof DI (which varies depending on the server)--the average amount per
  239. Xhour is your rating.  Your rating is equal to (your DI/your hours)/
  240. X(total DI/total hours); therefore, if you have a bombing rating of
  241. X2.0, you bomb twice as many armies as the average person on the server.
  242. XThis is true for all ratings.  All ratings are updated only in t-mode.
  243. X
  244. X Now do a shift-U.  Listed there are the thresholds for each rank. `032
  245. XYour overall rating is your planets+bombing+offense.  To make a rank,
  246. Xyou need to have the DI required for that rank, and your ratings need
  247. Xto be above the rating required for that rank (i.e., to make Admiral,
  248. Xyou need 320 DI and your ratings need to be above 8.0).  You can also
  249. Xmake a ranking by having ratings good enough for a level and *twice*
  250. Xthe DI you would need for the next level (So you can make Admiral`032
  251. Xwith ratings of 7.0 and 640 DI).  This equation is recursive once, so you
  252. Xcan also make it with 6.0 ratings and 1280 DI (which would take about`032
  253. X200 hours!).  You can't make it with 5.0 ratings and 2560 DI; not
  254. Xonly would you flunk out first, the server wouldn't promote you anyway.
  255. X
  256. X On most servers, your defense also needs to be above .8 to advance
  257. Xpast Lt. Commander. `032
  258. X
  259. X
  260. X15) I keep dying.  How can I get better at the game?
  261. X
  262. X The best way is probably to talk with someone who knows how to play.
  263. XThere is also an archive of hints and suggestions on how to play`032
  264. Xbetter; read the Netrek FTP List to find out where it is
  265. Xlocated.
  266. X
  267. X
  268. X16) What is 't-mode'?
  269. X
  270. X T-mode is short for 'tournament mode.'  To keep some integrity in the
  271. Xdatabase, ratings are calculated only when there are a certain number
  272. Xof people in the game (actually, when there are a certain number of
  273. Xpeople on two separate teams.  On many servers, you need 4 players
  274. Xon 2 different teams; 4 teams of 2 players won't do it).  When`032
  275. Xthe game goes into t-mode, there will be a 't' flag in your list
  276. Xof flags, and there will be a message like "Dan Quayle declares self
  277. Xas Galactic Emperor and chaos breaks out!"  When the game drops out
  278. Xof t-mode (because someone quit), the 't' flag will disappear and
  279. Xthere'll be a "Dan Quayle is locked up and order returns to the galaxy"
  280. Xmessage. `032
  281. X
  282. X It's generally considered rude to bomb or take planets out of t-mode.
  283. XSome servers punish people for trying.
  284. X
  285. X
  286. X17) What does DI stand for, anyway?
  287. X
  288. XDestruction Inflicted.
  289. X
  290. X
  291. X18) Some of the servers and binaries are called 'UDP'; what does that mean?
  292. X
  293. XUDP is a network protocol that is much more lenient than TCP (which is`032
  294. Xwhat netrek was originally based on).  If you don't have a local server
  295. Xserver, using a UDP client on a UDP server could reduce your lag
  296. Xconsiderably.  Read the Netrek FTP List to find out where you can get
  297. Xa UDP client.
  298. X
  299. X
  300. X19) I keep reading about the INL; what is it?
  301. X
  302. XThe INL is the Intercollegiate Netrek League, a collection of teams from
  303. Xdifferent schools around the country who periodically beat up on each
  304. Xother.  The league is full for the summer season, but will be open
  305. Xin the fall.  Mail tom@ocf.berkeley.edu if you have any questions about it.
  306. X
  307. X
  308. X20) Where can I get the most recent copy of this FAQ list?
  309. X
  310. X You can either look in the back messages of rec.games.netrek, or
  311. Xftp it from one of the archive sites; read the Netrek Server/FTP
  312. Xlist to find out where it is stored.  It's also in the Usenet archive
  313. Xat pit-manager.mit.edu.
  314. X
  315. X
  316. X21) My GPA has fallen 25% since I started playing Netrek last semester.
  317. X    How do you find time to do your homework and still make Admiral?
  318. X
  319. XSorry, nobody's found an answer to this one yet.  Just remember that
  320. X(GPA+kill ratio) is constant.
  321. $ CALL UNPACK NETREK.FAQ_1;1 2018330865
  322. $ create/nolog 'f'
  323. X/*
  324. X * newwin.c
  325. X */
  326. X#include "copyright.h"
  327. X
  328. X#include <stdio.h>
  329. X#include <math.h>
  330. X#include <signal.h>
  331. X#include <types.h>
  332. X#ifdef hpux
  333. X#include <time.h>
  334. X#else /*hpux*/
  335. X#include <time.h>
  336. X#endif /*hpux*/
  337. X#ifdef VMS /* to get select */
  338. X#include <socket.h>
  339. X#endif
  340. X#include "Wlib.h"
  341. X#include "defs.h"
  342. X#include "struct.h"
  343. X#include "data.h"
  344. X#include "bitmaps.h"
  345. X#ifdef VMS /* vms does not support more than two '.'s in their filenames */
  346. X#include "bitmaps-Iggy.h"
  347. X#else
  348. X#include "bitmaps.Iggy.h"
  349. X#endif
  350. X#include "oldbitmaps.h"
  351. X#include "packets.h"
  352. Xchar *malloc();
  353. Xstatic int line=0;
  354. Xstatic int maxline=0;
  355. X
  356. X#define SIZEOF(a)`009(sizeof (a) / sizeof (*(a)))
  357. X
  358. X#define BOXSIDE`009`009(WINSIDE / 5)
  359. X#define TILESIDE`00916
  360. X#define MESSAGESIZE`00920
  361. X#define STATSIZE`009(MESSAGESIZE * 2 + BORDER)
  362. X#define YOFF`009`0090
  363. X
  364. X#define stipple_width 16
  365. X#define stipple_height 16
  366. Xstatic char stipple_bits`091`093 = `123
  367. X   0x01, 0x01, 0x02, 0x02, 0x04, 0x04, 0x08, 0x08,
  368. X   0x10, 0x10, 0x20, 0x20, 0x40, 0x40, 0x80, 0x80,
  369. X   0x01, 0x01, 0x02, 0x02, 0x04, 0x04, 0x08, 0x08,
  370. X   0x10, 0x10, 0x20, 0x20, 0x40, 0x40, 0x80, 0x80`125;
  371. X/* ATM: extra stuff for those who don't like my visible tractors */
  372. X#define tract_width 5
  373. X#define tract_height 5
  374. Xstatic char tract_bits`091`093 = `123
  375. X   0x1f, 0x04, 0x04, 0x04, 0x04`125;
  376. X#define press_width 5
  377. +-+-+-+-+-+-+-+-  END  OF PART 25 +-+-+-+-+-+-+-+-
  378.