Save file recovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • buzzkill
    Prophet
    • May 2008
    • 2939

    Save file recovery

    Can someone out take a look at this R1626 save file and please try to fix it. It's my current competition#73 character. I play almost all my angband off of a flash drive so I can port my games between laptop and desktop. Well, something happened and now I can't open the file (probably Vista's fault, grumble, grumble). Angband now gives me the following error message.

    Code:
    Error (unreadable savefile (too old?)) reading 0.0.0 savefile.
    Please help. Currently #2 on the comp ladder and this is a pretty good character by my standards. I tried opening it in a text editor and it all seems to be there. Based on what I've seen and the file size, I'd say it's complete, just needs to be 'fixed'.
    Attached Files
    www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
    My banding life on Buzzkill's ladder.
  • Sirridan
    Knight
    • May 2009
    • 560

    #2
    Here you go.

    Opened it in visual studio, vista obliterated the header.... Looks like you lost monster memory and above in the header, but you have object memory and everything else below that.

    savefile.c
    Code:
    40	        { "rng", rd_randomizer, wr_randomizer, 1, 1 },
    41	        { "options", rd_options, wr_options, 1, 1 },
    42	        { "messages", rd_messages, wr_messages, 1, 1 },
    43	        { "monster memory", rd_monster_memory, wr_monster_memory, 1, 1 },
    44	        { "object memory", rd_object_memory, wr_object_memory, 1, 1 },
    45	        { "quests", rd_quests, wr_quests, 1, 1 },
    46	        { "artifacts", rd_artifacts, wr_artifacts, 2, 1 },
    47	        { "player", rd_player, wr_player, 2, 1 },
    48	        { "squelch", rd_squelch, wr_squelch, 1, 1 },
    49	        { "misc", rd_misc, wr_misc, 1, 1 },
    50	        { "player hp", rd_player_hp, wr_player_hp, 1, 1 },
    51	        { "player spells", rd_player_spells, wr_player_spells, 1, 1 },
    52	        { "randarts", rd_randarts, wr_randarts, 1, 1 },
    53	        { "inventory", rd_inventory, wr_inventory, 1, 1 },
    54	        { "stores", rd_stores, wr_stores, 1, 1 },
    55	        { "dungeon", rd_dungeon, wr_dungeon, 1, 1 },
    56	        { "objects", rd_objects, wr_objects, 1, 1 },
    57	        { "monsters", rd_monsters, wr_monsters, 1, 1 },
    58	        { "ghost", rd_ghost, wr_ghost, 1, 1 },
    59	        { "history", rd_history, wr_history, 1, 1 },
    basically it was a copy and paste (in a hex editor of course) from object memory and down.

    I loaded it fine in r1629 but savefile should be just fine in 1626. If not let me know and I'll fix it again when I get home using that version.

    Screen dump below.

    Also, tell me how you got so far so fast with your guy! Consider it payment :P

    Code:
    [TT][BC=black][COLOR=white]
                                                                                    
    [COLOR="#00FFFF"]Half-Troll      [/COLOR]#[COLOR="#808080"]%[/COLOR]#[COLOR="#808080"]%[/COLOR]#[COLOR="#808080"]% [/COLOR]#             % ##%### # ##[COLOR="#C08040"]'[/COLOR]#                            
    [COLOR="#00FFFF"]Curate               [/COLOR]# ##############%     %% #    #                            
    [COLOR="#00FFFF"]Priest               [/COLOR][COLOR="#808080"]%                 [/COLOR]%%% %%      ##################           
    LEVEL     [COLOR="#00FF00"]30         [/COLOR]################### # %##%%%#                  #           
    NXT    [COLOR="#00FF00"]32403                             [/COLOR]% %     # #                #           
    AU     [COLOR="#00FF00"]12562                             [/COLOR]% ####% %                  #           
    [COLOR="#808080"]/[/COLOR][COLOR="#C08040"]}[/COLOR][COLOR="#804000"]=[/COLOR][COLOR="#00FFFF"]=[/COLOR][COLOR="#FFFF00"]"~[[/COLOR][COLOR="#008040"]([/COLOR][COLOR="#C08040"])[/COLOR][COLOR="#808080"]][/COLOR][COLOR="#C08040"]]] [/COLOR]#[COLOR="#808080"]%%[/COLOR]#[COLOR="#808080"]%[/COLOR]##                     %    .% %%#                #           
    STR:   [COLOR="#00FF00"]18/95       [/COLOR]#                     ####%.#   #                #           
    INT:       [COLOR="#00FF00"]4       [/COLOR]###                       #.%   # ####        ####           
    WIS:   [COLOR="#00FF00"]18/20 [/COLOR][COLOR="#808080"]%[/COLOR]#### : #                       #.#   % #  ##### ####              
    DEX:      [COLOR="#00FF00"]15     [/COLOR]### #                       #.#   % #      # #                 
    CON:   [COLOR="#00FF00"]18/73       [/COLOR]# #                   %####[COLOR="#C08040"]'[/COLOR]#%##%.%%%##### #                 
    CHR:      [COLOR="#00FF00"]12       [/COLOR]# #                   #.................## #                 
                       # ###                 %.................##[COLOR="#C08040"]+[/COLOR]#####             
    Cur AC   [COLOR="#00FF00"]117 [/COLOR]##### #   #                 %....@.............[COLOR="#606060"]..[/COLOR][COLOR="#C08040"]'   [/COLOR]#             
    HP  [COLOR="#00FF00"]311[/COLOR]/ [COLOR="#00FF00"]311     [/COLOR]# ### ################%%%.................#[COLOR="#606060"]..[/COLOR]### #             
    SP   [COLOR="#FFFF00"]24[/COLOR]/  [COLOR="#00FF00"]44     [/COLOR]#   #       [COLOR="#808080"]..........[/COLOR][COLOR="#C08040"]'[/COLOR]....................[COLOR="#606060"]..[/COLOR]# # ############# 
                     #   ################%%%%#.................[COLOR="#FF8000"]**[/COLOR][COLOR="#606060"].[/COLOR]# #               
                     #                       #[COLOR="#008040"]![/COLOR]................%% # ############### 
                     #                       #.................%% %                 
                 #####                       %################%%# #                 
    [COLOR="#00FF00"]Fast (+10)                                                  [/COLOR][COLOR="#804000"]###                 
    [/COLOR]2450' (L49)  Study (8) [COLOR="#00FF00"]ProtEvil Hero Blssd DTrap                                
    [/COLOR][/COLOR][/BC][/TT]
    Attached Files

    Comment

    • Sirridan
      Knight
      • May 2009
      • 560

      #3
      Note: There is one unintended side effect... You have the messages of the last two characters I played. (Death of one, and him hitting some townsfolk on the way down to level 1). But besides that and a new RNG, its the same save.

      Comment

      • Sirridan
        Knight
        • May 2009
        • 560

        #4
        Disregard last post, uploading a different version, based off the original comp save file, so options are the same, at least disconnected stairs. Same RNG too.

        Comment

        • Sirridan
          Knight
          • May 2009
          • 560

          #5
          here it is, fixed again.

          Uses the original comp save file as the base, contains everything but monster memory, etc.
          Attached Files

          Comment

          • buzzkill
            Prophet
            • May 2008
            • 2939

            #6
            Originally posted by Sirridan
            Also, tell me how you got so far so fast with your guy! Consider it payment :P
            Thanks for the super fast service!!

            Just lucky, I guess. So lucky in fact that the RNG had to pull out all the stops and corrupt my savefile in it's quest to kill off Toothy. I've had more than a couple close calls. Detect treasure and dive. Clean orc pits and dive. The RoS was a lucky find, but even at +10 speed I still feel underpowered for the DL's now and ahead.

            Question: In the self knowledge menu it shows uniques that I've already killed as being alive once again. Does that mean that I have to kill them again? Not a big deal, since I haven't left my comfort zone (killing uniques) yet. Killing the ones that were dead, again, should be easy (though a little scummy).

            Got the Toothy-fixed-agin. Thanks. With my IRL memory being poor, losing monster memory is really going to hurt. I guess it's back to school for Toothy.
            Last edited by buzzkill; August 20, 2009, 01:45.
            www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
            My banding life on Buzzkill's ladder.

            Comment

            • Sirridan
              Knight
              • May 2009
              • 560

              #7
              Originally posted by buzzkill
              Thanks for the super fast service!!

              Just lucky, I guess. So lucky in fact that the RNG had to pull out all the stops and corrupt my savefile in it's quest to kill off Toothy. I've had more than a couple close calls. Detect treasure and dive. Clean orc pits and dive. The RoS was a lucky find, but even at +10 speed I still feel underpowered for the DL's now and ahead.

              Question: In the self knowledge menu it shows uniques that I've already killed as being alive once again. Does that mean that I have to kill them again? Not a big deal, since I haven't left my comfort zone (killing uniques) yet. Killing the ones that were dead, again, should be easy (though a little scummy).
              Honestly not sure, I don't know if dead uniques are saved in the monster memory block or somewhere else, I'll look that up. Use the second file though, toothy_fixed_again.zip which is better and I know it works in 1626.

              Comment

              • Sirridan
                Knight
                • May 2009
                • 560

                #8
                Yes those uniques will be back, they are saved in monster memory which was destroyed, and I don't know where it starts in your old file if any was left.

                Comment

                • buzzkill
                  Prophet
                  • May 2008
                  • 2939

                  #9
                  That's fine. I'll just ignore their drops should I encounter them again. I get a perverse pleasure from killing Baldor anyhow.
                  www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
                  My banding life on Buzzkill's ladder.

                  Comment

                  • Sirridan
                    Knight
                    • May 2009
                    • 560

                    #10
                    Originally posted by buzzkill
                    That's fine. I'll just ignore their drops should I encounter them again. I get a perverse pleasure from killing Baldor anyhow.
                    I'm not the only one!

                    Glad I could help

                    Comment

                    • PowerDiver
                      Prophet
                      • Mar 2008
                      • 2820

                      #11
                      Originally posted by buzzkill
                      Question: In the self knowledge menu it shows uniques that I've already killed as being alive once again. Does that mean that I have to kill them again?.
                      It should mean that. If you saved an old char dump, or do not overwrite a recent one posted to the comp ladder, in theory it should be possible to parse the uniques killed from the dump and use that info to fix the savefile. I don't know if it is worth the effort, but if you really really think it is worth it, send me mail and I will try to help.

                      Comment

                      • buzzkill
                        Prophet
                        • May 2008
                        • 2939

                        #12
                        Originally posted by PowerDiver
                        It should mean that. If you saved an old char dump, or do not overwrite a recent one posted to the comp ladder, in theory it should be possible to parse the uniques killed from the dump and use that info to fix the savefile. I don't know if it is worth the effort, but if you really really think it is worth it, send me mail and I will try to help.
                        Thanks PD. If you'd like to take a shot at it, go ahead. Grab the toothy-fixed-again from earlier in this thread (I haven't played since). It doesn't mean a whole lot to me as I haven't killed any 'tough' uniques yet, so don't put yourself out. Re-killing them won't be a problem. It just feels a little scummy. I don't have a recent dump (vista fixed the error by deleting the entire angband directory. Luckily I had copied my save onto the desktop before letting vista do it's thing) but the 'character history' at the bottom of the character screen of the save file, or on the character dump (on the comp ladder) still shows the uniques killed.
                        www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
                        My banding life on Buzzkill's ladder.

                        Comment

                        • PowerDiver
                          Prophet
                          • Mar 2008
                          • 2820

                          #13
                          Originally posted by buzzkill
                          Thanks PD. If you'd like to take a shot at it, go ahead. Grab the toothy-fixed-again from earlier in this thread (I haven't played since). It doesn't mean a whole lot to me as I haven't killed any 'tough' uniques yet, so don't put yourself out.
                          If you don't care a lot, I'd rather not bother. Don't worry about killing the uniques again. The store lottery is much more important.

                          Comment

                          • Pete Mack
                            Prophet
                            • Apr 2007
                            • 6883

                            #14
                            Corrupted save-files... That's a legitimate use for reconstructing a character from a replay log!

                            In any case, I think it would really help for debugging.

                            Comment

                            • Sirridan
                              Knight
                              • May 2009
                              • 560

                              #15
                              Originally posted by Pete Mack
                              Corrupted save-files... That's a legitimate use for reconstructing a character from a replay log!

                              In any case, I think it would really help for debugging.
                              I could write a program for this, or to generate a character in town from a chardump.

                              Comment

                              Working...
                              😀
                              😂
                              🥰
                              😘
                              🤢
                              😎
                              😞
                              😡
                              👍
                              👎