unexpected end of file

unexpected end of file

Re: unexpected end of file Posted by ReinholD on Fri Jul 7th 2006 at 10:13am
ReinholD
8 posts
Posted 2006-07-07 10:13am
ReinholD
member
8 posts 1 snarkmarks Registered: Jul 7th 2006
<DIV>Hi all. :smile: </DIV>
<DIV> </DIV>
<DIV>i needed to give a certain entity, a weird origin, so i edited the VMF file in the texteditor.</DIV>
<DIV> </DIV>
<DIV>i worked great. then i did it with 3 others. but then i tried to open the file in hammer, and the error came:</DIV>
<DIV> </DIV>
<DIV>"Unexpected end of file; line 43956" (that's how many lines there are in the file)</DIV>
<DIV> </DIV>
<DIV>what am i supposed to do?</DIV>
<DIV> </DIV>
<DIV>i've tried to delete the entity i created, but that didn't worked.</DIV>
<DIV> </DIV>
<DIV>i tried to copy the end of another file, and then override the end of my "bad" file, but that didn't worked either.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>thanks :smile: </DIV>
Re: unexpected end of file Posted by mazemaster on Fri Jul 7th 2006 at 10:34am
mazemaster
890 posts
Posted 2006-07-07 10:34am
890 posts 438 snarkmarks Registered: Feb 12th 2002
Maybe you have unbalanced brackets/parentheses?
http://maze5.net
Re: unexpected end of file Posted by Dark_Kilauea on Fri Jul 7th 2006 at 6:45pm
Dark_Kilauea
629 posts
Posted 2006-07-07 6:45pm
629 posts 123 snarkmarks Registered: Apr 15th 2005 Occupation: Fast Food Location: USA
Make sure to leave a space at the end of the file.
Dark_Kilauea
DVS Administration
http://www.dvstudio-production.com/
Re: unexpected end of file Posted by ReinholD on Fri Jul 7th 2006 at 10:14pm
ReinholD
8 posts
Posted 2006-07-07 10:14pm
ReinholD
member
8 posts 1 snarkmarks Registered: Jul 7th 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. :smile:

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"
}
Re: unexpected end of file Posted by Dark_Kilauea on Fri Jul 7th 2006 at 11:01pm
Dark_Kilauea
629 posts
Posted 2006-07-07 11:01pm
629 posts 123 snarkmarks Registered: Apr 15th 2005 Occupation: Fast Food Location: USA
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/
Re: unexpected end of file Posted by Captain P on Fri Jul 7th 2006 at 11:01pm
Captain P
1370 posts
Posted 2006-07-07 11:01pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
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. :smile:
Create-ivity - a game development blog
Re: unexpected end of file Posted by ReinholD on Sat Jul 8th 2006 at 2:47pm
ReinholD
8 posts
Posted 2006-07-08 2:47pm
ReinholD
member
8 posts 1 snarkmarks Registered: Jul 7th 2006
Dark_Kilauea, no because that was a parenthese in another parenthese :smile:

Thanks for the tip Captain P :biggrin: IT WORKED!