run MDLC with the switch /t "fix animation table"
assuming your model is called "fs9.mdl"
the batch run to convert from FS9 to CFS2 is
Code:
cls
echo off
del FS8.mdl
del CFS2.mdl
copy FS9.mdl FS9.md8
MDLC /f FS9
MDLC /t FS9.md8
MDLC /c FS9.mdt
rename FS9.mdt FS8.mdl
rename FS9.md2 CFS2.mdl
del FS9.md8
del Temp.*
del *.log
copy to text and save as FS92CFS2.bat
pay attention though it deletes any previously converted files and it tidys up any temp and log files
g_lightStates is changed to userdefined0
I also comment out the light commands to
use wordpad edit/replace "Light" for ";Light"
Check match case else Flight will end up F;light
as you know the MDLC command to extract a scasm source from a converted model
assuming the model is called CFS2.mdl is
and to recompile after editing
Code:
MDLC /m CFS2.sca
MDLC /l CFS2.bgl
MDLC /c CFS2.mdk
copy CFS2.MD2 CFS2.MDL
del CFS2.bgl
del CFS2.mdd
del CFS2.md2
del CFS2.MDK
del CFS2.log
del TEMP.md2