- Messages
- 371
- Country

In the past, I have succeeded to change a value in an existing mdl file with a hexadecimal editor.
It was in the A321_interior.mdl, where the ND rotary Knob, link to a L:var had 4 positions, while the knob has 5 positions in the 2D cockpit.
I have found where was the value to change and it worked fine.
So today, I would like to change some code about the throttles. I write a FMS for Project Airbus, and I would like to create the real function of the A/THR on an Airbus : In fact, when a Airbus is under A/THR, the throttles don't move (thy are on the climb position).
IN the MDL file, I see this code about the left throttle:
and this code for the right throttle :
In the first throttle code, you see 2 L:var which allows to stop the animation of the throttle.
I have try to use these L:vars and that works like I want, but only for the left throttle (logical).
When I set to 1 (>L:EmergencyThrottleInUse, bool) , the animation of the throttle is stopped, and I can set this position like I want, with the (>L:Engine1ThrottlePosition, percent). That's not affect the A/THR operation, only the animation of the throttle is concerned.
That ecxaltly that I want !! But the mdl file hasn't these L:Var for the second throttle.
So I have tried to change with my hexadecimal editor, the code of the second Thottle in the mdl file by this code :
This is the same code of the left throttle, but with a new L:var off course
But that doesn't work. The 2 throttles disappear totally !!!
I think that the problem is because the file hasn't the same numbers of bytes, or maybe an offset table for the sections in the file.
Have you an idea to solve this porblem ?
Is there a tool to edit the mdl file ?
Thank you very much.
Francois
It was in the A321_interior.mdl, where the ND rotary Knob, link to a L:var had 4 positions, while the knob has 5 positions in the 2D cockpit.
I have found where was the value to change and it worked fine.
So today, I would like to change some code about the throttles. I write a FMS for Project Airbus, and I would like to create the real function of the A/THR on an Airbus : In fact, when a Airbus is under A/THR, the throttles don't move (thy are on the climb position).
IN the MDL file, I see this code about the left throttle:
Code:
(L:EmergencyThrottleInUse, bool) 1 !=
if{ (A:GENERAL ENG THROTTLE LEVER POSITION:1, part) s0 0 >= if{ l0 -50 * 50 + } els{ l0 (A:THROTTLE LOWER LIMIT, part) / 1 + 50 * } d (>L:Engine1ThrottlePosition, percent) } els{ (L:Engine1ThrottlePosition, percent) }
and this code for the right throttle :
Code:
(A:GENERAL ENG THROTTLE LEVER POSITION:2, part) s0 0 >= if{ l0 -50 * 50 + } els{ l0 (A:THROTTLE LOWER LIMIT, part) / 1 + 50 * }
In the first throttle code, you see 2 L:var which allows to stop the animation of the throttle.
I have try to use these L:vars and that works like I want, but only for the left throttle (logical).
When I set to 1 (>L:EmergencyThrottleInUse, bool) , the animation of the throttle is stopped, and I can set this position like I want, with the (>L:Engine1ThrottlePosition, percent). That's not affect the A/THR operation, only the animation of the throttle is concerned.
That ecxaltly that I want !! But the mdl file hasn't these L:Var for the second throttle.
So I have tried to change with my hexadecimal editor, the code of the second Thottle in the mdl file by this code :
Code:
(L:EmergencyThrottleInUse, bool) 1 !=
if{ (A:GENERAL ENG THROTTLE LEVER POSITION:2, part) s0 0 >= if{ l0 -50 * 50 + } els{ l0 (A:THROTTLE LOWER LIMIT, part) / 1 + 50 * } d (>L:Engine2ThrottlePosition, percent) } els{ (L:Engine2ThrottlePosition, percent) }
But that doesn't work. The 2 throttles disappear totally !!!
I think that the problem is because the file hasn't the same numbers of bytes, or maybe an offset table for the sections in the file.
Have you an idea to solve this porblem ?
Is there a tool to edit the mdl file ?
Thank you very much.
Francois




