Search the archive:
Simviation Main Site
|
Site Search
|
Upload Images
Simviation Forum
›
Design Forums
›
Aircraft & 3D Design
› Viewing the mdl
(Moderators: Mitch., Fly2e, ozzy72, beaky, Clipper, JBaymore, Bob70, BigTruck)
‹
Previous Topic
|
Next Topic
›
Pages:
1
Viewing the mdl (Read 1256 times)
Apr 11
th
, 2009 at 10:36am
Chan_Rak
Offline
Captain
Illinois
Gender:
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
Back to top
IP Logged
Reply #1 -
Apr 11
th
, 2009 at 10:50am
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
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.
Back to top
IP Logged
Reply #2 -
Apr 11
th
, 2009 at 12:12pm
garryrussell
Offline
Colonel
Hello!
Gender:
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
Back to top
IP Logged
Reply #3 -
Apr 12
th
, 2009 at 4:09am
Chan_Rak
Offline
Captain
Illinois
Gender:
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
Back to top
IP Logged
Reply #4 -
Apr 12
th
, 2009 at 5:54am
Wing Nut
Offline
Colonel
Hoy-Hoy!
Gender:
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.
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!
Back to top
IP Logged
Reply #5 -
Apr 12
th
, 2009 at 6:32am
garryrussell
Offline
Colonel
Hello!
Gender:
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
Back to top
IP Logged
Reply #6 -
Apr 12
th
, 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
Back to top
IP Logged
Reply #7 -
Apr 12
th
, 2009 at 8:56am
Alejandro Rojas L.
Ex Member
I Love Simviation.
garryrussell wrote
on Apr 12
th
, 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
Back to top
IP Logged
Reply #8 -
Apr 12
th
, 2009 at 10:11am
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
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.
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 !
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
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..
Back to top
IP Logged
Reply #9 -
Apr 12
th
, 2009 at 10:22am
Hagar
Offline
Colonel
My Spitfire Girl
Costa Geriatrica
Posts: 33159
Brett_Henderson wrote
on Apr 12
th
, 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
Back to top
IP Logged
Reply #10 -
Apr 12
th
, 2009 at 10:49am
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
Posts: 3593
Hagar wrote
on Apr 12
th
, 2009 at 10:22am:
Brett_Henderson wrote
on Apr 12
th
, 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.
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
Back to top
IP Logged
Reply #11 -
Apr 12
th
, 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.
♪♫♪‼
Back to top
IP Logged
Reply #12 -
Apr 12
th
, 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
Back to top
IP Logged
Reply #13 -
Apr 12
th
, 2009 at 11:07am
Alejandro Rojas L.
Ex Member
I Love Simviation.
Brett_Henderson wrote
on Apr 12
th
, 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 !
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.
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 ?
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
Back to top
IP Logged
Reply #14 -
Apr 12
th
, 2009 at 11:11am
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
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.
Back to top
IP Logged
Reply #15 -
Apr 12
th
, 2009 at 11:14am
Hagar
Offline
Colonel
My Spitfire Girl
Costa Geriatrica
Posts: 33159
Brett_Henderson wrote
on Apr 12
th
, 2009 at 11:11am:
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.
OK Brett, have it your way. I'm not prepared to argue. Suffice to say that these things are all possible if you know how to do it.
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
Back to top
IP Logged
Reply #16 -
Apr 12
th
, 2009 at 11:19am
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
Posts: 3593
Quote:
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
Naw
We're friends forever !
I respect your opinion too. I'd never suggest that you share a source file with just any person.
To me.. all the work and research is for making a good model and the whole reason for doing it, is for sharing it (even the source code).
We can't stop people from stealing.. locked door only keep honest people out of a house.
I figure.. if someone is interested enough to have learned Gmax, then them using my source code, is no different than someone using the actual model IN FSX.
And heck.. if they learn something from messing with my source code, that's even BETTER.. now I'm helping someone else , and we've got another designer
Back to top
IP Logged
Reply #17 -
Apr 12
th
, 2009 at 11:26am
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
Posts: 3593
Hagar wrote
on Apr 12
th
, 2009 at 11:14am:
Brett_Henderson wrote
on Apr 12
th
, 2009 at 11:11am:
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.
OK Brett, have it your way. I'm not prepared to argue. Suffice to say that these things are all possible if you know how to do it.
I wasn't arguing.. just discussing.. and yes, it's possible.. but would likely be an effort in proprtion to just making a new model.
Back to top
IP Logged
Reply #18 -
Apr 13
th
, 2009 at 11:01pm
Felix/FFDS
Offline
Admin
FINALLY an official Granddad!
Orlando, FL
Gender:
Posts: 1000000627
ShaneG wrote
on Apr 12
th
, 2009 at 11:01am:
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.
Point of information only -
Shane - the answer is basically no. IF it's coded into the mdl, it will operate under the appropriate keystroke. This is not, for example, like a landing gear animation - you can "freeze" a retractable landing gear by declaring extension.retraction times of "0" in the aircraft.cfg file, but then you'll still have the visuals of the open gear doors, etc.
Or, you can make a landplane an amphibian/seaplane, again by editing the aircraft.cfg file, but then, all you get is a visual landplane landing nicely on the water.
Felix/
FFDS
Back to top
IP Logged
Reply #19 -
Apr 14
th
, 2009 at 5:34am
ShaneG
Offline
Colonel
I turned into a Martian!
Posts: 10000
I was referring to setting up a [Lights] section in the cfg.
using lighting FX files and assigning a key other than the "L" key to turn them on, this way you wouldn't have to use the modeled lights.
I had to do this to a FS2000 model of a F-16XL, it had modeled lights for all of the lighting, so I updated it with Shockwave 3-d lights and just played with the XYZ until they were positioned right and set them up to turn on with the "T" key.
If I press L, the modeled lights still function as normal, I just don't use them.
I'm going to have to try that amphib trick. Sounds like it would make for some interesting emergency water landing practice.
♪♫♪‼
Back to top
IP Logged
Reply #20 -
Apr 14
th
, 2009 at 5:44am
Hagar
Offline
Colonel
My Spitfire Girl
Costa Geriatrica
Posts: 33159
Going back to the original question, the FS9 version of the RFP 747-200 already has a [LIGHTS] section in Aircraft.cfg together with corresponding FX files. I assume this makes further modification to the MDL unnecessary. Although I posted a link nobody seems to have checked it out.
http://www.simviation.com/fs2004jets211.htm
I note that Chan hasn't returned since his second post. The amount of over-reaction in this topic probably scared him off.
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
Back to top
IP Logged
Reply #21 -
Apr 14
th
, 2009 at 6:02am
ShaneG
Offline
Colonel
I turned into a Martian!
Posts: 10000
Hagar wrote
on Apr 14
th
, 2009 at 5:44am:
Going back to the original question, the FS9 version of the RFP 747-200 already has a [LIGHTS] section in Aircraft.cfg together with corresponding FX files. I assume this makes further modification to the MDL unnecessary. Although I posted a link nobody seems to have checked it out.
http://www.simviation.com/fs2004jets211.htm
I've got this beast (sits in my 'no longer flying it' folder),
. You're right, the lights problem doesn't exist on this version. It would have helped to know which version of FS he was running as was mentioned before. Could be an easy solution for him with this version.
Hagar wrote
on Apr 14
th
, 2009 at 5:44am:
I note that Chan hasn't returned since his second post. The amount of over-reaction in this topic probably scared him off.
♪♫♪‼
Back to top
IP Logged
Pages:
1
‹
Previous Topic
|
Next Topic
›
« Home
‹ Board
Top of this page
Forum Jump »
Home
» 10 most recent Posts
» 10 most recent Topics
Current Flight Simulator Series
- Flight Simulator X
- FS 2004 - A Century of Flight
- Adding Aircraft Traffic (AI) & Gates
- Flight School
- Flightgear
- MS Flight
Graphic Gallery
- Simviation Screenshots Showcase
- Screenshot Contest
- Edited Screenshots
- Photos & Cameras
- Payware Screenshot Showcase
- Studio V Screenshot Workshop
- Video
- The Cage
Design Forums
- Aircraft & 3D Design ««
- Scenery & Panel Design
- Aircraft Repainting
- Designer Feedback
General
- General Discussion
- Humour
- Music, Arts & Entertainment
- Sport
Computer Hardware & Software Forum
- Hardware
- Tweaking & Overclocking
- Computer Games & Software
- HomeBuild Cockpits
Addons Most Wanted
- Aircraft Wanted
- Other Add-ons Wanted
Real World
- Real Aviation
- Specific Aircraft Types
- Autos
- History
On-line Interactive Flying
- Virtual Airlines Events & Messages
- Multiplayer
Simviation Site
- Simviation News & Info
- Suggestions for these forums
- Site Questions & Feedback
- Site Problems & Broken Links
Combat Flight Simulators
- Combat Flight Simulator 3
- Combat Flight Simulator 2
- Combat Flight Simulator
- CFS Development
- IL-2 Sturmovik
Other Websites
- Your Site
- Other Sites
Payware
- Payware
Old Flight Simulator Series
- FS 2002
- FS 2000
- Flight Simulator 98
Simviation Forum
» Powered by
YaBB 2.5 AE
!
YaBB Forum Software
© 2000-2010. All Rights Reserved.