Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!sri-spam!ames!ucbcad!zen!cory.Berkeley.EDU!iverson From: iverson@cory.Berkeley.EDU (Tim Iverson) Newsgroups: comp.sources.bugs Subject: Re: PC Nethack 2.2 bugs + help wanted linking Message-ID: <5253@zen.berkeley.edu> Date: Mon, 7-Dec-87 23:50:16 EST Article-I.D.: zen.5253 Posted: Mon Dec 7 23:50:16 1987 Date-Received: Sun, 13-Dec-87 08:52:17 EST References: <492@silver.bacs.indiana.edu> Sender: news@zen.berkeley.edu Reply-To: iverson@cory.Berkeley.EDU.UUCP (Tim Iverson) Organization: University of California, Berkeley Lines: 43 In article <492@silver.bacs.indiana.edu> creps@silver.UUCP (Steve Creps) writes: >pcmain.c: line 135: insert an #endif line for "#ifdef WIZARD". yup. >options.c: 446: append a ; to this line yup. >pcunix.c: lines 17, 20: take out the "sys/" not necesary on my system - bastardized msc4.0 > : lines 94, 108, 118, 127, 147: Change the slashes (/) to backslashes > since they are used in MS-DOS instead of slashes. Also, you'll need > two backslashes, since one backslash means to use the next character > literally. Summary: change "/" to "\\". MS-DOS will cheerfully support "/" as well as "\" for system calls: this fix isn't needed. > Now to ask for help linking. It links with no error or warning messages, >but every time I run it I get "Error 2000: stack overflow." I've tried >/STACK:4000, /STACK:65536, values in between, and even /STACK:0xa00, which >used to work on the old version of Nethack, but always get a stack overflow. >Anyone have any ideas? This one got me too. What you need is 1) do not specify -Gs (no stack checking on runtime), 2) use "/noi /stack:0xf00 /seg:1024" for the linker switches, and 3) use "-Gt32" on the compiler (MSC4.0) to set the threshold at which objects are placed in their own separate segment. A lower threshold would allow a larger stack, but this works so far and I'm not about to recompile everything again. Once you get it compiled and able to run, you will realize several other problems: the GRAPHICS code still has the same old machine dependent word order bug, the MSDOSCOLOR option is very ugly and can't be changed without recompiling - should have been done with a different termcap file instead of coded in, cursor optimization is real lame and doesn't work (doesn't optimize and doesn't put the cursor in the right place), the nethack.cnf file is very broken. In essence, 2.2 is just as much of a "hack" as the old version. The maze vertical wall is still horizontal (why? why?). If you can wait 'till next week, I'll post my fixes. - Tim Iverson iverson@cory.Berkeley.EDU ucbvax!cory!iverson