I have recently made some edits to a model I wasn't pleased with because I saw areas where it could improve. I made these edits in 3DS Max and was able to successfully convert my .FBX to a .MDL. Now all I need to do is compile my .MDL with my .XML describing where I want to place it as a .BGL and load it into the sim... but I can't get the last step to work. I originally didn't care enough to look at the SDK documentation to see how the .XML is supposed to be formatted, and just formatted it myself, which resulted in the compiler throwing errors at me. I resolved these errors by correctly following the format... but now I simply get an unhandled exception.
It seems as if XML2BGL is trying to verify that the .BGL was properly compiled and just throws an exception. But I'm not sure what is causing it. Maybe somebody with more experience than me can assist?
The error:
I have even tried taking a .BGL, producing a .MDL via BGL2XML, then without altering, attempt to compile with XML2BGL and will run into an unhandled exception. Because the last line of the BGL2XML output states "compiled using FSX compiler," I use the FSX compiler to attempt to create a .BGL again, but that produces an unhandled exception. In fact I have tried many iterations of BGLCOMP (FSX, P3Dv1, P3Dv3, P3dv4, P3Dv4.4) and they all produced this unhandled exception.
It seems as if XML2BGL is trying to verify that the .BGL was properly compiled and just throws an exception. But I'm not sure what is causing it. Maybe somebody with more experience than me can assist?
The error:
Code:
************** Exception Text **************
System.IO.FileNotFoundException: Could not find file 'C:\Program Files (x86)\Airport Design Editor\Conversions\combined_scene_KSAN_APT_OBJ_OBJPALMS_JETWAYAPT.bgl'.
File name: 'C:\Program Files (x86)\Airport Design Editor\Conversions\combined_scene_KSAN_APT_OBJ_OBJPALMS_JETWAYAPT.bgl'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Move(String sourceFileName, String destFileName)
at Xml2Bgl.Xml2BglUtil.moveBgl(String xmlFilename, String compileTo)
at Xml2Bgl.Xml2BglUtil.Compile(String compilerPath, String xmlFilename, String compileTo)
at Xml2Bgl.Form1.onCompileP3DButtonClick(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at ComponentFactory.Krypton.Toolkit.KryptonButton.OnClick(EventArgs e)
at ComponentFactory.Krypton.Toolkit.KryptonButton.OnButtonClick(Object sender, MouseEventArgs e)
at ComponentFactory.Krypton.Toolkit.ButtonController.OnClick(MouseEventArgs e)
at ComponentFactory.Krypton.Toolkit.ButtonController.MouseUp(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseUp(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseUp(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseUp(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseUp(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewManager.MouseUp(MouseEventArgs e, Point rawPt)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9035 (WinRelRS5.050727-9000)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
Xml2Bgl
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Airport%20Design%20Editor/XML2BGL/Xml2Bgl.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9037 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ComponentFactory.Krypton.Toolkit
Assembly Version: 4.3.1.0
Win32 Version: 4.3.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/Airport%20Design%20Editor/XML2BGL/ComponentFactory.Krypton.Toolkit.DLL
----------------------------------------
AMS.Profile
Assembly Version: 2.0.2685.14972
Win32 Version: 2.0.2685.14972
CodeBase: file:///C:/Program%20Files%20(x86)/Airport%20Design%20Editor/XML2BGL/AMS.Profile.DLL
----------------------------------------
jmSdeDialogs
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Airport%20Design%20Editor/XML2BGL/jmSdeDialogs.DLL
----------------------------------------
jmSDELib
Assembly Version: 5.8.0.0
Win32 Version: 5.08.00
CodeBase: file:///C:/Program%20Files%20(x86)/Airport%20Design%20Editor/XML2BGL/jmSDELib.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.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.
I have even tried taking a .BGL, producing a .MDL via BGL2XML, then without altering, attempt to compile with XML2BGL and will run into an unhandled exception. Because the last line of the BGL2XML output states "compiled using FSX compiler," I use the FSX compiler to attempt to create a .BGL again, but that produces an unhandled exception. In fact I have tried many iterations of BGLCOMP (FSX, P3Dv1, P3Dv3, P3dv4, P3Dv4.4) and they all produced this unhandled exception.
Last edited: