1791: Angband \\ How to compile Angband's latest code & SDL2 front-end w/ sound!

Channel:
Subscribers:
1,840
Published on ● Video Link: https://www.youtube.com/watch?v=RPa6ci865t8



Game:
Angband (1992)
Category:
Tutorial
Duration: 33:11
34 views
3


A video tutorial on compiling the open source roguelike game Angband from its latest code, with its SDL2-with-sound front-end, though the free MSYS2 build environment for Windows.

Step-by-step directions below.

Huge thanks to Angband lead programmer backwardsEric, and maintainer Nick, for their seemingly inexhaustible wisdom and patience. : )

My Angband playlist: https://www.youtube.com/playlist?list=PLZO3OPzPjIzPDGSovCSUGiEGwNrTKPb-C

0:00 - start
1:06 - installing MSYS2
2:05 - running mingw64.exe
4:51 - updating MSYS2
7:07 - installing packages
10:32 - pulling down the Angband source code
11:18 - building Angband
14:39 - running Angband
17:17 - configuring the front-end (basic)
18:57 - enabling sound
20:20 - rambling around town & dungeon
24:14 - building an updated version
27:37 - uninstalling

How to build Angband from the latest code, with the SDL2 front-end, with sound:

Download the latest MSYS2 self-extracting archive (the *sfx.exe download in the released Assets) from https://github.com/msys2/msys2-installer/releases. Running it auto-extracts to an "msys64" folder in the same directory as the *sfx.exe; you can move the extracted files to some other folder if you prefer.

Wherever you have them, go into that folder and run mingw64.exe (the blue one); it will auto-update. Once that's finished, enter (you can right-click and Paste these lines into the mingw64.exe terminal window; you will be asked to confirm some of them by pressing "y"):

pacman -Syu --noconfirm
(when it closes, relaunch)
pacman -Syu --noconfirm
pacman -S git

pacman -S make mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_image
pacman -S mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_mixer

git clone https://github.com/angband/angband.git
cd angband
cd src
make -f Makefile.msys2.sdl2 SOUND=yes

The build process, when successful, puts a fresh angband.exe in your /home/angband folder, one layer up from the /src folder.

You can launch the game by double-clicking the angband.exe (in /home/[username]/angband/ from your root msys2 folder), although the recommended thing would be to make a shortcut to the .exe, right-click it and select Properties, then add "-uPLAYER" without the quotes to the end of its Target field--this will make it so that it auto-loads the default-named "PLAYER" character (you can also use a customized name, for instance I might use "-uSmbhax").

If you want to run it from the mingw64.exe terminal, if you were compiling (in the src folder), enter

cd ..

to back out one layer; on the other hand, if you came in from just running mingw64.exe fresh, you would enter

cd angband

to go INTO the first layer of the angband project. Once in /angband, to run the compiled .exe, enter

./angband.exe -uPLAYER

Once in the game, turn on sound by typing "=ab" to get to the sound option toggle, press Enter to toggle it on, then press the s key to save the setting.

~~~

To update and build in the future, all you need to do to pull down and compile the latest code again--barring code updates that could always complicate things slightly--is run mingw64.exe and enter

pacman -Syu --noconfirm
cd angband
git pull
cd src
make -f Makefile.msys2.sdl2 SOUND=yes

(To force rebuild if you're getting weird build errors that may be from old code bits laying around--I never actually had to do this for Angband though--enter

make -Bf Makefile.msys2.sdl2 SOUND=yes

)

A lot of this is from the Angband manual, at https://angband.readthedocs.io/en/latest/hacking/compiling.html#using-msys2-with-mingw64

Note: when uninstalling, by deleting your root MSYS2 folder, Windows may warn that a couple folders can't be deleted because they're "open in another program" or something. Rebooting resolves this, or you can follow the steps here: https://learn.microsoft.com/en-us/answers/questions/210462/the-action-cant-be-completed-because-the-folder-or , namely

~~~
Open resource monitor (Windows +R to open Run then type Resmon.exe)
Expand "associated handles"
Search for the file you need
Close the process that has the handle
~~~

So, I typed "msys2" in the "Associated handles" field, since I'd named my install folder "msys2," and that came up with the conhost.exe, two explorer.exe processes, and pacman.exe. Right-clicking and choosing to close conhost.exe allowed me to delete the folders.

~~~~

For help and to participate with the Angband community, check out the forums at https://angband.live/forums

You can download Angband with its standard front end from the official site, https://rephial.org/

2/22/24

#angband #roguelike #dungeoncrawler #freegame #freegames #opensourcegame #opensourcegames #opensource #rpg #fantasy #fantasygame #fantasygames #videogame #videogames #pcgame #pcgames #freepcgames #pcgaming #sdl2 #game #games #gaming #gamingvideos #indiegame #indiegames #gameplay #playthrough #retrogame #retrogames #retrogaming #msys2 #howto #tutorial #mingw




Other Videos By smbhax 2000


2024-03-011801: Sonic Advance 2 & 3 GBA throw me into holes O.o
2024-02-291800: Big Bang Pro Wrestling NGPC \\ Fire Pro devs' mini arcade Fire Pro! Deitz IEW Champ - belt win
2024-02-281799: Neo Turf Masters NEOGEO \\ Arcade golfing to sweet lounge music ♪~♫ Humble Bundle ROM in MAME
2024-02-271798: Sonic Advance GBA \\ Stages get worse & worse & I cry a lot & give up & start Sonic Advance 2
2024-02-261797: NGPC: Puyo Pop, Puzzle Link 2, Puzzle Bobble Mini, Rockman Battle & Fighters, Shanghai Mini!
2024-02-251796: NGPC games: Unitron 2, Golf, Battle de Paradise, Cotton, Faselei, 21, NeoCup, Slugger, Tennis!
2024-02-241795: Garou Densetsu: First Contact NGPC \\ Rick Strowd playthrough! (JP cart in Eng: "Fatal Fury")
2024-02-241794: Super Monkey Ball Banana Mania PC \\ D-pad controls tweak; Sonic; Monkey Golf; Dark Banana!
2024-02-221793: Sonic Advance GBA \\ Sonic Pocket Adventure team made more Sonic 2 yrs later, as Dimps!
2024-02-221792: Sonic the Hedgehog: Pocket Adventure (NGPC) \\ Last stages & end boss!
2024-02-221791: Angband \\ How to compile Angband's latest code & SDL2 front-end w/ sound!
2024-02-211790: Mighty Final Fight (Famicom) \\ Mike Haggar playthrough! Vote Haggar for default character! =D
2024-02-201789: Final Fight 2 SFC \\ Maki playthrough! (dumped ROM in Mesen)
2024-02-191788: Sonic the Hedgehog: Pocket Adventure (NGPC) \\ Sonic by SNK on the Neo Geo Pocket Color!
2024-02-181787: Turbo Outrun Reimagined v0.3.6c Alpha PC (free) \\ Upside-down flying Ferrari!
2024-02-171786: Dumping SNK vs. Capcom: Match of the Millennium w/ a Sanni Cart Reader V5 & NGP adapter board!
2024-02-171785: Virtua Tennis 3 delisted demo PS3 \\ All playthrough: Nadal, V. Williams, Federer, Sharapova!
2024-02-161784: Sonic the Hedgehog 4: Episode II (PC) \\ Team up w/ Tails! Over & over! Lock on or die! Bhargh
2024-02-151783: Turbo Outrun Reimagined v0.3.5 Alpha PC (free) \\ Upgrading Vette's monster engine was bad = o
2024-02-141782: Sonic the Hedgehog 4: Episode I (PC) \\ 2nd play! UGH! I give up! = PPP
2024-02-131781: Virtua Fighter 4 PS2 \ Vanessa KUMITE -- now in SuperSampled internal 4K! (PCSX2) (& vs VF4E)



Tags:
smbhax 2000
game
single player
ben chamberlain
1080p
angband
roguelike
windows
open source
free
fantasy
dungeon crawler
video game
pc game
free game
open source game
rpg
ascii
perfect dos vga 437
gaming
gaming video
pc gaming
gameplay
playthrough
arcade stick
ugluk
bolg
ulfast



Other Statistics

Angband Statistics For smbhax 2000

smbhax 2000 currently has 3,244 views spread across 54 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.