Xref: utzoo comp.sources.wanted:3954 rec.games.hack:2402 Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!mcnc!ece-csc!jnh From: jnh@ece-csc.UUCP (Joseph Nathan Hall) Newsgroups: comp.sources.wanted,rec.games.hack Subject: Re: nethack for vms ?? Message-ID: <3531@ece-csc.UUCP> Date: 25 Apr 88 13:02:34 GMT References: <13097@brl-adm.ARPA> Reply-To: jnh@ece-csc.UUCP (Joseph Nathan Hall) Organization: North Carolina State University, Raleigh, NC Lines: 49 In article <13097@brl-adm.ARPA> XGRUUNIX%DDATHD21.BITNET@CUNYVM.CUNY.EDU (unix-src account) writes: >Has anybody tried to port NETHACK to VAX/VMS ? > It's not too difficult. Basically you need to do a couple of things: (well, maybe more than a couple) 1) (the hardest) Get an interactive keystroke routine working. This involves, basically, one call to sys$assign to create an i/o channel for subsequent calls to sys$qiow ... afterward you call a routine that calls sys$qiow with the proper switches set; this returns your character. This is all because your basic single-character i/o doesn't work interactively with VMS ... 2) (annoying but not too hard) You need to deal with some of the UNIX system calls that aren't supported under VMS. The termcap stuff is easy enough to bypass if the idea of supporting only VT100 etc is ok with you; in that case use the MS-DOS ANSI-type sequences that are basically the same. You can get fancy and modify things to use the VT100 graphics characters, but this is a lot of trouble to do correctly. 3) (niggling) The VMS linker is *not* case-specific between modules and there are about a half-dozen identifiers that you have to #define as something different to keep the linker from choking on them. 4) (more niggling) You need to find the correct set of #defines for VMS in config.h. If I remember, it's pretty close to the BSD set but you have to clean some things up. 5) (still more niggling) skip the file creation date call in main.c There's probably a little more but nothing's too bad IF you're familiar with VAX C, VMS, and UNIX. I got NetHack running on a VMS system a little while back, but I converted to Moria (:-)) and I haven't tinkered with the source in a while ... I can't give you much more help than the hints above. I remember it took me about 8 hours to get everything going, and I wasn't working too hard at it. Please don't bombard me with questions. I don't even have access to my VMS-Hack source right now. The notes above should be enough to get you off to a good start, anyway ... :-) Good luck!!! -- v v sssss|| joseph hall || 201-1D Hampton Lee Court v v s s || jnh@ece-csc.ncsu.edu (Internet) || Cary, NC 27511 v sss || the opinions expressed herein are not necessarily those of my -----------|| employer, north carolina state university . . . . . . . . . . .