DragonFF icon indicating copy to clipboard operation
DragonFF copied to clipboard

Import issue with multi-clump DFF models and texture linking differences

Open MadGamerHD opened this issue 8 months ago • 2 comments

Hi DragonFF team i dont mean to bother you,

I’m experiencing issues importing certain DFF models that contain multiple clumps, such as the CJ torso model, which includes three clump sets for thin, medium, and fat weights.

Currently, the tool only imports the first clump and ignores the others. When attempting to import the full model, the following error message appears:

Python: Traceback (most recent call last): 
  File "C:\Users\name\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\DragonFF-master\gui\dff_ot.py", line 389, in execute
    importer = dff_importer.import_dff(
  File "C:\Users\name\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\DragonFF-master\ops\dff_importer.py", line 899, in import_dff
    dff_importer.import_dff(options['file_name'])
  File "C:\Users\name\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\DragonFF-master\ops\dff_importer.py", line 839, in import_dff
    self.import_frames()
  File "C:\Users\name\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\DragonFF-master\ops\dff_importer.py", line 744, in import_frames
    obj = bpy.data.objects.new(frame.name, None)
TypeError: BlendDataObjects.new(): error with argument 1, "name" -  Function.name doesn't support None from string types

Additionally, I’ve noticed that the textures on these models are linked differently than in typical DFF files. It seems the textures are referenced in an alternate way that the importer doesn’t currently handle correctly.

Could you please look into:

  • Supporting the import of all clumps in multi-clump DFF models so the full model imports properly.
  • Fixing the texture linking to correctly load these alternatively referenced textures.

The textures on this model don’t work like typical DFF files. They seem to be linked differently—possibly referenced in an alternate way that the importer currently doesn’t support.

Could you please investigate the following:

  • Enable importing all clumps in multi-clump DFF models, instead of just the first clump, so the entire model imports correctly.
  • Fix the texture linking to properly handle these alternate texture references, ensuring all textures load as expected.

“Thanks in advance! If you need any additional information, please let me know and I’ll be happy to provide it.”

MadGamerHD avatar Jun 23 '25 11:06 MadGamerHD

You should use a multi-clump branch: https://github.com/Parik27/DragonFF/tree/multi-clump

This functionality is still raw for the main branch and exporting with “Delta Morph Multiple Clumps” turned off may not work properly.

Related issues: https://github.com/Parik27/DragonFF/issues/355 https://github.com/Parik27/DragonFF/issues/256 https://github.com/Parik27/DragonFF/issues/109

Psycrow101 avatar Jun 23 '25 13:06 Psycrow101

Some notes:

  • You have to import and export as "Delta Morph Multiple Clumps", there is no way around it or they will look all broken (like in #355), but honestly this shouldn't be a big deal.
  • Textures won't get read properly, hence you will need to import the materials manually

Apart from that exports seem to work just fine, as long as you check "Delta Morph Multiple Clumps". Thanks Psycrow101 for pointing out there was a multi-clump branch btw, I didn't know that until I saw this issue.

Just to show that modifying the model works as it should: Image

PlatinMTA avatar Jul 04 '25 11:07 PlatinMTA