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

MSFS SDK compile error when using model extracted using SBX

Messages
1,892
Country
australia
I am trying to add a model to my MSFS scenery which I have extracted from a .mdl file using SBX but after repeated atttempts to find the problem and doing the extract numerous times I keep getting the following error during (SDK) compilation error which has me stumped.
Originally I had done some modifications to the extract model using Blender but even using the extracted files as they are after extraction (ie no modifications) the error occurs.
Any ideas what is the problem and how to fix it?
Thanks
sbx_error.jpg


I note when extracting the .mdl I get some errors which I cannot remember seeing before which might be the answer

sbx_error_first.jpg
 
Hi John:

AFAIK, SBX is an abbreviation for SBuilderX, which IIRC, can only decompile terrain objects compiled originally with BGLC; perhaps you intended to instead use MCX as an abbreviation for ModelConverterX (especially since your screenshot shows the MCX GUI) ?

MCX was not, IMHO, adequately coded to deal with legacy format SCASM or BGLC coded MDLs, whether for aircraft or static scenery objects, and fails to interpret some types of animation code as well.

It is possible Arno and / or a very small number of individuals here or at SimOuthouse forum may be able to help port that older aircraft to a glTF 3D model.

Considering what it took to bring the Grumann Goose to MSFS, it is not an easy task, even though that aircraft was FSX native, so I am not so sure it is feasible to port a FS9 MDL into anything that can function for AI or user flight activity in MSFS.

PS: Eugene Heyart made numerous great aircraft back in the days of FS2002 and FS2004, and this one would certainly make a good static aircraft for MSFS if other freeware DHC-3 AI and / or Flyable offerings become available in MSFS native format.

GaryGB
 
Last edited:
If the model is so outside "compatibility" with MSFS, that you have to use SceneryBuilderX to extract this model, than any remaining compatibility to the software, like lights or contact points- surely animations, are stripped, then it seems much more straightforward and practical, that you simply start with a clean, convertible model and proceed from there! Because the idea that importing, editing and rebuilding a model to go into one sim, that was extracted by different software from a different sim, seems a magnitude of complexity beyond the "conversions" of ModelConverterX.
 
AFAIK, SBX is an abbreviation for SBuilderX,
Yes Gary it was a slip of the fingers. I have not used SBX for many years and meant MCX.
this one would certainly make a good static aircraft for MSFS
That was the intention - why not use whatever is there when it is freeware as I do not have the time or inclination to 'reinvent the wheel'.
Saying that I was able to extract the model last year and used it to create a usable MSFS static scenery object with animation but now want to add MSFS collision box and can't get that to work (see separate thread in the Blender forum - https://www.fsdeveloper.com/forum/threads/msfs-cant-get-animation-with-collision-box-to-work.455890/ which has gone unanswered for some time) and had lost the original model. I am wondering what I used last year to successfully extract that model. As that Forum question has gone unanswered I decided to try and start from scratch with the original model and add collision box BEFORE animation (instead of trying to add collision to an already animated model).

Hi Rick. I am trying to create a static scenery model and so I do not care if "animations are stripped". I was able to extract ok last year maybe using an old version of MCX (not SBX which was a typo and would not work IMHO). I am a large advocate of using existing freeware when available.
 
Last edited:
Hi John:

I got this to import in a recent build of MCX.

The authors site is offline, but can be viewed here:

https://web.archive.org/web/20060615003046/http://webplaza.pt.lu/~eughey/


BTW: DHC3PZL.zip is missing from AVSIM; was there a failure by Eugene Heyart to re-upload after the AVSIM hack ?

Also, IIRC, a SOH thread cited DHC3PZL.zip as a product of Fred Banting; was there a legal conflict resulting in removal ?


I had to supply an 'obscure' FTP download of DHC3PZL.zip with the missing "spinner.bmp" texture from an old FSX install from years ago; I had to copy the spinner.bmp into all \texture sub-folders.

The BGL opcodes may not actually be an issue if the aircraft is first output to a Collada.dae in the \Model sub-folder.

With all textures (including the spinner.bmp) copied into that same folder, then the Collada.dae can be re-imported into MCX.


Now I'll try exporting into a glTF directly via MCX and see if MCX complains.

OK, so, that quick-and-dirty test worked, without complaints by MCX.

I have not yet set up a MSFS project folder chain and attempted a compile via fspackagetool.

I'll leave that testing up to you; I hope this works for you as well. :)


PS: I may have to get this version by Milviz too... just to have the squirrel ! :laughing:

Gawd, what an awesome radial sound set. :cool:





GaryGB
 
Last edited:
Hi,

The warnings you see in MCX are not uncommon when loading FS2004 mdl files. I would not worry about them.

For the MSFS compile error, the message says the xml is incomplete and missing a closing tag. How did you add your model to the project? If manually check if your project xml is valid.
 
Thanks arno
Yes I was aware that MCX often shows errors during the extract which don't seem to affect the model extracted. Yes I did add the extracted model to my project (packagesources).

The xml files is as follows which looks ok to me?

<?xml version="1.0" encoding="utf-8"?>
<ModelInfo guid="{970c3ea3-5c67-4097-84ec-1e5fe26bfa15}" version="1.1">
</ModelInfo>

Also I have just located the original 2004 aircraft (DHC3PZL) at https://www.flightsim.com/vbfs/fslib.php?searchid=93714545 so I will try again.
 
FORGET IT GUYS.
I have the answer.
In my attempts to try and work out why when I added collision box to my existing animated model (DHC2) I created another model which HAS ERRORS and I unintentionally left in the project.
The new model I created from the original (now re downloaded) is error free.
I had given the bogus model a different name to keep it separate and didn't realise it was causing the problem.
Sorry and thanks again.
That begs an question not related to MCX -
Does anyone know if collision box AND animation is required if the collision box needs to be added first before adding animation. It seems logical that it would but just checking.
John
 
Also I have just located the original 2004 aircraft (DHC3PZL) at https://www.flightsim.com/vbfs/fslib.php?searchid=93714545 so I will try again.

Good find, John; I keep forgetting that Google cannot always index at some FS sites due to their Robots.txt deterrents.


PS: I also found the FS9 aircraft by Eugene Heyart (missing from AVSIM) there, but at this URL:

https://www.flightsim.com/vbfs/fslib.php?searchid=93717766

https://www.flightsim.com/vbfs/fslib.php?searchid=93721732



Hmmm... "No Search Results" (aka "let us snoop and track you, or else we try to convince you that you got no result"; ...almost as much fun as we had back in the days of "AllNodesAreBusy.com" :rotfl:

I already am registered at that site, but was not logged in at the time; search results that vary there based on a login: bad Mojo.

GaryGB
 
Last edited:
Yeh its all good now. Yes thats an awesome radial engine sound on the Milviz DHC2
I am (amost) 'hanging out' for the Milviz DHC2 Beaver which (they claim) is still being developed 12 months since they announced it.
I sort of gave up and purchased the aerosoft DHC6 which is nice but still want a non turbo prop which steam gauges.
 
Hi Rick. I am trying to create a static scenery model and so I do not care if "animations are stripped". I was able to extract ok last year maybe using an old version of MCX (not SBX which was a typo and would not work IMHO). I am a large advocate of using existing freeware when available.
Free? What, in your computer, isn't free? You are saying, that some product someone wants to sell, can't happen, because you put a static plane in your scenery that will never escape your computer? I am saying, "go on over to Trimble, or Sketchfab, find a nice model and convert, it's fun! Unless you prefer dragging Arno and everyone in on your adventures, with this ancient stuff, that somehow, must work better with MSFS, even though it came out decades after these models did. Better yet, buy something for $5 and invest in someone else's development.


 
What can I say. Better I say nothing.
Where are all the $5 models you mention? I have seached Sketchfab and have NOT found anything like what I want (floatplane) which looks reasonable free or payware. I want a De Havilland floatplane and one which looks reasonably like the real thing - my water airport only seems to runs DH aircraft in the real world and I want it to look realistic not like a video game.
I have also checked out turbosquid, cgtrader and others and the only DH floatplanes which look good enough are $US84+ and I would rather not have any static aircraft than pay that much - would rather purchase flyable aircraft such as the aerosoft DHC6 which I have. Maybe you have a url for what I am looking for (which a retiree can afford) which I have missed? Would be great to check that out.
I made an honest mistake which caused my problem which I apologised for and never claimed there was any software bug.
 
Maybe you have a url for what I am looking for (which a retiree can afford) which I have missed? Would be great to check that out.
Click either blue square in my previous message.
 
Yeh its all good now. Yes thats an awesome radial engine sound on the Milviz DHC2
I am (amost) 'hanging out' for the Milviz DHC2 Beaver which (they claim) is still being developed 12 months since they announced it.
I sort of gave up and purchased the aerosoft DHC6 which is nice but still want a non turbo prop which steam gauges.

Hi John:

I may be mistaken, but one might wonder if Asobo may beat Milviz to release of a (free) Beaver (see: 00:46 elapsed time) ;)




These MS-Asobo aircraft look excellent; this may prove to be a fun anniversary celebration in November for the FS franchise. :)

AFAIK, they should be usable for A.I. Traffic schedules, Multi-Player, and solo or shared cockpit pilot controllable flights.

Oh, and it looks like FS may finally achieve 'DX-10 preview' concept fulfillment in scenery; but will it be via DX-11 ...or DX-12 ? :laughing:

746680-931252_20060811_001.jpg



PS: This just in...it seems we will have an even bigger celebration for the 11-11-2022 FS Anniversary (now I really can't wait !): :cool:



Bonus MSFS footage: Ministry of Silly Walks people 'developing' their gaits at 00:2:25 elapsed time) :rotfl:


GaryGB
 
Last edited:
Thanks rk Unfortunately that model has a huge amount of 'faces' and when decimated (as much as 0.1) it still has more faces than Eugene Heyart's model which IMHO looks better anyway (see his static aircraft at my airport) below) and Eugene's readme states clearly -
"This package is freeware.
This software may be freely used, copied and distributed"
Anyway worth a look.
Gary
Once again you have a wealth of information.
Yes I did see that video showing a Beaver which made my eyes 'water' but also wondered firstly when and secondly would it come (as an upgrade) with the standard MSFS version (I now am kicking myself that I didn't purchase the deluxe or premium version as I have found recently that there doesn't seem to be a cheap way to upgrade virtually having to purchase a complete version again which is annoying). And yes will it be DX11.
Regarding AI.
Firstly I wonder if AI will 'work' at third party (like the one I am developing) airports and secondly regardless of that can it be controlled as to how often AI aircraft will be present as I like the idea of always having some aircraft parked whenever I choose to be at my airport. Maybe there is a doco to explain all that which I am not aware of.
I can't wait to find out what will be included in the 12 free aircraft but lately I am seeing a lot of 'airtime' for fighter aircraft which I have no interest in.
Once again as previously mentioned I am more interested in DH floatplanes to match my water airport.

dhc2_at_vancouver.jpg
 
From this
What can I say. Better I say nothing.
Where are all the $5 models you mention? I have seached Sketchfab and have NOT found anything like what I want (floatplane) which looks reasonable free or payware. I want a De Havilland floatplane and one which looks reasonably like the real thing - my water airport only seems to runs DH aircraft in the real world and I want it to look realistic not like a video game.
I have also checked out turbosquid, cgtrader and others and the only DH floatplanes which look good enough are $US84+ and I would rather not have any static aircraft than pay that much - would rather purchase flyable aircraft such as the aerosoft DHC6 which I have. Maybe you have a url for what I am looking for (which a retiree can afford) which I have missed? Would be great to check that out.
I made an honest mistake which caused my problem which I apologised for and never claimed there was any software bug.
To this
Thanks rk Unfortunately that model has a huge amount of 'faces' and when decimated (as much as 0.1) it still has more faces than Eugene Heyart's model which IMHO looks better anyway (see his static aircraft at my airport) below)
Because 7.8k is too many. I get it, you got this.
 
I must have a different model as before I applied 0.1 decimate Blender suggests
Here is the model in Blender showing faces before decimate -
Have I downloaded the wrong model or am I doing something crazy -

dhc3_faces.jpg
 
Hi John:

I ran another search at the site above, and came up with no result ...where I already previously had a result. o_O

Now a fresh search based on "DHC-3" returns these results for DHC3PZL aircaft by Eugene Heyart:



...each of which is a different file size (one of which also has a wheeled version along with the float plane). ;)


Perhaps comparing these DHC3PZL.MDL float plane files in MCX before processing for export may give a quick explanation ? :scratchch

MCX icon toolbar > icon_#4 = Object Information dialog :pushpin:

[EDITED]

Also, when processing prior to export to Blender, consider use of the MCX Material Editor: MCX icon toolbar > icon_#7 :idea:

MCX icon toolbar > icon_#7 > Material Editor > [Textures] tab

MCX icon toolbar > icon_#7 > Material Editor > [Draw Calls] tab

MCX icon toolbar > icon_#7 > Material Editor > [Optimize] tab


I have not seen info yet from a geek at Asobo that elucidates techie info for MSFS in the same detail as Aces' Adrian Woods did for FSX:

Optimization of a 3D model for performance requires minimizing: Draw Calls > Texture Vertices > Polygons (@2 Triangles each)

IIUC, Blender and Sketchup both use the term Face for Polygon.

IIRC, according to Arno, and former ACES blogger "Adrian Woods" (aka "Torgo 3000" ?) texture vertices (aka "T-Verts") ...may yield a 3-fold greater vertex count in a MDL when compared to just the basic wire-frame of a Model's un-textured geometry.


A web archive of Adrian's Blog IMHO, continues to be relevant to authoring 3D content even for MSFS via DX-11 and DX-12, and is here:

https://web.archive.org/web/20081002061947/http://blogs.technet.com/torgo3000/default.aspx


With regard to Adrian's perspective on optimizing FS run time rendering engine performance via the 3D modeling process, see:

https://web.archive.org/web/2008100.../performance-art-3-polygons-don-t-matter.aspx

https://web.archive.org/web/2008100...rt-2-when-is-a-draw-call-not-a-draw-call.aspx

https://web.archive.org/web/2008100...o3000/archive/2007/06/01/performance-art.aspx


If / when one creates MIPMAPs for 3D models to be shown at greater distances, and one is tempted to use 1-color (or vertex color ?), see:

https://web.archive.org/web/2008100...lways-use-a-texture-and-bones-ain-t-free.aspx


Notice Adrian's mention of 4x4 blocks of solid color as a minimum texel array on a mapped texture sheet of Material (...for FSX / DX-9 ! ). ;)

Notice as well, Adrian's advisement relative to UVs and MIPMAPs for model parts using solid colors mapped to a Material texture sheet. :pushpin:


But we now know, MSFS' SDK requires 8x8 texel array minimums for successful run time rendering (...even if 3D models "compile" :banghead: ):

https://www.fsdeveloper.com/forum/threads/what-texture-file-format.453697/post-891353

https://www.fsdeveloper.com/forum/threads/new-project-guide.455707/post-905366


While eventual decimation may be indicated for some highly complex 3D models, in some cases where external surfaces are the major concern, "smoothing" may also facilitate run time rendering performance via reducing the number of required surface normal calculations for lighting.


While I also have not seen info yet from a geek at Asobo providing info on "welding" relative to performance and minimizing shading artifacts with 'smoothing' for MSFS in the same detail as Aces' Adrian Woods did for FSX:

https://web.archive.org/web/2008100.../performance-art-3-polygons-don-t-matter.aspx


...the MSFS SDK does have this to say:

https://docs.flightsimulator.com/html/Asset_Creation/Textures/Textures.htm?rhhlterm=smoothing

https://docs.flightsimulator.com/ht...rame/Modelling_Process.htm?rhhlterm=smoothing


...and Blender's Manual has this to say:


https://forum.unity.com/threads/smooth-vs-flat-performance-which-answer-is-right.487865/


BTW: A rather nice example scenario (from 2007 !
:wizard:
) is cited by Fr. Bill Leaming (aka "n4gix") on the importance of "welding" ...here:

https://www.fsdeveloper.com/forum/threads/xtomdl-vertex-limit-problems.7831/post-51304

In light of Arno's comments, this begs a question: should we use 'sharp' Edges or "smooth" Edges ...on UV (un-)wrapped 3D models textured with 1-piece "wrap-around" Materials ? :scratchch

[END_EDIT]

GaryGB
 
Last edited:
Yes the otterpzl has two models the amphibian and also the wheeled version (which looks the same as the amphibian apart from the undercarriage of course). Everything else looks the same.

I also found what PZL stands for. PZL is for the version powered by a PZL Kalisz ASz-62IR with four blade propeller.
 
Back
Top