I've been using the beta EP1 studiomdl every day. You might try compiling
it with debugging and step through to see why MaterialSystem.dll isn't
being loaded. Either:
a) it can't be found, or
b) the loader can't resolve symbols
You can put these lines in matsys.cpp to try and force the correct DLL
to load:
#if 1 // new lines
char dllPath[MAX_PATH];
if ( FileSystem_GetExecutableDir( dllPath, sizeof( dllPath ) ) )
{
Q_snprintf( dllPath + strlen(dllPath), sizeof(dllPath), "%c%s",
CORRECT_PATH_SEPARATOR, pDllName );
materialSystemDLLHInst = Sys_LoadModule( dllPath );
}
else
#else // old line
materialSystemDLLHInst = g_pFullFileSystem->LoadModule( pDllName );
#endif
Strangely I still need HLMV running or studiomdl segfaults
at this line in matsys.cpp:LoadMaterialSystem:
if (!( g_ShaderAPIFactory = g_pMaterialSystem->Init( "shaderapiempty.dll",
0, CmdLib_GetFileSystemFactory() )) )
-- Tim Baker
So there is a way to compile with the ep1 studiomdl? Because I'm getting
the MaterialSystem.dll error, regardless if I have HLMV running or not. Is
this fixed if I compile the studiomdl from the beta code?
-- Maarten
Well I figured out why vphysics.dll wasn't being loaded.
I was running:
bin\ep1\bin\studiomdl -game "path to orangebox mod"
That caused Steam to overwrite bin\ep1\bin\vphysics.dll (and a
bunch of other files) with the orangebox versions. Having
HLMV running prevented those files from being overwritten.
-- Tim Baker
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders