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

MDL resource explorer

Messages
39
Country
us-newhampshire
Are there any utilities that would show gauges in an interior mdl file and their dependencies or associated functions?
 
Gauges, unless 3D, are not stored in the .MDL. The .MDL only keeps gauge polygons that are mapped to VCockpitXX textures in the panel.cfg. The panel.cfg is the place to look for all your non-3D gauges. They can come as XML, in which case exploring is pretty much straightforward, or as .GAU/.DLL, in which case you can use any .dll resource viewer. In the .GAU/.DLL-case, the structure and functions of the gauge can only be viewed in the source code. As for 3D-gauges, I don't know if ModelConverterX has an option to display the modeldef-code involved.
 
Gauges, unless 3D, are not stored in the .MDL. The .MDL only keeps gauge polygons that are mapped to VCockpitXX textures in the panel.cfg. The panel.cfg is the place to look for all your non-3D gauges. They can come as XML, in which case exploring is pretty much straightforward, or as .GAU/.DLL, in which case you can use any .dll resource viewer. In the .GAU/.DLL-case, the structure and functions of the gauge can only be viewed in the source code. As for 3D-gauges, I don't know if ModelConverterX has an option to display the modeldef-code involved.


My fault for not being clearer. 3D gauge code is what I am looking for.
 
3d gauge animation code is compiled from modeldef.xml on the developer's computer. I'm not aware of any way to get that from a compiled .mdl file. Your only hope would be if the developer were asked nicely, but you can't edit that and recompile the model without all the source files.
 
You can use arno's ModelConverterX to extract modeldef.xml in readable format:

http://www.fsdeveloper.com/forum/resources/modelconverterx.92/

this file acts like a huge, single gauge that handles all 3D animated objects in a VC model (the external model has its own as well) .

Tom

Sorry, but I am not seeing how to extract a modeldef file. I looked thru the manual and general searches did bring up a modeldef_edit program that looks
to be associated with FSDS. Using this program generates a data error message while trying to open the mdl.
 
Last edited:
Hi,

Are you using the latest development release? Then you should find a button to show the modeldef.xml and custom entries are added to it when loading the mdl.

Btw, it is on the wishlist to remove this feature and only show them when they are already found in the modeldef.xml on the computer. Kind of copy protection. But that has not been implemented yet.
 
Hi,

Are you using the latest development release? Then you should find a button to show the modeldef.xml and custom entries are added to it when loading the mdl.

Btw, it is on the wishlist to remove this feature and only show them when they are already found in the modeldef.xml on the computer. Kind of copy protection. But that has not been implemented yet.

Thank you, I had an older release. I am now seeing what I was looking for, very nice work...!
 
Hello. I downloaded ModelConvertX v 1.4 and I get an error message (please see attached pic). I have .Net v4.5 and run the program as Administrator. I can run v1.3 with no error messages but it doesn't have the button: modeldef.xml. What do I need to do to remove the error message? Thank you.
 

Attachments

  • ModelConvertX_ErrorMsg.JPG
    ModelConvertX_ErrorMsg.JPG
    16.8 KB · Views: 463
Do you have a more detailed error message (with stack trace)? This doesn't help much.

If it happens directly at startup, it might be related to the OpenGL support of your graphics card.
 
Hello. Thank you for your reply. 1) What is stack trace? 2) I have installed MDLConverterX v1.4 on three computers and get the same error ( one an XP and the others - Windows 7) . To be honest, I don't know what else to provide and when I start the program, I get the error message on all three computers. I do have a Windows 8.1, will try that.
 
What kind of graphics card so your systems have? Check if they support OpenGL.
 
I don't know. All three computers I've tried don't have a separate video card that I'm aware. I went to device manager and it just shows the Display Adapters. How would I determine the video card, integral or not?
 
Well, I decided to install MDLConverterX v1.4 on the Windows 8.1 machine and it ran fine without any errors. I do not know what is going on with the other computers but am not going to take the time to investigate further as I want to get to using MDLConverterX. I did search the Internet on how to find a video card and using the Device Manager was the way to go. However, one thing it didn't show what the RAM for it is. In any case, the reason I was interested in MDLConverterX was because I downloaded (from http://flysimware.com/website/Payware_Planes.html) 1966 Old School Skylane file. Even though it's under the payware tab, the FS2004 version is free. Unfortunately, it only has the VC version without the 2D panel. The VC panel is okay but does not run smoothly on my computer (weird because most of my addons with VC run fine). Anyway, I noticed that it has circuit breakers that add to the realism of a Cessna 182. I was interested in MDLConverterX to see if I could find out how that gauge(s) was written. When I clicked on the button: Show ModelDef.xml, all it showed was: <ModelInfo />. I didn't see how I could glean the gauge info. In closing, thank you for your time and information.
 
MCX does noting with gauges. It can show the animations and visibility conditions, but not the code in gauges.
 
Back
Top