Plumber icon indicating copy to clipboard operation
Plumber copied to clipboard

MDLs with animations only are not supported

Open radzo73 opened this issue 1 year ago • 2 comments

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):

  • OS: Windows 10
  • Blender Version: 3.4.1
  • Addon Version: Plumber 1.0.0-beta3
  • Did you download a release or build the addon yourself: Downloaded
  • Related Game: Team Fortress 2

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)

radzo73 avatar Jan 06 '23 01:01 radzo73