• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Blender to FSX Toolset

Hi @Osian

I'm sorry I haven't found the time to address your issue sooner. Just as a recap:
  • Your OS is Windows 10
  • Blender 2.77a or 2.75 is installed to default location
  • FSX SDK including updates to SP2 or Acceleration XPack is installed to default location
And you get the error above (post #535) when trying to initialize the tool set.

According to the error message, the script is installed correctly. The key "SdkRootdir" is missing from the registry. That key is only written to registry after the latest updates to the SDK. Please make sure you have installed SP2 or Acceleration XPack in the SDK and get back to me.

Cheers :)
 
Hi @Osian

I'm sorry I haven't found the time to address your issue sooner. Just as a recap:
  • Your OS is Windows 10
  • Blender 2.77a or 2.75 is installed to default location
  • FSX SDK including updates to SP2 or Acceleration XPack is installed to default location
And you get the error above (post #535) when trying to initialize the tool set.

According to the error message, the script is installed correctly. The key "SdkRootdir" is missing from the registry. That key is only written to registry after the latest updates to the SDK. Please make sure you have installed SP2 or Acceleration XPack in the SDK and get back to me.

Cheers :)
Thank you so much ! it finally works :) I completely forgot to update the SDK, stupid me.
 
Hi all

I've a problem to export a model into a mdl file.
Here a picture who show the problem



I don't understand why. The sdk is correctly installed (default location) and update to the last version, I verified the registry, it's ok (SdkRootDir).

To export :
I choose export directx for fsx (.x)
I tick "Export mdl"
I click on "Export FSX .x file"

and the error appear ....

Maybe I make a mistake but what mistake ?

Thank you for your help

Luc
 
Yes Ron, I always initialize toolset and generate GUID.
I know, it's a similar message if I forget to initialize. But it's not the case
 
- does everything have a material?
- Are you within the 65k vertex limit per material?
- did you make sure the target directory isn't write-protected?

We should put up an official checklist somewhere.
 
Sorry for the question but what

"The error message states there is no modeldef.xml available at the assigned location"

But what I must do ? The modeldef.xml is here, in the sdk folder

It's just a try : a cube (with material) moving from left to right.
 
Sorry for the question but what

"The error message states there is no modeldef.xml available at the assigned location"

But what I must do ? The modeldef.xml is here, in the sdk folder

It's just a try : a cube (with material) moving from left to right.

Go here: D:\\Addons Simulations\\FSX\\Microsoft Flight Simulator X SDK\\SDK\\Environment Kit\\Modelling SDK\\bin\\

Is there a modeldef.xml?

Oh, and I see you're using 2.77. I would recommend to use 2.75.
 
Hello
I come back. I made some test. Back to 2.75
The problem is always here (a little different)



I do like this :
- Create a cube
- Create a simple animation (movement to right, left ....) start 0 and end 50
- Assign as ambient (lengt parameter 0-50)
- Create Guid and initialize toolset

Something is wrong maybe ?

If I export without MDL (.x only), there is no problem

I run Windows 10 ...
 
Last edited:
I have a concern that your scripts are in APPDATA. Mine are in my blender folder (on my F: drive) with all the other addon scripts. The only thing I have in APPDATA is a config folder. Perhaps that?

I seems to not be able to create the MDL file - What name did you give it and where did you save it to. I get that error if I don't specify a name in the Export FSX x File screen
 
Yes !!!!! It was the decimal sign. I forgot it when I reinstalled Windows !!!!!

Thank you to all for your help , thank you very much !
 
Hello everyone!

I haven't worked with the tool set since Blender 2.72 and in the meantime, there have been some changes in Blender that affect the tool set. So, I want to use the next weekend to fix a couple of issues. These are:
  • file extension problem causing errors with "Export MDL" option
  • visibility tags list extending outside of visible screen area, making some tags not selectable
  • "no base material specular" option under FSX Material Params seems to have no effect (?)
If you have any other issues that come to mind (or that I have missed while revisiting this thread), please do tell!

Cheers :)
 
Capt_x

I did this for the filename issue:

Created a utility to replace ensure_ext function in the export_fsx.py file.

Code:
    # Used to set the file name without the extension
    @staticmethod
    def ReplaceFileNameExt(filepath, ext):
        return ensure_ext(os.path.splitext(filepath)[0], ext)

and changed all lines like

Code:
                    ImageFiles = [basename(ensure_ext(Texture.image.filepath, ".dds"))

to
Code:
                    ImageFiles = [basename(Util.ReplaceFileNameExt(Texture.image.filepath, ".dds"))

And added to the top

Code:
from os.path import getsize, exists, splitext

Seems to work in 2.77a
 
Hello everyone!

I haven't worked with the tool set since Blender 2.72 and in the meantime, there have been some changes in Blender that affect the tool set. So, I want to use the next weekend to fix a couple of issues. These are:
  • file extension problem causing errors with "Export MDL" option
  • visibility tags list extending outside of visible screen area, making some tags not selectable
  • "no base material specular" option under FSX Material Params seems to have no effect (?)
If you have any other issues that come to mind (or that I have missed while revisiting this thread), please do tell!

Cheers :)

Hi Felix,

Can I assist you with some of these tasks?

Cheers, Daan
 
Hello,

First of all, Blender2FSX seems a great tool for those interested in developing objects for FS. If I had some available free time I would do many objects as it seems very simple nowadays (years ago I wanted to recreate buildings of my city on FS9 but found it quite difficult and quit). Many thanks Felix and everyone involved in it!
Right now I'm using this tool in an academia research project in which I have our air vehicle designed in Blender. I want to apply it on P3D and although I'm eager to use the tools that are in development (by rohn, I believe), I think that right now the Blender2FSX is my best option. I have been adapting the python code on the files in order to use it with the P3D SDK (I do not and will not have the option to install full P3D or any FS on my laptop, just the SDK) but I'm finding this error:

j8juow.png

FileNotFoundError translated : [WinError 2] The system couldn't find the specific file.

I have the following on the FSX_Toolset python code:
"
try:
# For Windows 64 bit
handle=OpenKey(HKEY_LOCAL_MACHINE, 'SOFTWARE\\Wow6432Node\\Lockheed Martin\\Prepar3D_v3_SDK_3.3.5')
(sdkdir,t)=QueryValueEx(handle, 'SetupPath')
bpy.context.scene.fsx_modeldefpath = ''.join([sdkdir,"Modeling SDK\\bin\\modeldef.xml"])
handle.Close()
except FileNotFoundError:
# For Windows 32 bit
handle=OpenKey(HKEY_LOCAL_MACHINE, 'SOFTWARE\\Lockheed Martin\\Prepar3D_v3_SDK_3.3.5')
(sdkdir,t)=QueryValueEx(handle, 'SetupPath')
bpy.context.scene.fsx_modeldefpath = ''.join([sdkdir,"Modeling SDK\\bin\\modeldef.xml"])
handle.Close()
"

My version of Blender is 2.77a, the addons are in the addon folder in the AppData and the P3D SDK is in the Programs folder on disk C.
What should I do to correct the error?

Thank you
Laura
 
Back
Top