PDA

View Full Version : ? for MDL Experts



Oglivie
January 1st, 2011, 12:42
?????

Is there a way to edit (with hex or scasm) the size of an aircraft for the CFS2 aircraft selection window? I am encountering an aircraft that after compiling the scasm with MDLC is scaling about half the size it was with the original model (in the selection window), but appears to be scaled fine when loaded into the sim for flying.

Sincerely, Confused

Oglivie

simonu
January 1st, 2011, 13:56
Its easy Oglivie,
In your mdlc folder look for and open with notepad the the file mdlc.ini

find the section

[MDLH_SECTION]
size_radius=16

change to

size_radius=6

and save

then recompile your model.

If you use the mdlc front end mk_mdlc to adjust the visual model size, this is the parameter that gets changed.

MK_mdlc over-writes any changes you make to mdlc.ini

So you should check this setting everytime you start a new project.

N.B.
This parameter gets writen in the mdl header so it is quite possible and easy to set it directly with a hex editor.

The parameter is also used by CFS2 to calculate collisions between the player and AI aircraft.

So set the model size small if you like to get real close to other aircraft.

Shessi
January 1st, 2011, 14:15
Hi O,
By far the easiest is to let mk_mdlc do the work.
See attached pic. Select the mdl, then tick the Z-Set visual model size box, which wil bring up the second box-out. You can then vary the size and see the general size effect, pick the one you want, run mk_mdlc and replace original.

The great thing is that you can do it as many times as you want to get the size right, you don't have to start with the original mdl.

Cheers Shessi

Oglivie
January 1st, 2011, 17:21
Thanks Simon and Shessi,

It worked out well. The aircraft selection window size is proportional to the crash bubble radius then. All the methods mentioned will come in handy. Thanks again.

Cheerz, O