![]() |
#1 |
Rookie
Join Date: Apr 2008
Posts: 4
![]() |
Angband and the Borg on Linux
Hello,
I've been a big fan of Angband since I was a kid, and it's nice to see it getting some attention again. I'm also quite proud of myself, because I've managed to compile it from the source on my Linux box. However, I'm wanting to compile it with the Borg. Is it even possible to compile in the APWborg for linux? Once I start to make the files I start running into problems... Code:
CC borg1.c CC borg2.c CC borg3.c borg3.c: In function ‘borg_read_unknown’: borg3.c:3348: warning: unused variable ‘ag’ borg3.c: In function ‘borg_read_scroll’: borg3.c:3489: warning: unused variable ‘ag’ borg3.c: In function ‘borg_spell_okay’: borg3.c:4119: warning: unused variable ‘ag’ borg3.c: In function ‘borg_prayer_okay’: borg3.c:4307: warning: unused variable ‘ag’ Code:
CC z-virt.c birth.o: In function `player_birth': /home/djp/angband-3.0.9b/src/birth.c:1758: undefined reference to `saver_creates' birth.o: In function `player_birth_aux': /home/djp/angband-3.0.9b/src/birth.c:1691: undefined reference to `saver_creates' birth.o: In function `player_birth_aux_3': /home/djp/angband-3.0.9b/src/birth.c:1543: undefined reference to `saver_creates' /home/djp/angband-3.0.9b/src/birth.c:1590: undefined reference to `saver_creates' util.o: In function `get_name': /home/djp/angband-3.0.9b/src/util.c:2888: undefined reference to `saver_creates' collect2: ld returned 1 exit status make[2]: *** [angband] Error 1 make[1]: *** [build] Error 2 make: *** [build] Error 2 |
![]() |
![]() |
![]() |
#2 |
Apprentice
Join Date: Apr 2007
Posts: 77
![]() |
I get the same error. Since the only main-*.c modified by the borg code is main-win.c, I would suspect the borg is for windows only.
The variable 'saver_creates' exists so that the game knows if it has to create a new character automatically (when running the borg through the screensaver). I did not spend too much time on this, so there is no guaranty, but apparently, in externs.h, changing the following lines : Code:
extern bool saver_creates; /* apw */ extern char screensaver_inkey_hack_buffer[1024]; /* apw */ extern int screensaver_inkey_hack_size; Code:
bool saver_creates; /* apw */ char screensaver_inkey_hack_buffer[1024]; /* apw */ int screensaver_inkey_hack_size; Also, but this probably comes from my inexperience with installing angband, the game was looking for borg.txt (lower case) in ~/.angband/Angband. You might want to add the following lines in borg9.c, around line 4725 (after the "if(!fp) part) : Code:
msg_print("Looking for borg.txt in"); msg_print( buf ); Edit: Ok, my current char is clvl 26 and going, so this seems to run as expected, after all. Hope that helps. ![]() Last edited by Remuz; April 12, 2008 at 15:11. |
![]() |
![]() |
![]() |
#3 | ||
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
Quote:
![]() Quote:
|
||
![]() |
![]() |
![]() |
#4 |
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
BTW, Unix people;
A version of 3.0.9b + APWBorg + fixes is available using "git". Install the git and git-core packages for your flavour of Unix and run: Code:
$ git clone git://repo.or.cz/angband/borg.git |
![]() |
![]() |
![]() |
#5 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,481
Donated: $60
![]() ![]() |
You might be interested in being able to run it in xscreensaver, then. I've mailed some stuff to your rephial address.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#6 | |
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,481
Donated: $60
![]() ![]() |
Well, you know, I do what I can...
![]()
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#8 |
Rookie
Join Date: Apr 2008
Posts: 3
![]() |
Takkaria's git link above was very useful to me. I got the source and am now running angband on linux. But I'm not able to run the borg.
I've followed the steps outlined in borgread.txt (it seems like 2 & 3 were not needed with the git link) but I can't seem to start the borg. The "angband" command starts the game, but ctrl-z just suspends the game, either when I execute the command on game start or when I have a character loaded. What am I missing? How do I start the borg? Thanks! --Chris |
![]() |
![]() |
![]() |
#9 | |
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Rookie
Join Date: Apr 2008
Posts: 3
![]() |
Thanks, that's what I needed to know!
--Chris |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Angband Borg 3.0.9 and windows | Zappa | Vanilla | 38 | October 27, 2010 20:31 |
How to change font in angband (linux)? | danvari | Vanilla | 3 | February 28, 2008 13:44 |
APW borg on OS X | pesachyonah | Vanilla | 7 | February 12, 2008 10:56 |
Angband 3.0.9 under Linux (graphics?) | strangeintp | Vanilla | 4 | January 19, 2008 22:44 |
Trouble compiling angband 3.0.9 on linux | RastaRuedi | Vanilla | 2 | August 1, 2007 17:28 |