
721: Angband 4.2.3-171+ \\ Compiling & playing the ASCII console version in Windows through Cygwin
[This guide still works, but I've got an updated, streamlined version--using the "git" package to pull down the source code and keep it up to date--on the Angband forum, with additional notes: http://angband.oook.cz/forum/showthread.php?p=156639 ]
0:00 - start
2:20 - Cygwin
12:22 - Angband
18:45 - Compile
26:32 - Set
31:41 - Run
37:00 - game options
42:31 - saved game files
44:03 - wrap!
Based on reading the official manual https://angband.readthedocs.io/en/latest/hacking/compiling.html#native-builds and help on the forum from Angband devs backwardsEric and Nick : )
Please note:
- The steps given here do NOT make a Windows executable of Angband; rather, they make a Cygwin-specific executable of Angband that can only be run through Cygwin: in Windows, you first run Cygwin, then you run this Angband executable through Cygwin
- The steps below only make the single-window, ncurses ASCII console version of Angband, with its optional integrated "subwindow" terminal areas
- This process will take at least about 1.2 GB of drive space
- You can play the latest console versions of Angband and a bunch of variants, without all this bother, right through your web browser at https://angband.live
- I have almost no idea what I'm doing; the Angband - Development forum's stickied "Getting Angband from Github and compiling it" thread, from 2011 http://angband.oook.cz/forum/showthread.php?t=4302 , could be the proper dev way; I just wanted a local console version I could run on my Windows laptop--so:
1) Cygwin
a) Download the Cygwin set-up utility: https://www.cygwin.com/setup-x86_64.exe
b) Run it
c) I installed under a directory of my own (c:\downloaded\cygwin) rather than under Program Files or other Windows dir)
d) I don't know what download "site" is best to select during set-up; I used (https) mirrors.sonic.net because it sounded fast 'p', and actually was faster than the two others I tried
e) In Setup, get these four additional packages: clang, make, libncurses++w10, libncurses-devel
f) If you'll be using the latest Angband source files, rather than a tagged release, also get these four packages: automake, autoconf, m4, libtool
2) Angband
Either
a) Get the latest Angband source files--these will require the "autogen" step (step 3b below) and packages (step 1f above)
https://api.github.com/repos/angband/angband/tarball
Or
b) Get the source files for a tagged Angband release (these steps might not work for old releases)
https://github.com/angband/angband/releases/ -- the source code is the asset ending in ".tar.gz" under each release
Then
c) Extract the Angband source files from the downloaded .tar.gz archive to the folder of your choice; these steps will assume you extract the source files--not including the containing folder or two they're in in the outer layer of the .tar.gz--to a folder you make and name "angband," inside the folder where you installed Cygwin; so for instance, since I installed Cygwin to c:\downloaded\cygwin\, I ended up with Angband's base README.md at c:\downloaded\cygwin\angband\README.md
(I use 7-zip ( https://www.7-zip.org/ ) for .tar, .gz, etc in Windows)
d) (Optional) If you want to give your compiled version its own version number, you can:
i. Put the number in a text file named "version" in the root angband folder (where README.md is located)
and/or
ii. (At any time, doesn't have to be before compiling: ) Edit your version number directly into the title screen file \lib\screens\news.txt ; colors for the markup ("Magenta-pink" doesn't work) are listed in \lib\customize\message.prf
3) Compile
a) Run Cygwin
b) In the Cygwin terminal window, enter:
cd /angband
c) If you downloaded the latest Angband source files rather than a tagged release, enter:
./autogen.sh
and wait for it to finish
d) Enter:
./configure --with-no-install
e) After that finishes, enter:
make
4) Set
a) Click the green/black Cygwin icon in the upper left window corner and select "Options..."
b) Under "Terminal," set "Type" to "xterm-256color"
c) Set other settings as you like; I like
Looks: Cursor: Block; [ ] Blinking (unchecked)
Text: Font: Consolas, 20pt
Window: Default size: Columns: 60; Rows: 30; Scrollbar None
d) After make finishes, exit Cygwin to reset the terminal type by entering:
exit
5) Run
a) Run Cygwin
b) If necessary for your terminal font and/or window size settings, press Alt+Enter to toggle to full-screen
c) If you don't use the game's subwindows, run the angband.exe game executable you compiled by entering:
/angband/src/angband
d) For subwindows, run the game by specifying the number of subwindows with the -mgcu option in the command line, where the -n digit is from 2 to 6: subwindow count + 1 for main display; I use 3 subwindows, so I do:
/angband/src/angband -mgcu -- -n4
e) Hopefully, Angband runs!
12/14/21
#angband #roguelike #freegame #opensourcegame #opensource #cygwin #ncurses
Other Videos By smbhax 2000
Other Statistics
Angband Statistics For smbhax 2000
smbhax 2000 currently has 3,204 views spread across 53 videos for Angband. This game accounts for over 3 days of watchable video on his channel, roughly 2.40% of Angband content that smbhax 2000 has uploaded to YouTube.