Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Map Crashing Fix - A Tutorial for Source Engine

What to do with hammer crashing on map loading.

So you load your map and it crashes hammer, now what?

Things to do/avoid in the first place

Never ever use any special signs as names or outputs - this includes but is not limited too "';:{}> Damn I didn't know that and now my map crashes hammer... Most of the time its the special signs that were used in names or outputs, this has a very high chance of causing hammer crashing. Step 1: Think about the last changes that made the map unreadable, concentrating on the names and outputs. If you recognize that you have used some special signs go to Step 3 Step 2: So you can't remember any strange names or outputs added lately. What you should do now is check the compile log. The thing you are looking for is most likely "unexpected" something, often "Unexpected symbol". This should point you towards the problem by giving the brush number and line at which the problem occurs. Nevertheless this info regarding line and brush number is accurate in less than 40% of the cases, even the symbol given out may be totally wrong. An example looks like this: Brush 230128: File D:\nameofthemap.vmf, line 155632: unexpected symbol '}' If you found nothing in your compile log, go to the second section of this tut. Step 3:Now its time for the power of notepad. First make a copy of your map. Than proceed to opening your map in notepad, a simple way to do this is to open notepad than press ctrl+o, than choose your map or its copy. Either way keep a clean copy of the original map at all times. Now press ctrl+f and search for the entity that you have named improperly or the output that used special characters. Or if you found something in the compile log, but still cant remember where did the mistake happen you can check the line given out by going to Format-> Word wrap and making sure it is disabled and than going to Edit-> Go To and simply entering the line you want to go to. Step 4: Delete the faulty entry, making sure that the file structure is intact. That is you have to delete an area between { and corresponding } including the "{}" in which the error is included. Think of it as mathematical equations if you have a {wwww{sssss}eeee{ggggg}ccc} and the wrong bit is "wwww" you have to cut the whole example given here. However if you only need to cut the ggggg you may cut only the {ggggg} bit. Now just save it and try to open it in hammer, it should work now :)

If this doesn't help or you can't find the error

Unfortunately some errors do not occur do to improper names/outputs but due to displacement geometry or vertex manipulation. All that is left is to keep chopping the file up in smaller bits and trying to open them in hammer. You load the copy of your map in notepad. The beginning will look like this:
versioninfo
{
	"editorversion" "400"
	"editorbuild" "4037"
	"mapversion" "228"
	"formatversion" "100"
	"prefab" "0"
}
visgroups
{
}
viewsettings
{
	"bSnapToGrid" "1"
	"bShowGrid" "1"
	"bShowLogicalGrid" "0"
	"nGridSpacing" "4"
	"bShow3DGrid" "0"
}
world
{
	"id" "1"
	"mapversion" "228"
	"classname" "worldspawn"
	"skyname" "sky\_day01\_01"
	"maxpropscreenwidth" "-3000"
	"detailvbsp" "detail.vbsp"
	"detailmaterial" "detail/detailsprites"
	"message" "hax"
	"startdark" "0"
	"\_minlight" "0.3"
	"maxoccludeearea" "20"
	solid
Preserving this cut out a large complete (as mentioned previously with the mathematical equations) pieces, save and load up in hammer. If it doesn't load than press ctrl+z for "undo" or go to Edit -> undo and cut out the next part and so on. When it loads, you can try cutting out smaller pieces of the same part that seemed to cause the problem and you will eventually locate it.

The lesson to take home is save often and under different names !

  • Dracula Mafioso avatar
    Dracula Mafioso Joined 11y ago
    Offline
    6,471 points Ranked 1,173rd
    11 medals 2 rare
    • Returned 1000 times Medal icon
    • 6 years a member Medal icon
    • Tutor of the Month, November 2014 Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    • One month a member Medal icon
    8y
    Thx alot for the help ! :3 took me a while to figure out that the game_text entity was causing the problem
    You're...pretty good...
    URL to post:
  • cL_ avatar
    cL_ username pic Joined 12y ago
    Offline
    4,044 points Ranked 2,054th
    26 medals 7 rare
    • 6 years a member Medal icon
    • Submitted 50 Maps Medal icon
    • Returned 1000 times Medal icon
    • Submitted 20 Maps Medal icon
    • Submitted 15 Mods Medal icon
    • Submitted 20 Mods Medal icon
    8y
    Is this working with CS:GO SDK? My maps keep crashing everytime i load them, i followed your tutorial and named my map 1 , very simple right made in 5min, just skybox and walls, not any special characters in map name unlike map i started yesterday and worked for 2 hours and doesnt load without crashing named "aim_*****". This is really frustrating and i cant seem to find any CS:GO tutorials how to fix this and i searched loads of forums on google search but most of them are for CS:GO.
    Finnish mapper 1.6/CS:GO avatar
    Mantra
    Finnish mapper 1.6/CS:GO
    URL to post:
  • MMmaster avatar
    MMmaster Joined 12y ago
    Offline
    12y
    Thanks ha_x for this, it saved my life. It took a while to track down the problem by deleting parts of the map file and trying to open it, but finally I found the problem: I used " characters in an output to a point_clientcommand. Thanks again for this post. When deleting parts of the map file be sure to keep the end of it that is something like this: cameras { "activecamera" "0" camera { "position" "[-12459.4 9569.11 1107.92]" "look" "[-12459.4 9783.63 1028.14]" } } cordon { "mins" "(-14808 -11288 -80)" "maxs" "(15488 11664 6272)" "active" "1" } otherwise the editor will not load the map and say: "unexpected end of file."
    Bananite
    URL to post:
  • danteisbrutal avatar
    danteisbrutal Joined 12y ago
    Offline
    327 points Ranked 53,708th
    6 medals 1 rare
    • 6 years a member Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    • 4 years a member Medal icon
    12y
    ** Executing... ** Command: "c:\program files\steam\steamapps\coreyduffel911\sourcesdk\bin\ep1\bin\vbsp.exe" ** Parameters: -game "c:\program files\steam\steamapps\coreyduffel911\counter-strike source\cstrike" "C:\Program Files\Steam\SteamApps\coreyduffel911\sourcesdk_content\cstrike\mapsrc\bridge5" Valve Software - vbsp.exe (Dec 11 2006) 4 threads materialPath: c:\program files\steam\steamapps\coreyduffel911\counter-strike source\cstrike\materials Loading C:\Program Files\Steam\SteamApps\coreyduffel911\sourcesdk_content\cstrike\mapsrc\bridge5.vmf Error: displacement found on a(n) func_detail entity - not supported ** Executing... ** Command: "c:\program files\steam\steamapps\coreyduffel911\sourcesdk\bin\ep1\bin\vvis.exe" ** Parameters: -game "c:\program files\steam\steamapps\coreyduffel911\counter-strike source\cstrike" "C:\Program Files\Steam\SteamApps\coreyduffel911\sourcesdk_content\cstrike\mapsrc\bridge5" Valve Software - vvis.exe (Nov 8 2007) 4 threads reading c:\program files\steam\steamapps\coreyduffel911\sourcesdk_content\cstrike\mapsrc\bridge5.bsp Error opening c:\program files\steam\steamapps\coreyduffel911\sourcesdk_content\cstrike\mapsrc\bridge5.bsp ** Executing... ** Command: "c:\program files\steam\steamapps\coreyduffel911\sourcesdk\bin\ep1\bin\vrad.exe" ** Parameters: -game "c:\program files\steam\steamapps\coreyduffel911\counter-strike source\cstrike" "C:\Program Files\Steam\SteamApps\coreyduffel911\sourcesdk_content\cstrike\mapsrc\bridge5" Valve Software - vrad.exe SSE (Nov 8 2007) ----- Radiosity Simulator ---- 4 threads [Reading texlights from 'lights.rad'] [1 texlights parsed from 'lights.rad'] Loading c:\program files\steam\steamapps\coreyduffel911\sourcesdk_content\cstrike\mapsrc\bridge5.bsp Error opening c:\program files\steam\steamapps\coreyduffel911\sourcesdk_content\cstrike\mapsrc\bridge5.bsp ** Executing... ** Command: Copy File ** Parameters: "C:\Program Files\Steam\SteamApps\coreyduffel911\sourcesdk_content\cstrike\mapsrc\bridge5.bsp" "c:\program files\steam\steamapps\coreyduffel911\counter-strike source\cstrike\maps\bridge5.bsp" The command failed. Windows reported the error: "Δεν είναι δυνατή η εύρεση του καθορισμένου αρχείου από το σύστημα. need help with that plz
    URL to post:
  • prut96 avatar
    prut96 Joined 13y ago
    Offline
    12y
    I read 3 lines of this tutorial and you already solved my problem! (By telling me i can't include ;, i solved it myself, and found a way to work around it)
    Bananite
    URL to post:
  • Spoz avatar
    Spoz Joined 15y ago
    Offline
    5,172 points Ranked 1,509th
    12 medals 1 legendary 1 rare
    • 10 years a member Medal icon
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • One month a member Medal icon
    12y
    Great, now you just need to work out how to fix datacache.dll's local memory corruption bug
    URL to post:
  • ha_x avatar
    ha_x Joined 12y ago
    Offline
    12y
    I agree, but this is only true for the rad compile or in other words when it starts counting the "lights" this is the time you have to let it be and not interefere, click, just leave the computer until its done
    Bananite
    URL to post:
  • KIPPER avatar
    KIPPER Joined 13y ago
    Offline
    8,518 points Ranked 857th
    32 medals 4 legendary 6 rare
    • 1st Place - Halloween Mapping Contest Medal icon
    • 1st Place - Building Bridges Medal icon
    • 1st Place - Water Park Mapping Contest Medal icon
    • 10 years a member Medal icon
    • 3rd Place - Comic Book Deathrun Mapping Contest Medal icon
    • 2nd Place - GameBanana/PVKII Texture Contest Medal icon
    12y
    Also, when the maps compiling never start clicking shi* coz hammer editor will freeze and quit out. Ao if your compiling your map , leave it..don't click on hammer editor,acrually don't even try to start firefox , that screws iy up aswell.
    URL to post:
  • metz10 avatar
    metz10 Joined 13y ago
    Offline
    1,309 points Ranked 23,680th
    12y
    Can't say I've ever had this problem myself but then again I've only used standard characters to name entities and such. I do strongly agree with the 'save often and under different names' part. You could mention reverting to autosaves to attempt to save the map file if the error is unknown.
    'cS.Metz avatar
    Mantra
    'cS.Metz
    URL to post:

Details

Difficulty Level
Intermediate