F747fly
Resource contributor
- Messages
- 1,713
- Country

Hi all,
Sorry for this quite common problem/question but I can't seem to figure this one out. I installed blender and the toolset on a PC that does not contain an installation of FSX itself. I therefore combined the knowledge provided in these two threads to get the toolset working:
Install SDK without FSX: http://www.fsdeveloper.com/forum/threads/install-sdk-without-fsx.19042/
SDK installation for FSX SE so tools are avaliable in game and Gmax and Blender2fsx would work!: http://www.fsdeveloper.com/forum/th...e-and-gmax-and-blender2fsx-would-work.436059/
For this I took the SDK I had installed and placed it on the other PC and I installed the P3D SDK and followed the instructions from the latter thread.
After a while I managed to get the toolset to initialize without any errors (so far so good). But now it seems the MDL export does not work, I get the following message:
Read new prefs: C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\config\userpref.blend
found bundled python: D:\Program Files (x86)\Blender\2.78\python
read blend: D:\E-Jets\Blend_Files\E170.blend
Traceback (most recent call last):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 163, in poll
return check_if_any_gp_exists(context)
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 423, in check_if_any_gp_exists
if(check_if_object_gp_exists(context)):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 432, in check_if_object_gp_exists
objectGP = bpy.context.active_object.grease_pencil
AttributeError: 'NoneType' object has no attribute 'grease_pencil'
location: <unknown location>:-1
location: <unknown location>:-1
Traceback (most recent call last):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 163, in poll
return check_if_any_gp_exists(context)
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 423, in check_if_any_gp_exists
if(check_if_object_gp_exists(context)):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 432, in check_if_object_gp_exists
objectGP = bpy.context.active_object.grease_pencil
AttributeError: 'NoneType' object has no attribute 'grease_pencil'
location: <unknown location>:-1
location: <unknown location>:-1
Blender2FSX v.0.8.4 Copyright (C) 2014-15 Felix Owono-Ateba
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see source files for details.
XToMdl.exe (C) Microsoft
The following output is generated by the tool XToMdl.exe.
This tool is provided with your FSX SDK and is in no way
related to Blender2FSX author(s), except by its use here.
*************************************************************
Traceback (most recent call last):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_scene_fsx\export_fsx.py", line 230, in Export
spawnv(P_WAIT, XToMdl, ['XToMdl.exe', '/XANIM', '/DICT:"%s"' % modeldef, '"%s"' % (ensure_ext(self.Config.filepath,'.x'))])
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_scene_fsx\__init__.py", line 139, in execute
Exporter.Export()
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_scene_fsx\export_fsx.py", line 238, in Export
raise ExportError("Export to .MDL failed. XToMdl.exe returned an error.")
io_scene_fsx.export_fsx.ExportError: Export to .MDL failed. XToMdl.exe returned an error.
location: <unknown location>:-1
location: <unknown location>:-1
I hope someone can help
Sorry for this quite common problem/question but I can't seem to figure this one out. I installed blender and the toolset on a PC that does not contain an installation of FSX itself. I therefore combined the knowledge provided in these two threads to get the toolset working:
Install SDK without FSX: http://www.fsdeveloper.com/forum/threads/install-sdk-without-fsx.19042/
SDK installation for FSX SE so tools are avaliable in game and Gmax and Blender2fsx would work!: http://www.fsdeveloper.com/forum/th...e-and-gmax-and-blender2fsx-would-work.436059/
For this I took the SDK I had installed and placed it on the other PC and I installed the P3D SDK and followed the instructions from the latter thread.
After a while I managed to get the toolset to initialize without any errors (so far so good). But now it seems the MDL export does not work, I get the following message:
Read new prefs: C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\config\userpref.blend
found bundled python: D:\Program Files (x86)\Blender\2.78\python
read blend: D:\E-Jets\Blend_Files\E170.blend
Traceback (most recent call last):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 163, in poll
return check_if_any_gp_exists(context)
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 423, in check_if_any_gp_exists
if(check_if_object_gp_exists(context)):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 432, in check_if_object_gp_exists
objectGP = bpy.context.active_object.grease_pencil
AttributeError: 'NoneType' object has no attribute 'grease_pencil'
location: <unknown location>:-1
location: <unknown location>:-1
Traceback (most recent call last):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 163, in poll
return check_if_any_gp_exists(context)
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 423, in check_if_any_gp_exists
if(check_if_object_gp_exists(context)):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\mesh_align_to_gpencil_view.py", line 432, in check_if_object_gp_exists
objectGP = bpy.context.active_object.grease_pencil
AttributeError: 'NoneType' object has no attribute 'grease_pencil'
location: <unknown location>:-1
location: <unknown location>:-1
Blender2FSX v.0.8.4 Copyright (C) 2014-15 Felix Owono-Ateba
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see source files for details.
XToMdl.exe (C) Microsoft
The following output is generated by the tool XToMdl.exe.
This tool is provided with your FSX SDK and is in no way
related to Blender2FSX author(s), except by its use here.
*************************************************************
Traceback (most recent call last):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_scene_fsx\export_fsx.py", line 230, in Export
spawnv(P_WAIT, XToMdl, ['XToMdl.exe', '/XANIM', '/DICT:"%s"' % modeldef, '"%s"' % (ensure_ext(self.Config.filepath,'.x'))])
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_scene_fsx\__init__.py", line 139, in execute
Exporter.Export()
File "C:\Users\”name”\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_scene_fsx\export_fsx.py", line 238, in Export
raise ExportError("Export to .MDL failed. XToMdl.exe returned an error.")
io_scene_fsx.export_fsx.ExportError: Export to .MDL failed. XToMdl.exe returned an error.
location: <unknown location>:-1
location: <unknown location>:-1
I hope someone can help