Need some help with MDLC coding

OBIO

Retired SOH Admin
I am posting this here in the CFS2 forum because I know that the folks here put MDLC to use in ways that no other forum does...and that I am more likely to get the help I need on a FS2004 project I am working on.

The plane I am working on is the freeware Alphasim Jaguar for Fs2002/2004. I have made a ton of MDL tweaks and there is one more that I want to make...and that is to remove the modeled in lights. I have set the MDL material for the lights as totally transparent and they still show up on the plane. I know that MDLC can remove the lightstate coding from the MDL file...but what I don't know is if it is possible to remove lightstate without removing the rest of the FS2002/2004 animation keyframes or without losing the reflective texturing of the plane.

Anyone have a clue as to how I can go about removing the modeled on lights from the Alpha Jag without losing all the animations and other coding?

And if it is possible to do this, how would I write up the command line to do it? I haven't used DOS style syntax in so long I forgot how to do it.

OBIO
 
Hi Obio,
What a good freebie!, very nice model and a lot of skins/versions.

I had a fly of the GR1 last night, do you mean the the nose landing gear cover light or..?

If so, may I ask why you want to get rid of it as it is on an on/off switch?

Cheers

Shessi
 
You need to remove some codes...

look for:

9D E9 F0 57 23 05 9C 4E BC B6 12 BB 2F E7 3F 06

Change for zeroes!
 
Hi Obio,
I think Pepe is talking about a direct Hex edit on the MDL file. you do that in a Hex editing program that can search and replace byte values in any file.
Its much quicker to do it that way
If that doesn't work
the command line is
Code:
MDLC /a FS9.mdl
where FS9.mdl is the name of the file you work on.
After a short time MDLC will spit out fs9.sca
The source file you can work on , look up in scasm docs for data on Lights command.
I can't remember the command lines to have MDLC recompile the edited file, I'll look them up when I'm back at my workshop.
 
Back
Top