error 7 can't load vmf and no mater what i do.

Discussion in 'Mapping Questions & Discussion' started by Twist.vmf, Mar 9, 2018.

  1. Twist.vmf

    Twist.vmf L7: Fancy Member

    Messages:
    425
    Positive Ratings:
    195
    i can't get my VMF open, i keep getting

    Error loading file

    file C:\placeholder\mapsrc\map_1_open.vmf, line
    4631: error 7

    idk what to do! i removed the solid at line 4631
    this is very frustrating and i really don't want to lose this map. here is the .vmf

    any help would...help, i already went from web site to web site, but even the valve dev site was no help.

    (p.s. it's a half-life map)
     

    Attached Files:

  2. XEnderFaceX

    XEnderFaceX L3: Member

    Messages:
    147
    Positive Ratings:
    34
    you could download a decompiler and decompile your latest version, youll lose some things, but then you should have a working vmf
     
  3. Da Spud Lord

    aa Da Spud Lord L0: Crappy Member

    Messages:
    700
    Positive Ratings:
    480
    It looks like that specific line of your VMF has an error in it. You have a couple options:
    -Open the .vmf file as a plaintext document in a plaintext application, such as Notepad++, go to that line, and see if anything looks odd, and if you know what you're doing, you can edit the VMF to try and fix it. You can also look at the surrounding lines for errors.
    -Find the .vmx file for your map (should be right next to the .vmf, with the same name). The .vmx file is a backup of your map, so you can change the file extension to .vmf and try opening that in Hammer.
    -As Ender suggested, decompiling the last compiled version of your map should give you a working .vmf. It may not be recent, and some things like areaportals may be screwed up, but overall it's virtually guaranteed to give a .vmf that you can open.
    -If nothing else will suffice, post your .vmf and see if one of us can fix it.
     
    • Thanks Thanks x 1
  4. Twist.vmf

    Twist.vmf L7: Fancy Member

    Messages:
    425
    Positive Ratings:
    195
    i got the vmx thing to work. is the broken brush gone or do i have to hunt it down before i save my hammer work?
     
  5. Da Spud Lord

    aa Da Spud Lord L0: Crappy Member

    Messages:
    700
    Positive Ratings:
    480
    We don't know if it was a broken brush, but I'm guessing it wasn't. Hammer couldn't even read the file, which likely points to a syntax error of some sort in the file itself; in other words, the file was written in a way that Hammer couldn't read it to even know what brushes were in it. I wouldn't be surprised if Hammer did this on its own, but it is also possible that you did something to cause it. Things like including quotes (") in any text field can create this kind of error, so if you did that, don't. Whatever caused the error, it obviously wasn't present in the .vmx, so you shouldn't have to hunt down and delete anything. At this point, I would just forge ahead, pay attention to what changes you make, and if the error appears again, try to think back to if you did anything to cause it.
     
    • Thanks Thanks x 1