lasa01 / Plumber

A Blender addon for importing Source 1 engine maps, models, materials and textures. This addon makes it possible to import full CS:GO, TF2, CS:S or other Source 1 game maps into Blender.
MIT License
395 stars 29 forks source link

The game file browser cannot read CS:S files | Plumber #125

Closed JokanJan closed 2 years ago

JokanJan commented 2 years ago

Describe the bug The plugin reports an error when using the Game File Browser to view CS:S files. Even when switching to English in Steam's game properties, it still lacks the cstrike_english.vpk file mentioned in its error.

Logs

[Plumber] [WARN] opening filesystem: vpk file `J:\SteamLibrary\steamapps\common\Counter-Strike Source\cstrike/cstrike_english.vpk` not found
Traceback (most recent call last):
  File "C:\Users\jian8\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\plumber\tools.py", line 193, in invoke
    GameFileBrowser.browser = game.get_file_system().browse()
OSError: error reading `J:\SteamLibrary\steamapps\common\Counter-Strike Source\cstrike/cstrike_english.vpk`: reading vpk failed: io error: 系统找不到指定的文件。 (os error 2)

Screenshots Snipaste_2022-06-12_09-42-06

Details (please complete the following information):

lasa01 commented 2 years ago

The gameinfo.txt probably contains this file even though it doesn't exist. I'll change it to just warn on missing files instead of throwing an exception.

lasa01 commented 2 years ago

Should be fixed in latest release.