1

First of all, I know questions similar to this have been answered, but yet I cannot find the solution.

I was saving my map after doing some stuff with logic entities. Upon saving, Hammer quit without any message. Upon attempted loading, Hammer comes up with "File C:...mapname.vmf, line 18838: unexpected end of file", with another window saying "Loading Chunks..." Then 33%. I have read that editing the .vmf file to add a curly bracket } at the end to close the whatever it's called. I found mine was missing one, so I added it, now when ever I open the same map it loads to 33% again, then crashes, all in under a second.

So, simply: Any solutions? Also, I am using the Hammer Editor with HL2 in the base.

It's kind of sad I have to write this one about 2 hours after my other H.E question.

1 Answer 1

1

Your map file is corrupted.

You can either put a closing } into line 18838 (the one the game complains about) or if that doesn't work you can replace it as follows:

  • rename your <mapname>.vmf to something else (or make a backup)
  • locate the <mapname>.vmx in your mapsrc folder and copy it over
  • rename the vmx extension to vmf
  • try to load the newly renamed <mapname>.vmf in Hammer

If that still doesn't work your last resort lies inside your <HammerFolder>/autosaves. If you have some autosave files you can try one of these to recover your map. They might not be the latest version, but still better than nothing.

6
  • When I add a single curly bracket to line 18838 (the bottom one, which is missing a curly), and then run the map, it just "Loads Chunks" to 33%, then closes. However, using two curly brackets brings the same "unexpected end of file" issue as before. I cannot exactly tell how many I need (If I may need more), or there is still somehow corruption. For your second tip, I also tried that, it brings the same result as a single curly: "Loading Chunks" 33%. Jan 31, 2017 at 11:01
  • Do you happen to have some hammerAutosave files? One of these could still save you.
    – dly
    Jan 31, 2017 at 11:06
  • 1
    I do, but it is from about 2-3 days ago. I have a more recent version on an external source, however it is missing a great deal of work compared to how I had it. If need be, I will put the time and effort into it again. Jan 31, 2017 at 11:40
  • +1 for having backups. Too bad the autosaves are too old, though.
    – dly
    Jan 31, 2017 at 14:49
  • Is there a way to change the frequency of the auto-backup to make it occur more often? Feb 1, 2017 at 3:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .