Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old August 7, 2011, 19:31   #1
relic
Apprentice
 
relic's Avatar
 
Join Date: Oct 2010
Location: Sweden
Posts: 76
relic is on a distinguished road
Pref files

I started a new character in 3.3.0, changed options as I want them, and saved them. In order to get these options for all characters, I figured that I would name the file something that would be loaded by Angband at startup, you know like it used to do. So I named it pref-mac.prf which has worked before. But starting another new character these prefs were not loaded. Am I doing something wrong? The pref file is saved in /user/library/preferences/Angband in OSX. Are pref files there read and loaded by Angband?


I could manually copy from one file to another but I refuse to believe that such a clumsy method should be necessary.
relic is offline   Reply With Quote
Old August 7, 2011, 20:28   #2
dos350
Knight
 
dos350's Avatar
 
Join Date: Sep 2010
Location: nimbin, australia
Posts: 546
dos350 is on a distinguished road
id like 2 say that b4 this version pref files were bad
__________________
~eek

Reality hits you -more-

S+++++++++++++++++++
dos350 is offline   Reply With Quote
Old August 8, 2011, 13:56   #3
relic
Apprentice
 
relic's Avatar
 
Join Date: Oct 2010
Location: Sweden
Posts: 76
relic is on a distinguished road
I also notice that saving options don't include birth options! Why not? I think that those are the options that one first of all would want to have the same for all characters. At least I do.

Am I the only one that thinks it is tedious to change birth options for every new character?

Thanks for any thoughts on this matter.
relic is offline   Reply With Quote
Old August 8, 2011, 14:38   #4
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,060
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by relic View Post
I also notice that saving options don't include birth options! Why not? I think that those are the options that one first of all would want to have the same for all characters. At least I do.

Am I the only one that thinks it is tedious to change birth options for every new character?
You shouldn't need to do this. A new character should start with the birth options of the previous character. Did you mean for every new savefile? If so, we kind of assume that people stick with the one savefile (to build up monster memory etc.).
__________________
"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
Magnate is offline   Reply With Quote
Old August 8, 2011, 15:38   #5
relic
Apprentice
 
relic's Avatar
 
Join Date: Oct 2010
Location: Sweden
Posts: 76
relic is on a distinguished road
Quote:
Originally Posted by Magnate View Post
You shouldn't need to do this. A new character should start with the birth options of the previous character. Did you mean for every new savefile? If so, we kind of assume that people stick with the one savefile (to build up monster memory etc.).
I see. Unfortunately I usually start with a new save-file every time, but I may have to change my habits here.
relic is offline   Reply With Quote
Old August 8, 2011, 16:20   #6
Nomad
Knight
 
Nomad's Avatar
 
Join Date: Sep 2010
Location: England
Posts: 958
Nomad is on a distinguished road
Yeah, I tend to use different save files for each class/race combination, and I'm forever forgetting to switch randarts on at the birth options when I start a new one. I'm not that bothered by lacking the monster memory when I start out; it makes encounters with uniques more exciting!
Nomad is offline   Reply With Quote
Old August 8, 2011, 23:42   #7
Max Stats
Swordsman
 
Join Date: Jun 2010
Posts: 324
Max Stats is on a distinguished road
Quote:
Originally Posted by relic View Post
I started a new character in 3.3.0, changed options as I want them, and saved them. In order to get these options for all characters, I figured that I would name the file something that would be loaded by Angband at startup, you know like it used to do.
There are two pref files that are loaded by default for all players: user.prf and pref.prf. However, the pref file loading code looks for pref files first in the lib/pref directory before trying the user pref directory. Since both of these files ship with the distribution, they will be found in lib/pref and even if you save your prefs to one of these names, they won't load. AFAIK, there are no other global pref filenames. Unless this has changed in 3.3, you can use a class name as a pref filename (Warrior.prf, Mage.prf, etc.) and it will be loaded every time you play a character of that class, but that is about the best you can do.

If you want global pref settings, I can think of three options:
  • Modify process_some_user_pref_files in dungeon.c and add a call to process_pref_file with a static filename of your choosing (like global.prf).
  • Save your options to a new file and copy the relevant lines into user.prf in your lib/pref directory.
  • Bug the maintainers to add a new global user pref filename (or open a ticket requesting it).
Max Stats is offline   Reply With Quote
Old August 9, 2011, 00:35   #8
Zikke
Veteran
 
Join Date: Jun 2008
Location: Los Angeles
Posts: 1,069
Zikke is on a distinguished road
Quote:
Originally Posted by Nomad View Post
Yeah, I tend to use different save files for each class/race combination, and I'm forever forgetting to switch randarts on at the birth options when I start a new one. I'm not that bothered by lacking the monster memory when I start out; it makes encounters with uniques more exciting!
I use different save files every time I make a new character also. At this point I usually remember all of the pertinent info about monsters (usually from dying to them in the past) so I don't worry about monster memory. I wish the monster memory did save locally so that any character on that computer would add to the same memory.
__________________
A(3.1.0b) CWS "Fyren_V" NEW L:50 DL:127 A++ R+++ Sp+ w:The Great Axe of Eonwe
A/FA W H- D c-- !f PV+++ s? d P++ M+
C- S+ I- !So B ac++ GHB? SQ? !RQ V F:
Zikke is offline   Reply With Quote
Old August 9, 2011, 07:13   #9
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,060
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by Zikke View Post
I use different save files every time I make a new character also. At this point I usually remember all of the pertinent info about monsters (usually from dying to them in the past) so I don't worry about monster memory. I wish the monster memory did save locally so that any character on that computer would add to the same memory.
That's been planned for a while, and is closer now we have the new savefile format. Any year now ...
__________________
"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
Magnate is offline   Reply With Quote
Old August 9, 2011, 07:20   #10
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,060
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by Max Stats View Post
There are two pref files that are loaded by default for all players: user.prf and pref.prf. However, the pref file loading code looks for pref files first in the lib/pref directory before trying the user pref directory. Since both of these files ship with the distribution, they will be found in lib/pref and even if you save your prefs to one of these names, they won't load.
Thank you - I didn't know that was the problem! It seems to me that the obvious short term fix is to ship only pref.prf in lib/pref, and allow the user to save user.prf in their private dir as their private global pref file (let's not forget that on multi-user systems, pref.prf would be loaded for all players). I can't imagine there's a need for both of them to be in lib/pref.

In the longer term we want to rationalise this whole issue with a single player-specific "settings" file, with window positions, colours, keymaps, autoinscriptions etc. etc. When you save any of these things, the game should ask you whether you want them applied for all chars, or for this class only, or this char only - etc.
__________________
"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
Magnate is offline   Reply With Quote
Reply


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
Request for pref files takkaria Vanilla 7 May 1, 2012 07:05
r1971 pref file bug? Zikke Vanilla 1 May 25, 2010 07:28
/lib/pref/Makefile PaulBlay Development 1 April 10, 2009 20:38
Pref file handling PaulBlay Development 9 February 24, 2009 17:40
Question about "flvr" pref files. Zero Vanilla 1 January 14, 2008 19:13


All times are GMT +1. The time now is 08:20.


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