Having an Issue with certain morphs and characters

Issue #34 closed
Green Flamingo Entertainment created an issue

Hey there I’m currently using 1.4.2 and i have been trying to figure out what is happening with a morph set. I really like the figure and its specialty morphs but when I add the morphs in, they error out and im not sure why. It works in Daz Studio perfectly but when I go to import it into blender it errors out and only after taking off the morphs does it work like a charm. I’ve tried using previous versions but they dont have any difference either. I cant find version 1.4.0 so I havent tried on there either.

I thought about maybe trying to save my characters along with the morph changes as their own new morph, to try and get around it, but ill have to try and figure out how to do that to see if it works. If you have any recommendations or solutions it would be greatly appreciated.

I also wanted to say a huge thanks, this addon is pretty amazing. Without a doubt it is a huge game changer for me in terms of wanting to try animating with daz figures in blender, which really wouldnt be possible without your work. I can even get Rex 2 in Blender to work amazingly well, it looks great. I would buy this addon.

ERROR:
This file is corrupt:
"C:/Users/Public/Documents/My DAZ 3D Library/data/daz 3d/genesis 3/female/morphs/pretty3d/prettybaseng/pbmpbngbreastspadded.dsf"
Error: "'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte"
For details see
'C:\Users\Flamingo\Documents\daz_importer_errors.txt'

TRACEBACK:
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\error.py", line 177, in execute
self.run(context)
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\daz.py", line 48, in run
getMainAsset(self.filepath, context, self)
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\main.py", line 63, in getMainAsset
main = parseAssetFile(struct, toplevel=True)
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\files.py", line 281, in parseAssetFile
return asset.parse(struct)
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\files.py", line 138, in parse
asset = self.parseUrlAsset(mstruct)
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\asset.py", line 158, in parseUrlAsset
asset = self.getTypedAsset(struct["url"], type)
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\asset.py", line 128, in getTypedAsset
asset = self.getAsset(id)
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\asset.py", line 84, in getAsset
return self.getNewAsset(id, ref, strict)
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\asset.py", line 95, in getNewAsset
struct = readDufFile(filepath)
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\readfile.py", line 76, in readDufFile
return corruptError(unierr, filepath)
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\readfile.py", line 103, in corruptError
reportError(msg, trigger=(1,2))
File "C:\Users\Flamingo\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Diffeomorphic-import-daz-c3ab5bbd2a1b\error.py", line 88, in reportError
raise DazError(msg)

Comments (3)

  1. Thomas Larsson repo owner

    Well, the error message is pretty clear; there is something wrong with the file "C:/Users/Public/Documents/My DAZ 3D Library/data/daz 3d/genesis 3/female/morphs/pretty3d/prettybaseng/pbmpbngbreastspadded.dsf"

    A dsf file is either a json file (i.e. a text file), or a gzipped json file. The first byte is the character with ascii code 0x8b = 139, which is the character ï, and a json file can not start with that character. Perhaps the add-on failed to unzip the file, but then it is corrupt anyway.

    It seems that in some situations DS is less strict about what is a legal json file. The add-on uses python’s built-in gzip and json modules to read the file, so legal syntax is whatever those modules say. You can examine the file in a text editor. The button Decode File in the Utilities panel decodes a gzipped duf/dsf file and create a txt file in the same directory.

  2. Log in to comment