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

[SOLVED] Restore modeldef from xanim file?

Messages
240
Country
germany
As the title might suggest I was silly enough to lose my modeldef.xml, so now I wonder if there is any possibility to restore it either from the .x or the .xanim file?

Background:
Due to RL I had a somewhat longer break from FS. In the meantime I reinstalled my OS, did backups of all my projects, but forgot about the modeldef file. Foolish I know....might have to rewrite the code for a complete cockpit...sigh.

Thanks for any hints.
 
If I am not Mistaken, Your xanim file was part of the SDK that you are using to xport and convert your files for Fs What ever ! I would suggest You down Load the SDK again, Maybe to the desktop, and the xanim file should be part of it !! Hope this Helps - Johnman
 
If I am not Mistaken, Your xanim file was part of the SDK that you are using to xport and convert your files for Fs What ever ! I would suggest You down Load the SDK again, Maybe to the desktop, and the xanim file should be part of it !! Hope this Helps - Johnman
Thanks Johnman for your help, unfortunately the default modeldef.xml is what comes with SDK. For my project I added a ton of code to the modeldef.
The .x and .xanim files are generated by the modeling tool and they require the code from the modeldef.
 
I suspect you maybe SOL trying to retrieve any custom code. Have you looked at your xanim file? I'm curious and will look at one of mine. Backup, backup, backup!
 
Viewing both files with a text editor reveals only some GUIDs and some names, but none of the logic/code.

So unless there is any magic program out there, that can reengineer a mdl/x/xanim into a modeldef, I'm left with rewriting it.

Thanks anyway, Paul.
 
I just looked and the code is converted to positional key frames. It would be next to impossible trying to derive the original code that generated the key frames. Looks like you have your work cut out for you. :(
 
ModelConverter has a "Show Modeldef" button, which will generate a model for the currently viewed model file based on the one that's linked to MCX and amended with any custom code built into the model file. The names of the entries will be generic, but the code itself can be recovered that way. Works for visibilities, animations and mouse rectangles.
 
Thanks Björn. Just reinstalled MCX, but couldn't find the button neither in the UI nor in the manual.

Anyway, I found an outdated version of my modeldef and will rebuild it from there. At least it has the advantage of getting familiar with the a/c again...
 
Thanks Björn. Just reinstalled MCX, but couldn't find the button neither in the UI nor in the manual.
I managed to recover a "lost modeldef.xml" from a compiled model via MCX. It took me a few hours to merge the <Animation> and <MouseRect> sections, but I was 100% successful.
 
Make sure you have downloaded the latest development version (1.4x) and not the stable version (1.3). It's the 10th button in the top row from the left, including the two arrows as buttons.
 
Make sure you have downloaded the latest development version (1.4x) and not the stable version (1.3). It's the 10th button in the top row from the left, including the two arrows as buttons.
That explains, why I didn't find it, thanks!
Notes taken for the next time, which will hopefully not come.

I swallowed the pill and just rewrote the missing chapters instead. Project is back on track.

Thanks for the quick support everybody.


Problem solved for me.
 
Back
Top