Skip to content
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

SetupStartupGraphic can't find background inside VPK dir #292

Open
gudvinr opened this issue Sep 25, 2023 · 2 comments
Open

SetupStartupGraphic can't find background inside VPK dir #292

gudvinr opened this issue Sep 25, 2023 · 2 comments

Comments

@gudvinr
Copy link

gudvinr commented Sep 25, 2023

I am trying to debug engine build using L4D2 game data.

source-engine installed with:

$ ./waf configure -T debug --64bits --prefix=%root%
$ ./waf build
$ ./waf install

%root% is a separate copy of steamapps/common/Left 4 Dead 2.
All .so and binaries from that copy were deleted prior installation.

Then, I am trying to run the game with ./hl2_launcher -game left4dead2 and get error message:

Can't find background image 'materials/console/background01_widescreen.vtf'

Thing is, materials/console/background01_widescreen.vtf is in left4dead2/pak01_dir.vpk:

vpk -l left4dead2/pak01_dir.vpk -f 'materials/console/background01_widescreen.vtf'
materials/console/background01_widescreen.vtf

Here's startup log:

STDOUT
SDL version: 2.28.3 rev: SDL-release-2.28.3-0-g8a5ba43d0
LoadLibrary: path: %root%/bin/libfilesystem_stdio.so
SDL video target is 'x11'
SDL video target is 'x11'
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system supports the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system supports the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system supports the OpenGL extension GL_NVX_gpu_memory_info.
This system supports the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system supports the OpenGL extension GL_ARB_buffer_storage.
This system supports the OpenGL extension GLX_EXT_swap_control_tear.
OpenGL: AMD Radeon RX Vega M GL Graphics (vegam, LLVM 16.0.6, DRM 3.49, 6.1.55-1-lts) 4.6 (Compatibility Profile) Mesa 23.1.8-arch1.1 (4.6.0)
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_ARB_buffer_storage: NOT AVAILABLE
GL_EXT_texture_sRGB_decode: AVAILABLE
LoadLibrary: pModule: engine.so, path: %root%/bin/libengine.so
LoadLibrary: pModule: inputsystem.so, path: %root%/bin/libinputsystem.so
LoadLibrary: pModule: materialsystem.so, path: %root%/bin/libmaterialsystem.so
LoadLibrary: pModule: datacache.so, path: %root%/bin/libdatacache.so
LoadLibrary: pModule: studiorender.so, path: %root%/bin/libstudiorender.so
LoadLibrary: pModule: vphysics.so, path: %root%/bin/libvphysics.so
LoadLibrary: pModule: video_services.so, path: %root%/bin/libvideo_services.so
LoadLibrary: pModule: vguimatsurface.so, path: %root%/bin/libvguimatsurface.so
LoadLibrary: pModule: vgui2.so, path: %root%/bin/libvgui2.so
Can't find module - sourcevr.so
AppFramework : Unable to load module sourcevr.so!
LoadLibrary: path: %root%/bin/libfilesystem_stdio.so
LoadLibrary: pModule: shaderapidx9.so, path: %root%/bin/libshaderapidx9.so
Can't find module - video_bink
Can't find module - video_webm
Using Breakpad minidump system. Version: 0 AppID: 550
filesystem BaseDir: %root%
Did not detect any valid joysticks.
GL_NVX_gpu_memory_info: AVAILABLE
GL_ATI_meminfo: AVAILABLE
GL_NVX_gpu_memory_info: Total Dedicated: 4194304, Total Avail: 20587098, Current Avail: 1724636
GL_MAX_SAMPLES_EXT: 8
Can't find module - %root%/bin/stdshader_dbg.so
Can't find module - %root%/bin/libstdshader_dbg.so
Can't find module - stdshader_dbg.so
Can't find module - %root%/bin/stdshader_dx6.so
Can't find module - %root%/bin/libstdshader_dx6.so
Can't find module - stdshader_dx6.so
Can't find module - %root%/bin/stdshader_dx7.so
Can't find module - %root%/bin/libstdshader_dx7.so
Can't find module - stdshader_dx7.so
Can't find module - %root%/bin/stdshader_dx8.so
Can't find module - %root%/bin/libstdshader_dx8.so
Can't find module - stdshader_dx8.so
Can't find module - %root%/bin/stdshader_dx9.so
LoadLibrary: path: %root%/bin/libstdshader_dx9.so
Convar mat_specular has conflicting FCVAR_CHEAT flags (child: FCVAR_CHEAT, parent: no FCVAR_CHEAT, parent wins)
Can't find module - game_shader_dx6.so
Can't find module - game_shader_dx7.so
Can't find module - game_shader_dx8.so
Can't find module - game_shader_dx9.so
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
Requested non-existent write path MOD!
IDirect3DDevice9::Create: BackBufWidth: 3840, BackBufHeight: 2160, D3DFMT: 3, BackBufCount: 1, MultisampleType: 0, MultisampleQuality: 0
GL sampler object usage: DISABLED

 ##### CTexture::LoadTextureBitsFromFile couldn't find materials/debug/debugluxelsnoalpha.vtf

 ##### CTexture::LoadTextureBitsFromFile couldn't find materials/dev/identitylightwarp.vtf

 ##### CTexture::LoadTextureBitsFromFile couldn't find materials/engine/normalizedrandomdirections2d.vtf
Can't find background image 'materials/console/background01_widescreen.vtf'

Then I launched hl2_launcher with -profile 1 argument:

timestamped.log
  0.4094 /   0.4094:  LoadAppSystems:  Took 0.0946 secs to load libraries and get factories.
  0.7590 /   0.3496:  Steam3Client().Activate()
  0.7591 /   0.0000:  COM_InitFilesystem( m_StartupInfo.m_pInitialMod )
  0.7591 /   0.0001:  KeyValues::LoadFromBuffer(left4dead2/gameinfo.txt): Begin
  0.7592 /   0.0001:  KeyValues::LoadFromBuffer(left4dead2/gameinfo.txt): End
  1.6474 /   0.8882:  KeyValues::LoadFromFile(gameinfo.txt): Begin
  1.6476 /   0.0002:  KeyValues::LoadFromBuffer(gameinfo.txt): Begin
  1.6477 /   0.0001:  KeyValues::LoadFromBuffer(gameinfo.txt): End
  1.6477 /   0.0000:  KeyValues::LoadFromFile(gameinfo.txt): End / Success
  1.7332 /   0.0855:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): Begin
  1.7333 /   0.0001:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): End / FileNotFound
  1.7333 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): Begin
  1.7334 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): End / FileNotFound
  1.7334 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): Begin
  1.7334 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): End / FileNotFound
  1.7334 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): Begin
  1.7335 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): End / FileNotFound
  1.7335 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): Begin
  1.7335 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): End / FileNotFound
  1.7351 /   0.0016:  KeyValues::LoadFromFile(GAME/materials/dev/compositormultiply.vmt): Begin
  1.7353 /   0.0001:  KeyValues::LoadFromFile(GAME/materials/dev/compositormultiply.vmt): End / FileNotFound
  1.7353 /   0.0000:  KeyValues::LoadFromFile(GAME/materials/dev/compositoradd.vmt): Begin
  1.7354 /   0.0001:  KeyValues::LoadFromFile(GAME/materials/dev/compositoradd.vmt): End / FileNotFound
  1.7354 /   0.0000:  KeyValues::LoadFromFile(GAME/materials/dev/compositorlerp.vmt): Begin
  1.7355 /   0.0001:  KeyValues::LoadFromFile(GAME/materials/dev/compositorlerp.vmt): End / FileNotFound
  1.7355 /   0.0000:  KeyValues::LoadFromFile(GAME/materials/dev/compositorselect.vmt): Begin
  1.7356 /   0.0001:  KeyValues::LoadFromFile(GAME/materials/dev/compositorselect.vmt): End / FileNotFound
  1.7356 /   0.0000:  KeyValues::LoadFromFile(GAME/materials/dev/compositorblend.vmt): Begin
  1.7357 /   0.0001:  KeyValues::LoadFromFile(GAME/materials/dev/compositorblend.vmt): End / FileNotFound
  1.7360 /   0.0003:  KeyValues::LoadFromFile(//platform/materials/debug/debugmrmwireframe.vmt): Begin
  1.7361 /   0.0001:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugmrmwireframe.vmt): Begin
  1.7361 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugmrmwireframe.vmt): End
  1.7361 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugmrmwireframe.vmt): End / Success
  1.7361 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugmrmwireframezbuffer.vmt): Begin
  1.7362 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugmrmwireframezbuffer.vmt): Begin
  1.7362 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugmrmwireframezbuffer.vmt): End
  1.7362 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugmrmwireframezbuffer.vmt): End / Success
  1.7362 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugmrmnormals.vmt): Begin
  1.7363 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugmrmnormals.vmt): Begin
  1.7363 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugmrmnormals.vmt): End
  1.7363 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugmrmnormals.vmt): End / Success
  1.7363 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugvertexcolor.vmt): Begin
  1.7363 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugvertexcolor.vmt): Begin
  1.7364 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugvertexcolor.vmt): End
  1.7364 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugvertexcolor.vmt): End / Success
  1.7364 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugtranslucentmodelhulls.vmt): Begin
  1.7364 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugtranslucentmodelhulls.vmt): Begin
  1.7364 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugtranslucentmodelhulls.vmt): End
  1.7364 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugtranslucentmodelhulls.vmt): End / Success
  1.7364 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugsolidmodelhulls.vmt): Begin
  1.7365 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugsolidmodelhulls.vmt): Begin
  1.7365 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugsolidmodelhulls.vmt): End
  1.7365 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugsolidmodelhulls.vmt): End / Success
  1.7365 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/additivevertexcolorvertexalpha.vmt): Begin
  1.7366 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/additivevertexcolorvertexalpha.vmt): Begin
  1.7366 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/additivevertexcolorvertexalpha.vmt): End
  1.7366 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/additivevertexcolorvertexalpha.vmt): End / Success
  1.7366 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugmodelbones.vmt): Begin
  1.7366 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugmodelbones.vmt): Begin
  1.7366 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugmodelbones.vmt): End
  1.7367 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugmodelbones.vmt): End / Success
  1.7367 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/env_cubemap_model.vmt): Begin
  1.7367 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/env_cubemap_model.vmt): Begin
  1.7367 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/env_cubemap_model.vmt): End
  1.7367 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/env_cubemap_model.vmt): End / Success
  1.7367 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugworldwireframe.vmt): Begin
  1.7368 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugworldwireframe.vmt): Begin
  1.7368 /   0.0000:  KeyValues::LoadFromBuffer(//platform/materials/debug/debugworldwireframe.vmt): End
  1.7368 /   0.0000:  KeyValues::LoadFromFile(//platform/materials/debug/debugworldwireframe.vmt): End / Success
  1.7621 /   0.0253:  game->Init
  1.7621 /   0.0000:  videomode->Init
  1.7622 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): Begin
  1.7622 /   0.0001:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): End / FileNotFound
  1.7622 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): Begin
  1.7623 /   0.0000:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): End / FileNotFound
  1.7626 /   0.0003:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7627 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7627 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7627 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7627 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7627 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7627 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7627 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7627 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7627 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7629 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7629 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7631 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7631 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7678 /   0.0047:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7679 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7680 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7680 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7683 /   0.0003:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7683 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7685 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7685 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7687 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7687 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7688 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7689 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7690 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7690 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7691 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7691 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7693 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7694 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7695 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7695 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7697 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7697 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7698 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7699 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7700 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7700 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7702 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7702 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7704 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7704 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7706 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7706 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7707 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7708 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7709 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7709 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7711 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7711 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7712 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7712 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7713 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7714 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7715 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7715 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7717 /   0.0002:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7717 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7718 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7718 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7719 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7719 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7720 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7720 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7721 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7722 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7722 /   0.0001:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): Begin
  1.7723 /   0.0000:  KeyValues::LoadFromFile(MOD/videoconfig_linux.cfg): End / FileNotFound
  1.7724 /   0.0001:  MapReslistGenerator_Init()
  1.7724 /   0.0000:  DevShotGenerator_Init()
  1.7724 /   0.0000:  CVideoMode_Common::Init  CreateGameWindow
  1.7724 /   0.0000:  CreateGameWindow - Start
  1.7724 /   0.0000:  KeyValues::LoadFromFile(gameinfo.txt): Begin
  1.7725 /   0.0001:  KeyValues::LoadFromBuffer(gameinfo.txt): Begin
  1.7726 /   0.0001:  KeyValues::LoadFromBuffer(gameinfo.txt): End
  1.7726 /   0.0000:  KeyValues::LoadFromFile(gameinfo.txt): End / Success
  1.8933 /   0.1207:  CreateGameWindow - Finish
  1.8935 /   0.0002:  SetMode - Start
  1.9023 /   0.0088:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): Begin
  1.9024 /   0.0001:  KeyValues::LoadFromFile(EXECUTABLE_PATH/dxsupport_linux.cfg): End / FileNotFound
  1.9200 /   0.0177:  WarmTextureCache() - Begin
  1.9790 /   0.0589:  WarmTextureCache() - End (No files loaded)
  1.9790 /   0.0000:  SetMode - Finish
  2.9794 /   1.0004:  DrawStartupGraphic - Start
  2.9794 /   0.0000:  CVideoMode_Common::Init  SetupStartupGraphic
  2.9794 /   0.0000:  KeyValues::LoadFromFile(scripts/ChapterBackgrounds.txt): Begin
  2.9796 /   0.0002:  KeyValues::LoadFromFile(scripts/ChapterBackgrounds.txt): End / FileNotFound

I think there could issues with gameinfo.txt that comes with L4D2 because strace doesn't show that pak01_dir.vpk is being opened.
Also MOD path is not found as it seems which might indicate that none of Game entries in gamemode.txt were mounted correctly.

Here's gamemode.txt that comes with l4d2: gameinfo.txt

@gudvinr
Copy link
Author

gudvinr commented Sep 25, 2023

What I've learnt so far after debugging:

  1. FileSystem_LoadSearchPaths gets called for every entry in SearchPaths
  2. AddVPKFile is not called at all before CTextureManager::WarmTextureCache is called
  3. If I set EXTRAS_VPK_PATH=pwd'/left4dead2/pak01_dir.vpk' then I get splash screen (but after that it fails with Can't find module - client`)
  4. If I add gamebin hl2/bin to SearchPaths, client library gets loaded but I get CSceneFileCache error

CSceneFileCache is irrelevant for this issue because it is caused by newer scene image version (3 vs 2 here)

The rest of it, however, indicates that search paths loading is incompatible with this engine branch.

With that being said, if we look at cstrike15 branch, you can find that its code for FileSystem_AddLoadedSearchPath has this exact section:
// Add language, mod, and gamebin search paths automatically.
And corresponding method AddGameBinDir. So you don't need to specify gamebin explicitly which solves 4.

FileSystem_LoadSearchPaths also works quite differently there. They look inside game paths for pak%02d_dir.vpk files explicitly while here it only happens if you specify wildcard, apparently.

So it seems like cstrike15 based off of l4d2 engine branch (or other way around).

@GrinlexGH
Copy link

any solutions found?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants