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

FSXA Exterior Model Radius

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
Several times now I've compiled an exterior model and Arno's RADitor.exe will fail to load the .mdl file so I can reset the radius and bounding box.

Does anyone know where in the .x file these parameters are listed? If I can hand-edit the .x file I should be able to fix the radius and bounding box entries so I can get a fixed exterior model.
 
The model radius does not seem to be stored in the .x file. At least I couldn't find anything that corresponds to the value displayed in RADItor for a model exported straight out of MCX. Ditto for skimming a MCX-exported .mdl file with a hex editor.

You might want to ask Arno if he knows more. (Or check what prevents the model from being opened in RADItor.)
 
Hm, I didn't even think of that possibility. In any case, I loaded the exterior .mdl file in Notepad++ using a HEX plugin and through "Guess and by God" found a way to do it manually.

lo5IG.png


I set all of the fields following BBOX to 00, then "guessed the values" following RADI: "04 00 00 00 00 00 e0 40". Now I actually have no idea whatever those numbers mean except that it did reset the radius to 7.0 meters... :rotfl:

I sort of cheated because I have an older version of the .mdl file which RADitor.exe will load, and I had set the BBOX to all zeros, and the Radius to 7.0 meters, so it was a matter of making 'em match. :wizard:
 
I did try it using AFCAD and after moving the FSX KBT Electra into the FS2004/Aircraft folder AFCAD was able to read the MDL file (the radius is 19 meters). I did not try to edit it, but I assume that would work.
 
Hi Bill,

Do you have a sample of the file that crashes? I might be able to fix it.

Also in the recent P3D SDK I came across an additional X command to overwrite the radius. Normally xtomdl calculates it from the geometry.
 
Hi Bill,

Do you have a sample of the file that crashes? I might be able to fix it.

Also in the recent P3D SDK I came across an additional X command to overwrite the radius. Normally xtomdl calculates it from the geometry.
Sure, I'll send you a link via PM. Even though I've manually fixed the issue, RADitor.exe still refuses to load it...
 
Hi Bill,

I have fixed the bug. It seems you were the first to load a model with a RIFF section that is longer than int.maxvalue :). That didn't work well. I have released a new version now with a fix (link is on the wiki and my website).
 
Oh wow! Thank's ever so much. I don't usually need this all that often, but when I do need it, I really N E E D it! :wave:
 
Back
Top