mos9527 / sssekai_blender_io

Project SEKAI Blender Asset Importer / PJSK 资源导入插件
https://github.com/mos9527/sssekai
MIT License
9 stars 0 forks source link

import issue #3

Closed ChicoEevee closed 3 months ago

ChicoEevee commented 4 months ago

some models fail to load

image

Error during the parsing of object 7138686018295755798 expected str, bytes or os.PathLike object, not NoneType Returning the typetree

Error during the parsing of object 7138686018295755798 expected str, bytes or os.PathLike object, not NoneType Returning the typetree mesh = bpy.data.meshes.new(name=data.name)
mos9527 commented 3 months ago

~~This is a UnityPy issue. Reverting the game's Unity version seems to fix it (for now). I've added an option to specify which Unity version to use when importing, as shown here. image You shoud update the addon (and sssekai to its latest version as well) to use it. Please let me know if the fix worked for you or not. Thanks for reporting!~~ UPDATE: I've identified the issue, which actually comes from incomplete Unity environment setup (i.e. AssetBundle's dependencies not being loaded) UPDATE 2: Furthermore, UnityPy doesn't seem to handle Unity 2022 Meshes correctly. This seems to have fixed the loading issue. I've submitted a PR which is currently pending review. This might take me some time to fix. For now, please wait for a bit longer.

ChicoEevee commented 3 months ago

oh k, thanks!

mos9527 commented 3 months ago

The updated version of UnityPy is now available on PyPI. Meaning you can now easily update your installation of sssekai (in Blender) by following the updated README. And ofc, sssekai_blender_io needs to be updated as well. You have to re-install the plugin for now since I've yet to implement an updater. Some notes on the updated addon:

That's it for now. Hopefully this can fix things up on your end as well!