- added counting to the menu window. I changed the way it works in the TTY
port though ("you hear the rumble of distant thunder..." :) The count
applies to the currently selected item instead of being aplied to the item
to be selected (in other words a12 instead of 12a). It works better this
way in the graphical port since there is a notion of current menu item.
I also notes that the count is ignored for PICK_ONE menu - is this by
design?
- somebode mention that text is not scrollable by default - this is fixed.
- fixed player selection dialog to use initXXXX options
-----------------------
B1028 [reported] win32: popup window is too short
The text in the popup window's top line "What do you want to
call the ..." is cut off. Could the window be bigger, so you
can read the entire line?
Fixed.
---------------------
B1027 [reported] win32: select via traditional class char
In a shop (and perhaps elsewhere), I can autoselect a class of
items to drop: a for all types, b for coins, c for weapons, ...,
A for every item, B for blessed items, ... I like the new
possibilities, but I would like to be able to use the old way of
using ! for potions, ) for weapons, etc., as well.
Fixed.
---------------------
B1026 [reported] win32: setting multiple options
I want to set packorder and pickup_types. The first comes up
first, and I type in the order. Then comes the second, without
any hint what is asked of me. A little explanation here would
be appropriate, like "pick up what things automatically?" or
somesuch. When more than one option is set where extra input
is required, some explanation is useful.
Looking into. Apparently something end_menu() call is ignored by nethackw.
---------------------
B1025 [reported] win32: menu navigation
I press O. Now, when I press "a" to turn on "autodig", not only
is the mark set at "a", but there also appears a dotted
rectangle around option "A" (capitalized). Shouldn't this
rectangle also appear at "a"? Pressing "a" repeatedly toggles
the checkmark, but the rectangle switches between "A" and "a".
My CAPS LOCK is not set. The same goes for B, C, D, ... N,
by the way. Pressing "A" works the other way around: the first
press checks "A" and "rectangles" "a", the next unchecks "A"
and rectangles "A" as well.
Fixed.
---------------------
B1024 [reported] win32: no text in final window
After I clicked away the last screen with information
(challenges, I believe it was), I got an empty text screen, as
big as my screen, without any content. It looked like the text
screens that appear on the right, only it was larger and had
only a large OK button over the full width of the window, and
no cancel button. Why this window?
Fixed. The program did not set window text for RIP window.
---------------------
B1010 [known issue] win32: cosmetic
When I get my list of spells, the columns aren't properly
aligned: if the spell name is longer, the rest of the line
shifts right.
Fixed. Fixed-pitch font is used for menu window.
---------------------
B1004 [reported] win32: numeric keyboard Del/.-key
The Del/.-key on my numeric keyboard doesn't make me rest a turn
Fixed. Added rest on Del.
---------------------
B1003 [reported] win32: focus
When the window has the focus, the window bar isn't highlighted.
This is by design. Menu and text widnows are popup and the main
window is disabled when they are up.
191 lines
5.8 KiB
Batchfile
Executable File
191 lines
5.8 KiB
Batchfile
Executable File
@REM SCCS Id: @(#)nhsetup.bat 2002/01/25
|
|
@REM Copyright (c) NetHack PC Development Team 1993, 1996, 2002
|
|
@REM NetHack may be freely redistributed. See license for details.
|
|
@REM Win32 setup batch file, see Install.nt for details
|
|
@REM
|
|
@echo off
|
|
|
|
set err_nouu=
|
|
set err_copy=
|
|
set opt=
|
|
|
|
echo Checking to see if directories are set up properly
|
|
if not exist ..\..\include\hack.h goto err_dir
|
|
if not exist ..\..\src\hack.c goto err_dir
|
|
if not exist ..\..\dat\wizard.des goto err_dir
|
|
if not exist ..\..\util\makedefs.c goto err_dir
|
|
if not exist ..\..\sys\winnt\winnt.c goto err_dir
|
|
echo Directories look ok.
|
|
|
|
if "%1"=="tty" goto do_tty
|
|
if "%1"=="TTY" goto do_tty
|
|
if "%1"=="win" goto do_win
|
|
if "%1"=="WIN" goto do_win
|
|
if "%1"=="gui" goto do_win
|
|
if "%1"=="GUI" goto do_win
|
|
goto err_set
|
|
|
|
:do_tty
|
|
set opt=NetHack for NT Console
|
|
if exist .\nethack.ico goto hasicon
|
|
if exist .\nhico.uu uudecode nhico.uu >nul
|
|
if exist .\nethack.ico goto hasicon
|
|
set err_nouu=Y
|
|
goto done
|
|
:hasicon
|
|
echo NetHack icon exists ok.
|
|
echo "Copying Makefile.NT to ..\..\src\Makefile"
|
|
copy makefile.NT ..\..\src\Makefile >nul
|
|
echo Makefile copied ok.
|
|
echo done!
|
|
echo.
|
|
echo Proceed with the next step documented in Install.nt
|
|
echo.
|
|
goto done
|
|
|
|
:do_win
|
|
set opt=Graphical NetHack for Windows
|
|
if not exist ..\..\win\win32\nethack.dsw goto err_win
|
|
|
|
echo.
|
|
echo "Copying Visual C project files file to ..\..\build directory"
|
|
|
|
REM copy ..\..\win\win32\winnt.dsw ..\.. >nul
|
|
echo copy ..\..\win\win32\nethack.dsw ..\..
|
|
copy ..\..\win\win32\nethack.dsw ..\..
|
|
|
|
if NOT exist ..\..\build\*.* mkdir ..\..\build
|
|
copy ..\..\win\win32\dgncomp.dsp ..\..\build >nul
|
|
copy ..\..\win\win32\dgnstuff.dsp ..\..\build >nul
|
|
copy ..\..\win\win32\dgnstuff.mak ..\..\build >nul
|
|
copy ..\..\win\win32\dlb_main.dsp ..\..\build >nul
|
|
copy ..\..\win\win32\levcomp.dsp ..\..\build >nul
|
|
copy ..\..\win\win32\levstuff.dsp ..\..\build >nul
|
|
copy ..\..\win\win32\levstuff.mak ..\..\build >nul
|
|
copy ..\..\win\win32\makedefs.dsp ..\..\build >nul
|
|
copy ..\..\win\win32\recover.dsp ..\..\build >nul
|
|
copy ..\..\win\win32\tile2bmp.dsp ..\..\build >nul
|
|
copy ..\..\win\win32\tiles.dsp ..\..\build >nul
|
|
copy ..\..\win\win32\tiles.mak ..\..\build >nul
|
|
copy ..\..\win\win32\tilemap.dsp ..\..\build >nul
|
|
copy ..\..\win\win32\nethackw.dsp ..\..\build >nul
|
|
|
|
echo.
|
|
echo "Decoding/Copying a couple of bitmaps"
|
|
if exist ..\..\win\win32\mnsel.bmp goto hasmnsel2
|
|
if exist .\mnsel.bmp goto hasmnsel1
|
|
if exist ..\..\win\win32\mnsel.uu uudecode ..\..\win\win32\mnsel.uu >nul
|
|
if exist .\mnsel.bmp goto hasmnsel1
|
|
echo Error - No UUDECODE utility to decode ..\..\win\win32\mnsel.uu
|
|
goto hasmnsel2
|
|
:hasmnsel1
|
|
echo copy .\mnsel.bmp ..\..\win\win32
|
|
copy .\mnsel.bmp ..\..\win\win32
|
|
:hasmnsel2
|
|
if NOT exist ..\..\win\win32\mnsel.bmp set err_nouu=Y
|
|
|
|
if exist ..\..\win\win32\mnunsel.bmp goto hasmnuns2
|
|
if exist .\mnunsel.bmp goto hasmnuns1
|
|
if exist ..\..\win\win32\mnunsel.uu uudecode ..\..\win\win32\mnunsel.uu >nul
|
|
if exist .\mnunsel.bmp goto hasmnuns1
|
|
echo Error - No UUDECODE utility to decode ..\..\win\win32\mnunsel.uu
|
|
goto hasmnuns2
|
|
:hasmnuns1
|
|
echo copy .\mnunsel.bmp ..\..\win\win32
|
|
copy .\mnunsel.bmp ..\..\win\win32
|
|
:hasmnuns2
|
|
if NOT exist ..\..\win\win32\mnunsel.bmp set err_nouu=Y
|
|
|
|
if exist ..\..\win\win32\mnselcnt.bmp goto hasmnselcnt2
|
|
if exist .\mnselcnt.bmp goto hasmnselcnt1
|
|
if exist ..\..\win\win32\mnselcnt.uu uudecode ..\..\win\win32\mnselcnt.uu >nul
|
|
if exist .\mnselcnt.bmp goto hasmnselcnt1
|
|
echo Error - No UUDECODE utility to decode ..\..\win\win32\mnselcnt.uu
|
|
goto hasmnselcnt2
|
|
:hasmnselcnt1
|
|
echo copy .\mnselcnt.bmp ..\..\win\win32
|
|
copy .\mnselcnt.bmp ..\..\win\win32
|
|
:hasmnselcnt2
|
|
if NOT exist ..\..\win\win32\mnselcnt.bmp set err_nouu=Y
|
|
|
|
if exist ..\..\win\win32\petmark.bmp goto haspm2
|
|
if exist .\petmark.bmp goto haspm1
|
|
if exist ..\..\win\win32\petmark.uu uudecode ..\..\win\win32\petmark.uu >nul
|
|
if exist .\petmark.bmp goto haspm1
|
|
echo Error - No UUDECODE utility to decode ..\..\win\win32\petmark.uu
|
|
goto haspm2
|
|
:haspm1
|
|
echo copy .\petmark.bmp ..\..\win\win32
|
|
copy .\petmark.bmp ..\..\win\win32
|
|
:haspm2
|
|
if NOT exist ..\..\win\win32\petmark.bmp set err_nouu=Y
|
|
|
|
echo "Decoding/Copying ICONS"
|
|
if exist ..\..\win\win32\nethack.ico goto hasicon2
|
|
if exist .\nethack.ico goto hasicon1
|
|
if exist .\nhico.uu uudecode nhico.uu >nul
|
|
if exist .\nethack.ico goto hasicon1
|
|
echo Error - No UUDECODE utility to decode nhico.uu
|
|
goto hasicon2
|
|
:hasicon1
|
|
echo.
|
|
echo copy .\nethack.ico ..\..\win\win32
|
|
copy .\nethack.ico ..\..\win\win32
|
|
:hasicon2
|
|
if NOT exist ..\..\win\win32\nethack.ico set err_nouu=Y
|
|
|
|
goto done
|
|
|
|
:err_win
|
|
echo Some of the files needed to build graphical NetHack
|
|
echo for Windows are not in the expected places.
|
|
echo Check "Install.nt" for a list of the steps required
|
|
echo to build NetHack.
|
|
goto done
|
|
|
|
:err_data
|
|
echo A required file ..\..\dat\data.bas seems to be missing.
|
|
echo Check "Files." in the root directory for your NetHack distribution
|
|
echo and make sure that all required files exist.
|
|
goto done
|
|
|
|
:err_dir
|
|
echo Your directories are not set up properly, please re-read the
|
|
echo documentation.
|
|
goto done
|
|
|
|
:err_set
|
|
echo.
|
|
echo Usage:
|
|
echo "%0 <TTY | win | CE >"
|
|
echo.
|
|
echo Run this batch file specifying one of the following:
|
|
echo tty, win, ce
|
|
echo.
|
|
echo The tty argument is for preparing to build a console I/O TTY version
|
|
echo of NetHack.
|
|
echo.
|
|
echo The win argument is for preparing to build a graphical version
|
|
echo of NetHack.
|
|
echo.
|
|
echo The CE argument is for preparing to build a Windows CE version
|
|
echo of NetHack.
|
|
echo.
|
|
goto end
|
|
|
|
:done
|
|
echo done!
|
|
echo.
|
|
if "%err_nouu%"=="" echo Proceed with the next step documented in Install.nt
|
|
if "%err_nouu%"=="" echo for building %opt%.
|
|
echo.
|
|
if "%err_nouu%"=="" goto fini
|
|
echo Apparently you have no UUDECODE utility in your path.
|
|
echo You need a UUDECODE utility in order to turn several .uu files
|
|
echo into their decoded binary versions.
|
|
echo Check "Install.nt" for a list of prerequisites for building NetHack.
|
|
|
|
:fini
|
|
:end
|
|
|