MCX Batch Converter Wizard

#1
I have six very simple .dae files from sketchup that I want to batch convert and subsequently place into an object library. I can load them one at a time and manually step through the process of creating a .mdl file and then subsequently putting them into a library and then testing their placement in fsx. All work fine doing it one at a time. However, when I use batch convert with one or all of these .dae files and "add" "Generate object Image", specifiy and output file for "export objects", having selected "export files" I always get "a generic error occurred in GDI+"

The batch_convert.log is created but empty.
Win 8.1 64bit
MCX Version 1.4.0.0 1e950876 DEV 1/26/2019

What am I doing wrong?
Thanks for a great product!

The error dump is:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
at ASToFra.TextureWriter.GenericWriter.Write(TextureImage tex, String filename, TextureFormatWrite format)
at ASToFra.ObjectRenderer.Renderer3DControl.OnGenerateImage(ObjectModel obj, Int32 width, Int32 height, String filepath, Double rotateStep)
at ASToFra.Interfaces.EventDistributor.RaiseGenerateImage(ObjectModel obj, Int32 width, Int32 height, String filepath, Double rotateStep)
at ASToFra.ObjectEditor.GenerateObjectImage.RaiseGenerateImage(ObjectModel obj, String filepath, Double rotateStep)
at ASToFra.ObjectEditor.GenerateObjectImage.GenerateImageFile(ObjectModel obj, Boolean scenery)
at ASToFra.ModelConverterX.BatchConvertForm.PerformBatchOperators(ObjectModel obj)
at ASToFra.ModelConverterX.BatchConvertForm.ExportObjectModel()
at ASToFra.ModelConverterX.BatchConvertForm.OnSceneryChanged(SceneryChangeLevel level, Scenery scen)
at ASToFra.Interfaces.SceneryChanged.Invoke(SceneryChangeLevel level, Scenery scen)
at ASToFra.Interfaces.EventDistributor.RaiseSceneryChanged(SceneryChangeLevel level, Scenery scen)
at ASToFra.ObjectReader.AllObjectReader.RaiseSceneryChanged(Scenery scen)
at ASToFra.ObjectReader.AllObjectReader.bw_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
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:///C:/MSFS/modelconverterx/ModelConverterX.exe
----------------------------------------
ASToFra.ErrorHandler
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.ErrorHandler.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
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.3314.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.3062.0 built by: NET472REL1
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:///C:/MSFS/modelconverterx/ASToFra.Utils.DLL
----------------------------------------
ASToFra.Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.Interfaces.DLL
----------------------------------------
ASToFra.ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.ObjectModel3D.DLL
----------------------------------------
ASToFra.ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.ObjectReader.DLL
----------------------------------------
ASToFra.ObjectWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.ObjectWriter.DLL
----------------------------------------
ASToFra.EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.EventLog.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0 built by: NET472REL1
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.3221.0 built by: NET472REL1LAST_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.3062.0 built by: NET472REL1
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:///C:/MSFS/modelconverterx/ASToFra.ObjectRenderer.DLL
----------------------------------------
CSGL12DLL
Assembly Version: 12.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/MSFS/modelconverterx/CSGL12DLL.DLL
----------------------------------------
ASToFra.ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.ParticleEffects.DLL
----------------------------------------
ASToFra.FSUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.FSUtils.DLL
----------------------------------------
ASToFra.TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.TextureObject.DLL
----------------------------------------
ASToFra.ObjectEditor
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.ObjectEditor.DLL
----------------------------------------
ASToFra.TextureWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.TextureWriter.DLL
----------------------------------------
AssimpNet
Assembly Version: 3.3.1.0
Win32 Version: 3.3.1
CodeBase: file:///C:/MSFS/modelconverterx/AssimpNet.DLL
----------------------------------------
ASToFra.TextureLoader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/MSFS/modelconverterx/ASToFra.TextureLoader.DLL
----------------------------------------
MonoGame.Framework
Assembly Version: 3.4.0.459
Win32 Version: 3.4.0.459
CodeBase: file:///C:/MSFS/modelconverterx/MonoGame.Framework.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
#2
Hi,

The error seems to happen when saving the image. Which format and which size did you set for the images?
 
#3
I didn't set anything in MCX I just opened it and went straight to the wizard for batch convert and loaded the .dae files from sketchup. In one case the two textures applied in sketchup were 512x512 and 713x512 respectively. In the second case I got the same error with a second .dae but which had two textures at 512x512 each. In batch converter it was set for output writer FSX MDL but nowhere did it ask, nor did I see, and place to set the size of the images (at least not in batch converter).
Not sure that is answering the question.
When I do load and process the individual .dae files one by one manually in MCX (i.e. not using batch converter) they work fine including getting a preview image for thumbnails to provide visual representation of the model and producing an output mdl. It just fails when I try to do all my six .dae files together in batch converter.
Thanks for looking at this.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#4
Hi,

So in the batch converter you left the preview image settings at the default ones?
 
#7
Thanks...it never asks me for any other information than what is on the batch converter screen. I appreciate your help.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#8
Hi,

Sorry, it took a bit longer to check this. The problem is that you didn't specify the output folder I think. If I leave that empty I get the same error. So you need to click on the operator for the object images in the list and set the folder where you want them to be saved. See the screenshot below.

1549741744623.png
 
Top