Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old June 22, 2011, 16:31   #1
Raggy
Apprentice
 
Join Date: May 2011
Posts: 85
Raggy is on a distinguished road
Suggestion; savegames/pref/apex location

It's quite tiresome to copy these files between releases.

Ever since Windows Vista (?), we have a common location for storing savegames etc. Could you utilize this?
Raggy is offline   Reply With Quote
Old June 22, 2011, 20:54   #2
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,054
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate Send a message via Skype™ to Magnate
Quote:
Originally Posted by Raggy View Post
It's quite tiresome to copy these files between releases.

Ever since Windows Vista (?), we have a common location for storing savegames etc. Could you utilize this?
Well, other platforms make use of PRIVATE_USER_DIR, which defaults to ~/.angband/Angband, contains all user-saved prefs and has subdirs score/ and save/ which contain the user's score and save files.

So it's all working exactly as you would wish, except on Windows. It's been said quite a few times: none of the current devteam are Windows-based, so it's difficult for us to implement and test Windows changes. I don't think anyone would have any problem with the Windows port being made to use PRIVATE_USER_DIR (it would have to cater for different versions of Windows which use different home directory paths).

Basically, there's an opening on the devteam for anyone who wants to step up and be the Windows guy (or gal).
__________________
"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 June 22, 2011, 21:54   #3
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 565
fph is on a distinguished road
Quote:
Originally Posted by Magnate View Post
(it would have to cater for different versions of Windows which use different home directory paths).
I'm not a Windows guy, too, but IIRC the Right Way(TM) to do it is with the variable %USERPROFILE% (like you'd use $HOME on Linux). Otherwise you're entering a valley of pain, since the name of that directory is not only version-dependent but also localization-dependent. Like in "C:\Dokumente und Einstellungen".
fph is offline   Reply With Quote
Old June 22, 2011, 21:55   #4
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,054
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate Send a message via Skype™ to Magnate
Quote:
Originally Posted by fph View Post
I'm not a Windows guy, too, but IIRC the Right Way(TM) to do it is with the variable %USERPROFILE% (like you'd use $HOME on Linux). Otherwise you're entering a valley of pain, since the name of that directory is not only version-dependant but also localization-dependant (think " C:\Dokumente und Einstellungen").
But do all versions of Windows honour %USERPROFILE% ??
__________________
"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 June 23, 2011, 00:34   #5
Zyphyr
Adept
 
Join Date: Jan 2008
Posts: 135
Zyphyr is on a distinguished road
Quote:
Originally Posted by Magnate View Post
But do all versions of Windows honour %USERPROFILE% ??
It is used in Windows NT and anything descended from it (2000, XP, Vista, 7). So, not in 3.x, 9x, or Me.
Zyphyr 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 08:05
Messages term colors location krugar Development 3 September 12, 2010 02:11
Coolest starting location I've had Hariolor AAR 2 April 21, 2010 23:22
Installing UnAngband And possibly other variants) into given location SaThaRiel Variants 10 December 3, 2009 12:11
/lib/pref/Makefile PaulBlay Development 1 April 10, 2009 21:38


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


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.