]> granicus.if.org Git - nethack/log
nethack
5 years agoput back unintended removal of end of line strip
nhmall [Fri, 29 Nov 2019 01:56:42 +0000 (20:56 -0500)]
put back unintended removal of end of line strip

5 years agoupdates to extended version info
nhmall [Fri, 29 Nov 2019 01:20:04 +0000 (20:20 -0500)]
updates to extended version info

5 years agofix a gcc warning
nhmall [Fri, 29 Nov 2019 00:05:39 +0000 (19:05 -0500)]
fix a gcc warning

5 years ago3.7: goldX and other stuff
PatR [Thu, 28 Nov 2019 23:00:54 +0000 (15:00 -0800)]
3.7: goldX and other stuff

Move option variable goldX (True: treat gold as BUC unknown, False:
treat gold as uncursed during BUCX filtering) from iflags to flags
so that it persists across save/restore.

Get rid of a few obsolete things from struct flags.

Try to make the 'cursesgraphics' option work although I don't think
that it was ever functional enough for anybody to use so probably
could have been removed instead.

Bump EDITLEVEL; any current save files are invalid.

Demote status from Beta to Work-in-Progress.

I modified src/sfdata.c manually (not included here) to get a full
build.  The Unix Makefile.src needs to be taught when and how to
regenerate it.

5 years agoGuidebook update from cron
nhmall [Thu, 28 Nov 2019 17:37:54 +0000 (12:37 -0500)]
Guidebook update from cron

5 years agoMerge branch 'NetHack-3.6'
nhmall [Thu, 28 Nov 2019 17:35:37 +0000 (12:35 -0500)]
Merge branch 'NetHack-3.6'

5 years agoThis is cron-daily v1-Nov-24-2019. guidebook updated: doc/Guidebook.txt
nhw_cron [Thu, 28 Nov 2019 17:17:54 +0000 (12:17 -0500)]
This is cron-daily v1-Nov-24-2019.  guidebook updated: doc/Guidebook.txt

5 years agoMerge branch 'NetHack-3.7'
nhmall [Thu, 28 Nov 2019 04:07:50 +0000 (23:07 -0500)]
Merge branch 'NetHack-3.7'

5 years agoMerge branch 'NetHack-3.6'
nhmall [Thu, 28 Nov 2019 04:07:29 +0000 (23:07 -0500)]
Merge branch 'NetHack-3.6'

5 years agoyet more Windows Makefile
nhmall [Thu, 28 Nov 2019 03:34:55 +0000 (22:34 -0500)]
yet more Windows Makefile

5 years agoallow testing of CROSSCOMPILE without cross-compiler using windows Makefile
nhmall [Thu, 28 Nov 2019 03:11:08 +0000 (22:11 -0500)]
allow testing of CROSSCOMPILE without cross-compiler using windows Makefile

5 years agoremove c files from nethack.tags generation
nhmall [Thu, 28 Nov 2019 02:28:20 +0000 (21:28 -0500)]
remove c files from nethack.tags generation

I noticed that src/sfdata.c and include/sfproto.h come out the same without those c files in the list. Remove them.

5 years agoreturn struct fields borrowed in 3.6
nhmall [Thu, 28 Nov 2019 01:18:45 +0000 (20:18 -0500)]
return struct fields borrowed in 3.6

This will break existing 3.7 save/bones.

5 years agoparanoid_confirmation:eating
PatR [Thu, 28 Nov 2019 00:27:13 +0000 (16:27 -0800)]
paranoid_confirmation:eating

Add 'eating' (synonym 'continue') to the list of things that can be
set via paranoid_confirmation to require "yes" instead of "y" when
the user is prompted about something, in this case "Continue eating?".

dat/opthelp was missing a few of the paranoid_confirmation choices.

5 years agountested curses number pad fix
PatR [Wed, 27 Nov 2019 23:19:52 +0000 (15:19 -0800)]
untested curses number pad fix

This compiles ok but I don't have a number pad to test it with.

5 years agonumber pad changes from pull request #247
nhmall [Wed, 27 Nov 2019 22:19:55 +0000 (17:19 -0500)]
number pad changes from pull request #247

Below is the accompanying text from the pull request on
GitHub https://github.com/NetHack/NetHack/pull/247:

> This fixes the issue brought up in https://www.reddit.com/r/nethack/comments/dv3pae/curses_and_the_numberpad/?st=k3hgply6&sh=dbc2bf7d .
>
> I don't know why the "regular" (tty) method doesn't seem to work for him,
> but I'm going to chalk it up to a PDCurses oddity. What I do know, however,
> is that the alternate method I added a year ago or maybe longer, that allows
> numpad usage even with number_pad:0 (to retain the default keybindings in case
> an user is used to them, while keeping number pad behaviour making sense,
> similar to NetHack4+friends) was only partially implemented, for some reason.
> This adds the rest of the keys, meaning that this means of key interpretation
> should be more realible. KEY_A2/B1/B3/C2 are not standard keys in the Curses
> documentation, and is thus behind an ifdef -- but PDCurses, amongst other
> implementations, makes use of them.
>
> As a side effect, Home/End/PgUp/PgDn are now interpreted as diagonal movement,
> since some terminals interpret number_pad keys that way. I do not consider this
> a problem since they went unused in normal gameplay anyway (This does not
> interfere with menus or similar).

Closes #247

5 years agoMerge branch 'FredrIQ-numpad' into NetHack-3.6
nhmall [Wed, 27 Nov 2019 22:14:15 +0000 (17:14 -0500)]
Merge branch 'FredrIQ-numpad' into NetHack-3.6

5 years agoMerge branch 'NetHack-3.6' of https://github.com/FredrIQ/NetHack into FredrIQ-numpad
nhmall [Wed, 27 Nov 2019 22:04:35 +0000 (17:04 -0500)]
Merge branch 'NetHack-3.6' of https://github.com/FredrIQ/NetHack into FredrIQ-numpad

5 years agowarning bit in a file that is only a proof-of-concept
nhmall [Wed, 27 Nov 2019 20:19:57 +0000 (15:19 -0500)]
warning bit in a file that is only a proof-of-concept

5 years agofix part of #H9467 - clairvoyance vs sensed mons
PatR [Wed, 27 Nov 2019 19:24:23 +0000 (11:24 -0800)]
fix part of #H9467 - clairvoyance vs sensed mons

When a monster is drawn on the map, remove any "remembered, unseen
monster" glyph being shown at the same spot.  Clairvoyance shows
all monsters in vicinty, then ones which can't be seen are replaced
with the 'I' glyph (which is on the object layer or the display,
not the monster layer show is subject to different update behavior).
But subsequent monster refresh didn't get rid of it when a sensed
monster was displayed over it.  (3.6.1 included a similar fix for
warned-of monsters.)

Also during clairvoyance, don't draw an 'I' at a spot that will
immediately be refreshed with a monster because 'I' clobbers any
remembered object at the same location.

5 years agoThis is cron-daily v1-Nov-24-2019. files updated: Files
nhw_cron [Tue, 26 Nov 2019 23:42:19 +0000 (18:42 -0500)]
This is cron-daily v1-Nov-24-2019.  files updated: Files

5 years agoanother lib bit
nhmall [Wed, 27 Nov 2019 18:53:57 +0000 (13:53 -0500)]
another lib bit

5 years agomissed a part of vmsbuild.com
nhmall [Wed, 27 Nov 2019 18:48:25 +0000 (13:48 -0500)]
missed a part of vmsbuild.com

5 years agoMerge branch 'NetHack-3.6'
nhmall [Wed, 27 Nov 2019 18:36:12 +0000 (13:36 -0500)]
Merge branch 'NetHack-3.6'

5 years agomore lib subfolder updates
nhmall [Wed, 27 Nov 2019 18:19:45 +0000 (13:19 -0500)]
more lib subfolder updates

5 years agoignore 3.7 file if present
PatR [Wed, 27 Nov 2019 17:53:40 +0000 (09:53 -0800)]
ignore 3.7 file if present

5 years agoanother visual studio update - dirs.props
nhmall [Wed, 27 Nov 2019 16:22:11 +0000 (11:22 -0500)]
another visual studio update - dirs.props

5 years agoFix alternate number pad interpretation only working for diagonals
Fredrik Ljungdahl [Wed, 27 Nov 2019 15:44:17 +0000 (16:44 +0100)]
Fix alternate number pad interpretation only working for diagonals

This fixes the issue brought up at https://www.reddit.com/r/nethack/comments/dv3pae/curses_and_the_numberpad/?st=k3hgply6&sh=dbc2bf7d .

I don't know why the "regular" (tty) method doesn't seem to work for him,
but I'm going to chalk it up to a PDCurses oddity. What I do know, however,
is that the alternate method I added a year ago or maybe longer, that allows
numpad usage even with number_pad:0 (to retain the default keybindings in case
an user is used to them, while keeping number pad behaviour making sense,
similar to NetHack4+friends) was only partially implemented, for some reason.
This adds the rest of the keys, meaning that this means of key interpretation
should be more realible. KEY_A2/B1/B3/C2 are not standard keys in the Curses
documentation, and is thus behind an ifdef -- but PDCurses, amongst other
implementations, makes use of them.

As a side effect, Home/End/PgUp/PgDn are now interpreted as diagonal movement,
since some terminals interpret number_pad keys that way. I do not consider this
a problem since they went unused in normal gameplay anyway (This does not
interfere with menus or similar).

5 years agovisual studio project updates
nhmall [Wed, 27 Nov 2019 16:07:41 +0000 (11:07 -0500)]
visual studio project updates

5 years agoanother windows Makefile bit
nhmall [Wed, 27 Nov 2019 12:59:36 +0000 (07:59 -0500)]
another windows Makefile bit

5 years agoWindows mingw Makefile updates
nhmall [Wed, 27 Nov 2019 06:34:53 +0000 (01:34 -0500)]
Windows mingw Makefile updates

5 years agoMerge branch 'NetHack-3.7'
nhmall [Wed, 27 Nov 2019 06:27:39 +0000 (01:27 -0500)]
Merge branch 'NetHack-3.7'

5 years agoMerge branch 'NetHack-3.6'
nhmall [Wed, 27 Nov 2019 06:27:11 +0000 (01:27 -0500)]
Merge branch 'NetHack-3.6'

5 years agowindows Makefile updates
nhmall [Wed, 27 Nov 2019 06:25:17 +0000 (01:25 -0500)]
windows Makefile updates

5 years ago3.7 Unix Makefiles
PatR [Wed, 27 Nov 2019 03:27:00 +0000 (19:27 -0800)]
3.7 Unix Makefiles

Copy lib/lua-$(VERSION)/src/liblua.h to lib/lua/ rather than lib/.

Instead of copying any of the header files or telling the compiler
where to find the lua ones, generate include/nhlua.h on the fly and
restrict the knowledge of where they are to it (paths are relative
to include/).

|/* nhlua.h - generated by top Makefile */
|#include "../lib/lua-5.3.5/src/lua.h"
|LUA_API int   (lua_error) (lua_State *L) NORETURN;
|#include "../lib/lua-5.3.5/src/lualib.h"
|#include "../lib/lua-5.3.5/src/lauxlib.h"
|/*nhlua.h*/

This might need to be redone (or augmented by having CFLAGS add back
'-I path-to-lua') if some compiler can't find '#include "luaconf.h"'
issued by lua.h.

5 years agoinstructional doc bit
nhmall [Wed, 27 Nov 2019 00:35:46 +0000 (19:35 -0500)]
instructional doc bit

5 years agoprepare branch for travis-ci
nhmall [Wed, 27 Nov 2019 00:26:49 +0000 (19:26 -0500)]
prepare branch for travis-ci

5 years agomsdos cross-compile bits
nhmall [Wed, 27 Nov 2019 00:06:45 +0000 (19:06 -0500)]
msdos cross-compile bits

5 years agoanother msdos cross-compile bit
nhmall [Tue, 26 Nov 2019 05:34:57 +0000 (00:34 -0500)]
another msdos cross-compile bit

5 years agomore msdos cross-compile fixes
nhmall [Tue, 26 Nov 2019 05:02:38 +0000 (00:02 -0500)]
more msdos cross-compile fixes
undefined reference to g.variables if certain parts of
drawing.c are included in host-side utilities, so
surround the offending code in
->  #if !defined(CROSSCOMPILE) || defined(CROSSCOMPILE_TARGET)

5 years agolinux-hosted msdos cross-compiler updates
nhmall [Tue, 26 Nov 2019 03:47:54 +0000 (22:47 -0500)]
linux-hosted msdos cross-compiler updates

5 years agoalignment of mimicked or polymorphed altars
PatR [Mon, 25 Nov 2019 23:01:40 +0000 (15:01 -0800)]
alignment of mimicked or polymorphed altars

A reddit thread about an unaligned altar in an aligned temple was
a tipoff that mimics posing as altars didn't have any particular
alignment.  The look-at code was misusing an operloaded field of the
underlying terrain.  Pick an alignment at random when taking on the
appearance of an altar, store it in the mimic's mon->mextra->mcorpsenm
field, and have look-at use that.

Also, dropping a ring of polymorph into a sink can transform it, and
one possible outcome is an altar.  In this case, the alignment is
part of the location's topology, but code setting that up was using
Align2amask(rn2(foo)).  That's a macro which evaluates its argument
more than once.  The first evaluation was effectively a no-op.  If
the second evaluation picked lawful then the result was lawful as
intended.  But if the second picked non-lawful and the third picked
lawful, the result would end up as none-of-the-above (a value of 3
when it needs to be a single-bit mask of 1, 2, or 4).

5 years agolua reorganization
PatR [Mon, 25 Nov 2019 20:20:42 +0000 (12:20 -0800)]
lua reorganization

Reduce the implied reliance of a specific version of lua.

Instead of copying liblua.a to src/, copy it to lib/.  Instead of
telling the compiler to look for headers in lib/lua-5.3.5/src/ as
well as in include/, copy the relevant ones to lib/ and tell the
compiler to look for them there.  'make spotless' in src/ will
remove both the object library and the header files from lib/ but
there really should be a new Makefile.lib to take care of that
directory.

Update Makefile.src to be able to build lua in case someone starts
with 'make all' there instead of in the top Makefile.  It doesn't
duplicate the option to fetch the lua source package though.

NHinternal/../genFiles.c has been updated to mention lib/liblua.a
and lib/lua*.h as 'generated at compile time' in Files and to skip
lib/lua-* entirely if it comes across that (so not operating on a
completely clean tree).  But it won't be accurate unless/until
other ports stage their lua files there instead of in src/ and
lib/lua-$(VERSION)/src/.

I haven't tried 'make depend' to see what it makes of the numerous
changes....

5 years agomore questpgr removal from makedefs
PatR [Mon, 25 Nov 2019 18:07:11 +0000 (10:07 -0800)]
more questpgr removal from makedefs

5 years agospelling bit
nhmall [Mon, 25 Nov 2019 16:42:24 +0000 (11:42 -0500)]
spelling bit

5 years agofixes catch-up bit
nhmall [Mon, 25 Nov 2019 16:30:21 +0000 (11:30 -0500)]
fixes catch-up bit

5 years agoadd placeholder Cross-compiling file to Top
nhmall [Mon, 25 Nov 2019 16:16:58 +0000 (11:16 -0500)]
add placeholder Cross-compiling file to Top

5 years agoREADME update
nhmall [Mon, 25 Nov 2019 16:12:27 +0000 (11:12 -0500)]
README update

5 years agoRemove vestiges of quest text data file
Pasi Kallinen [Mon, 25 Nov 2019 14:30:54 +0000 (16:30 +0200)]
Remove vestiges of quest text data file

5 years agoFix lua quest data output types
Pasi Kallinen [Mon, 25 Nov 2019 07:21:34 +0000 (09:21 +0200)]
Fix lua quest data output types

...so the texts are given exactly the same way as they were given previously.

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Mon, 25 Nov 2019 05:51:44 +0000 (00:51 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agolua quest texts
nhmall [Mon, 25 Nov 2019 05:50:16 +0000 (00:50 -0500)]
lua quest texts

5 years agoMerge branch 'paxed-quest-lua' into NetHack-3.7
Pasi Kallinen [Mon, 25 Nov 2019 05:30:51 +0000 (07:30 +0200)]
Merge branch 'paxed-quest-lua' into NetHack-3.7

5 years agomsdos now has its own sysconf as the sys/winnt/sysconf.template had incompatible...
nhmall [Mon, 25 Nov 2019 05:17:16 +0000 (00:17 -0500)]
msdos now has its own sysconf as the sys/winnt/sysconf.template had incompatible entries

5 years agofix a transcription error
nhmall [Mon, 25 Nov 2019 04:42:27 +0000 (23:42 -0500)]
fix a transcription error

5 years agoThis is cron-daily v1-Nov-24-2019. files updated: Files
nhw_cron [Sun, 24 Nov 2019 19:28:34 +0000 (14:28 -0500)]
This is cron-daily v1-Nov-24-2019.  files updated: Files

5 years agoMerge branch 'NetHack-3.7' into paxed-quest-lua
nhmall [Mon, 25 Nov 2019 04:11:30 +0000 (23:11 -0500)]
Merge branch 'NetHack-3.7' into paxed-quest-lua

5 years ago3.7: fix #9397 - pronouns when hallucinating
PatR [Mon, 25 Nov 2019 02:29:14 +0000 (18:29 -0800)]
3.7: fix #9397 - pronouns when hallucinating

Developed for 3.6 but deferred to 3.7.  Most of the testing was with
the earlier incarnation.

Report was that pronouns were accurate for the underlying monsters
when hallucination was describing something random, and also that the
gender prefix flag from bogusmon.txt wasn't being used.  The latter
is still the case, but pronouns are now chosen at random while under
the influence of hallucination.  One of the choices is plural and an
attempt is made to make the monster name and verb fit that usage.

|The homunculus picks up a wand of speed monster.
|The large cats zap themselves with a wand of speed monster!
|The blue dragon is suddenly moving faster.

There is no attempt to match gender for the singular cases; you might
get
|The succubus zaps himself [...]
or
|The incubus zaps herself [...]

5 years ago3.7 build cleanup
PatR [Mon, 25 Nov 2019 01:56:01 +0000 (17:56 -0800)]
3.7 build cleanup

Unix Makefile.utl wasn't aware of the dependency of makedefs.o on
src/mdlib.c so didn't rebuild makedefs when it should have.

Eliminate several warnings:
mdlib.c  - #if inside the arguments to macro Sprintf();
nhlua.c  - nhl_error() ends with a call to lua_error() which doesn't
           return, but neither of them were declared that way;
nhlsel.c - because of the previous, the 'else error' case of
           l_selection_ellipse() led to complaints about uninitialized
   variables;
sp_lev.c - missing 'const'.

I did minimal testing which went ok, but revisiting a couple of levels
gave me un-freed memory allocated by restore.c line 1337.  (I haven't
looked at that at all.)

5 years agoMerge branch 'NetHack-3.7' into paxed-quest-lua
nhmall [Sun, 24 Nov 2019 23:57:46 +0000 (18:57 -0500)]
Merge branch 'NetHack-3.7' into paxed-quest-lua

5 years agoMerge branch 'master' into NetHack-3.7
nhmall [Sun, 24 Nov 2019 23:57:11 +0000 (18:57 -0500)]
Merge branch 'master' into NetHack-3.7

5 years agoMerge branch 'NetHack-3.6'
nhmall [Sun, 24 Nov 2019 23:55:18 +0000 (18:55 -0500)]
Merge branch 'NetHack-3.6'

5 years agoMerge branch 'NetHack-3.6'
nhmall [Sun, 24 Nov 2019 23:51:59 +0000 (18:51 -0500)]
Merge branch 'NetHack-3.6'

5 years agofix #H9462 - segfault with levitation boots
PatR [Sun, 24 Nov 2019 23:33:16 +0000 (15:33 -0800)]
fix #H9462 - segfault with levitation boots

This is similar to the helm of opposite alignment case fixed some
time ago.  Deferring the setting of foo->known until an item is fully
worn (because it used to get set earlier but gave away information if
the wear operation was interrupted) didn't take into account that foo
might end up Null in various circumstances.  So Boots_on() needs to
validate uarmf before setting uarmf->known in case putting on boots
of levitation while on a sink caused them to come right back off.

I put similar validation into all foo_on() just in case (as far as
I'm aware, only Boots_on() and Helmet_on() actually need that).

5 years agomore warnings
nhmall [Sun, 24 Nov 2019 23:01:48 +0000 (18:01 -0500)]
more warnings

5 years agoclean up some macosx build warnings
nhmall [Sun, 24 Nov 2019 22:26:35 +0000 (17:26 -0500)]
clean up some macosx build warnings

5 years agoadd notice
nhmall [Sun, 24 Nov 2019 19:26:46 +0000 (14:26 -0500)]
add notice

5 years agoremove a debugging line from msdos-cross-compile.sh
nhmall [Sun, 24 Nov 2019 18:44:53 +0000 (13:44 -0500)]
remove a debugging line from msdos-cross-compile.sh

5 years agoMerge branch 'paxed-quest-lua' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sun, 24 Nov 2019 18:38:32 +0000 (13:38 -0500)]
Merge branch 'paxed-quest-lua' of https://rodney.nethack.org:20040/git/NHsource into paxed-quest-lua

5 years agouse curl which is always available on osx rather than wget
nhmall [Sun, 24 Nov 2019 18:37:22 +0000 (13:37 -0500)]
use curl which is always available on osx rather than wget

5 years agoMerge branch 'paxed-quest-lua' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sun, 24 Nov 2019 17:40:36 +0000 (12:40 -0500)]
Merge branch 'paxed-quest-lua' of https://rodney.nethack.org:20040/git/NHsource into paxed-quest-lua

5 years agoDon't remove dungeon.lua with make spotless
Pasi Kallinen [Sun, 24 Nov 2019 17:39:31 +0000 (19:39 +0200)]
Don't remove dungeon.lua with make spotless

5 years agoadded protection in Makefile for cross-compile (although should not happen):
nhmall [Sun, 24 Nov 2019 17:39:00 +0000 (12:39 -0500)]
added protection in Makefile for cross-compile (although should not happen):

5 years agomore support in cross-compile for the changes in this branch
nhmall [Sun, 24 Nov 2019 17:23:00 +0000 (12:23 -0500)]
more support in cross-compile for the changes in this branch

5 years agoremove warning for unused variable
nhmall [Sun, 24 Nov 2019 17:03:11 +0000 (12:03 -0500)]
remove warning for unused variable

5 years agowindows and msdos Makefile support of the changes in this branch
nhmall [Sun, 24 Nov 2019 17:01:33 +0000 (12:01 -0500)]
windows and msdos Makefile support of the changes in this branch

5 years agoMove quest texts to lua
Pasi Kallinen [Sun, 24 Nov 2019 15:41:39 +0000 (17:41 +0200)]
Move quest texts to lua

5 years agoRevert "attempt to avoid questpgr convert woes on cross-compile by making the int...
nhmall [Sun, 24 Nov 2019 05:40:00 +0000 (00:40 -0500)]
Revert "attempt to avoid questpgr convert woes on cross-compile by making the int sizes fixed"

This reverts commit b8a6d82c57b1e9407223c83ab719bd1fb674d9f8.

5 years agoattempt to avoid questpgr convert woes on cross-compile by making the int sizes fixed
nhmall [Sun, 24 Nov 2019 05:11:26 +0000 (00:11 -0500)]
attempt to avoid questpgr convert woes on cross-compile by making the int sizes fixed

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sat, 23 Nov 2019 23:58:34 +0000 (18:58 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agomore sys/msdos/Makefile?.cross updates
nhmall [Sat, 23 Nov 2019 23:57:17 +0000 (18:57 -0500)]
more sys/msdos/Makefile?.cross updates

5 years agoFiles and doc/Guidebook.txt from cron-daily v1-Nov-21-2019
nhw_cron [Thu, 21 Nov 2019 20:39:11 +0000 (15:39 -0500)]
Files and doc/Guidebook.txt from cron-daily v1-Nov-21-2019

5 years agoMerge branch 'NetHack-3.7'
nhmall [Sat, 23 Nov 2019 22:32:44 +0000 (17:32 -0500)]
Merge branch 'NetHack-3.7'

5 years agoMerge branch 'NetHack-3.6'
nhmall [Sat, 23 Nov 2019 22:32:36 +0000 (17:32 -0500)]
Merge branch 'NetHack-3.6'

5 years agoMinor msdos cross compile improvements
Pasi Kallinen [Sat, 23 Nov 2019 21:40:25 +0000 (23:40 +0200)]
Minor msdos cross compile improvements

5 years agomore #H9375 - Rider bargethrough
PatR [Sat, 23 Nov 2019 17:28:08 +0000 (09:28 -0800)]
more #H9375 - Rider bargethrough

I think the previous expression would allow moving (via swapping
places) from a pool to solid rock or closed door which was not what
was intended (but moot since there aren't any pools on the Astral
level).  This revised expression does what is intended:  can only
swap to a pool location if already located in/over (the Riders fly?
they should probably be non-breathing) another pool.

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sat, 23 Nov 2019 17:20:45 +0000 (12:20 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agomore cross-compile djgpp build tweaks
nhmall [Sat, 23 Nov 2019 17:19:33 +0000 (12:19 -0500)]
more cross-compile djgpp build tweaks

5 years agoFix the lua integration parts marked for review
Pasi Kallinen [Sat, 23 Nov 2019 15:42:11 +0000 (17:42 +0200)]
Fix the lua integration parts marked for review

Also, explicitly allow traps of type "random".

5 years agoanother cross-compile script bit
nhmall [Sat, 23 Nov 2019 15:20:18 +0000 (10:20 -0500)]
another cross-compile script bit

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sat, 23 Nov 2019 15:15:05 +0000 (10:15 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agoadd some msdos files to .gitignore, produce zip
nhmall [Sat, 23 Nov 2019 15:13:10 +0000 (10:13 -0500)]
add some msdos files to .gitignore, produce zip

5 years agoMakefile?.cross bits
nhmall [Sat, 23 Nov 2019 13:49:55 +0000 (08:49 -0500)]
Makefile?.cross bits

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sat, 23 Nov 2019 06:32:43 +0000 (01:32 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agofix an error with msdos cross-compiler NetHack packaging
nhmall [Sat, 23 Nov 2019 06:30:54 +0000 (01:30 -0500)]
fix an error with msdos cross-compiler NetHack packaging

5 years agoMerge branch 'NetHack-3.7' part 2
nhmall [Sat, 23 Nov 2019 04:41:21 +0000 (23:41 -0500)]
Merge branch 'NetHack-3.7' part 2

5 years agoMerge branch 'NetHack-3.7'
nhmall [Sat, 23 Nov 2019 04:38:02 +0000 (23:38 -0500)]
Merge branch 'NetHack-3.7'

5 years agoMerge branch 'NetHack-3.6'
nhmall [Sat, 23 Nov 2019 04:37:48 +0000 (23:37 -0500)]
Merge branch 'NetHack-3.6'

5 years agoincremental improvements to cross-compiling support in NetHack 3.7
nhmall [Sat, 23 Nov 2019 03:35:48 +0000 (22:35 -0500)]
incremental improvements to cross-compiling support in NetHack 3.7

Some support of new code #defines to faciliate cross-compiling:

    OPTIONS_AT_RUNTIME    If this is defined, code to support obtaining
                          the compile time options and features is
                          included. If you define this, you'll also have
                          to compile sys/mdlib.c and link the resulting
                          object file into your game binary/executable.

    CROSSCOMPILE          Flags that this is a cross-compiled NetHack build,
                          where there are two stages:
                          1. makedefs and some other utilities are compiled
                          on the host platform and executed there to generate
                          some output files and header files needed by the
                          game.
                          2. the NetHack game files are compiled by a
                          cross-compiler to generate binary/executables for
                          a different platform than the one the build is
                          being run on. The executables produced for the
                          target platform may not be able to execute on the
                          build platform, except perhaps via a software
                          emulator.

                          The 2-stage process (1. host, 2.target) can be done
                          on the same platform to test the cross-compile
                          process. In that case, the host and target platforms
                          would be the same.

    CROSSCOMPILE_HOST     Separates/identifies code paths that should only be
                          be included in the compile on the host side, for
                          utilities that will be run on the host as part of
                          stage 1 to produce output files needed to build the
                          game. Examples are the code for makedefs, tile
                          conversion utilities, uudecode, dlb, etc.

    CROSSCOMPILE_TARGET   Separates/identifies code paths that should be
                          included on the build for the target platform
                          during stage 2, the cross-compiler stage. That
                          includes most of the pieces of the game itself
                          but the code is only flagged as such if it must
                          not execute on the host.

If you don't define any of those, things should build as before.
One follow-on change that is likely required is setting the new dependency
makedefs has on src/mdlib.c in Makefiles etc.

More information about the changes:

    makedefs

    - splinter off some of makedefs functionality into a separate file
      called src/mdlib.c.
        - src/mdlib.c, while included during the compile of makedefs.c
          for producing the makedefs utility, can also be compiled
          as a stand-alone object file for inclusion in the link step
          of your NetHack game build. The src/mdlib.c code can then
          deliver the same functionality that it provided to makedefs
          right to your NetHack game code at run-time.
          For example, do_runtime_info() will provide the caller with
          the features and options that were built into the game.
          Previously, that information was produced at build time on the
          host and stored in a dat file. Under a cross-compile situation,
          those values are highly suspect and might not even reflect the
          correct options and setting for the cross-compiled target
          platform's binary/executable. The compile of those values and
          the functionality to obtain them needs to move to the target
          cross-compiler stage of the build (stage 2).
        - date information on the target-side binary is produced from
          the cross-compiler preprocessor pre-defined macros __DATE__
          and __TIME__, as they reflect the actual compile time of the
          cross-compiled target and not host-side execution of a utility
          to produce them. The cross-compiler itself, through those
          pre-defined preprocessor macros, provides them to the target
          platform binary/executable. They reflect the actual build
          time of the target binary/executable (not values produced
          at the time the makefiles utility was built and the
          appropriate option selected to store them in a text file.)
        - most Makefiles should not require adding the new file
          src/mdlib.c because util/makedefs.c has a preprocessor
          include "../src/mdlib.c" to draw in its contents. As previously
          stated though, the Makefile dependency may be required:
makedefs.o: ../util/makedefs.c ../src/mdlib.c
                                               ^^^^^^^^^^^^^^^

5 years agofix #H9375 - unintended Rider corpse suppression
PatR [Sat, 23 Nov 2019 02:16:59 +0000 (18:16 -0800)]
fix #H9375 - unintended Rider corpse suppression

Don't let Riders swap places with something (fog or ooze, perhaps)
located at a closed door spot because if it gets killed there, there
won't be any corpse and it will stop auto-reviving.

Just avoid moving to spots where mondied() won't place a corpse
instead of worrying about whether a bargethrough creature (if there
ever are any besides the Riders) might be able to survive at the
destination (so ignore pass-walls, door-opening, swimming, &c).