Savefile is corrupted -- incorrect file header

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LordL
    Rookie
    • Jul 2021
    • 10

    Savefile is corrupted -- incorrect file header

    What to do about this error? Is there a way of restoring my save or at least monster memory?
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9637

    #2
    Originally posted by LordL
    What to do about this error? Is there a way of restoring my save or at least monster memory?
    Monster memory is saved separately, so that should be fine. If you post a savefile here (zip it first to attach to the forum) I can try to fix it. Did anything odd happen before the problem?
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • Egavactip
      Swordsman
      • Mar 2012
      • 442

      #3
      Coincidentally, I got this error for the first time ever this past week, using 4.22.

      Comment

      • LordL
        Rookie
        • Jul 2021
        • 10

        #4
        here is my save
        Attached Files

        Comment

        • Nick
          Vanilla maintainer
          • Apr 2007
          • 9637

          #5
          I can't recover anything, I'm afraid - the savefile is all 0 bytes (while being the right sort of size for a regular savefile).

          Can you give me any idea what the last thing that happened to this file before it failed to load was?
          One for the Dark Lord on his dark throne
          In the Land of Mordor where the Shadows lie.

          Comment

          • LordL
            Rookie
            • Jul 2021
            • 10

            #6
            I think I saved game and then turned off my pc, maybe I did it too quickly

            Comment

            • Sky
              Veteran
              • Oct 2016
              • 2321

              #7
              don't know if it will bump the thread but .. help?

              HEMAGE.zip

              is fixing this something we could feasibly do on our own?

              I was playing and my PC had a mind derp and froze. (this isn't something that happens regularly, maybe once a year or less)
              "i can take this dracolich"

              Comment

              • Pete Mack
                Prophet
                • Apr 2007
                • 6883

                #8
                Size 0 save file is bad. Angband really should make a temp save (sayPLAYER.tmp) , then delete the old save file then rename the temp. It's pretty standard practice.

                Comment

                • backwardsEric
                  Knight
                  • Aug 2019
                  • 527

                  #9
                  Originally posted by Pete Mack
                  Size 0 save file is bad. Angband really should make a temp save (sayPLAYER.tmp) , then delete the old save file then rename the temp. It's pretty standard practice.
                  It does do that, see savefile.c:395-436. Prior to 4.2.5, it was not recognizing errors from opening the temporary save so that may account for what happened here (I'm guessing this was with 4.1.3).

                  Comment

                  • Sky
                    Veteran
                    • Oct 2016
                    • 2321

                    #10
                    Originally posted by backwardsEric
                    (I'm guessing this was with 4.1.3).
                    you are guessing correctly.
                    "i can take this dracolich"

                    Comment

                    • Sky
                      Veteran
                      • Oct 2016
                      • 2321

                      #11
                      he's to hoping that @Nick can save my savegame.


                      I normally don't care about my characters but i put a lot of effort into this guy.
                      I spent half hour to get rid of all of a pit of Tengu on DL11 to get an artifact light they had; which turned out to have +3 INT on it (mage!).

                      Then i got ESP super early and was already down to DL40+ waaaaaay before i normally do - i was actually hoping for a good turncount, as opposed to my normal sloth-like progression.
                      "i can take this dracolich"

                      Comment

                      • backwardsEric
                        Knight
                        • Aug 2019
                        • 527

                        #12
                        Originally posted by Sky
                        he's to hoping that @Nick can save my savegame.
                        Uncompressing the file you posted gives 102080 bytes of zeros. If Nick can reconstruct your character from that, that would be miracle.

                        Comment

                        • Nick
                          Vanilla maintainer
                          • Apr 2007
                          • 9637

                          #13
                          Originally posted by backwardsEric
                          Uncompressing the file you posted gives 102080 bytes of zeros. If Nick can reconstruct your character from that, that would be miracle.
                          No miracles today, I'm afraid he's gone.
                          One for the Dark Lord on his dark throne
                          In the Land of Mordor where the Shadows lie.

                          Comment

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