Unexpected end to file...

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

  1. Turnip

    aa Turnip The 80s Vegetable

    Messages:
    1,432
    Positive Ratings:
    803
    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,318
    Positive Ratings:
    1,512
    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. Turnip

    aa Turnip The 80s Vegetable

    Messages:
    1,432
    Positive Ratings:
    803
    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,318
    Positive Ratings:
    1,512
    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. Turnip

    aa Turnip The 80s Vegetable

    Messages:
    1,432
    Positive Ratings:
    803
    @Moonrat
     
  6. Moonrat

    aa Moonrat The end of an era

    Messages:
    898
    Positive Ratings:
    532
    I'll zip it up then!
     
  7. Moonrat

    aa Moonrat The end of an era

    Messages:
    898
    Positive Ratings:
    532
  8. Turnip

    aa Turnip The 80s Vegetable

    Messages:
    1,432
    Positive Ratings:
    803
    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,878
    Positive Ratings:
    4,955
    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:
    706
    Positive Ratings:
    432
    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