BadDogSkyrim / PyNifly

Export/Import tools between Blender and the Nif format, using Bodyslide/Outfit Studio's Nifly layer. Supports Skyrim LE, Skyrim SE, Fallout 4, Fallout New Vegas, Fallout 76, and Fallout 3.
GNU General Public License v3.0
178 stars 16 forks source link

Can't import any HKX (12.1.0) #171

Open TokyoSU opened 1 year ago

TokyoSU commented 1 year ago

Seem like i can't import skeleton nor animation nor any HKX (like DeathclawProject.hkx or skeleton.hkx or DeathclawEverything.hkx or DeathclawRootBehavior.hkx) It always fail at creating the xml, i even started blender in admin just in case it was permission but nothing. Fallout4ImportHKX Through the nif work :) Fallout4Nif Using latest blender 3.6. A tutorial about how to use this tools would be great 👍 EDIT: so after some search i found: https://www.youtube.com/watch?v=OFuoH80JOIY but it's still throw error when creating the xml.

BadDogSkyrim commented 1 year ago

This is only working for Skyrim LE. I'm hunting a solution for FO4.

TokyoSU commented 1 year ago

So i switched to Skyrim LE, it's working :) (but will return to fallout4 when it's compatible)

podvornyakva commented 1 year ago

hunting

Hey, Man! I get same issue. I'm sitting on Skyrim AE. Made all along your youtube tutorial and get this.

==================================== PYNIFLY IMPORT HKX V12.4.0

ERROR:pynifly:Import of HKX file failed Traceback (most recent call last): File "Z:\media\box\data\projects\model\software\3.6.5-windows\3.6\scripts\addons\io_scene_nifly__init.py", line 2777, in execute self.xmlfile = xmltools.XMLFile(self.filepath, self) File "Z:\media\box\data\projects\model\software\3.6.5-windows\3.6\scripts\addons\io_scene_nifly\xmltools.py", line 36, in init__ self.open(filepath) File "Z:\media\box\data\projects\model\software\3.6.5-windows\3.6\scripts\addons\io_scene_nifly\xmltools.py", line 115, in open fp = XMLFile.hkx_to_xml(self.hkx_filepath) File "Z:\media\box\data\projects\model\software\3.6.5-windows\3.6\scripts\addons\io_scene_nifly\xmltools.py", line 62, in hkx_to_xml raise RuntimeError(f"Failed to create {xml_filepath}") RuntimeError: Failed to create C:\users\steamuser\Temp\tmp_stf_equip.xml INFO:pynifly:

PyNifly IMPORT of stf_equip.hkx completed WITH ERRORS

xmltools.py

    if not os.path.exists(hkx_filepath):
        raise ValueError(f"Failed to create {hkx_filepath}")

Got three files in pointed folder: 3388_autosave.blend, tmp_stf_equip.hkx, tmp_stf_equip_1.hkx. But no xml.

Addon version: 12.4.0 Blender version: 3.6.5

Later will try on 3.3.12 Blender.

Update. Nothing works. Neither 3.6/3.3, nor with .NET Framework or without(i'm a GNU/Linux user). Same issue for all conditions. "Fail to create xml". Also i've noticed that vanilla meshes and skeleton from AE did not load at all. While, with XM32 skeleton and CBBE meshes, work almost smoothly.

BadDogSkyrim commented 1 year ago

Doesn't work on AE or SE. LE only. The HKX is different.

podvornyakva commented 1 year ago

It is very disappointing... :(

podvornyakva commented 1 year ago

Doesn't work

By the way. There is hkxconv project on git hub. My buddy tested it for me on Windows platform and it works for SE/AE. It uses HKX2Library. Same - project on Git hub in source code. Pity that i can't run it on Linux WINE. Or compile, some how, to make it run without .NET dependencies. Anyway - HKX2Library is solution. It just needed to strip away .NET C# from code and make it pure C++, to make it run on any platform. Hard times coming... ^_^

jjtnb123 commented 3 months ago

Is your problem solved? I'm also having the same issue

jjtnb123 commented 3 months ago

30b8e489-5b13-4bda-bfa5-327cf8d58dcb