Go Back   Angband Forums > Angband > Variants

Thread Tools Display Modes
Old October 31, 2014, 10:10   #1
Join Date: Nov 2012
Posts: 3
FingO1981 is on a distinguished road
Cannot open Hengband on OSX Mavericks

Last week I wanted to play Hengband again and come back from a rather long hiatus in that game. However, in between times I updated my computer and am now working with OSX 10.9.2 and when I try to open hengband a message tells me that I cannot open it. Does anyone know a solution to that problem or can give me hints regarding building up the game from the source?
FingO1981 is offline   Reply With Quote
Old November 30, 2014, 07:23   #2
Join Date: Oct 2012
Posts: 21
Maddz is on a distinguished road
I tried recompiling after I did the Mavericks upgrade but it didn't work... I think there's a fair amount of work that needs doing before it will work. Part of the problem is that the Rosetta support was discontinued in Mavericks.

I also tried creating a Mac version of Poschengband:

"Whoever is doing the compiling will need Xcode and probably either X11 or XQuartz installed. The person running the program will need either X11 or XQuartz installed. If you are running 10.7 or earlier, one can find X11 as an optional install in the Installer or System Software disks. If you are running 10.8 or can't find how to install X11 one can install XQuartz here. XQuartz is just an open source and newer version of X11, so I usually use that.

The person doing the compiling will need to download the source code archive from the PosChengband site.
Unpack the archive and open the src directory.
Open the makefile.linux file using a text editor, and find the first line that doesn't start with '#' (line 137) and remove the -D"USE_GCU" from the line.
Open the equip.h file in a text editor and comment out or remove the line that says "typedef bool (*object_p)(object_type *o_ptr);" (line 71).
Open the fear.h file in a text editor and comment out or remove the line that says "typedef struct monster_type monster_type;" (line 4).
Open the bldg.c file in a text editor and comment out or remove the line that says "typedef bool (*object_p)(object_type *o_ptr);" (line 3301).
Change the line in int-map.c and str-map.c that says "#include <malloc.h>" to "#include <malloc/malloc.h>" (without quotes).
Open up a Terminal session, cd to the src directory, and type in "make -f makefile.linux" without the quotes and hit return. If everything went well one will get a massive quantity of text and a bunch of scary looking warnings that hopefully mean nothing, followed by successful completion. The last line should read "cp .. poschengband". If it doesn't then something went wrong with the compilation and one will need to find what error caused the compilation to fail. Generally look at the last few lines and look for the lines that start with "Error:", and try to fix what the compiler is complaining about.
Assuming the compilation completed successfully, move up one level to the main directory in the archive, and copy over the poschengband application and the lib folder to a new folder that will be the game folder.
Move the game folder to the player's computer.
Now for the player to play the game, do the following:
Move the game folder to an appropriate place for applications. I know that recent versions of Mac OS are sandboxed to various degrees, but I am not familiar with that so much.
Open the X11 or XQuartz application.
Open a terminal window (either within the XQuartz or X11 app or using another terminal application) and cd to the game folder.
Type "./poschengband" without quotes but with the ./ and hit return.
If everything went well you will get the splash screen. Hit the space bar to get "Savefile not found" message. Hit the space bar again to start the character creation process. Once you completed you can play the game. To get a listing of commands hit '?'. Hit control-x to quit, saving the game.
There are various command line options, to find those type "./poschengband -?" without quotes and hit return.
PosChengband and similar variants based on older versions of the source code will read and write to the lib folder. I don't know how the sandboxed versions of Mac OS deal with this. Hopefully it will only be a matter of giving the app permission to write to the lib folder. Otherwise one might have to move the app to different locations, such as maybe within your user space. If you have problems with this you might try posting to somewhere like the Angband Forum. There are a lot of users there running more recent versions of Mac OS who may be able to help you."

However neither I nor the bloke got it working, so I suspect more involved work needs doing on the source code. I tried following these instructions on Hengband and didn't get anywhere. I'm kind of resigned that if I want to continue playing Hengband I need to set up the old iBook and use that...

If you get a working version, please post it here!
Maddz is offline   Reply With Quote
Old November 30, 2014, 14:52   #3
Join Date: Nov 2014
Posts: 6
hading is on a distinguished road
I have to confess that I usually just take the easy way out and use Wine to play the windows versions of bands on OSX.
hading is offline   Reply With Quote
Old November 30, 2014, 15:07   #4
debo's Avatar
Join Date: Oct 2011
Location: Toronto, Canada
Posts: 2,393
debo is on a distinguished road
There are a bunch of us who play poscheng on OSX, but we use the GCU/terminal frontend. There are some configure and makefile shenanigans you have to play, but otherwise everything just works.
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'
debo is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sil on OS X Mavericks half Sil 10 June 6, 2014 10:01
Autorepeat with open locks Twilight Vanilla 13 August 10, 2010 04:45
Ring of open wounds Ignatius Vanilla 2 October 4, 2009 22:14
Registrations on the ToME forum are open again Nerdanel ToME 2 December 20, 2008 22:34
Would YOU open this vault? Dragonboneman AAR 30 November 2, 2007 19:27

All times are GMT +1. The time now is 19:21.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.