![]() |
#1 |
Apprentice
Join Date: Jan 2008
Posts: 83
![]() |
Opening a savefile in Windows
On my old Macintosh computer, I could open a savefile, and the metadata in the Mac filesystem would launch Angband, which then used the savefile I opened without me having to select it explicitly.
On Windows, I haven't found a way to do this. I tried giving the savefile a .angband extension, and then setting Windows to always launch files of type .angband with Angband, but that didn't work for some reason. Is there a way to play the game without having to specify the same savefile every time I launch the application? |
![]() |
![]() |
![]() |
#2 | |
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#3 |
Knight
|
Wouldn't be too hard to add a new command-line option (for all ports) to load a savefile, though, would it?
e.g. angband -s Ed.angband or angband --savefile Ed.angband to load the Ed.angband savefile in the current directory? A user could then create a batch file, shell script, shortcut, or whatever to call "angband --savefile" with whatever savefile is passed in to the script, and associate *.angband files with that script, allowing them to be loaded by double-clicking them... Hmm, that actually sounds like something I might be capable of programming into the game, even with my limited knowledge of C... ![]() I'll see if I can come up with a patch against the latest svn to do that, since while takkaria could clearly do it, he surely has more pressing issues ![]()
__________________
You read the scroll labeled NOBIMUS UPSCOTI... You are surrounded by a stasis field! The tengu tries to teleport, but fails! |
![]() |
![]() |
![]() |
#4 | |
Adept
Join Date: Dec 2007
Posts: 167
![]() |
Quote:
I think that the 3.1.0 Mac port is able to open savefiles in the way the original poster wanted -- in 3.0.9 it launched Angband but you still needed to select the file. |
|
![]() |
![]() |
![]() |
#5 |
Knight
|
Wonder why that option only works in UNIX? Wouldn't it be trivial to make it work on all platforms? Or are the savefiles for some reason encoded in a platform-specific format (e.g. you can't load a Windows Angband savefile on a Mac)? Seems like an odd design decision to me, but I suppose there must have been some reason for doing it that way if it was done that way... :P
__________________
You read the scroll labeled NOBIMUS UPSCOTI... You are surrounded by a stasis field! The tengu tries to teleport, but fails! |
![]() |
![]() |
![]() |
#6 | |
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
Quote:
![]() The reason there's not much point in implementing this for the vast majority of Windows users is that setting up savefiles to load up the game requires an installer or lots of manual tweaking. |
|
![]() |
![]() |
![]() |
#7 |
Knight
|
Well, we have one Windows user (Zero) here who is willing to do the "manual tweaking" (renaming the savefile to have some extension like .angband, and setting up the file association, which is pretty trivial itself), so why not add the -u command-line option to the non-Unix ports, and worry about installers and the like later?
I guess my point is, Windows users are not necessarily unwilling to do a little extra work to get their programs working the way they want, so if Zero wants to set up the *.angband file association on his machine, why lock him out just because of some stereotype of Windows users being lazy? ![]() Or am I reading too much into your reply?
__________________
You read the scroll labeled NOBIMUS UPSCOTI... You are surrounded by a stasis field! The tengu tries to teleport, but fails! |
![]() |
![]() |
![]() |
#8 |
Apprentice
Join Date: Jan 2008
Posts: 83
![]() |
I think the best thing to do is simply keep track of what savefile was used last, and automatically use it when launching Angband.
Then we can talk about having more than one living character in a savefile. ![]() These are both very basic features that I'm surprised haven't been implemented yet. Not that I'm criticizing any of the maintainers--I'm happy with any improvements they can make with their limited time. |
![]() |
![]() |
![]() |
#9 | ||
Swordsman
Join Date: Jun 2007
Posts: 292
![]() |
Quote:
Quote:
![]() |
||
![]() |
![]() |
![]() |
#10 | |
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
Quote:
![]() Keeping track of the last savefile seems worthwhile, though, and a bunch of variants have done it. I think there are more important things for me to focus on at the moment (like game balance), but I always welcome patches! ![]() |
|
![]() |
![]() |
![]() |
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 |
Mr. Att icon for Windows port | ekolis | Vanilla | 7 | June 10, 2008 18:01 |
Savefile breakage happening soon | takkaria | Vanilla | 11 | May 17, 2008 18:04 |
Terms/Additional Windows | Rimmer | Vanilla | 4 | March 30, 2008 15:56 |
Windows Compiling and Makefiles | APWhite | Vanilla | 11 | August 22, 2007 21:22 |