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
389 stars 30 forks source link

ValueError: file is not a VPK (invalid magic) #148

Closed kflittle01 closed 1 year ago

kflittle01 commented 1 year ago

I just installed this addon to start porting TF2 maps to Unreal, but it keeps giving me this block of errors.

image

Is there something I can do about this or is it a bug? I already have the Blender Source Tools addon as well.

lasa01 commented 1 year ago

This usually means that you have a multipart .vpk file configured incorrectly. A multipart .vpk file consists of a main file ending with _dir.vpk, and the other parts end with _001.vpk, _002.vpk etc. You must not have any vpk files ending with numbers in the game configuration, as this will lead into the "File is not VPK" error. Instead, only having the _dir.vpk will provide access to all required files.

There is also a "Plumber" beta version in the releases page which has automatic game configuration. I recommend you try that in any case, since it is also a lot faster.

It could be also possible that if you have any wildcard directories configured, the wrong vpk files will get incorrectly detected with the older io_import_vmf. This is fixed in the Plumber beta.

kflittle01 commented 1 year ago

Thanks a bunch, tried Plumber and it works!