![]() |
#1 |
Rookie
Join Date: Oct 2014
Posts: 11
![]() |
Sharing Hall of Fame on multiuser system
Hi!
I've installed angband on a shared Linux system as a fun diversion for the local users. But everyone only sees their own hall of fame! Is there anyway to symlink a file in the filesystem somewhere so that the hall of fames are linked together? Thanks! -Travis |
![]() |
![]() |
![]() |
#2 |
Rookie
Join Date: Oct 2014
Posts: 11
![]() |
So I've tried recompiling with:
$ ./configure --with-setgid=games But it seems like if you're on a UNIX-y system you end up with PRIVATE_USER_PATH set anyways: https://github.com/angband/angband/b...c/config.h#L55 So is the solution just to delete those lines? Thanks, -Travis |
![]() |
![]() |
![]() |
#3 |
Rookie
Join Date: Oct 2014
Posts: 11
![]() |
Tried deleting the following lines:
Code:
/* * OPTION: Create and use a hidden directory in the users home directory * for storing pref files and character dumps. */ #if defined(UNIX) && !defined(MACH_O_CARBON) && !defined(PRIVATE_USER_PATH) # define PRIVATE_USER_PATH "~/.angband" #endif |
![]() |
![]() |
![]() |
#4 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,426
Donated: $60
![]() ![]() |
I'm no expert, but you could try
Code:
./configure --without-private-dirs
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#5 |
Rookie
Join Date: Oct 2014
Posts: 11
![]() |
|
![]() |
![]() |
![]() |
#6 |
Veteran
Join Date: Jun 2007
Posts: 1,391
![]() |
I don't know how to get this working, but I think I ought to point out that there are probably(!) numerous security issues with this even if you get it working. (Angband and C codebases of its age are not exactly known for good security practices.)
|
![]() |
![]() |
![]() |
#7 |
Angband Devteam member
Join Date: Apr 2007
Posts: 334
![]() |
I think you need to specify --with-setgid=<groupname>. I suspect that these code paths are old and not well tested, though.
|
![]() |
![]() |
![]() |
#8 | |
Angband Devteam member
|
Quote:
This is a shame, because shared halls of fame are a neat idea, but you're the first person in about a decade to want one. Let me know if you're still trying to get it working - I am back to building Angband and may be able to help.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila |
|
![]() |
![]() |
![]() |
#9 | |
Rookie
Join Date: Oct 2014
Posts: 11
![]() |
Quote:
When you first start up Angband after doing this hack, it will say Code:
angband: Cannot create '/usr/local/var/games/angband/user' Code:
$ sudo mkdir /usr/local/var/games/angband/user $ sudo chown root:games /usr/local/var/games/angband/user Now what would be really cool is if it read other people's in-progress saves into the Hall of Fame display. I wonder if I could hack that together (I don't know much C, only Python and Javascript yikes!). But I feel I could hack it well enough that it would work on my system, even if it didn't work on others'. |
|
![]() |
![]() |
![]() |
#10 | |
Angband Devteam member
|
Quote:
The way to achieve your last idea is to have the game add the in-progress savefile to the Hall of Fame on exit, just as if the character's dead. The difficult bit is to *delete* the previous entry for the same character so that a living character appears only once. To my knowledge the hall of fame code is add-only.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
quest system? | Dark | v4 | 20 | February 24, 2012 22:02 |
Resist system | Jungle_Boy | Development | 65 | August 30, 2011 04:10 |
Kill count, hall of fame | Raggy | Vanilla | 10 | June 6, 2011 23:07 |
3.1.1 hall of fame? | hitogoroshi | Vanilla | 2 | October 9, 2009 00:49 |
Hall of Fame | stchang | Vanilla | 1 | December 18, 2008 22:36 |