jl42+@andrew.cmu.edu (Jay Mathew Libove) (12/13/87)
I have brought up nethack 2.2 on my SCO SysVr2 2.2.1/dev 2.1.4 system with minimal difficulty, patched the termcap.c file to use "nap()" from -lx to avoid the extremely strange delay mechanism that it came with, applied a patch posted to the net for chameleons on level 40 (? I just took this verbatim, and it didn't break, so...) BUT I've found a problem: Some of the character types don't work: Ninja, ok Knight, ok Healer, core dumps as soon as I hit "h" Archaeologist, ok Tourist, core dumps as soon as I hit "t" Barbarian, ok Caveman, ok Samurai, ok Priest, core dumps as soon as I hit "p" Valkyrie, ok Elf, ok Wizard, core dumps as soon as I hit "w" My config.h does define everything as far as the options for game modifications (DOGNAME, SPELLS, PRAYERS, KAA, etc...) From looking at the source code to u_init.c it appears that the core dump occurs when I select a character whose initialization requires accessing an array called "objects[]"; I inserted: printf ("objects is of size [%d]\n",SIZE(objects)); and I got 0. Oops. The SIZE macro does s sizeof(x)/sizeof(x[0]) so it should indicate the number of items in the array, so I guess that array is getting initialized wrong, or not at all.. Anyone have a fix? Jay Libove Arpa: Jay.Libove@andrew.cmu.edu Bitnet: Jay.Libove@drycas.bitnet UUCP: ...!{uunet, ucbvax, harvard}!andrew.cmu.edu!Jay.Libove UUCP: ...!{pitt | bellcore} !darth!libove!libove