HL2 beta SDK hammer crashes when using Vgui modelbrowser with custom hammer GameConfig for mod
I added an extra config the the GameConfig.txt for the beta sdk tool of HL2.
The GameConfig for my mod is basicly a duplicate of the one for EP2, with the only difference being the gamedirectory (to load custom models/textures in hammer)
"GameDir" "C:\Program Files (x86)\Steam\steamapps\sourcemods\downfall"
This points to the old Sourcemods folder because storing my mod in common/Half-Life 2/ep2/custom/ doesn't work, the mod won't show up in steam (yes, I did restart Steam)
When starting hammer it gives this error:
Failed to load the default scheme file. The map views may be missing some visual elements.
When I open up the VGUI modelbrowser it crashes hammer.
- The blend on blended textures for displacements is also reversed
- no dimensions are shown when creating new brushes or when selecting existing model or brushes
- alpha maps on models are drawn solid in hammer
Can you post your mods gameinfo.txt here please
https://gist.github.com/marnamai/5806083
You will need to manually set the VPROJECT environment variable to the full path to your mod, hammer should then work (you may need to reboot after setting the environment variable, yay windows).
Tell me if that doesn't fix it.
I tried, but it still crashes hammer.

NOTE: the mod doesn't have it's down bin dll's, it just piggybacks on the ep2 code.
new gameinfo.txt https://gist.github.com/marnamai/5873290
gameconfig for hammer
"DownFall"
{
"GameDir" "C:\Program Files (x86)\Steam\steamapps\sourcemods\downfall"
"Hammer"
{
"GameData0" "C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\bin\halflife2.fgd"
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"GameExe" "C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\hl2.exe"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_start"
"BSP" "C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\bin\vbsp.exe"
"Vis" "C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\bin\vvis.exe"
"Light" "C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\bin\vrad.exe"
"GameExeDir" "C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2"
"MapDir" "C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\content\ep2\mapsrc"
"BSPDir" "C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\ep2\maps"
"CordonTexture" "tools\toolsskybox"
"MaterialExcludeCount" "0"
}
}
Try changing VPOJECT via bat. Like this:
CD "%~d0%~p0..\hl2"
SET VPROJECT=%CD%
Same thing with "Source SDK Base 2013". The only way i found is to copy sourcescheme.res and sourceschemebase.res from Source SDK Base 2013 Singleplayer\platform\resource to Source SDK Base 2013 Singleplayer\bin\resource.
Okay, I have a fix for the "Failed to load the default scheme file. The map views may be missing some visual elements." error on load.
The "source sdk 2013 base single player" app update today contains this fix. This fix will roll through our other titles as they next update.
Seems hammer still needs sourceschemebase.res, because modelbrowser is black, not green. Tested in "Source SDK Base 2013 Singleplayer".

I believe it is black by design, that is the new visual style brought over from the SFM work.
oh #67 has some more details here on the black background, I'll follow up in that bug.
No, it's not. Normally it looks like this:

When i was looking for a solve, i found this: https://developer.valvesoftware.com/wiki/Failed_to_load_the_default_scheme_file
So at first i copied sourcescheme.res to Source SDK Base 2013 Singleplayer\bin\resource, and modelbrowser was black. Then i added sourceschemebase.res there, and modelbrowser became green as usual.
Hello. I am having this issue also. When loading the model browser from hammer while working from a directory in /sourcemods the editor instantly crashes.
My gameinfo.txt
"GameInfo"
{
game "Half-Life 2: Leviathan"
title "HALF-LIFE'"
title2 "LEVIATHAN : Part 1"
type singleplayer_only
developer "Darren Weekes"
developer_url "http://mechanized.carbonmade.com/"
FileSystem
{
SteamAppId 420 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
//
// The code that loads this file automatically does a few things here:
//
// 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin
// 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
// For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.
// 3. For the first "Game" search path, it adds a search path called "MOD".
// 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
//
//
// Search paths are relative to the base directory, which is where hl2.exe is found.
//
// |gameinfo_path| points at the directory where gameinfo.txt is.
// We always want to mount that directory relative to gameinfo.txt, so
// people can mount stuff in c:\mymod, and the main game resources are in
// someplace like c:\program files\valve\steam\steamapps\half-life 2.
//
SearchPaths
{
// First, mount all user customizations. This will search for VPKs and subfolders
// and mount them in alphabetical order. The easiest way to distribute a mod is to
// pack up the custom content into a VPK. To "install" a mod, just drop it in this
// folder.
//
// Note that this folder is scanned only when the game is booted.
game+mod |gameinfo_path|.
platform |gameinfo_path|.
// We search VPK files before ordinary folders, because most files will be found in
// VPK and we can avoid making thousands of file system calls to attempt to open files
// in folders where they don't exist. (Searching a VPK is much faster than making an operating
// system call.)
game_lv hl2/hl2_lv.vpk
game+mod ep2/ep2_english.vpk
game+mod ep2/ep2_pak.vpk
game |all_source_engine_paths|episodic/ep1_english.vpk
game |all_source_engine_paths|episodic/ep1_pak.vpk
game |all_source_engine_paths|hl2/hl2_english.vpk
game |all_source_engine_paths|hl2/hl2_pak.vpk
game |all_source_engine_paths|hl2/hl2_textures.vpk
game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
game |all_source_engine_paths|hl2/hl2_misc.vpk
platform |all_source_engine_paths|platform/platform_misc.vpk
// Now search loose files. We'll set the directory containing the gameinfo.txt file
// as the first "mod" search path (after any user customizations). This is also the one
// that's used when writing to the "mod" path.
mod+mod_write+default_write_path |gameinfo_path|.
// Add the HL2 directory as a game search path. This is also where where writes
// to the "game" path go.
game+game_write |gameinfo_path|.
// Where the game's binaries are
gamebin episodic/bin
// Last, mount in shared HL2 loose files
game |all_source_engine_paths|episodic
game |all_source_engine_paths|hl2
platform |all_source_engine_paths|platform
}
}
}
I have a ton of "hammer_20130724_141159_1_accessviolation.mdmp" files in my /bin directory, I can upload them if that will help diagnose the problem.
-Edit, adding the entry for my mod in the GameConfig.txt in halflife2/bin -
"Leviathan"
{
"GameDir" "E:\Games\Steam\SteamApps\SourceMods\Leviathan"
"Hammer"
{
"GameData0" "E:\Games\Steam\SteamApps\common\Half-Life 2\bin\halflife2.fgd"
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"GameExe" "E:\Games\Steam\SteamApps\common\Half-Life 2\hl2.exe"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "prop_static"
"BSP" "E:\Games\Steam\SteamApps\common\Half-Life 2\bin\vbsp.exe"
"Vis" "E:\Games\Steam\SteamApps\common\Half-Life 2\bin\vvis.exe"
"Light" "E:\Games\Steam\SteamApps\common\Half-Life 2\bin\vrad.exe"
"GameExeDir" "E:\Games\Steam\SteamApps\common\Half-Life 2"
"MapDir" "E:\Files\Level Design\hl2maps\Leviathan\vmf"
"BSPDir" "E:\Games\Steam\SteamApps\SourceMods\Leviathan\maps"
"CordonTexture" "BLACK"
"MaterialExcludeCount" "0"
}
}
-Edit 2, I added my mod settings to the sdk 2013 version of hammer and the problem vanishes. I guess this is fixed then and just needs to be pushed to the hammer in hl2.
Same BLACK problem with model viewer. :/ Source SDK Base 2013 Multiplayer
