Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Pages: 1 2 
Send Topic Print
Viewing the mdl (Read 1253 times)
Apr 11th, 2009 at 10:36am

Chan_Rak   Offline
Captain
Illinois

Gender: male
Posts: 3
***
 
Greetings;

On the aircraft files that I have there is a model folder, and when I go inside I see the mdl file.  I want to open this file to see some things such as the lights and make some adjustment so it works better or eliminate the fixed light (strobes) and work it out from my Aircraft cfg.  However I need to make this adustment fix inside the mdl that was created by someone else.  So is there a program that I can use that can open this mdl file and put this same file back after the adjustment is made?????

This is all I want to do mainly to enjoy my aircraft better overall.

Chan
 
IP Logged
 
Reply #1 - Apr 11th, 2009 at 10:50am

Brett_Henderson   Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB

Gender: male
Posts: 3593
*****
 
From my limited understanding of it.. there are "decompilers" out there. The trick are many-fold though.

In order to DO anything TO that file... you have to have the proper modeling software, and know how to use it. And even after THAT.. the uncompiled model is stripped of it's unique animations and material properties... so you'd have to re-model all of that stuff.

For all intents and purposes.. there isn't much that can be done to a model, unless you have the original source code.
 
IP Logged
 
Reply #2 - Apr 11th, 2009 at 12:12pm

garryrussell   Offline
Colonel
Hello!

Gender: male
Posts: 677
*****
 
AS Brett says you lose the animations, mapping, etc so you may just as well start again

Also I think you will find that just about all models are released on the condition that it is not to be decompiled.

Garry

 
IP Logged
 
Reply #3 - Apr 12th, 2009 at 4:09am

Chan_Rak   Offline
Captain
Illinois

Gender: male
Posts: 3
***
 
Oh man, are you saying that once you open the mdl file you lose all the data inside it when it is decompiled????  And again have to redo everything all over again spec wise and then compile it????

Why they can't make one simple kind like they do for the airfile and or for the CFG????

Hmmm, you did mention the conditon that such be not decompiled and I wonder why????

A model of a sim airplane should not have to be so complicated.  I can see Abacus is able to let you paint colors in a simplified manner.

I got a plane that is a good one called RFP a nice 747-200.  I have just one main grievance and it is the strobe light that seems to be hard coded into the model and it flashes at all the wrong spots and it is simutaneous with the VC light as well.  I simply wanted to eliminate that portion out of the hard code and leave the rest of the plane alone as it is fine.

From there I wanted to insert the lights in the proper places the becons, navs and strobes etc.  This can be controlled in the Aircraft CFG and or airfile of the same.

We must have some flexibility concerning models and some of the creators granted that they have spent so much time on them and even sell these models for ridiculous prices if I may be allowed to say so, has gotten literally cornered.

I understand some people when they make certain wishes concerning their creation, and rightfully so doing it payware or shareware.  But when it becomes Freeware, this means it is wide open to allow people to adjust or refine the existing plane to be better without being prejudiced or crucified.

Freeware means open to all.  Nothing short of that sentence.  Ok and this is to my understanding.  Of course we do get a pilfish here and there, but again this is going to happen. 

Now GMAX has made it so that the Microsoft Make Model SDK can go inside and not lose this data (correct me if I am wrong) and one can make adjustments if needed to further and enhance the plane and its characteristics.

Microsoft for a long time withheld many of the secrets from us until we put a lot of pressure and then they released the source codes for us to play with and to tinker with etc things even got better thru time because of a cooperative environment and better ideas.  Why cannot the MDL makers do the same??????

So this is all I wanted to do and if anyone knows the good compiler and decompiler that works for the mdl, please let me know.  I will try to work it out myself.

Chan

 
IP Logged
 
Reply #4 - Apr 12th, 2009 at 5:54am

Wing Nut   Offline
Colonel
Hoy-Hoy!

Gender: male
Posts: 14173
*****
 
There is a big difference between painting an airplane and changing the model.  The difference is like writing a paragraph and writing a book...  Keep in mind, that mdl file is instructions for placing sometimes as many as 60,000 polygons in the sim.  It would be a bit hard to handwrite that like a .cfg file.

Tongue
 

HP p7-1300w
AMD Athlon II X4 650 Quad-core 3.2 Ghz
23" HP Widescreen monitor/19" Dell monitor
Windows 7 Home Premium
16 Gb DDR3 PC10600 Ram
1 Gb GeForce GTX 550Ti video card
1 TB RAID Drives

If you want to see the most beautiful girl in the world, CLICK HERE!
IP Logged
 
Reply #5 - Apr 12th, 2009 at 6:32am

garryrussell   Offline
Colonel
Hello!

Gender: male
Posts: 677
*****
 
Freeware means no price has been charged

It does not mean open for all

If you get a free gift from a shop that does no mean the product copyright is opened

People have been kind enough to give something without charge after hundred of hours work.

The copyright belongs to the author and if breached then that is stealing.

How do you come to the conclusion that freeware means all rights are given up???

Garry
 
IP Logged
 
Reply #6 - Apr 12th, 2009 at 6:49am

Hagar   Offline
Colonel
My Spitfire Girl
Costa Geriatrica

Posts: 33159
*****
 
In Chan's defence all he wants to do is remove a strobe light defined in the MDL file. Surely that's no big crime. He didn't mention which version of FS he wants the aircraft for but I presume this is an older model created with FSDS for FS2002.

Quote:
Keep in mind, that mdl file is instructions for placing sometimes as many as 60,000 polygons in the sim.  It would be a bit hard to handwrite that like a .cfg file.

It might be difficult but not impossible. The MDL file can be opened & edited with a Hex Editor. There are ways of doing these things if you know what to look for. I would tell him how to do it if I knew myself.
 

...

Founder & Sole Member - Grumpy's Over the Hill Club for Veteran Virtual Aviators
Member of the Fox Four Group

Need help? Try Grumpy's Lair

My photo gallery
IP Logged
 
Reply #7 - Apr 12th, 2009 at 8:56am

Alejandro Rojas L.   Ex Member
I Love Simviation.

*
 
garryrussell wrote on Apr 12th, 2009 at 6:32am:
Freeware means no price has been charged

It does not mean open for all

If you get a free gift from a shop that does no mean the product copyright is opened

People have been kind enough to give something without charge after hundred of hours work.

The copyright belongs to the author and if breached then that is stealing.

How do you come to the conclusion that freeware means all rights are given up???

Garry



May I use this words to use it as my avatar ? 

Well said Gary Wink
 
IP Logged
 
Reply #8 - Apr 12th, 2009 at 10:11am

Brett_Henderson   Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB

Gender: male
Posts: 3593
*****
 
You're reading too much into this. But for the sake of technical correctness.. you're confusing freeware, with, "open source" software.. where it's exactly as it implies.. The source code is freely distrubuted, and modified.

That a model file is "encrypted", is a function of the compilation. The realtionship between an FSX model-file, and its Gmax source-file; is the same relationship between ANY programming language's source-file (that a programmer can write and edit), and its compiled, executable file. When you sit down and write some huge program, that "language" is for YOUR benefit. A computer doesn't need all those pages of read-able code and syntax.. it just needs simple, machine-language-like instructions... usually in hexadecimal format. A compiled program (or model), is much smaller, and much more quickly read and processed by a computer.

In theory.. FSX could use the Gmax files as model files.. but it would require terribly bulky code in FSX..  OR ..  FSX would have to have a compiler built in, and compile each model before rendering it.

It's more about efficiency, that any sort of encryption.  Smiley

As a freeware designer myself.. I'll freely distribute my source-code, to anyone who asks. If a person is capable of USING that source code in any  way (like making a decent modification).. HAVE AT IT !  Smiley  I don't worry about someone just recompiling it and taking credit. I mean, geez.. they could do that with the compiled model. Just rename it and distribute it in their name. And even THAT doesn't bother me. The more people who get to enjoy my work, the better.

Now.. as far as repainting goes. Think of it this way. The textures are nothing more than data files.. like a spread-sheet full of numbers are to accounting software. Change the data .. change the output.

The cfg and air files have NOTHING to do with the model. They're data for FSX. FSX doesn't care if your model looks like a beach ball  Cheesy  All FSX sees is a point in space.. and those files are the data that help FSX make that point in space move about liike an airplane. Sure.. there are cfg entries for things like lights..  but all FSX cares about, is where those are, realtive to that point in space...

As far as editing stuff like model-dependent lighting from a hex-editor ? It would require more effort to learn and accomplish that task, than it would to build a new model from scratch. Anything other than very specific, conditional switches (like we used to "turn off" VCs), means messing around blindly in a china shop, that has houses of cards in it too, and the lights are turned off..
 
IP Logged
 
Reply #9 - Apr 12th, 2009 at 10:22am

Hagar   Offline
Colonel
My Spitfire Girl
Costa Geriatrica

Posts: 33159
*****
 
Brett_Henderson wrote on Apr 12th, 2009 at 10:11am:
As far as editing stuff like model-dependent lighting from a hex-editor ? It would require more effort to learn and accomplish that task, than it would to build a new model from scratch. Anything other than very specific, conditional switches (like we used to "turn off" VCs), means messing around blindly in a china shop, that has houses of cards in it too, and the lights are turned off..

I didn't say it was easy but it can be done. I used to do this sort of thing regularly back in the old days when models weren't as complex as they are now. We're talking about an early FS2002 model here or even one for FS2000. There are also utilities available for making various modifications to MDL files including converting FS9 models to work in FS2002 & CFS2.

I've investigated the RFP 747-200 that Chan mentioned. It appears that this is the Ready for Pushback aircraft that was originally Payware & created for FS2000. There is an updated version of this aircraft for FS9 which is now released as Freeware. I suggest trying that as it might not need modifying.
 

...

Founder & Sole Member - Grumpy's Over the Hill Club for Veteran Virtual Aviators
Member of the Fox Four Group

Need help? Try Grumpy's Lair

My photo gallery
IP Logged
 
Reply #10 - Apr 12th, 2009 at 10:49am

Brett_Henderson   Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB

Gender: male
Posts: 3593
*****
 
Hagar wrote on Apr 12th, 2009 at 10:22am:
Brett_Henderson wrote on Apr 12th, 2009 at 10:11am:
As far as editing stuff like model-dependent lighting from a hex-editor ? It would require more effort to learn and accomplish that task, than it would to build a new model from scratch. Anything other than very specific, conditional switches (like we used to "turn off" VCs), means messing around blindly in a china shop, that has houses of cards in it too, and the lights are turned off..

I didn't say it was easy but it can be done. I used to do this sort of thing regularly back in the old days when models weren't as complex as they are now. We're talking about an early FS2002 model here or even one for FS2000. There are also utilities available for making various modifications to MDL files including converting FS9 models to work in FS2002 & CFS2.

I've investigated the RFP 747-200 that Chan mentioned. It appears that this is the Ready for Pushback aircraft that was originally Payware & created for FS2000. There is an updated version of this aircraft for FS9 which is now released as Freeware. I suggest trying that as it might not need modifying.


Yeah.. it's possible in theory.. But were talking about things like, conditional-appearance, variable transparency, probable animation.. part-hierarchy.. co-dependent materials...  Finding all the proper hex-entries.. and modifying them in ways that don't cascade problems throughout the model (the tiniest of which would simply render it uselsess), would be like finding the needle in the haystack and extracting it, without disturbing any of the hay.  Cheesy

Now, though.. I'm curious and bored.. I'm wondering if there might be a simple, harmless edit, that just "shuts off", lighting. My instinct tells me that GMAX/MSFS doesn't discern it that discretely. I'll bet it's more along the lines of animation. You either have it, or you don't. The best we could hope to do, would be to "shut off" conditional appearance, and that would likely effect the prop and wheels  Undecided
 
IP Logged
 
Reply #11 - Apr 12th, 2009 at 11:01am

ShaneG   Offline
Colonel
I turned into a Martian!

Posts: 10000
*****
 
If I may, for a much simpler solution, would it be possible to set up a new lighting system in the aircraft.cfg and assign a key press for them and just not use the built in lighting system, thereby just bypassing them?

In this way the original author's work is left untouched and no copyrights are violated.

Just a thought. Smiley
 
IP Logged
 
Reply #12 - Apr 12th, 2009 at 11:03am

Hagar   Offline
Colonel
My Spitfire Girl
Costa Geriatrica

Posts: 33159
*****
 
Chan didn't say which version of the aircraft he has or which version of FS this is for. I assume it's either FS9 or FSX. I tried the FS9 version of the aircraft he mentioned & the strobes appear to be defined in Aircraft.cfg. It's possible the adjustment he wants to make is no longer necessary. Try it for yourself. FS2004 Ready For Pushback Boeing 747-200 package v2

Quote:
Yeah.. it's possible in theory.. But were talking about things like, conditional-appearance, variable transparency, probable animation.. part-hierarchy.. co-dependent materials...  Finding all the proper hex-entries.. and modifying them in ways that don't cascade problems throughout the model (the tiniest of which would simply render it uselsess), would be like finding the needle in the haystack and extracting it, without disturbing any of the hay.

There is a little utility that will do most of those things automatically. It will convert the FS9 default DC-3 to display correctly in CFS2 with a single click. I've tested it & it works very well.
 

...

Founder & Sole Member - Grumpy's Over the Hill Club for Veteran Virtual Aviators
Member of the Fox Four Group

Need help? Try Grumpy's Lair

My photo gallery
IP Logged
 
Reply #13 - Apr 12th, 2009 at 11:07am

Alejandro Rojas L.   Ex Member
I Love Simviation.

*
 
Brett_Henderson wrote on Apr 12th, 2009 at 10:11am:
As a freeware designer myself.. I'll freely distribute my source-code, to anyone who asks. If a person is capable of USING that source code in any  way (like making a decent modification).. HAVE AT IT !  Smiley  I don't worry about someone just recompiling it and taking credit. I mean, geez.. they could do that with the compiled model. Just rename it and distribute it in their name. And even THAT doesn't bother me. The more people who get to enjoy my work, the better.

Now.. as far as repainting goes. Think of it this way.
The textures are nothing more than data files
.. like a spread-sheet full of numbers are to accounting software. Change the data .. change the output.



Shocked Shocked Shocked

what about those who have to BEG to be allow to take photos of the interior? To ask special Permission to the real life owners of airplanes.

What about all investigations some of us have to make (I never seen a plane in my Life as you do Chief)
I don't have accest to real life airplane the closest way to see a plane is when the fly over my head at 5 KM away


Maybe its me , maybe I do a lot of effort in FIRST: translating into my language and comprehension of what is modeling in max gmax ,

You recently Explain something to me that Newbie designers knows all because English is not my native language the UVW Unwrap.

I'm trying to make gauges  now myself ,for not getting into trouble anymore ..

according what I read and I respect your opinion Brett ,your're saying that you could include the gmax file inside the Zip ?  Shocked

and why MS didn't include the max files of the 747-/737/ lear45/ airbus/ and all their models ,after all w bought the game ,there got a be a reason

In My place where i live, Its better to be locked and Not going out to the street, You know what I mean ,So I have to work Locked and be 14 hours  a day in this  I have spend a month and a half day and night in 2 projects to be Freware with limited distribuition, and I wish I could be so mature as you are ,

Sorry Chief I respect your opinion ,your my best friend a we are codesigners ,but Im not agree with you only this time , I hope this not break Our friendship ,but I can't quiet about this  Embarrassed  
 
IP Logged
 
Reply #14 - Apr 12th, 2009 at 11:11am

Brett_Henderson   Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB

Gender: male
Posts: 3593
*****
 
Quote:
There is a little utility that will do most of those things automatically. It will convert the FS9 default DC-3 to display correctly in CFS2 with a single click. I've tested it & it works very well.


Interesting.. but that's an entire model.. a fix along the lines of "shutting off" an entire VC. We're talking about editing a model... changing something specific, within it.
 
IP Logged
 
Pages: 1 2 
Send Topic Print