Chris-plus-alphanumericgibberish / dnethack

A variant of nethack 3.4.3
35 stars 13 forks source link

this WILL actually compile for windows tty (dnethack.zip is precompiled UPDATED version) #17

Open anothermail888 opened 8 years ago

anothermail888 commented 8 years ago

When I tried to compile the original master code it errored out (line 33) in eat.c Then I grabbed line 33 from the DNAO (probably not line 33 but slightly different code for that section)

it errored out on pickup.c (can't remember the line number) Then I grabbed (that part of the code) from the DNAO (definitely wasn't the same line number but same function)

It still errors with tons and tons of objects in wall errors AND this one:

../util/panic.c:54:7: warning: conflicting types for built-in function 'alloca' long alloca(cnt) ^ ../src/attrib.c: In function 'init_mask_attr': ../src/attrib.c:613:23: warning: initialization discards 'const' qualifier from pointer target type struct Role mrole = pm2role(mask->mp->mskrolenum); ^ In file included from ../include/config.h:248:0, from ../include/hack.h:9, from ../src/mon.c:10: ../src/mon.c:59:25: warning: conflicting types for built-in function 'pow' STATIC_DCL double FDECL(pow, (double x, size_t n)); ^ ../include/tradstdc.h:124:21: note: in definition of macro 'FDECL'

define FDECL(f,p) f p

                 ^

AND it will NOT compile for the windows version (yes I set graphical to TRUE) but as I am not an ACTUAL programmer I have NO IDEA how to get it to compile for graphical, someone else will have to figure out why it errors like this:

../win/win32/mswproc.c: In function 'mswin_player_selection': ../win/win32/mswproc.c:269:5: error: too few arguments to function 'randrole' ../include/extern.h:1981:7: note: declared here ../win/win32/mswproc.c: In function 'prompt_for_player_selection': ../win/win32/mswproc.c:381:7: error: too few arguments to function 'randrole' ../include/extern.h:1981:7: note: declared here ../win/win32/mswproc.c:417:7: error: too few arguments to function 'randrole' ../include/extern.h:1981:7: note: declared here mingw32-make: *\ [o/mswproc.o] Error 1

Ozma777 commented 7 years ago

Drownoble and Hedrownoble NEED TO BE CHANGED TO Drow Noble.des and Hedrow Noble.des (note the spaces between noble and drow or hedrow) ALSO the pickup code needs to be updated with partial NAO pickup.c (see uploaded file) Graphical will not compile, tty WAS compiled and uploaded here.