rename winhack.dsp to nethackw.dsp
Adjust Install.nt to match. Modify Makefile.nt to use ../binary directory for output by default, just like the windows version does.
This commit is contained in:
@@ -4,13 +4,13 @@
|
|||||||
Instructions for compiling and installing
|
Instructions for compiling and installing
|
||||||
NetHack 3.3 on a Windows NT, 2000, or XP system
|
NetHack 3.3 on a Windows NT, 2000, or XP system
|
||||||
==============================================================
|
==============================================================
|
||||||
Last revision: January 13, 2002
|
Last revision: January 22, 2002
|
||||||
|
|
||||||
Credit for the porting of NetHack to the Win32 Console Subsystem goes to
|
Credit for the porting of NetHack to the Win32 Console Subsystem goes to
|
||||||
the NT Porting Team started by Michael Allison.
|
the NT Porting Team started by Michael Allison.
|
||||||
|
|
||||||
Credit for the Win32 Graphical version of NetHack (aka Winhack) goes to
|
Credit for the Win32 Graphical version of NetHack (aka Winhack or
|
||||||
Alex Kompel.
|
Nethackw) goes to Alex Kompel who contributed the port.
|
||||||
|
|
||||||
You can build either the TTY version of NetHack or the Windows Graphical
|
You can build either the TTY version of NetHack or the Windows Graphical
|
||||||
version. In either case you will need:
|
version. In either case you will need:
|
||||||
@@ -33,11 +33,11 @@ For the tty version using the NT Console I/O subsystem:
|
|||||||
cd sys\winnt
|
cd sys\winnt
|
||||||
nhsetup TTY
|
nhsetup TTY
|
||||||
|
|
||||||
For the graphical version (WinHack)
|
For the graphical version (NetHackW)
|
||||||
cd sys\winnt
|
cd sys\winnt
|
||||||
nhsetup WIN
|
nhsetup WIN
|
||||||
|
|
||||||
The winhacknt subdirectory will be created off the top of the NetHack
|
The build subdirectory will be created off the top of the NetHack
|
||||||
source tree, and files appropriate for the selected build will be moved to the
|
source tree, and files appropriate for the selected build will be moved to the
|
||||||
appropriate place.
|
appropriate place.
|
||||||
|
|
||||||
@@ -263,8 +263,8 @@ Setting Up
|
|||||||
2. Make sure all the NetHack files are in the appropriate directory
|
2. Make sure all the NetHack files are in the appropriate directory
|
||||||
structure. You should have a main directory with subdirectories
|
structure. You should have a main directory with subdirectories
|
||||||
dat, doc, include, src, sys\share, sys\winnt, util, win\win32,
|
dat, doc, include, src, sys\share, sys\winnt, util, win\win32,
|
||||||
and at this point, you should also have winhacknt (created by
|
and at this point, you should also have a build directory (created
|
||||||
nhsetup.bat executed from sys\winnt.)
|
by nhsetup.bat executed from sys\winnt.)
|
||||||
|
|
||||||
Other subdirectories may also be included in your distribution, but
|
Other subdirectories may also be included in your distribution, but
|
||||||
they are not necessary for building the graphical version of NetHack
|
they are not necessary for building the graphical version of NetHack
|
||||||
@@ -311,29 +311,39 @@ Setting Up
|
|||||||
+ levcomp files
|
+ levcomp files
|
||||||
+ levstuff files
|
+ levstuff files
|
||||||
+ makedefs files
|
+ makedefs files
|
||||||
|
+ nethackw files
|
||||||
+ recover files
|
+ recover files
|
||||||
+ tile2bmp files
|
+ tile2bmp files
|
||||||
+ tilemap files
|
+ tilemap files
|
||||||
+ winhack files
|
|
||||||
|
|
||||||
6. On the Visual C menus, choose:
|
6. On the Visual C menus, choose:
|
||||||
Project | Set Active Project | winhack
|
Project | Set Active Project | nethackw
|
||||||
|
|
||||||
7. On the Visual C menus once again, choose:
|
7. On the Visual C menus again, choose either:
|
||||||
Build | Build winhack.exe
|
Build | Set Active Configuration | nethackw - Win32 Release
|
||||||
|
or
|
||||||
|
Build | Set Active Configuration | nethackw - Win32 Debug
|
||||||
|
|
||||||
|
The first will create the Release build of NetHackW which does
|
||||||
|
not contain all the debugging information and is smaller, and
|
||||||
|
runs quicker. The second will create the Debug build of NetHackW.
|
||||||
|
Unless you are debugging NetHackW, choose the Release build.
|
||||||
|
|
||||||
|
8. On the Visual C menus once again, choose:
|
||||||
|
Build | Build nethackw.exe
|
||||||
|
|
||||||
This starts the build. If all goes well, you will have a playable
|
This starts the build. If all goes well, you will have a playable
|
||||||
game of netack in the "binary" directory.
|
game of netackw in the "binary" directory.
|
||||||
|
|
||||||
In any case, it is likely that the IDE message window where you are
|
In any case, it is likely that the IDE message window where you are
|
||||||
doing the compiling will be occupied for a while. If all goes well,
|
doing the compiling will be occupied for a while. If all goes well,
|
||||||
you will get an NetHack executable called winhack.exe in the "binary"
|
you will get an NetHack executable called nethackw.exe in the "binary"
|
||||||
directory, along with all the support files that it needs.
|
directory, along with all the support files that it needs.
|
||||||
|
|
||||||
Running NetHack
|
Running NetHack
|
||||||
|
|
||||||
7. Make sure all of the support files -- Guidebook.txt, license,
|
9. Make sure all of the support files -- Guidebook.txt, license,
|
||||||
Defaults.nh, winhack.exe, nhdat, tiles.bmp, and recover.exe
|
Defaults.nh, nethackw.exe, nhdat, tiles.bmp, and recover.exe
|
||||||
-- were copied to the binary directory.
|
-- were copied to the binary directory.
|
||||||
(If not, find them in the tree and move them there yourself if they
|
(If not, find them in the tree and move them there yourself if they
|
||||||
exist. If they don't exist, something has gone wrong)
|
exist. If they don't exist, something has gone wrong)
|
||||||
@@ -344,32 +354,32 @@ Running NetHack
|
|||||||
|
|
||||||
Edit Defaults.nh to reflect your particular setup and personal
|
Edit Defaults.nh to reflect your particular setup and personal
|
||||||
preferences, by following the comments. As with all releases since
|
preferences, by following the comments. As with all releases since
|
||||||
3.2.1, HACKDIR defaults to the same directory as that where the winhack.exe
|
3.2.1, HACKDIR defaults to the same directory as that where the nethackw.exe
|
||||||
executable resides. You only need to set HACKDIR in Defaults.nh if,
|
executable resides. You only need to set HACKDIR in Defaults.nh if,
|
||||||
for some reason, you wish to override that.
|
for some reason, you wish to override that.
|
||||||
|
|
||||||
8a. Running from the command prompt:
|
10a. Running from the command prompt:
|
||||||
|
|
||||||
If you add the directory containing the NetHack executable
|
If you add the directory containing the NetHack executable
|
||||||
to your PATH,
|
to your PATH,
|
||||||
You can just type "winhack" to start it up. Alternatively, you
|
You can just type "nethackw" to start it up. Alternatively, you
|
||||||
can explicitly invoke it with a command such as
|
can explicitly invoke it with a command such as
|
||||||
"c:\games\nethack\winhack" (specifying whatever drive and directory
|
"c:\games\nethack\nethackw" (specifying whatever drive and directory
|
||||||
your NetHack executable resides in) each time.
|
your NetHack executable resides in) each time.
|
||||||
|
|
||||||
|
|
||||||
8b. Running from a Windows shortcut (win95 or NT4.x)
|
10b. Running from a Windows shortcut (win95 or NT4.x)
|
||||||
|
|
||||||
If you will be running it by launching it from program manager
|
If you will be running it by launching it from program manager
|
||||||
or from a shortcut, just use the following information when
|
or from a shortcut, just use the following information when
|
||||||
setting up the icon or shortcut.
|
setting up the icon or shortcut.
|
||||||
|
|
||||||
Description : NetHack 3.3.2
|
Description : NetHack 3.3.2
|
||||||
Command Line : C:\GAMES\NETHACK\WINHACK.EXE
|
Command Line : C:\GAMES\NETHACK\NETHACKW.EXE
|
||||||
|
|
||||||
(changing the directory in the Command Line to the appropriate one of course)
|
(changing the directory in the Command Line to the appropriate one of course)
|
||||||
|
|
||||||
9. Play NetHack. If it works, you're done!
|
11. Play NetHack. If it works, you're done!
|
||||||
|
|
||||||
|
|
||||||
PROBLEMS
|
PROBLEMS
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# SCCS Id: @(#)Makefile.nt 3.3 $Date$
|
# SCCS Id: @(#)Makefile.nt 3.3 2002/01/22
|
||||||
# Copyright (c) NetHack PC Development Team 1993-2001
|
# Copyright (c) NetHack PC Development Team 1993-2001
|
||||||
#
|
#
|
||||||
# NetHack 3.3.x Makefile for MS Visual C++ V4.x and above and MS NMAKE
|
# NetHack 3.3.x Makefile for MS Visual C++ V6.x and above and MS NMAKE
|
||||||
#
|
#
|
||||||
# Win32 Compilers Tested:
|
# Win32 Compilers Tested:
|
||||||
# - Microsoft 32 bit Visual C++ V4.x
|
# - Microsoft 32 bit Visual C++ V4.x
|
||||||
@@ -31,10 +31,10 @@ APPVER=4.0
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Set the gamedir according to your preference.
|
# Set the gamedir according to your preference.
|
||||||
# It must be present prior to compilation.
|
# If not present prior to compilation it gets created.
|
||||||
|
|
||||||
GAME = NetHack # Game Name
|
GAME = NetHack # Game Name
|
||||||
GAMEDIR = \games\nethackntty # Game directory
|
GAMEDIR = ..\binary # Game directory
|
||||||
|
|
||||||
#
|
#
|
||||||
# Source directories. Makedefs hardcodes these, don't change them.
|
# Source directories. Makedefs hardcodes these, don't change them.
|
||||||
@@ -529,6 +529,7 @@ tileutil: $(U)gif2txt.exe $(U)txt2ppm.exe
|
|||||||
#
|
#
|
||||||
|
|
||||||
$(GAMEFILE) : $(ALLOBJ)
|
$(GAMEFILE) : $(ALLOBJ)
|
||||||
|
@if not exist $(GAMEDIR)\*.* mkdir $(GAMEDIR)
|
||||||
@echo Linking....
|
@echo Linking....
|
||||||
@$(link) $(LFLAGS) -out:$@ @<<$(GAME).lnk
|
@$(link) $(LFLAGS) -out:$@ @<<$(GAME).lnk
|
||||||
$(ALLOBJ:^ =^
|
$(ALLOBJ:^ =^
|
||||||
@@ -553,6 +554,8 @@ $(U)makedefs.exe: $(MAKEOBJS)
|
|||||||
$(O)makedefs.o: $(CONFIG_H) $(INCL)\monattk.h $(INCL)\monflag.h $(INCL)\objclass.h \
|
$(O)makedefs.o: $(CONFIG_H) $(INCL)\monattk.h $(INCL)\monflag.h $(INCL)\objclass.h \
|
||||||
$(INCL)\monsym.h $(INCL)\qtext.h $(INCL)\patchlevel.h \
|
$(INCL)\monsym.h $(INCL)\qtext.h $(INCL)\patchlevel.h \
|
||||||
$(U)makedefs.c
|
$(U)makedefs.c
|
||||||
|
@if not exist $(OBJ)\*.* echo creating directory $(OBJ)
|
||||||
|
@if not exist $(OBJ)\*.* mkdir $(OBJ)
|
||||||
@$(CC) $(CFLAGSU) -Fo$@ $(U)makedefs.c
|
@$(CC) $(CFLAGSU) -Fo$@ $(U)makedefs.c
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -706,8 +709,9 @@ $(U)dgn_$(LEX).c: $(U)dgn_comp.l
|
|||||||
#==========================================
|
#==========================================
|
||||||
|
|
||||||
$(O)obj.tag:
|
$(O)obj.tag:
|
||||||
@if not exist $(O)*.* mkdir $(OBJ)
|
@if not exist $(OBJ)\*.* echo creating directory $(OBJ)
|
||||||
@echo directory $(OBJ) created >$@
|
@if not exist $(OBJ)\*.* mkdir $(OBJ)
|
||||||
|
@echo directory created >$@
|
||||||
|
|
||||||
#==========================================
|
#==========================================
|
||||||
# Notify of any CL environment variables
|
# Notify of any CL environment variables
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ copy ..\..\win\win32\tile2bmp.dsp ..\..\build >nul
|
|||||||
copy ..\..\win\win32\tiles.dsp ..\..\build >nul
|
copy ..\..\win\win32\tiles.dsp ..\..\build >nul
|
||||||
copy ..\..\win\win32\tiles.mak ..\..\build >nul
|
copy ..\..\win\win32\tiles.mak ..\..\build >nul
|
||||||
copy ..\..\win\win32\tilemap.dsp ..\..\build >nul
|
copy ..\..\win\win32\tilemap.dsp ..\..\build >nul
|
||||||
copy ..\..\win\win32\winhack.dsp ..\..\build >nul
|
copy ..\..\win\win32\nethackw.dsp ..\..\build >nul
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo "Decoding/Copying a couple of bitmaps"
|
echo "Decoding/Copying a couple of bitmaps"
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ Package=<4>
|
|||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
Project: "winhack"=.\build\winhack.dsp - Package Owner=<4>
|
Project: "nethackw"=.\build\nethackw.dsp - Package Owner=<4>
|
||||||
|
|
||||||
Package=<5>
|
Package=<5>
|
||||||
{{{
|
{{{
|
||||||
|
|||||||
Reference in New Issue
Block a user