• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Ground Polygon Wizard Possible Bug

Messages
13
Country
sweden
When converting an FSX mdl file of a runway to a ground polygon with the tool, I get the following error text and the wizard continues to load and nothing happens.

(Sorry for the Swedish)

The .MDL file:
View attachment Rullbana.MDL


Code:
Information om att aktivera JIT-felsökning i stället för den 
här dialogrutan finns i slutet av det här meddelandet.

************** Undantagstext **************
System.ArgumentException:  A post with the same key had already been added.
   vid System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   vid System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   vid System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   vid ASToFra.ObjectWriter.SCAGpWriter.GenerateTextureDict(ObjectModel obj, Int32 layer)
   vid ASToFra.ObjectWriter.SCAGpWriter.WritePolygons(List`1 objs)
   vid ASToFra.ObjectWriter.SCAGpWriter.Write(String fileName, List`1 objectModels)
   vid ASToFra.ObjectWriter.BGLGpWriter.Write(String fileName, List`1 objectModels)
   vid ASToFra.ModelConverterX.GroundPolyWizard.cmdConvert_Click(Object sender, EventArgs e)
   vid System.Windows.Forms.Control.OnClick(EventArgs e)
   vid System.Windows.Forms.Button.OnClick(EventArgs e)
   vid System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   vid System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   vid System.Windows.Forms.Control.WndProc(Message& m)
   vid System.Windows.Forms.ButtonBase.WndProc(Message& m)
   vid System.Windows.Forms.Button.WndProc(Message& m)
   vid System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   vid System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Inlästa sammansättningar **************
mscorlib
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3603 (GDR.050727-3600)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ModelConverterX
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.3.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/ModelConverterX.exe
----------------------------------------
System.Windows.Forms
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3614 (GDR.050727-3600)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3074 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectWriter
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.3.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/ObjectWriter.DLL
----------------------------------------
TextureObject
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.3.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/TextureObject.DLL
----------------------------------------
ObjectModel3D
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.3.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/ObjectModel3D.DLL
----------------------------------------
ObjectRenderer
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.3.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/ObjectRenderer.DLL
----------------------------------------
GRV11DLL
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.0.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/GRV11DLL.DLL
----------------------------------------
ObjectReader
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.3.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/ObjectReader.DLL
----------------------------------------
System.Windows.Forms.resources
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_sv_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Accessibility
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
mscorlib.resources
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3603 (GDR.050727-3600)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Utils
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.3.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/Utils.DLL
----------------------------------------
System.resources
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.resources/2.0.0.0_sv_b77a5c561934e089/System.resources.dll
----------------------------------------
System.Drawing.Design
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing.Design/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll
----------------------------------------
System.Design
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
System.Design.resources
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design.resources/2.0.0.0_sv_b03f5f7f11d50a3a/System.Design.resources.dll
----------------------------------------
TextureLoader
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.3.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/TextureLoader.DLL
----------------------------------------
ObjectEditor
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.3.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/ObjectEditor.DLL
----------------------------------------
Coordinates
    Sammansättningsversion: 1.0.0.0
    Win32-version: 1.3.0.0
    CodeBase: file:///C:/Users/Marcus/Desktop/Model%20Converter%20X/Model%20Converter%20X%20dev/Coordinates.DLL
----------------------------------------

************** JIT-felsökning **************
För att aktivera JIT-felsökning (just-in-time ) måste .config-filen för
det här tillämpningsprogrammet eller datorn (machine.config) ha 
jitDebugging-värdet angivet i avsnittet system.windows.forms.
Tillämpningsprogrammet måste också vara kompilerat
med felsökning aktiverat.

Till exempel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

När JIT-felsökning är aktiverad kommer alla undantag som inte
hanteras att skickas till JIT-felsökaren som är registrerad på
datorn snarare än att hanteras av den här dialogrutan.
 
Last edited:
Hi,

Since you get all these error messages I think you can remove the word possible from the title :), this is a bug. I will try to debug it with your MDL.
 
Hi,

Which settings did you use? When I just run it with the default settings of the wizard I do not get any error message.
 
Hi,

Which settings did you use? When I just run it with the default settings of the wizard I do not get any error message.

Untitled-2-2.png


Thanks for looking into it.
 
Hi,

That looks quite standard. Let me see if I can fix the issue.
 
Hi,

Can you try the latest development release? I think the issue comes from the fact that your day and night texture have the same name. But that should work with the latest version.
 
Hi,

Can you try the latest development release? I think the issue comes from the fact that your day and night texture have the same name. But that should work with the latest version.

It works! :eek: :D Thanks a lot for the speedy fix.
 
Although now I'm having another problem, when I load the .mdl file in Model Converter X it is fine until I have exported it with the wizard and it gets holes in the runway both in FS and in MCX.
 
Hi,

With exactly the same object? I did not notice it before, but I will take a look.
 
OK, I will test it.
 
Hi,

I think I have also fixed this one now. Can you try again tomorrow with the latest development release?
 
Back
Top