unexpected end of file
Post Reply
Quote
Re: unexpected end of file
Posted by ReinholD on Fri Jul 7th at 10:13am 2006


Hi all. <img src=" SRC="images/smiles/icon_smile.gif">
i needed to give a certain entity, a weird origin, so i edited the VMF file in the texteditor.
i worked great. then i did it with 3 others. but then i tried to open the file in hammer, and the error came:
"Unexpected end of file; line 43956" (that's how many lines there are in the file)
what am i supposed to do?
i've tried to delete the entity i created, but that didn't worked.
i tried to copy the end of another file, and then override the end of my "bad" file, but that didn't worked either.
thanks <img src=" SRC="images/smiles/icon_smile.gif">




Quote
Re: unexpected end of file
Posted by mazemaster on Fri Jul 7th at 10:34am 2006


Maybe you have unbalanced brackets/parentheses?





Quote
Re: unexpected end of file
Posted by Dark_Kilauea on Fri Jul 7th at 6:45pm 2006


Make sure to leave a space at the end of the file.


Dark_Kilauea
DVS Administration
http://www.dvstudio-production.com/



Quote
Re: unexpected end of file
Posted by ReinholD on Fri Jul 7th at 10:14pm 2006


well thanks, but all the parentheses a fine, and there is a space at the end of the file. i've even tried to delete the space, but no luck. <img src=" SRC="images/smiles/icon_smile.gif">

here is the end of the file:

entity
{
"id" "37796"
"classname" "info_player_counterterrorist"
"angles" "0 0 0"
"origin" "-32.4865 1.00034 0.993118"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
}
}
cameras
{
"activecamera" "-1"
}
cordon
{
"mins" "(99999 99999 99999)"
"maxs" "(-99999 -99999 -99999)"
"active" "0"
}





Quote
Re: unexpected end of file
Posted by Dark_Kilauea on Fri Jul 7th at 11:01pm 2006


? quote:

entity
{
"id" "37796"
"classname" "info_player_counterterrorist"
"angles" "0 0 0"
"origin" "-32.4865 1.00034 0.993118"
editor
{


That ending parenthese is facing the wrong way.

Should be a }



Dark_Kilauea
DVS Administration
http://www.dvstudio-production.com/



Quote
Re: unexpected end of file
Posted by Captain P on Fri Jul 7th at 11:01pm 2006


So essentially you wasted your .vmf file? Copy the same named .vmx file and rename it's extension to .vmf, as it's a .vmf backup file. That should at least put you back to before the notepad changes. <img src=" SRC="images/smiles/icon_smile.gif">





Quote
Re: unexpected end of file
Posted by ReinholD on Sat Jul 8th at 2:47pm 2006


Dark_Kilauea, no because that was a parenthese in another parenthese <img src=" SRC="images/smiles/icon_smile.gif">

Thanks for the tip Captain P <img src=" SRC="images/smiles/icon_biggrin.gif"> IT WORKED!






Post Reply