monkeyman192 / NMSDK

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

"importScene" object has no attribute "scene_node_data" #41

Closed campbebj closed 5 years ago

campbebj commented 5 years ago

Im trying to import a BASIC_WALL.SCENE.MBIN object into blender and its giving me the following error "importScene" object has no attribute "scene_node_data"

not sure whats going on there but its happening with all the basic wall type parts. im able to import other objects fine so im not sure what the problem is.

have you seen this error before / do you know whats going on? or is this an actual bug in the plugin.

monkeyman192 commented 5 years ago

Can you provide a little more detail? The full stack trace would be the best way for me to see the full error.

campbebj commented 5 years ago

Its not letting me copy paste it but the stack trace is

NMSDK.py line 141 in execute importer.render_scene() ModelImporter/import_scene.py line 182 in render_scene for obj in self.scene_node_data.iter()

AttributeError: "ImportScene" object has no attribute "scene_node_data"

monkeyman192 commented 5 years ago

Do you have an error before that? The only way that variable can't be defined is if the creation of the importer object gets interrupted by another error.

Also, I just tried to open the scene and it worked fine for me

campbebj commented 5 years ago

ok so i figured out how to see blenders console, im new to it.

the error was preceded by

'MBINCompiler' is not recognized as an internal or external command, operable program or batch file. MBINCompiler failed to run. Please ensure it is registered on the path.

however other types of SCENE.MBIN files work fine. is your MBINCompiler in your path by chance? i didnt see anything like that in the instructions and the other files work fine. is it possible the code for calling it differs in these cases?

BTW the file that does work i have used as a test is \MODELS\SPACE\SPACESTATION\MODULARPARTS\DOCK\SHOPS\DRONE\DRONE.SCENE.MBIN

monkeyman192 commented 5 years ago

the code doesn't differ by case. Not sure why it would be failing for some and not for others.

I thought this might be the case. If you add MBINCompiler to your path then you won't have any issues any more. The problem is that I don't want to ship NMSDK with MBINCompiler, and to have NMSDK so that it can be installed as a blender plugin from a zip means that MBINCompiler needs to be in a static location. The most recent MBINCompiler has a register function (MBINCompiler.exe register) which makes it add itself to the path. I thought I had it documented somewhere but if not I will definitely update that information!

monkeyman192 commented 5 years ago

I think this issue is well and truly stale and probably fixed anyway. If the issue still persists, let me know...