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

MDLs with animations only are not supported #147

Open radzo73 opened 1 year ago

radzo73 commented 1 year ago

Describe the bug Player animations (both *_animations.mdl and *_user_animations.mdl) are not imported with the selected model .mdl, even when "Import Animations" is enabled

To Reproduce Steps to reproduce the behavior:

  1. Import a TF2 player .mdl (e.g models/player/heavy.mdl)
  2. Set option Import Animations to true
  3. Only the /@ragdoll and /@ref animations are imported, but nothing from *_animations.mdl or*_user_animations.mdl.

Expected behavior Player animations are imported when I import a player model with "Import Animations" enabled

Related files Heavy.zip

Screenshots The only animations imported with "Import Animations" enabled

Details (please complete the following information):

Additional context When trying to import *_animations.mdl or*_user_animations.mdl, I get errors depending on if done via file game files import, or importing an exported file. (Oddly, these errors only show up in the Info editor type, and not the console) Error when importing via bpy.ops.import_scene.plumber_file_browser() (i.e the sidebar): could not import mdl: io error reading models/player/heavy_animations.vvd: no such file

Error when importing a previously exported file via bpy.ops.import_scene.plumber_mdl(from_game_fs=False): could not import mdl: io error reading ./heavy_animations.vvd: The system cannot find the file specified. (os error 2)

ratking114 commented 1 year ago

I can confirm this happens as I tried doing the same thing. Hopefully it gets fixed or someone finds a work around

lasa01 commented 1 year ago

These are indeed currently not supported, but I'm looking to add support for these when I have time. I don't think there are any workarounds in the meanwhile.