Skip to content

Game crashed on startup [Error: Material "__background" uses unknown shader "UnlitGeneric_DX8"] #132

@steadyfield

Description

@steadyfield

The game is built on Windows 10 VS2015 environment with https://github.com/nillerusr/source-engine/wiki/How-to-build , for Windows. I use the game asset files extracted from "main.22.com.nvidia.valvesoftware.halflife2.obb" and "patch.22.com.nvidia.valvesoftware.halflife2.obb". The game crashed on startup. After the game crashed, there is a "engine.log" file in the same folder of "hl2_launcher.exe". Here is the engine log:

`>>> Engine(arch:i386 commit:ba90de2) started at Wed Nov 2 17:36:52 2022

[0.1062] LoadLibrary: pModule: sourcevr.dll, path: D:\source_engine/bin/sourcevr.dll
[0.1062] AppFramework : Unable to load module sourcevr.dll!
[0.1063] LoadLibrary: pModule: shaderapidx9.dll, path: D:\source_engine/bin/shaderapidx9.dll
[0.1063] LoadLibrary: pModule: video_quicktime, path: D:\source_engine/bin/video_quicktime
[0.1063] LoadLibrary: pModule: video_bink, path: D:\source_engine/bin/video_bink
[0.1080] Using Breakpad minidump system. Version: 0 AppID: 220
[0.1092] filesystem BaseDir: D:\source_engine
[0.2330] Did not detect any valid joysticks.
[0.2353] LoadLibrary: pModule: USER32.dll, path: D:\source_engine/bin/USER32.dll
[0.2374] LoadLibrary: pModule: stdshader_dbg.dll, path: D:\source_engine/bin/stdshader_dbg.dll
[0.2392] LoadLibrary: pModule: stdshader_dx6.dll, path: D:\source_engine/bin/stdshader_dx6.dll
[0.2418] LoadLibrary: pModule: stdshader_dx7.dll, path: D:\source_engine/bin/stdshader_dx7.dll
[0.2447] LoadLibrary: pModule: stdshader_dx8.dll, path: D:\source_engine/bin/stdshader_dx8.dll
[0.2513] Convar mat_specular has conflicting FCVAR_CHEAT flags (child: FCVAR_CHEAT, parent: no FCVAR_CHEAT, parent wins)
[0.2815] LoadLibrary: pModule: unicode, path: D:\source_engine/bin/unicode
[0.7463] Error: Material "__background" uses unknown shader "UnlitGeneric_DX8"
`

I tried replacing these background files in (hl2/materials/console/*) with the files on a PC version of HL2, ang the problem still occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existswindows

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions