Blender2FSX error messages

krispy1001

Resource contributor
#21
Well wadda ya know. Cleaning up to conform to the naming convention at least got the model to compile. I'll plug away from here.

Kris, I am perfectly OK sharing my files with you. If you feel it is best to help me along offline, I am OK with that.
If you get to a point where you can not fix your problems, then you have the option to send me your Blender file. But I would suggest first try to export an object at a time and that will let you know where your problem is. Did you try to fist export a simple cube. And see if you can get that into FSX? The best thing to do is to start small and then work your way up.

The best practice that I have found when it comes to working on a project for FSX. Is to not wait until you have the whole project done before you try to export it and get it into FSX. Model and export as you go. That way you will save a lot of time trouble shooting.

Thanks, Kris
 
#22
Maybe I am missing it, and I have tried to find, but is there some sort of explanation of how the scripts work in general, like a flow chart, short of reading every line? I have been trying to learn how to do this, have the blender2fsx tools, and installed. Been following the Youtube tutorials @krispy1001 put up. Unfortunately, I have had, for whatever reason, to edit some of the scripts to even get them to initialize because when I installed the Delux Edition and SDK I just purchased the paths and regedit keys were not the same. Then I am struggling to figure out why the scripts on export to direct x for fsx, it cannot find the blend.x.mdl file. I have programmed in my life, but never really in Python, and short of learning Python just to debug. I don't know. I am sure it is probably something I am doing. A little guidance would be very appreciated.

And on a similar note, does anyone plan on updating the blender2FSX tools to the new FSW SDK? I really was trying to learn this in prep for doing aircraft for FSW... But I will take any knowledge I can get.

Thanks guys. I really appreciate what you do, regardless of any mishaps I may cause. LOL


<edit> I just found the alpha version of the tools and am going to try that.
 
Last edited:
#25
Hello Kris and everybody, I'm an architecte and pilot, and I'm happy ti try Blend2fsx (Blender2FSXP3D (v0.9.4)-(ii)) with BLENDER 2.79b.

My blender file is PlatformTest09182016

Komma is defined to "." in my Windosw 10

I've FSX Acceleration and FSX Acceleration SDK with everything in the original path. No change.

I run BLENDER as Administrator

I have initiliased the toolset.

Sadly, I have this famous 347 or 349 error :

Blender2FSX v.0.9.4 Copyright (C) 2014-18 Felix Owono-Ateba Updated by Ron Haertel for Prepar3D updated by (1) Kris Pyatt (2017-up to version 0.9.3),(2)updated and modified by Manochvarma Raman (2018)(from version 0.9.4)
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.
Using modeldef from .... C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Modeling SDK\bin\modeldef.xml
Gathering scene objects information...: [####################] 100% DONE
Write all children and parents...: [####################] 100% DONE
Writing RootExportList...: [####################] 100% DONE
bglComp path = sdk has not been registered yetEnvironment Kit\BGL Compiler SDK\BglComp.exe
Modeldef and XtoMDL root locations ..... sdk has not been registered yet
modeldef location ..... C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Modeling SDK\bin\modeldef.xml
XtoMDL location ..... sdk has not been registered yetEnvironment Kit\Modeling SDK\3DSM7\Plugins\XToMdl.exe
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/P3D author(s), except by its use here.
*************************************************************
Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fsx\export_fsx.py", line 347, in Export
spawnv(P_WAIT, XToMdl, ['XToMdl.exe', '/XMLSAMPLE "%s"' % (Util.ReplaceFileNameExt(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:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fsx\__init__.py", line 175, in execute
Exporter.Export()
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fsx\export_fsx.py", line 354, 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.



Have you any idea about that ?

I got only the .x file

Thanks for your attention !

Paul
 

Pyscen

Resource contributor
#26
Hello...

Which version of FSX SDK was installed? What was the full path of the model you were trying to convert to a model?
 
#27
That part of the program expects the folder locations to be in the registry. Perhaps your install of the SDK is not properly registered.


Code:
Modeldef and XtoMDL root locations ..... sdk has not been registered yet
modeldef location ..... C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Modeling SDK\bin\modeldef.xml
XtoMDL location ..... sdk has not been registered yetEnvironment Kit\Modeling SDK\3DSM7\Plugins\XToMdl.exe
XToMdl.exe (C) Microsoft
 
#28
Hello Doug, here are the answers :
FSX version 10.0.6090
5
FSX Acceleration SDK version 10/0.61637.0

Paths :

C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X
C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK

For the model, I've put directly the blender file (platformTest.blend) in :

C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Addon Scenery\scenery

It only creates me platformTest.x

I'm reinstalling now FSX and FSX Acceleration SDK with my original DVDs to (try to) get rid of this activation problem.
 
#30
I suggest your work folders should outside of C:/Program Files(x86) or any other special windows folders. These are usually very secure and should not be used to update files from other programs.

Do you have another drive - say D: ? if not then create a C:/Projects folder and create/update your working files there and manually copy paste to
C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Addon Scenery\scenery
 

Pyscen

Resource contributor
#31
Hello...

Along with what Ron said...

It appears you have 2 problems... the 1st problem is activating FSX (along with the SDK) - also... make sure you have the latest SDK. I suggest you look here in determining what version you need and installing it: https://www.fsdeveloper.com/wiki/index.php?title=SDK_Installation_(FSX)

The 2nd problem is in regards to what Ron was saying... working files should be outside the FSX file structure [specifically, outside the C:/Program Files(x86)] until they are in the proper format for FSX to use (ex. bgl and .mdl - depends on what you are modeling).
 
#32
Ok, Thanks to you 2,
I've reinstalled FSX, now I'm trying to activate it !!! Harshhhhh...
Ok for moving my test files out of the program disks and paths...
 
#33
Hello, I give up with FSX and its activation problems, too much for me. I've just bought PREPARD3D V4 !!! Very excited, the Spitfire (A2A) flights with Flyinside and my Occulus Rift were great. You'll have soon some news about Blend2fsx with Prepar3D, I hope good news !!! I hope the fsx addons will be all accepted. Thanks !!!
 
#34
Hello, no problem with P3D ! Thanks Ron and Doug ! I'm beginning to insert my projects into it with Blend2FSX, that's great ! Good job !
 
Top