HUGE map corruption: Help needed for fixing

Discussion in 'Mapping Questions & Discussion' started by DrSquishy, Jun 26, 2017.

  1. DrSquishy

    DrSquishy L8: Fancy Shmancy Member

    Messages:
    502
    Positive Ratings:
    106
    When loading up my map earlier today, I saw that the file had corrupted. Everything was there, but sections moved around and such to form a jumbled mess. Since then, I have been working to move everything back, but it is incredibly difficult. Is there an easier way to do so? I will attach the vmf just in case
     

    Attached Files:

  2. Lampenpam

    aa Lampenpam

    Messages:
    1,019
    Positive Ratings:
    337
    look in the folder where you safe your maps. Hammer saves a .vmf and a .vmx file. the vmx file is a backup, rename the file to vmf and you have an older version of your map.
     
  3. DrSquishy

    DrSquishy L8: Fancy Shmancy Member

    Messages:
    502
    Positive Ratings:
    106
    Thanks. I managed to decompile a previous version of the map, but it will definitely come in handy in the future
     
  4. DrSquishy

    DrSquishy L8: Fancy Shmancy Member

    Messages:
    502
    Positive Ratings:
    106
    Was able to salvage a lot of map logic i had added in
     
  5. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    834
    DON"T decompile an old version of the map. You may get further corruption later on. Instead, do what Lampenpam suggested, or load one of the auto backup copies from C:\Hammerautosave.
     
  6. DrSquishy

    DrSquishy L8: Fancy Shmancy Member

    Messages:
    502
    Positive Ratings:
    106
    The VMX was corrupted as well. I will try the auto saves, but it will be testing my luck
     
  7. DrSquishy

    DrSquishy L8: Fancy Shmancy Member

    Messages:
    502
    Positive Ratings:
    106
    Nope. the most recent one was from the 18th
     
  8. Lampenpam

    aa Lampenpam

    Messages:
    1,019
    Positive Ratings:
    337
    Next time your map gets corrupted, don't save or the corrupted version might become your backup-vmx :/
     
  9. henke37

    aa henke37

    Messages:
    1,878
    Positive Ratings:
    442
    Invest in source control. It's free and will save your butt.
     
  10. DrSquishy

    DrSquishy L8: Fancy Shmancy Member

    Messages:
    502
    Positive Ratings:
    106
    Source control?
     
  11. henke37

    aa henke37

    Messages:
    1,878
    Positive Ratings:
    442
    Tools that manage your source code. There are many alternatives on the market and most of them are indeed free.

    They will let you keep a history, with things such as notes about individual changes, timestamps and what not.
     
  12. DrSquishy

    DrSquishy L8: Fancy Shmancy Member

    Messages:
    502
    Positive Ratings:
    106
    Ok