Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Development (http://angband.oook.cz/forum/forumdisplay.php?f=10)
-   -   Mac save file crash bug - dead or retired character, with subwindows set in prefs (http://angband.oook.cz/forum/showthread.php?t=4125)

Taha February 12, 2011 03:19

Mac save file crash bug - dead or retired character, with subwindows set in prefs
 
1 Attachment(s)
Sumary: Any savefile with a dead or retired character in it that has loaded this preference file will not open in the current nightlies on the mac. Haven't tried any other OS.

Other characters with a fresh savefile and preferences work when dying and restarting. But with a fresh character and pref file, if I copy the # Window 'Term-X' Settings from my old preference file to the new one, the subwindows all show up correctly, but if I then die, the game crashes loading the savefile. They look exactly the same, but with some windows enabled.

Manually setting up the window options sometimes crashes it after death, sometimes not. I can't make that happen consistently.

Also, at some point during this process it destroyed all my autoinscriptions, I loaded from a file and then saved back to the same file and the inscriptions weren't saved. They were used for that character, but were gone when I loaded the preferences on a new character.

I have been using this pref file (updated occasionally) since pre 3.1.

Can anyone else check this out? Tired of restarting characters and having to set up all the options again. Auto pickup is set to off by default? Really? How do people play like that?
________
BustyMilf live

d_m February 12, 2011 05:36

Thanks for reporting this.

It turns out this happened if you had the player (basic) subwindow open.

The bug is fixed in staging and master and will be available with the next nightly build.

Taha February 12, 2011 15:45

Explains why it happened only intermittently when I randomly chose some window options before suiciding.

Thanks for the quick fix. My old character works again, with monster memory and autoinscriptions intact.

Are autoinscriptions now stored in the savefile rather than the pref file? They are still there in my save, but looking through the pref file that section is blank. Even after I choose "save options" to a fresh pref file, all I have is:
# Autoinscription settings
# B:item kind:inscription
but the autoinscriptions are still with my character somewhere.

And keymaps and macros don't get saved with all the other options, only when I specifically save those from the interact with macros submenu. I thought it used to save / load all of them when you saved / loaded a user pref file.
________
Colorado marijuana dispensary

d_m February 12, 2011 16:10

I have to say that this isn't a piece of the code I am very familiar with.

I know at one point Magnate was trying to redo the savefile so it was harder to lose this kind of information, but I'm don't know that he'd done anything on it yet, and he's taking a break.

I will ask on the dev channel and see if someone knows something more.

myshkin February 12, 2011 22:35

Quote:

Originally Posted by Taha (Post 48598)
Are autoinscriptions now stored in the savefile rather than the pref file? They are still there in my save, but looking through the pref file that section is blank. Even after I choose "save options" to a fresh pref file, all I have is:
# Autoinscription settings
# B:item kind:inscription
but the autoinscriptions are still with my character somewhere.

And keymaps and macros don't get saved with all the other options, only when I specifically save those from the interact with macros submenu. I thought it used to save / load all of them when you saved / loaded a user pref file.

We could definitely stand to handle and document these various forms of saving better. In nightlies, autoinscriptions get saved to the savefile along with squelch information. The "save options" menu item in the top-level options menu does not write keymap or macro information. I'll see what we can do about this.

myshkin February 12, 2011 23:13

I've modified the options code so that the top-level "save options" choice saves keymaps and macros. Your prefs file also no longer has the reference to autoinscriptions, since those get saved in the savefile. The changes should show up in the next nightlies.

Taha February 13, 2011 00:24

Thanks for clarifying.

I have lost my savefile on corrupted saves or save compatability breakage using nightlies a number of times, if that caused loss of all my autoinscriptions that would be a HUGE deal for me. They should be in a manually editable file somewhere.

Copying other people's autoinscriptions for people learning the game is also a plus of the prf files. I think keeping everything possible in plain text is ideal.
________
Live Sex Webshows


All times are GMT +1. The time now is 03:57.

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