Vmf wont load or open

seriously ive been working on this map for fucking ever and it wont load
it just gets up to reading chunks and crashes

[editline]03:45PM[/editline]

please help

Your VMF was corrupted the last time you saved it. go to C:\HammerAutoSave and load the last autosave of your map.

yeah but that crashes too

people are right, give me books. My bad.

Rated you

http://www.facepunch.com/fp/rating/book_error.png

. He can’t compile the map because hammer crashes when he opens his VMF.

well any ideas how i can fix it

If you’re saying that all the .vmf files for the map corupted, which I find quite hard to believe since you you say you’ve been working on it for ages, and considering Hammer autosaves pretty often by default, you’re incredibly unlucky and I can’t see any real way of “uncorrupting” the file.

Post the last fifty lines or so of the VMF.

here


entity
{
	"id" "46123"
	"classname" "env_fire"
	"damagescale" "1.0"
	"fireattack" "4"
	"firesize" "30"
	"health" "4000"
	"ignitionpoint" "5"
	"spawnflags" "31"
	"origin" "-4563 9220 3259.2"
	editor
	{
		"color" "237 190 0"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[2500 3500]"
	}
}
entity
{
	"id" "46382"
	"classname" "trigger_once"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-5567.5 4832 2752"
	"targetname" "Once 1"
	connections
	{
		"OnTrigger" "door 3,Close,,20,1"
		"OnTrigger" "door 3,Open,,25,1"
		"OnTrigger" "Command 5,Command,say ""door will close in 20 seconds"",0,1"
	}
	solid
	{
		"id" "46380"
		side
		{
			"id" "31892"
			"plane" "(-5568 4928 2816) (-5567 4928 2816) (-5567 4736 2816)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[1 0 0 0] 0.25"
			"vaxis" "[0 -1 0 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		side
		{
			"id" "31891"
			"plane" "(-5568 4736 2688) (-5567 4736 2688) (-5567 4928 2688)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[-1 0 0 0] 0.25"
			"vaxis" "[0 -1 0 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		side
		{
			"id" "31890"
			"plane" "(-5568 4928 2816) (-5568 4736 2816) (-5568 4736 2688)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[0 -1 0 0] 0.25"
			"vaxis" "[0 0 -1 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		side
		{
			"id" "31889"
			"plane" "(-5567 4928 2688) (-5567 4736 2688) (-5567 4736 2816)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[0 1 0 0] 0.25"
			"vaxis" "[0 0 -1 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		side
		{
			"id" "31888"
			"plane" "(-5567 4928 2816) (-5568 4928 2816) (-5568 4928 2688)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[-1 0 0 0] 0.25"
			"vaxis" "[0 0 -1 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		side
		{
			"id" "31887"
			"plane" "(-5567 4736 2688) (-5568 4736 2688) (-5568 4736 2816)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[1 0 0 0] 0.25"
			"vaxis" "[0 0 -1 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		editor
		{
			"color" "220 30 220"
			"visgroupshown" "1"
			"visgroupautoshown" "1"
		}
	}
	editor
	{
		"color" "220 30 220"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 500]"
	}
}
entity
{
	"id" "46425"
	"classname" "env_cubemap"
	"origin" "-7872 4815 2839"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 1000]"
	}
}
entity
{
	"id" "46437"
	"classname" "env_cubemap"
	"origin" "-10749 4815 2784"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 1500]"
	}
}
entity
{
	"id" "46440"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-12176 3438 2784"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 1500]"
	}
}
entity
{
	"id" "46449"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-11246 2060 2784"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 1500]"
	}
}
entity
{
	"id" "46455"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-10316 1120 2784"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 1500]"
	}
}
entity
{
	"id" "46461"
	"classname" "env_cubemap"
	"origin" "-10848 -1120 2889"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 2000]"
	}
}
entity
{
	"id" "46467"
	"classname" "env_cubemap"
	"origin" "-10986 -1120 738"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 2500]"
	}
}
entity
{
	"id" "46479"
	"classname" "env_cubemap"
	"origin" "-3750 -1706 488"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 3000]"
	}
}
entity
{
	"id" "46488"
	"classname" "env_cubemap"
	"origin" "-5506 -1664 672"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 3500]"
	}
}
entity
{
	"id" "46491"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-6500 -570 672"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 3500]"
	}
}
entity
{
	"id" "46497"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-8498 -1706 672"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 3500]"
	}
}
entity
{
	"id" "46506"
	"classname" "env_cubemap"
	"origin" "-2816 -1248 206"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 4000]"
	}
}
entity
{
	"id" "46512"
	"classname" "env_cubemap"
	"origin" "-1224 -800 61"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 4500]"
	}
}
entity
{
	"id" "46518"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-993 -800 -475"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 4500]"
	}
}
entity
{
	"id" "46527"
	"classname" "env_cubemap"
	"origin" "-192 -1452 9"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 5000]"
	}
}
entity
{
	"id" "46536"
	"classname" "env_cubemap"
	"origin" "364 -856 9"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 5500]"
	}
}
entity
{
	"id" "46542"
	"classname" "env_cubemap"
	"origin" "-256 -256 9"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 6000]"
	}
}
cameras
{
	"activecamera" "-1"
	camera
	{
		"position" "[431.273 -853.126 94.0863]"
		"look" "[375.333 -1344.85 80.2629]"
	}
}
cordon
{
	"mins" "(-1024 -1024 -1024)"
	"maxs" "(1024 1024 1024)"
	"active" "0"
}


entity
{
	"id" "46123"
	"classname" "env_fire"
	"damagescale" "1.0"
	"fireattack" "4"
	"firesize" "30"
	"health" "4000"
	"ignitionpoint" "5"
	"spawnflags" "31"
	"origin" "-4563 9220 3259.2"
	editor
	{
		"color" "237 190 0"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[2500 3500]"
	}
}
entity
{
	"id" "46382"
	"classname" "trigger_once"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-5567.5 4832 2752"
	"targetname" "Once 1"
	connections
	{
		"OnTrigger" "door 3,Close,,20,1"
		"OnTrigger" "door 3,Open,,25,1"
		"OnTrigger" "Command 5,Command,say door will close in 20 seconds,0,1"
	}
	solid
	{
		"id" "46380"
		side
		{
			"id" "31892"
			"plane" "(-5568 4928 2816) (-5567 4928 2816) (-5567 4736 2816)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[1 0 0 0] 0.25"
			"vaxis" "[0 -1 0 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		side
		{
			"id" "31891"
			"plane" "(-5568 4736 2688) (-5567 4736 2688) (-5567 4928 2688)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[-1 0 0 0] 0.25"
			"vaxis" "[0 -1 0 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		side
		{
			"id" "31890"
			"plane" "(-5568 4928 2816) (-5568 4736 2816) (-5568 4736 2688)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[0 -1 0 0] 0.25"
			"vaxis" "[0 0 -1 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		side
		{
			"id" "31889"
			"plane" "(-5567 4928 2688) (-5567 4736 2688) (-5567 4736 2816)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[0 1 0 0] 0.25"
			"vaxis" "[0 0 -1 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		side
		{
			"id" "31888"
			"plane" "(-5567 4928 2816) (-5568 4928 2816) (-5568 4928 2688)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[-1 0 0 0] 0.25"
			"vaxis" "[0 0 -1 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		side
		{
			"id" "31887"
			"plane" "(-5567 4736 2688) (-5568 4736 2688) (-5568 4736 2816)"
			"material" "TOOLS/TOOLSTRIGGER"
			"uaxis" "[1 0 0 0] 0.25"
			"vaxis" "[0 0 -1 0] 0.25"
			"rotation" "0"
			"lightmapscale" "16"
			"smoothing_groups" "0"
		}
		editor
		{
			"color" "220 30 220"
			"visgroupshown" "1"
			"visgroupautoshown" "1"
		}
	}
	editor
	{
		"color" "220 30 220"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 500]"
	}
}
entity
{
	"id" "46425"
	"classname" "env_cubemap"
	"origin" "-7872 4815 2839"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 1000]"
	}
}
entity
{
	"id" "46437"
	"classname" "env_cubemap"
	"origin" "-10749 4815 2784"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 1500]"
	}
}
entity
{
	"id" "46440"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-12176 3438 2784"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 1500]"
	}
}
entity
{
	"id" "46449"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-11246 2060 2784"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 1500]"
	}
}
entity
{
	"id" "46455"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-10316 1120 2784"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 1500]"
	}
}
entity
{
	"id" "46461"
	"classname" "env_cubemap"
	"origin" "-10848 -1120 2889"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 2000]"
	}
}
entity
{
	"id" "46467"
	"classname" "env_cubemap"
	"origin" "-10986 -1120 738"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 2500]"
	}
}
entity
{
	"id" "46479"
	"classname" "env_cubemap"
	"origin" "-3750 -1706 488"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 3000]"
	}
}
entity
{
	"id" "46488"
	"classname" "env_cubemap"
	"origin" "-5506 -1664 672"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 3500]"
	}
}
entity
{
	"id" "46491"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-6500 -570 672"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 3500]"
	}
}
entity
{
	"id" "46497"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-8498 -1706 672"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 3500]"
	}
}
entity
{
	"id" "46506"
	"classname" "env_cubemap"
	"origin" "-2816 -1248 206"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 4000]"
	}
}
entity
{
	"id" "46512"
	"classname" "env_cubemap"
	"origin" "-1224 -800 61"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 4500]"
	}
}
entity
{
	"id" "46518"
	"classname" "env_cubemap"
	"sides" ""
	"origin" "-993 -800 -475"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 4500]"
	}
}
entity
{
	"id" "46527"
	"classname" "env_cubemap"
	"origin" "-192 -1452 9"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 5000]"
	}
}
entity
{
	"id" "46536"
	"classname" "env_cubemap"
	"origin" "364 -856 9"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 5500]"
	}
}
entity
{
	"id" "46542"
	"classname" "env_cubemap"
	"origin" "-256 -256 9"
	editor
	{
		"color" "0 0 255"
		"visgroupshown" "1"
		"visgroupautoshown" "1"
		"logicalpos" "[1000 6000]"
	}
}
cameras
{
	"activecamera" "-1"
	camera
	{
		"position" "[431.273 -853.126 94.0863]"
		"look" "[375.333 -1344.85 80.2629]"
	}
}
cordon
{
	"mins" "(-1024 -1024 -1024)"
	"maxs" "(1024 1024 1024)"
	"active" "0"
}

Replace with this. Quotes should not be used anywhere in strings when mapping.

tried that still doesnt work
im very upset

There might be more errors like this in the rest of the file.

vparse.zip

Here’s the working remains of VIDE’s predecessor. Drag and drop the VMF onto the executable. It won’t fix anything, but if anymore such errors are present it will tell you what to look for.

You’re going to have to scroll through the entire VMF and remove any "s in entities with a " in any of the parameters.

Well I figured it out there’s something wrong with my saving because I decompiled my map because I had it compiled before edited a little bit compiled it and saved and quit
when I went back to load it early it crashed
I’ve been geting alot of errors in hammer recently

[editline]08:25PM[/editline]

tried the VIDE thing heres what i got

no, it just thinks that the parameter ends at the " in your parameter, instead of the one at the end of it. You need to delete the extra ones, which is exactly what VIDE is telling you to do.


ERROR: Quote characters not allowed in keyvalue.
...
ERROR: Unexpected end of file. Not yet supported.


The quote throws off the parameter, which has a rippling effect - messing up your entity and the VMF file.

That was just fixed in the above snippet.

Would you upload the VMF somewhere?

The EOF error is a coding problem. VParse is smart enough to handle quotes in values.

Thanks for telling me the problem but how can I open up the vmf and change the quotations

Notepad will do.

Thank you terrenteller you saved my ass once again

I don’t understand how that happened in the first place.