• 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.

MCX - XtoMDL x64 and SlimDX

Messages
94
Country
unitedkingdom
Here's the error section of a log for another attempt at a hanger I hit the poly limit for xtomdl 32bit and FSX so I managed to track down a 64-bit version. Think I've run into a hard limit I can't seem to find a suitable slimDX, hoping somebody can shed some light on


22:32 XWriter Information Finished writing of file I:\SteamLibrary\steamapps\common\FSX\Addon Scenery\2023-hanger\scenery\rpg0yf2f.x
22:32 XtoMDL Information Found output file: I:\SteamLibrary\steamapps\common\FSX\Addon Scenery\2023-hanger\scenery\2023-hanger-b_0.mdl
22:32 XtoMDL Information OutputFile: I:\SteamLibrary\steamapps\common\FSX\Addon Scenery\2023-hanger\scenery\2023-hanger-b_0.mdl
22:32 XtoMDL Information Creating output MDL file: I:\SteamLibrary\steamapps\common\FSX\Addon Scenery\2023-hanger\scenery\2023-hanger-b_0.mdl
22:32 XtoMDL Error (0): error : XToMdl.exe Unhandled Application Exception
22:32 XtoMDL Error (0): error : System.BadImageFormatException: Could not load file or assembly 'SlimDX, Version=4.0.12.43, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
22:32 XtoMDL Error (0): error : File name: 'SlimDX, Version=4.0.12.43, Culture=neutral, PublicKeyToken=null'
22:32 XtoMDL Error (0): error : at p..ctor(String A_0)
22:32 XtoMDL Error (0): error : at al.b()
22:32 XtoMDL Error (0): error : at al.a(String[] A_0)
22:32 XtoMDL Error (0): error :
22:32 XtoMDL Error (0): error : WRN: Assembly binding logging is turned OFF.
22:32 XtoMDL Error (0): error : To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
22:32 XtoMDL Error (0): error : Note: There is some performance penalty associated with assembly bind failure logging.
22:32 XtoMDL Error (0): error : To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
22:32 XtoMDL Error (0): error :
22:32 XtoMDL Error (0): error :
22:32 XtoMDL Error (0): error : Could not load file or assembly 'SlimDX, Version=4.0.12.43, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
22:32 XtoMDL Error (0): error :
22:32 XtoMDL Error (0): error : Stack Trace:
22:32 XtoMDL Error (0): error : at p..ctor(String A_0)
22:32 XtoMDL Error (0): error : at al.b()
22:32 XtoMDL Error (0): error : at al.a(String[] A_0)
22:32 MDLXWriter Information Finished writing of file I:\SteamLibrary\steamapps\common\FSX\Addon Scenery\2023-hanger\scenery\2023-hanger-b_0.mdl
22:32 XMLWriter Information Starting writing of file I:\SteamLibrary\steamapps\common\FSX\Addon Scenery\2023-hanger\scenery\2023-hanger-b.xml
22:32 XMLWriter Information Finished writing of file I:\SteamLibrary\steamapps\common\FSX\Addon Scenery\2023-hanger\scenery\2023-hanger-b.xml
22:32 BGLCommp Information Parsing document: 2023-hanger-b.xml
22:32 BGLCommp Information INTERNAL COMPILER ERROR: #C2014: Failed to load model data in file: I:\SteamLibrary\steamapps\common\FSX\Addon Scenery\2023-hanger\scenery\2023-hanger-b_0.mdl
22:32 BGLCommp Information INTERNAL COMPILER ERROR: #C2149: Failed to load model data! Does the file exist?
22:32 BGLCommp Information INTERNAL COMPILER ERROR: #C2340: Failed to finalize MODEL_DATA!
22:32 BGLCommp Information INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
22:32 BGLCommp Information ERROR: <FSData
22:32 BGLCommp Information ERROR: version = 9.0
22:32 BGLCommp Information ERROR: >
22:32 BGLCommp Information ERROR: <ModelData
22:32 BGLCommp Information ERROR: sourceFile = I:\SteamLibrary\steamapps\common\FSX\Addon Scenery\2023-hanger\scenery\2023-hanger-b_0.mdl
22:32 BGLCommp Information ERROR: >
22:32 BGLCommp Information ERROR:
22:32 BGLCommp Information INTERNAL COMPILER ERROR: #C2024: Failed to process closing element tag <ModelData> near line 4!
22:32 BGLCommp Information INTERNAL COMPILER ERROR: #C2607: Compilation errors detected, compilation failed!
22:32 BGLCommp Information Parse complete!
22:32 BGLXWriter Information Finished writing of file I:\SteamLibrary\steamapps\common\FSX\Addon Scenery\2023-hanger\scenery\2023-hanger-b.bgl
 
This usually means you don't have the right visual C++ redistributable installed. SlimDX itself is part of the SDK.

Which SDK version are you using?
 
As i'm still on FSX its P3D SDK 1.4.4747.0 and the Visual C++ currently installed are 2005, 2008, 2010, 2012, 2013, 2015-2020 x86 and x64 across the system.
 
For the P3D v1 SDK it should be the 2010 runtime. You're sure you gave the x86 version of that installed as the P3D v1 SDK tools are still 32 bit.
 
I can check later but I'm pretty sure, like I said I am using a 64bit version of the xtomdl exporter through MCX as I seem to have hit a limit on the 32bit version when I try to export

Sent from my Pixel 6 Pro using Tapatalk
 
But I'm quite sure the P3D v1.4 SDK is not 64 bit. Do you mean you found another xtomdl than the one from the SDK?
 
I found this

64bit xtomdl

I currently have visual C++ 2010 both versions
Screenshot 2023-07-26 072941.png
 
Ah, you are using that one. It's not an official xtomdl, I have never used it myself as the ones from the SDK work fine for me.

I'm not near my PC now, but when I'm back I'll check if it has other dependencies than the SDK xtomdl.
 
Ah, you are using that one. It's not an official xtomdl, I have never used it myself as the ones from the SDK work fine for me.

I'm not near my PC now, but when I'm back I'll check if it has other dependencies than the SDK xtomdl.
how did you get on?
 
I'm still away from home and my PC, so haven't been able to check it yet.

The last error is an out of memory error, how many triangles and vertices does your object have?
 
Hello, the outofmemory is why i was looking for a 64bit version to help me out (if possible but I'm thinking not) Also what the maximum Triangles and Vertices the 32bit version (I may have to redesign some stuff)

Vertices - 1,840,741
Triangles - 3,655,769

🤓
 
3.6 million triangles is really a lot (more than most complex aircraft have). What kind of model you have? Is it a complete airfield or an aircraft?
 
its a hanger i may have gone a little OTT
I guess so, for just a hangar that triangle count is much too high for FSX to handle. For a complex hangar I would say you should aim at 10000 or 20000 triangles maybe.
 
There is no hard limit. It depends on how many objects are in your scenery, but also how many materials the object has. When there are too many triangles with the same material the MDL format does not support it, that limit is around 65k triangles per material.

But when you have a hangar with millions of triangles you'll see performance is going down in the sim.
 
Back
Top