Export mdl to BGL

#1
I import mdl file and it displays correctly and shows related dds texture files., when I try to export to scenery to create a library bgl it gives me the following error:

An error occured during exporting H:\Scenery Design\Scenery\BaggageCart1.bgl from object
Error:
The directory name is invalid.

I have rechecked all my paths etc and all are fine.. exporting to the same directory as the scenery where the mdl file resides - even tried editing mdl name and assigning new GUID but same result
it starts writing the file then in the bottom left window it shows ATT COR CUR COR then writing BGLX , with the revolving circle any ideas
running Win 10 and have the latest download of MCX 1.40.0f4ac930 DEV 11/30/18


thanks
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#2
Hi,

Can you show the log messages around the error? That might give me an idea where the error happens.
 
#3
Hi Arno-
here it is-
hope you can see something obvious--

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.IOException: The directory name is invalid.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Path.InternalGetTempFileName(Boolean checkHost)
at ASToFra.ErrorHandler.SendError.AttachFile(String filename)
at ASToFra.ErrorHandler.ErrorHandler.button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3132.0 built by: NET472REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ModelConverterX.exe
----------------------------------------
ASToFra.ErrorHandler
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.ErrorHandler.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3151.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ASToFra.Utils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.Utils.DLL
----------------------------------------
ASToFra.Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.Interfaces.DLL
----------------------------------------
ASToFra.ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.ObjectModel3D.DLL
----------------------------------------
ASToFra.ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.ObjectReader.DLL
----------------------------------------
ASToFra.ObjectWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.ObjectWriter.DLL
----------------------------------------
ASToFra.EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.EventLog.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2670.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ASToFra.ObjectRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.ObjectRenderer.DLL
----------------------------------------
CSGL12DLL
Assembly Version: 12.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/CSGL12DLL.DLL
----------------------------------------
ASToFra.ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.ParticleEffects.DLL
----------------------------------------
ASToFra.FSUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.FSUtils.DLL
----------------------------------------
ASToFra.TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.TextureObject.DLL
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
lib3ds.Net
Assembly Version: 2.0.0.39215
Win32 Version: 2.0.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/lib3ds.Net.DLL
----------------------------------------
ASToFra.TextureLoader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/ASToFra.TextureLoader.DLL
----------------------------------------
MonoGame.Framework
Assembly Version: 3.4.0.459
Win32 Version: 3.4.0.459
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/MonoGame.Framework.DLL
----------------------------------------
Futureware.MantisConnect
Assembly Version: 1.0.6.0
Win32 Version: 1.0.6.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/Futureware.MantisConnect.DLL
----------------------------------------
System.Web.Services
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
Futureware.MantisConnect.XmlSerializers
Assembly Version: 1.0.6.0
Win32 Version: 1.0.6.0
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/Futureware.MantisConnect.XmlSerializers.DLL
----------------------------------------
Ionic.Zip.Reduced
Assembly Version: 1.8.4.28
Win32 Version: 1.8.4.28
CodeBase: file:///H:/FS%20Tools/Model%20Converter%20X/Ionic.Zip.Reduced.DLL
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#4
This error comes when trying to send another error. Just before your temp folder was retrieved, sounds like that might be set to a weird value.

But this is not an export error. Probably you got an error screen with the export error in there and the directory error happened when you tried to send that error.
 
#5
here is log file but doesn't really say much the writing BGLX appears at bottom of screen and just runs in a loop
8:30 AM MDLXReader Information Starting reading of file H:\Scenery Design\Scenery\Conveyor.MDL
8:30 AM MDLXReader Information Finished reading objects
8:30 AM ObjectRenderer Information Starting generating OpenGL arrays...
8:30 AM ObjectRenderer Information Finished generating OpenGL arrays
8:30 AM ObjectRenderer Information Loaded texture: H:\Scenery Design\Scenery\..\texture\AIRLINELOGOS.dds
8:30 AM ObjectRenderer Information Loaded texture: H:\Scenery Design\Scenery\..\texture\AIRLINELOGOS_LM.dds
8:30 AM ObjectRenderer Information Loaded texture: H:\Scenery Design\Scenery\..\texture\VEHICLES.dds
8:30 AM ObjectRenderer Information Loaded texture: H:\Scenery Design\Scenery\..\texture\VEHICLES_LM.dds
8:30 AM BGLXWriter Information Starting writing of file H:\Scenery Design\Scenery\Conveyor.bgl

1544200606553.png
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#6
I saw some error reports from you. They all point to issues with the temp folder. Did you setup your user folder in a special way?

Normally the temp folder would be c:\users\youruser\local\temp
 
#7
assume you meant c:\users]\youruser\appdata\local\temp yes I have it set that way. also a USERTEMP folder within the scenery folder I am trying to import and compile to--
 
#11
Went back and verified-- and 2 of the TMP files were without the "\" don't know if this occurred after battery change but anyway, changed them to include the "|" wne t back and tried to export scenery and all worked fine !!!! Hooray !
thanks for having me re-check this. obviously the invalid directory would be the result of this--
thanks again for the time and suggestion- another happy camper--
 
Top