Build Instructions for ASCII Version on Windows - hyvanmielenpelit/GnollHack GitHub Wiki
Preparation
- Install Visual Studio — Visual Studio Installation for ASCII and Windows GUI Version Development.
- Clone Repository — Clone Repository in Visual Studio.
- NEW — If you are using an old version of the repository, you may need to delete old directories, because we have changed some paths.
Build
- Open GnollHack Solution in Visual Studio.
- In Solution Explorer, right-click on GnollHack solution and select Properties at the end of the pop-up menu. This opens a window entitled "Solution 'GnollHack' Property Pages". In the list box on the left, select Configuration Properties > Configuration. A table of projects in the solution should appear. In Build column, untick GnollHackW from being built, unless you have the requisite tilemap and FMOD sound banks.
- If you need tiles to be on, for example, for generating the tileset definition file, then also do the following: In Solution Explorer, right-click on GnollHack project and select Properties at the end of the pop-up menu. This opens a window entitled "GnollHack Property Pages". In the list box on the left, select Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions. There should be a semicolon-separated list of various definitions, starting with NO_TILES. Delete the NO_TILES and the ensuing semicolon, and keep the rest.
- Select x64 as your solution platform.
- Select Debug as your solution configuration. You can also use Release, when you plan to build a release build.
- Build GnollHack using Rebuild Solution.
- You should now be able to find GnollHack.exe at
bin\Debug\x64
. Double-click on it to play.
Debugging
After building the solution according to the above instructions (using the Debug solution configuration):
- Set GnollHack as startup project.
- Hit the green Start button to debug the program.