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

Error import map black mesa #108

Closed batomot closed 2 years ago

batomot commented 2 years ago

Error import map game black mesa. Log: Traceback (most recent call last): File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf__init.py", line 718, in execute fs = self.get_filesystem(context) File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf__init.py", line 475, in get_filesystem return game_def.get_indexed_filesystem() File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf__init.py", line 270, in get_indexed_filesystem fs_dict[self.name] = VMFFileSystem(data_dirs, data_paks, index_files=True) File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf\deps\vmfpy\fs.py", line 82, in init__ self.index_all() File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf\deps\vmfpy\fs.py", line 150, in index_all self._do_index(self.iter_all()) File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf\deps\vmfpy\fs.py", line 124, in _do_index for path, info in index_iter: File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf\deps\vmfpy\fs.py", line 121, in iter_all yield from self.iter_paks() File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf\deps\vmfpy\fs.py", line 117, in iter_paks yield from self.iter_pak(pak_file) File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf\deps\vmfpy\fs.py", line 110, in iter_pak pak = vpk.open(pak_file) File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf\deps\vpk\init.py", line 16, in open return VPK(*args, **kwargs) File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf\deps\vpk\init.py", line 207, in init__ self.read_header() File "C:\Users\vttet\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_import_vmf\deps\vpk\init__.py", line 309, in read_header raise ValueError("File is not VPK (invalid magic)") ValueError: File is not VPK (invalid magic)

location: :-1

lasa01 commented 2 years ago

Seems like the game configuration is incorrect. Make sure there are no vpk files with numbered suffixes (eg. pak01_001.vpk) in the vpk files section, instead only put the files with _dir.vpk suffix there. Also, wildcard directories should probably be empty.

batomot commented 2 years ago

There are no numbered files in my files. vmf files are numbered only. Без имени

batomot commented 2 years ago

I tried to remove the numbering of vmf files and still this error pops up

batomot commented 2 years ago

Tried to change the directory and the same thing. The files are not broken, maps open easily in the hummer editor

batomot commented 2 years ago

And changing the blender version did not help. I changed the version to 2.90 and the error is the same there

batomot commented 2 years ago

Problem solved. Solution to the problem: remove the numbering of all files in the directories of the root of the game and directories of unpacked maps