monkeyman192 / NMSDK

Custom Model importer for NMS
https://monkeyman192.github.io/NMSDK/
30 stars 9 forks source link

[BUG] Unable to load a scene #106

Open podi123 opened 1 day ago

podi123 commented 1 day ago

hi i have a bug sometimes when i import a file in blender with sdk some files cant render and i have this message: error

i use blender 4 and your last sdk what is wrong? file or my config please?

monkeyman192 commented 1 day ago

Please specify what scene you are loading so I can try it myself. It's likely it contains something that I hadn't updated

podi123 commented 18 hours ago

Thanks for your fast reply i think the files from PLAYER/PLAYERCHARACTER and WEAPONS/MULTITOOL cant be imported i ve try to delete your 'light" code lines from plugin and now it work. I just need convert to .stl , so no need light in blender.

monkeyman192 commented 11 hours ago

Can you provide the full path anyway? It would be good to fix the issue. I thought people on discord were able to import the player character and multitools scenes, but maybe there is one that wasn't tried?

podi123 commented 11 hours ago

yes, unpack\MODELS\COMMON\PLAYER\PLAYERCHARACTER\NPCNADA.SCENE.MBIN unpack\MODELS\COMMON\PLAYER\PLAYERCHARACTER\NPCGEK.SCENE.MBIN unpack\MODELS\COMMON\PLAYER\PLAYERCHARACTER\NPCNADA.SCENE.MBIN unpack\MODELS\COMMON\PLAYER\PLAYERCHARACTER\NPCPOLO.SCENE.MBIN unpack\MODELS\COMMON\PLAYER\PLAYERCHARACTER\NPCROBOT.SCENE.MBIN ETC... unpack\MODELS\COMMON\WEAPONS\MULTITOOL\ATLASMULTITOOL.SCENE.MBIN unpack\MODELS\COMMON\WEAPONS\MULTITOOL\GUNMUZZLEFLASH.SCENE.MBIN unpack\MODELS\COMMON\WEAPONS\MULTITOOL\LASERMUZZLEFLASH.SCENE.MBIN ETC...

errors:

Python : Traceback (most recent call last): File "C:\Users\podi\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NMSDK-master\NMSDK.py", line 933, in execute importer.render_scene() File "C:\Users\podi\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NMSDK-master\ModelImporter\import_scene.py", line 376, in render_scene added_obj = self._add_empty_to_scene(obj) File "C:\Users\podi\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NMSDK-master\ModelImporter\import_scene.py", line 689, in _add_empty_to_scene sub_scene.render_scene() File "C:\Users\podi\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NMSDK-master\ModelImporter\import_scene.py", line 385, in render_scene added_obj = self._add_light_to_scene(obj) File "C:\Users\podi\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NMSDK-master\ModelImporter\import_scene.py", line 715, in _add_light_to_scene light.node_tree.nodes['Emission'].inputs[1].default_value = intensity KeyError: 'bpy_prop_collection[key]: key "Emission" not found'