I think my map is corrupted. (Solved)
Quote from Goldenknighttim on January 10, 2014, 10:53 pmI After a week of doing little else than working on this map, I try to run it, for what I think may be the final test. Then it doesn't compile. I exit, and get back in, and it gives this message:
File C:Program Files (x86)SteamSteamAppscommonPortal 2sdk_contentmapsDIY Rube Goldbergdiyrg.vmf, line 92771: unexpected end of file
Is there a way I can repair this, or a way I can decompile my most recent .bsp? I was hoping to finish this tonight. It was for a week long challenge that ends tomorrow evening, and I would like time for feedback from my friends.
I After a week of doing little else than working on this map, I try to run it, for what I think may be the final test. Then it doesn't compile. I exit, and get back in, and it gives this message:
File C:Program Files (x86)SteamSteamAppscommonPortal 2sdk_contentmapsDIY Rube Goldbergdiyrg.vmf, line 92771: unexpected end of file
Is there a way I can repair this, or a way I can decompile my most recent .bsp? I was hoping to finish this tonight. It was for a week long challenge that ends tomorrow evening, and I would like time for feedback from my friends.
Quote from Arachnaphob on January 10, 2014, 11:06 pmTry copying your .vmx file of your map and renaming it as the .vmf. Be sure to move your old .vmf just in case.
Try copying your .vmx file of your map and renaming it as the .vmf. Be sure to move your old .vmf just in case.
Musical website Moddb
Quote from Goldenknighttim on January 10, 2014, 11:10 pmThanks Arachnaphob, but it didn't work.
Thanks Arachnaphob, but it didn't work.

Quote from Sejievan on January 10, 2014, 11:22 pmWell you can try to load an autosaved file from Hammer... but normally you have to redo a lot of stuff..
mine is set on this path.. (but i don't remember if i changed, or if Portal 2 even has an default one =P)c:program filessteamsteamapps[USERNAME]sourcesdkbinsource2009binHammerAutosave
if not work, you can just decompile your newest .bsp version with BSPSource
Well you can try to load an autosaved file from Hammer... but normally you have to redo a lot of stuff..
mine is set on this path.. (but i don't remember if i changed, or if Portal 2 even has an default one =P)
c:program filessteamsteamapps[USERNAME]sourcesdkbinsource2009binHammerAutosave
if not work, you can just decompile your newest .bsp version with BSPSource
Quote from FelixGriffin on January 10, 2014, 11:24 pmGoldenknighttim wrote:I After a week of doing little else than working on this map, I try to run it, for what I think may be the final test. Then it doesn't compile. I exit, and get back in, and it gives this message:File C:Program Files (x86)SteamSteamAppscommonPortal 2sdk_contentmapsDIY Rube Goldbergdiyrg.vmf, line 92771: unexpected end of file
Is there a way I can repair this, or a way I can decompile my most recent .bsp? I was hoping to finish this tonight. It was for a week long challenge that ends tomorrow evening, and I would like time for feedback from my friends.
I believe you can get that error from a problematic quotation mark in a KeyValue. Did you try to pass a string to a script function or use quotes in a game_text?
If you remember doing this, you can look for that entity in the VMF file in Notepad++ and remove the offending punctuation. Then reload your map in Hammer, save again, and compile.
File C:Program Files (x86)SteamSteamAppscommonPortal 2sdk_contentmapsDIY Rube Goldbergdiyrg.vmf, line 92771: unexpected end of file
Is there a way I can repair this, or a way I can decompile my most recent .bsp? I was hoping to finish this tonight. It was for a week long challenge that ends tomorrow evening, and I would like time for feedback from my friends.
I believe you can get that error from a problematic quotation mark in a KeyValue. Did you try to pass a string to a script function or use quotes in a game_text?
If you remember doing this, you can look for that entity in the VMF file in Notepad++ and remove the offending punctuation. Then reload your map in Hammer, save again, and compile.
Quote from Goldenknighttim on January 10, 2014, 11:27 pmThanks. I just found out how to decompile the .bsp, but it would be nice to not have to go back a bit. I did have a quote in a game_text.
Thanks. I just found out how to decompile the .bsp, but it would be nice to not have to go back a bit. I did have a quote in a game_text.
Quote from srs bsnss on January 11, 2014, 2:11 amAh, quotes in a game_text is what's got ya then. For future reference, opening up the .vmf in a text editor (such as notepad) and locating the indicated line (in this case, 92771) will allow you to fix it. Just go to the line, find where your message is written, and remove the quotation marks.
That's the wonderful thing about .vmfs. They're basically .txt files, so if anything goes wrong, all you have to do is open them in the most basic text editor and re-write a few things.
Ah, quotes in a game_text is what's got ya then. For future reference, opening up the .vmf in a text editor (such as notepad) and locating the indicated line (in this case, 92771) will allow you to fix it. Just go to the line, find where your message is written, and remove the quotation marks.
That's the wonderful thing about .vmfs. They're basically .txt files, so if anything goes wrong, all you have to do is open them in the most basic text editor and re-write a few things.