-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Game crashed on startup [Error: Material "__background" uses unknown shader "UnlitGeneric_DX8"] #132
Comments
Use steam hl2 assets |
Same error. It happened in one of the PCs I'm testing in the non steam version. I'll check what will be. I don't know exactly what will be. Is a component from Microsoft DirectX required to run the game? It worked in another PC when I did that Steam setup steps I mentioned here. One of the weird ideas I got trying to solve this, I still don't consider as solved though. |
@LegendaryGuard Thanks for your reply. So if you use the steam version assets, it is working fine? Could you figure out what are the differences between the assets of these versions? Is there any binary file (DLL) from the steam version assets needed to run this? It seems that something is wrong with I will get the steam version assets to see if it is working. |
Attach the game to vs see where its crashing, otherwise just use steam assets. You are asking nillerusr to fix an user error. There's a reason why they specifically told us to use the steam assets ONLY. |
I'm NOT asking anyone to fix this problem. I just want to discuss with the others who are interested in fixing this. |
And i already told you the fix: Use the steam hl2 assets. The assets inside of those .obb files are made for the mobile version of the game, it is probably incompatible with the pc version. |
I will get the steam version assets to see if it works. |
I checked deeply as I could. Also, I think there's a TODO about this topic in the README (maybe it'll be that): |
Steam is not supported on android, you remember this repo is for porting the engine to android right? |
Yeah. Unfortunately, without steam stuff won't work. It would be great to work without, everyone would have the liberty to modify the base as they want. Also, it would be cool to work on old and low spec devices and PCs. |
I have the same error, i am using the original steam assets. Has anyone found a solution for this issue? |
add |
Thank you very much. the game is now working, but there are some other error/crashes. Now I can enter the map, but when walking forward a few steps in the game, the game crashes. There is no log about the crash in engine.log.
it seems to be the problem of the sound system. Edit: |
When I have run the game successfully with Edit: I have figured that out. The |
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.
The text was updated successfully, but these errors were encountered: