Unexpected end to file...

Discussion in 'Mapping Questions & Discussion' started by Davekillerish, Jan 10, 2016.

  1. Davekillerish

    aa Davekillerish Lvl O: Orange Member

    Messages:
    1,428
    Positive Ratings:
    793
    upload_2016-1-9_23-1-46.png
    I was emailed the most rescent and updated version of cp_intrusion, a collab map for the Dyn Cp contest.
    I moved it into my maps folder, opened the vmf, and recieved this error.
    I clicked OK, and hammer closed.
    I rinced, I repeated, I got the same result.
     
  2. Egan

    aa Egan

    Messages:
    1,301
    Positive Ratings:
    1,476
    I believe this is caused by having a symbol that exits the VMF code early, resulting in broken code - which makes the loader fail. If the last person to use the VMF inserted any of these symbols anywhere, is probably the case: ' " ; \

    You can check the VMF with Notepad++ at line 94368 for any abrupt offenders, or paste the code to pastebin and let someone here sort it out (like me), alternatively there are autosaves luckily (located at C:\HammerAutosave).

    For more information check: https://developer.valvesoftware.com/wiki/Talk:Compile_Errors
     
  3. Davekillerish

    aa Davekillerish Lvl O: Orange Member

    Messages:
    1,428
    Positive Ratings:
    793
    I have the VMF on a download site: https://www.mediafire.com/?a44b9hni0r34ntw
    Thank you for the assisstance, but I would prefer if someone more expierenced messed with the codes in a vmf file. (so not me)
     
  4. Egan

    aa Egan

    Messages:
    1,301
    Positive Ratings:
    1,476
    Ok I checked your file out, it seems there was a broken light entity at the end of the VMF which signifies that the VMF is not complete. If Moonrat (who posted on your profile) did upload the original VMF he should try uploading again in a .ZIP instead, to make sure the entire file gets transferred in case mediafire is eating part of the raw text (including most of the entities, in this case).
     
    • Thanks Thanks x 1
  5. Davekillerish

    aa Davekillerish Lvl O: Orange Member

    Messages:
    1,428
    Positive Ratings:
    793
    @Moonrat
     
  6. Moonrat

    aa Moonrat The end of an era

    Messages:
    877
    Positive Ratings:
    502
    I'll zip it up then!
     
  7. Moonrat

    aa Moonrat The end of an era

    Messages:
    877
    Positive Ratings:
    502
  8. Davekillerish

    aa Davekillerish Lvl O: Orange Member

    Messages:
    1,428
    Positive Ratings:
    793
    Twus a valiant effort, but to no avail.
    Half the entities on the map are still gone, all the func_details are still gone, Im starting to think my partner hit ctrl+s while having those vis-groups unchecked and then sent it to me -_-
     
  9. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,816
    Positive Ratings:
    4,654
    Hidden visgroups are still saved in the file. The file got broken somehow, try asking the previous person if they have an autosave or something.
     
  10. ics

    aa ics http://ics-base.net

    Messages:
    654
    Positive Ratings:
    410
    Someone may fix that by editing the end of file with text editor by adding some }} } etc but if the end of file is unexpected, there's propably something missing from the map anyway.
     
    • Agree Agree x 1