Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
.3ds file export from GMAX to .mdl ERRORS (Read 3835 times)
Jan 22nd, 2009 at 4:10pm

Gradguy   Offline
Colonel
Fly FS

Posts: 24
*****
 
I this is my first week with FSX as I'm working a graduate project.
My skills are not in 3d design or flight simulators so this is all new.  In fact I just bought FSX 3 days ago.

I've decided to try getting my own model in FSX.  But have run into problems with GMAX, SDK... I assume it a setup or procedure issue but I can figure out what it is.

I have SKD sp1a installed... I have the copied fsx_gamepacks to the gmax gamepacks folder... Thats all I got.

Here are the errors as I try to export my model as and .mdl

Failed loading animation definition file
C:\Program Files (x86)\MicrosoftGames\GMAX\gamepacks\FSX_Gamepacks\plugins\ModelDef.xml

I click ok and the Flight Simulator Model Export Options Are:
Use DDS files

Clicked ok

The next error: flight Simulator Model Exporter Error

I get two:The mesh xyz contains faces that are textured and untextured.

I click ok then I get this bad boy:

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Microsoft Games\GMAX\gamepacks\FSX_GmaxGamePack\scenes\Test\SDK\Environment Kit\Modeling SDK\bin\modeldef.XML'.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)

   at Microsoft.FlightSimulator.XToMDL.XToMDL.LoadPartDictionary(DelegatePassString LogError, DelegatePassString LogWarning, String DictionaryFile, Boolean& bFailedValidate)

   at Microsoft.FlightSimulator.XToMDL.XToMDLExporter.InternalConvertData(String& Filename, String& ModelDataPath, Byte[]& XDataStream, Byte[]& XAnimStream)

   at Microsoft.FlightSimulator.XToMDL.XToMDLExporter.ConvertData(String& Filename, String& ModelDataPath, Byte[]& XDataStream, Byte[]& XAnimStream)
---------------------------
OK   
---------------------------

I click Ok and the next error msg reads

ERROR!
CovertData faild

I click ok

Error!
Failed to run exporter!

I click ok

---------------------------
Flight Simulator Model Exporter Error
---------------------------
Failed to export model 'C:\Program Files (x86)\Microsoft Games\GMAX\gamepacks\FSX_GmaxGamePack\scenes\Test\test'.
---------------------------
OK   
---------------------------
I click ok

---------------------------
Export
---------------------------
Export module failure
---------------------------
OK   
---------------------------

and thats it...  I just don't simply know what the deal is

I don't have any animations.  I do have a couple of textures but I am just not concerned about that yet.

Any suggestions?
 
IP Logged
 
Reply #1 - Jan 22nd, 2009 at 4:19pm

Gradguy   Offline
Colonel
Fly FS

Posts: 24
*****
 
Better yet.

This is for a graduate project.  I'm not going to be making any other models for FSX... Rather than I try to learn and problem solve all of these issues, can somebody take my .3ds file and generate FSX .MDL files for me? The only thing I didn't read about is an animated prop.



 
IP Logged
 
Reply #2 - Jan 22nd, 2009 at 4:48pm

HarvesteR   Offline
Colonel
F/A-18 HARV    Almost
has my name on it!
Mexico, DF :D

Gender: male
Posts: 707
*****
 
first, what version of FSX are you using? there are currently 4 versions available:

RTM (out of the box)
SP1
SP2
Acceleration

the version of the SDK you use must be that of FSX, or it won't work... if you are on RTM you have to install the SDK that comes in Disk 1 of the FSX Deluxe Package, if you're on SP1, you have to get the SP1 SDK, and if you're using SP2 or acceleration, you have to install the SP2 SDK

bear in mind also, that to install the SDK service packs, you have to have the RTM version already installed

then, assuming your SDK version matches that of FSX, you have to do a number of procedures to 'link' your Gmax to the SDK... i suggest you read the SDK manual and look for the Gmax Setup instructions

(environment kit -> modeling SDK -> gmax -> setup) in the SDK index

that should give you some idea on how to proceed from where you are now

Hope this helps

Cheers
 

Cheesy NEW PC SPECS: Intel Core i7 920 - 6GB Corsair DDR3 PC12800 RAM- Intel DX58SO Mobo - Geforce GTX 460 768MB GDDR5 - 3x LG1952h LCDs through Matrox's TH2Go - 640GB Seagate Barracuda 7200Rpm  - 200GB Maxtor 7200Rpm - Microsoft Sidewinder X6 Keyboard - 5.1 Surround and a Saitek X52 Pro and Pro Flight Rudder Pedals  -- Running Windows 7 Ultimate x64

My 8800 GTX has at last retired... may it rest in peace in GPU heaven.
IP Logged
 
Reply #3 - Jan 24th, 2009 at 1:43pm

Gradguy   Offline
Colonel
Fly FS

Posts: 24
*****
 
This is just maddening...

I have FSX RTM out of the box. Then updated FSX with SP1. I installed gmax first to a non default location... before knowing that I needed STK.  So I then installed STK only to realized I needed STK update sp1a.  But I got all the errors above.  Hmmm ok... Then i thought it might be that Gmax was not at its default location of C:/Gmax so i uninstalled gmax only to find out that the SDK gamepack didn't see the new location after I copied it from the FSX SDK gamepack directory.  So I uninstalled  SDK sp1a.... Only to find out that it has to reinstalled the RTM SDK has to be installed first...ok I did that then re installed the RTM SDK and then the SDK sp1a. 

Now everything is where it should be.

But I still get the error above when trying to export using abc.MDL from the GMAX export.

I have read the all the manuals... the only thing that I can't seem to figure out is if I should be using the export .mdl or is there another one using the .x extension if that is the case I can't get that one to show up... even if I just type it in i get a error saying don't know how to save that file type.

Well I have launched from the gamepack of gmax short cut and the .mdl dropdown shows up... so the fsx sdk gamepack folder is effecting GMAX.

Any Ideas?  Anybody?


Here are the errors again

---------------------------
Failed loading animation definition file
---------------------------
C:\gmax\gamepacks\FSX_GMaxGamepack\plugins\ModelDef.xml
---------------------------
OK   
---------------------------

---------------------------

---------------------------
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\gmax\gamepacks\FSX_GmaxGamePack\scenes\SDK\Environment Kit\Modeling SDK\bin\modeldef.XML'.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)

   at Microsoft.FlightSimulator.XToMDL.XToMDL.LoadPartDictionary(DelegatePassString LogError, DelegatePassString LogWarning, String DictionaryFile, Boolean& bFailedValidate)

   at Microsoft.FlightSimulator.XToMDL.XToMDLExporter.InternalConvertData(String& Filename, String& ModelDataPath, Byte[]& XDataStream, Byte[]& XAnimStream)

   at Microsoft.FlightSimulator.XToMDL.XToMDLExporter.ConvertData(String& Filename, String& ModelDataPath, Byte[]& XDataStream, Byte[]& XAnimStream)
---------------------------
OK   
---------------------------
---------------------------
Error!
---------------------------
ConvertData failed!
---------------------------
OK   
---------------------------
---------------------------
Error!
---------------------------
Failed to run exporter!
---------------------------
OK   
---------------------------
---------------------------
Flight Simulator Model Exporter Error
---------------------------
Failed to export model 'C:\gmax\gamepacks\FSX_GmaxGamePack\scenes\test'.
---------------------------
OK   
---------------------------
---------------------------
Export
---------------------------
Export module failure
---------------------------
OK   
---------------------------

 
IP Logged
 
Reply #4 - Jan 24th, 2009 at 11:01pm

Fr. Bill   Offline
Colonel
I used to have a life;
now I have GMax!
Hammond, IN

Gender: male
Posts: 962
*****
 
You are running around in circles!

First, install GMax to your C: drive.

C:\gmax

Next, install the SP1 SDK to C:\FSX_SDK*, then update with SP1a SDK

* Note: I like short paths! Smiley

Next, copy/paste the ..\FSX_GmaxGamepack to your C:\gmax\gamepacks folder:

C:\gmax\gamepacks\FSX_GmaxGamePack

Next, rightclick on the FSX_GMax.icn file and SendTo Desktop as Shortcut. Use this new desktop Icon to launch GMax.

Open the plugin.ini file in notepad.exe and add this line:

ModelDef.xml=C:\FSX_SDK\SDK\Environment Kit\Modeling SDK\bin\

You should now be good to go!  Cool
 

Bill
... Gauge Programming - 3d Modeling Eaglesoft Development Group Intel Core 2 Quad Q6600-4GB DDR2 Crucial PC6400-800 GB SATA-ATI Radeon HD2400 Pro 256MB DX10 NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...
...
IP Logged
 
Reply #5 - Jan 25th, 2009 at 3:26am

Gradguy   Offline
Colonel
Fly FS

Posts: 24
*****
 
Thanks for your help... I think you are on to something but I must be missing something.... My os is a vista 64. I don't know if that make a difference.  

I did every thing you listed.  I uninstalled GMAX and SDK and rebooted just to make sure.

1. Installed gmax to:  C:\gmax
2. Installed FSX SDK to: C:\FSX_SDK and updated to sp1a SDK

Now this is where things did not go to plan.  When the sp1a SDK installs it uninstalls the orginal SDK and automaticly installs to the normal default location... I didn't have a chance to set sp1a SDK to C:\FSX_SDK.  So I read somewhere that the FSX SDK folder can be moved.  So I cut it from the original and placed it at C:\FSX_SDK.

Then i went in to the registry and set the default location to:
3. C:\FSX_SDK... "hoping that would fix this problem not being sure if it would work or not but it was worth a shot"

4. I then copied the FSX_GmaxGamePack folder over to:
C:\gmax\gamepacks\FSX_GmaxGamePack

5. It was a shot, but of cource it didn't work

6. Created the desktop icon from the shortcut of:
C:\gmax\gamepacks\FSX_GmaxGamePack\FSX_GMax

7. Edited the plugin.ini in:
C:\gmax\gamepacks\FSX_GmaxGamePack. to read:
[Directories]
Standard gmax plug-ins=StdPlugs\
Additional gmax plug-ins=plugins\
FSX=gamepacks\FSX_GMaxGamepack\plugins\
ModelDef.xml=C:\FSX_SDK\SDK\Environment Kit\Modeling SDK\bin\
[Help]

Well it didn't work and I'm not sure where... I got new errors this time
Here they are:

---------------------------
gmax
---------------------------
mtlgen.dlt Is Missing
---------------------------
OK   
---------------------------
---------------------------
gmax
---------------------------
gmax failed to start
---------------------------
OK   
---------------------------


Hope you can see where I messed up.
Thanks
Gradguy
 
IP Logged
 
Reply #6 - Jan 25th, 2009 at 12:55pm

Fr. Bill   Offline
Colonel
I used to have a life;
now I have GMax!
Hammond, IN

Gender: male
Posts: 962
*****
 
Look in the FSX_SDK folder and run the program ConfigSDK.exe

This should update all the SDK's ini files, and Registry settings for you.

Also, rightclick on the desktop icon and set the Properties/Compatibility tab to "Disable visual themes."
 

Bill
... Gauge Programming - 3d Modeling Eaglesoft Development Group Intel Core 2 Quad Q6600-4GB DDR2 Crucial PC6400-800 GB SATA-ATI Radeon HD2400 Pro 256MB DX10 NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...
...
IP Logged
 
Reply #7 - Jan 25th, 2009 at 1:52pm

Alrot   Ex Member
I Love Simviation.

*
 

Among many things you need to update you need first of all to download (even if you using VISTA) the latest DX9c runtime

http://www.microsoft.com/downloads/details.aspx?familyid=2da43d38-db71-4c1b-bc6a...

windows instaler ,latest Framework version etc
 
IP Logged
 
Reply #8 - Jan 25th, 2009 at 11:38pm

Gradguy   Offline
Colonel
Fly FS

Posts: 24
*****
 
Thanks guys... But it still won't go... Yes the ConfigSDK.exe did get everything clicking again.   But I still get the errors

The first one : ---------------------------
Failed loading animation definition file
---------------------------
C:\gmax\gamepacks\FSX_GMaxGamepack\plugins\ModelDef.xml
---------------------------
OK  
---------------------------
Then I carefully checked the path of where that file is.... C:\FSX_SDK\SDK\Environment Kit\Modeling SDK\bin\modeldef.xml

I do have the edited plugin.ini at... C:\gmax\gamepacks\FSX_GmaxGamePack\plugin.ini

which reads...

[Directories]
Standard gmax plug-ins=StdPlugs\
Additional gmax plug-ins=plugins\
FSX=gamepacks\FSX_GMaxGamepack\plugins\
ModelDef.xml=C:\FSX_SDK\SDK\Environment Kit\Modeling SDK\bin\
[Help]

It seems to me that the plugin.ini isn't doing its job, or something because the error keeps pointing to the ...FSX_GMaxGamepack\plugins dir where it expect to see ModelDef.xml

Besides this error I still get the others.  But I think if I can get this one fixed I'll be one step closer.

GradGuy
 
IP Logged
 
Reply #9 - Jan 25th, 2009 at 11:56pm

Gradguy   Offline
Colonel
Fly FS

Posts: 24
*****
 
Ok My logic is wrong because I got rid of the first error placing a copy of the modeldef.xml within the C:\gmax\gamepacks\FSX_GmaxGamePack\Plugins but directly after I got all the other errors.

So forget what I said before... lol

Ok last thing until somebody discovers what I'm doing wrong.

Is there a file hierarchy that I NEED to follow so the .MDL export will work?  Meaning that do I need to have all the input files for a gmax project in a certain location and export to a certain location? I've know other programs like this but I'm not sure if this one of them.

Thanks
 
IP Logged
 
Reply #10 - Jan 26th, 2009 at 1:44am

Alrot   Ex Member
I Love Simviation.

*
 
Just curiosity

Did you check Your Regional settings conf. in control panel? ,I mean IT has to be english See, The decimals unit has to be in Period (.) Not comas (,) like 123,400
.
50  and not like 123.400
,
50  

Undecided I don't remember is in panel control /Regional settings (or something like that) you have to make sure something looks like this ,my xp is in spanish and last week I wipe out VISTA (had few troubles with it)
but is something like this See the decimals

Ingles Estados unidos ,..Means English USA
...

Just a thiugh Because I don't know where you from ,and perhaps this is the problem you have
 
IP Logged
 
Reply #11 - Jan 26th, 2009 at 11:22am

Gradguy   Offline
Colonel
Fly FS

Posts: 24
*****
 
Thanks Alrot,  My regional setting are good.

I did a system restore to make sure it wasn't something buggy...  same result as before...

Anybody have a suggestion?
Thanks in advance.
 
IP Logged
 
Reply #12 - Jan 26th, 2009 at 12:15pm

Alrot   Ex Member
I Love Simviation.

*
 


This is strange  Undecided You just have to place the "FSX_GmaxGamePack" inside the Gmax/gamepack  folder ,nothing else , I do it all the time everytime I format my drive (BTW I did it last week) Never had problems to export to mdl
 
IP Logged
 
Reply #13 - Jan 26th, 2009 at 1:11pm

Gradguy   Offline
Colonel
Fly FS

Posts: 24
*****
 
Ok I'm happy!!!  I mean really happy... I got this thing to work finally after, literary days spent on it.   This is for a grad project so it's my life right now.

Anyway thank you everybody who suggest fixes.... I can't tell you how good it was to have at least something to try out...

This is important for others that my have issues.

IF RUNNING VISTA 64... INSTALL FSX SP2 and then the SDK sp2.  I didn' think I needed to have it because i didn't have or want the adrenaline pack.  I guess there is code in it that fixes some bugs with VISTA 64.

Thanks again everybody... I'm sure I'll have more questions.
 
IP Logged
 
Reply #14 - Feb 12th, 2009 at 10:47am

HarvesteR   Offline
Colonel
F/A-18 HARV    Almost
has my name on it!
Mexico, DF :D

Gender: male
Posts: 707
*****
 
yeah, SP2 is pretty much the current version of FSX now... even if you don't want Acceleration... actually it's there for those that DIDN'T buy the expansion so they can be up to par on the core updates that were introduced in the expansion (along with the new content)
 

Cheesy NEW PC SPECS: Intel Core i7 920 - 6GB Corsair DDR3 PC12800 RAM- Intel DX58SO Mobo - Geforce GTX 460 768MB GDDR5 - 3x LG1952h LCDs through Matrox's TH2Go - 640GB Seagate Barracuda 7200Rpm  - 200GB Maxtor 7200Rpm - Microsoft Sidewinder X6 Keyboard - 5.1 Surround and a Saitek X52 Pro and Pro Flight Rudder Pedals  -- Running Windows 7 Ultimate x64

My 8800 GTX has at last retired... may it rest in peace in GPU heaven.
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print