Hi,
the recent discussions about using MDLC & scasm code and editing aircraft models to enable features that are't normally part of the CFS2 realm, changing the rear canopy key mapping to front canopy etc, has brought me back to have another go at a problem that has bugged me off and on for a while.
Does anyone know why the following happens and how to fix it?
There are specific models that exhibit this behaviour, for example Greg Peppers HU-16 Albatross for FS2004 (v2) and the C-46 Commando by Greg Pepper, Tom Gibson and Libardo Guzman. (And it is not just a Greg Pepper problem - it just so happens that those are the 2 aircraft I have in front of me)
If I convert the model to CFS2 format using MDLC it works fine. However if I then create scasm code of the CFS2 converted model and recompile it (without making any changes whatsoever to the code) , the recompiled model will cause CFS2 to crash.
It gets stranger because the crash doesn't happen immediately. I can start CFS2, go into free flight, pull up the aircraft and fly with it just fine, I can change views (Panel, HUD, VC, external etc) no problem. Then when I go to change the plane for a different one, or end free flight CFS2 will crash. Sometimes if I start free flight with a different aircraft, switch to my bad boy, and switch back it will behave - as long as I don't change the views. If I change the view then bang CTD.
the commands I am using are as follows
create the SCASM code
MDLC /a foo.mdl foo.sca
recompiling the SCASM code
MDLC /m foo.sca foo.bgl
MDLC /l foo.bgl foo.mdk
MDLC /c foo.mdk foo.md2
MDLC /t foo.md2 foo.mdt
copy foo.mdt foo.mdl
There is another curve on this issue (as if it wasn't bad enough)
I have managed to get a lot of the animations corrected by using a variant on Caleb Flerks directions on editing mdl files.
I edit the scasm code and then create a bgl directly using SCASM. Then I open the bgl file and the mdl file in a hex editor (I am using Frhed) and copy the data from the bgl to the mdl file. This works great if I am changing something that already exists (ie. connecting a rear canopy to the front canopy), however if I have to change something to something new (i.e. replace the water_rudder GUID with the Concorde Visor GUID as an activating keystroke for landing lights) then the revised triggering key doesn't work. I know that the change is valid and will work because if I take the edited SCASM code and re-compile and link it via MDLC the new key will trigger the animation correctly but CSF2 will CTD everytime.
Anybody have any thoughts or suggestions?
Thanks
Gavin
the recent discussions about using MDLC & scasm code and editing aircraft models to enable features that are't normally part of the CFS2 realm, changing the rear canopy key mapping to front canopy etc, has brought me back to have another go at a problem that has bugged me off and on for a while.
Does anyone know why the following happens and how to fix it?
There are specific models that exhibit this behaviour, for example Greg Peppers HU-16 Albatross for FS2004 (v2) and the C-46 Commando by Greg Pepper, Tom Gibson and Libardo Guzman. (And it is not just a Greg Pepper problem - it just so happens that those are the 2 aircraft I have in front of me)
If I convert the model to CFS2 format using MDLC it works fine. However if I then create scasm code of the CFS2 converted model and recompile it (without making any changes whatsoever to the code) , the recompiled model will cause CFS2 to crash.
It gets stranger because the crash doesn't happen immediately. I can start CFS2, go into free flight, pull up the aircraft and fly with it just fine, I can change views (Panel, HUD, VC, external etc) no problem. Then when I go to change the plane for a different one, or end free flight CFS2 will crash. Sometimes if I start free flight with a different aircraft, switch to my bad boy, and switch back it will behave - as long as I don't change the views. If I change the view then bang CTD.
the commands I am using are as follows
create the SCASM code
MDLC /a foo.mdl foo.sca
recompiling the SCASM code
MDLC /m foo.sca foo.bgl
MDLC /l foo.bgl foo.mdk
MDLC /c foo.mdk foo.md2
MDLC /t foo.md2 foo.mdt
copy foo.mdt foo.mdl
There is another curve on this issue (as if it wasn't bad enough)
I have managed to get a lot of the animations corrected by using a variant on Caleb Flerks directions on editing mdl files.
I edit the scasm code and then create a bgl directly using SCASM. Then I open the bgl file and the mdl file in a hex editor (I am using Frhed) and copy the data from the bgl to the mdl file. This works great if I am changing something that already exists (ie. connecting a rear canopy to the front canopy), however if I have to change something to something new (i.e. replace the water_rudder GUID with the Concorde Visor GUID as an activating keystroke for landing lights) then the revised triggering key doesn't work. I know that the change is valid and will work because if I take the edited SCASM code and re-compile and link it via MDLC the new key will trigger the animation correctly but CSF2 will CTD everytime.
Anybody have any thoughts or suggestions?
Thanks
Gavin
I was just making sure you knew all the 'moves'.