Can't even load the vmf...

Hey Facepunch, every time I load my map, it gives me this error.

File D:\Dredile’s Folder\Cthulhu\mapsrc\cc_estate.vmf, line 31333: unexpected end of file

Here’s a snipet of the vmf of that line.


cordon
{
    "mins" "(-1024 -1024 -1024)"
    "maxs" "(1024 1024 1024)"
    "active" "0"
}
                        <----- This is line 31333 but there is nothing there??? How is it unexpected end of file? Btw this sentence is not in the actual vmf


What the badger? Any ideas?

Use the .vmx and rename it as .vmf.

Opening the vmx gave me this error
File D:Dredile’s Folder\Cthulhu\mapsrc\cc_estate.vmx line 31383: unexpected end of file… :frowning:

Rename the .vmx he said… to a .vmf file

It gave me the same error.

Try loading the autosave. Hammer automatically saves the map ever 15 mins to an autosave folder somewhere.

Check in C:\Hammer Autosaves. Didn’t you make a thread about this same problem before?

[editline]03:37PM[/editline]

:argh: phoenix.

Try copying some more from the file before that line?
But it’s odd, it looks like the file is fine


entity
{
    "id" "16387"
    "classname" "func_button"
    "disablereceiveshadows" "0"
    "health" "0"
    "lip" "0"
    "locked_sentence" "0"
    "locked_sound" "0"
    "movedir" "0 0 0"
    "origin" "-1130 1427 67"
    "renderamt" "255"
    "rendercolor" "255 255 255"
    "renderfx" "0"
    "rendermode" "0"
    "sounds" "0"
    "spawnflags" "1025"
    "speed" "5"
    "unlocked_sentence" "0"
    "unlocked_sound" "0"
    "wait" "3"
    connections
    {
        "OnPressed" "note_ui01,Activate,,0,-1"
        "OnPressed" "note_01_overlay1,StartOverlays,,0,-1"
        "OnPressed" "hint01,Display,,2,-1"
    }
    solid
    {
        "id" "16385"
        side
        {
            "id" "4289"
            "plane" "(-1136 1428 76) (-1124 1428 76) (-1124 1426 76)"
            "material" "TOOLS/TOOLSINVISIBLE"
            "uaxis" "[1 0 0 0] 0.25"
            "vaxis" "[0 -1 0 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "4288"
            "plane" "(-1136 1426 58) (-1124 1426 58) (-1124 1428 58)"
            "material" "TOOLS/TOOLSINVISIBLE"
            "uaxis" "[1 0 0 0] 0.25"
            "vaxis" "[0 -1 0 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "4287"
            "plane" "(-1136 1428 76) (-1136 1426 76) (-1136 1426 58)"
            "material" "TOOLS/TOOLSINVISIBLE"
            "uaxis" "[0 1 0 0] 0.25"
            "vaxis" "[0 0 -1 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "4286"
            "plane" "(-1124 1428 58) (-1124 1426 58) (-1124 1426 76)"
            "material" "TOOLS/TOOLSINVISIBLE"
            "uaxis" "[0 1 0 0] 0.25"
            "vaxis" "[0 0 -1 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "4285"
            "plane" "(-1124 1428 76) (-1136 1428 76) (-1136 1428 58)"
            "material" "TOOLS/TOOLSINVISIBLE"
            "uaxis" "[1 0 0 0] 0.25"
            "vaxis" "[0 0 -1 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "4284"
            "plane" "(-1124 1426 58) (-1136 1426 58) (-1136 1426 76)"
            "material" "TOOLS/TOOLSINVISIBLE"
            "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" "[0 1000]"
    }
}
entity
{
    "id" "16415"
    "classname" "env_screenoverlay"
    "OverlayName1" "notes/horace_note001.vtf"
    "OverlayTime1" "1.0"
    "OverlayTime10" "1.0"
    "OverlayTime2" "1.0"
    "OverlayTime3" "1.0"
    "OverlayTime4" "1.0"
    "OverlayTime5" "1.0"
    "OverlayTime6" "1.0"
    "OverlayTime7" "1.0"
    "OverlayTime8" "1.0"
    "OverlayTime9" "1.0"
    "targetname" "note_01_overlay1"
    "origin" "-1119.96 1366 16"
    editor
    {
        "color" "220 30 220"
        "visgroupshown" "1"
        "visgroupautoshown" "1"
        "logicalpos" "[0 2500]"
    }
}
entity
{
    "id" "16442"
    "classname" "game_ui"
    "FieldOfView" "-1.0"
    "spawnflags" "96"
    "targetname" "note_ui01"
    connections
    {
        "PressedForward" "note_01_overlay1,StopOverlays,,0,-1"
        "PressedForward" "note_ui01,Deactivate,,0,-1"
        "PressedForward" "text01,Display,,2,-1"
        "PressedForward" "text01,Kill,,7,-1"
        "PressedForward" "key_pickup01,PlaySound,,2,-1"
    }
    "origin" "-1120 1366 36"
    editor
    {
        "color" "220 30 220"
        "visgroupshown" "1"
        "visgroupautoshown" "1"
        "logicalpos" "[0 3500]"
    }
}

    "id" "16948"
    "classname" "ambient_generic"
    "health" "10"
    "message" "items/key_pickup.mp3"
    "pitch" "100"
    "pitchstart" "100"
    "radius" "1250"
    "spawnflags" "49"
    "targetname" "key_pickup01"
    "origin" "-1109.17 1302.48 17"
    editor
    {
        "color" "220 30 220"
        "visgroupshown" "1"
        "visgroupautoshown" "1"
        "logicalpos" "[0 500]"
    }
}
entity
{
    "id" "6546"
    "classname" "func_detail"
    solid
    {
        "id" "6547"
        side
        {
            "id" "4337"
            "plane" "(-1850 -358 152) (-2468 -358 152) (-2468 -332 152)"
            "material" "WOOD/WOODWALL_MINE001A"
            "uaxis" "[0 1 0 168] 0.25"
            "vaxis" "[1 0 0 488] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "4336"
            "plane" "(-1850 -332 138) (-2468 -332 138) (-2468 -358 138)"
            "material" "WOOD/WOODWALL_MINE001A"
            "uaxis" "[0 1 0 386] 0.1"
            "vaxis" "[1 0 0 359] 0.15"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "4335"
            "plane" "(-1850 -358 138) (-2468 -358 138) (-2468 -358 152)"
            "material" "WOOD/WOODWALL047D"
            "uaxis" "[-1 0 0 -488] 0.25"
            "vaxis" "[0 0 -1 45] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "4334"
            "plane" "(-2468 -332 138) (-1850 -332 138) (-1850 -332 152)"
            "material" "WOOD/WOODWALL047D"
            "uaxis" "[-1 0 0 -488] 0.25"
            "vaxis" "[0 0 -1 40] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "4333"
            "plane" "(-2468 -358 138) (-2468 -332 138) (-2468 -332 152)"
            "material" "WOOD/WOODWALL_MINE001A"
            "uaxis" "[0 1 0 168] 0.25"
            "vaxis" "[0 0 -1 -8] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "4332"
            "plane" "(-1850 -332 138) (-1850 -358 138) (-1850 -358 152)"
            "material" "WOOD/WOODWALL_MINE001A"
            "uaxis" "[0 1 0 168] 0.25"
            "vaxis" "[0 0 -1 -8] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        editor
        {
            "color" "0 180 0"
            "visgroupshown" "1"
            "visgroupautoshown" "1"
        }
    }
    editor
    {
        "color" "0 180 0"
        "visgroupshown" "1"
        "visgroupautoshown" "1"
        "logicalpos" "[0 7000]"
    }
}
cameras
{
    "activecamera" "0"
    camera
    {
        "position" "[-1897.8 -104.33 111.385]"
        "look" "[-1898.61 -103.763 111.204]"
    }
}
cordon
{
    "mins" "(-1024 -1024 -1024)"
    "maxs" "(1024 1024 1024)"
    "active" "0"
}


I added fair amount of information from behind the line 31833 or w/e it is. See if that can bring up the problem.