• 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.

FSXA Unhandled exception in Make Object Library

Messages
258
Country
us-california
I'm getting some errors when trying to use this program. Using the latest Dev release 2.0.0.5. I don't see any files added to my Addon Scenery folder. I included screenshots showing how I filled in the fields.

After creating a single element called RedOmni and saving, I click Make Library and then click the FSX radio button which causes the first exception. If I try to continue I'm prompted to choose a path to bglcomp, after which I get the second exception. Details below.

I do see mdl and bgl files created in my Library Folder

Using Windows 10 with .NET 4.6

Click the FSX Radio Button in Make Object Library I get an Unhandled exception dialog with the following Details:

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

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at FS_Airfield_Lights.MakeLibrary.rbSave_CheckedChanged(Object sender, EventArgs e)
at System.Windows.Forms.RadioButton.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.RadioButton.set_Checked(Boolean value)
at System.Windows.Forms.RadioButton.OnClick(EventArgs e)
at System.Windows.Forms.RadioButton.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.Control.ControlNativeWindow.OnMessage(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.8745 (WinRel.050727-8700)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
AFLT
Assembly Version: 2.0.0.5
Win32 Version: 2.0.0.5
CodeBase: file:///C:/Users/fried/Documents/FSX%20Files/Development/Stuff4FS/AFLT_Dev/AFLT.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8750 (QFE.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.8763 built by: WinRel
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
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.





If I try to continue I can click Create/Save Library but I get another exception:

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

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at FS_Airfield_Lights.MakeLibrary.SaveLibrary()
at FS_Airfield_Lights.MakeLibrary._Lambda$__1(Object a0, EventArgs a1)
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.Control.ControlNativeWindow.OnMessage(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.8745 (WinRel.050727-8700)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
AFLT
Assembly Version: 2.0.0.5
Win32 Version: 2.0.0.5
CodeBase: file:///C:/Users/fried/Documents/FSX%20Files/Development/Stuff4FS/AFLT_Dev/AFLT.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8750 (QFE.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.8763 built by: WinRel
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8745 (WinRel.050727-8700)
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.
 

Attachments

  • AFLT_3.PNG
    AFLT_3.PNG
    30.8 KB · Views: 319
  • AFLT_2.PNG
    AFLT_2.PNG
    15.9 KB · Views: 457
  • AFLT_1.PNG
    AFLT_1.PNG
    21.6 KB · Views: 466
  • AFLT_4.PNG
    AFLT_4.PNG
    38.4 KB · Views: 428

gadgets

Resource contributor
Messages
9,388
Country
ca-britishcolumbia
Barry, I ran into a similar problem a couple days ago and applied an immediate fix. The revised .exe is attached.

Rather than me chasing a problem I may already have fixed, please try the attached and let me know if it resolves your issue as well.

Don
 

Attachments

  • aflt2005(a).zip
    118.8 KB · Views: 236
Messages
258
Country
us-california
Barry, I ran into a similar problem a couple days ago and applied an immediate fix. The revised .exe is attached.

Rather than me chasing a problem I may already have fixed, please try the attached and let me know if it resolves your issue as well.

Don

Hi Don,

Thanks that does resolve the errors for me and now I see the BGL and textures installed.

However the library object does not appear visible in FSX or in MCX. I'll attach my Library Folder as a zip file.

Thanks,
Barry
 

Attachments

  • AFLT.zip
    5.8 KB · Views: 184

gadgets

Resource contributor
Messages
9,388
Country
ca-britishcolumbia
Barry, the .ini file for that light tells me you've specified an omni model, light-only with effects to replace the BGL_LIGHT. Nothing wrong with that. I have tried all combinations with the code I sent you last yesterday, compiling for both FS9 and FSX, and the light appears normal in all cases.

So, it would seem the problem is not the library file? How did you position the light? Were you looking for at a time other than DAY - in the right place? Are you running FSX in DX-10 preview mode? If so, please refer to page 13 of the user manual. Did you save the library file to a scenery folder enabled in the Scenery Library?

Please give some thought to these issues and, if the problem persists, get back to me.

Don
 
Messages
258
Country
us-california
Hi Don,

Actually when I created the element it was not light-only, but after saving I see that Light Only=True in the INI file. Even if I untick Light Only and save it's still set to light-only in the INI file.

I was trying to place the light in daytime using Instant Scenery and was expecting to see a base model. So the above explains why I didn't see anything since both the model and light would not be visible.

Editing the INI file to Light Only=False and recompiling gives me a visible model day and night. I also changed the color to "Red" which gives the lens the red color I wanted. With Split-Red the lens is white. I'm making a red omni light to use at the edge of a displaced threshold.

I normally do use DX10 mode but had thought about that being a possible problem so for now am using DX9.

I think I'm sorted out now, although the light-only issue seems like a bug, but now I know how to work around it.

Thanks for making this tool, AFLT is just right for the project I'm working on. :)

Thanks,
Barry
 

gadgets

Resource contributor
Messages
9,388
Country
ca-britishcolumbia
Re turning off "Light Only", are you sure you saved the element before compiling again? I can't find anything wrong with that operation.

Re the white light for Split-Red, I suspect when you installed 2.0.05, you did not save the new "colors.txt" file. It and the new "types.txt" file are attached
 

Attachments

  • AFLT_Colors_Text.zip
    1.3 KB · Views: 232
Messages
258
Country
us-california
I'm pretty sure that before I was clicking Save, but I updated to all latest files and now I don't see the issue with light-only being saved as True so no more issue there.

I updated to the Colors and Types files you posted. Here's what I get using Split-Red versus Red (using Red gives me the correct colored lens):

Type=Omni
Guid to Call=1c27c72345447aa8fb167695e2c78f1b
Guid to Attach=739c01ab443f8afe04c83ba805827d5e
Light Only=False
All in One=False
Use Effect=*
No. Bulbs=1
Strobe Firing Sequence=0
Total Strobe Flashes=8
Strobe Seed=0
Color_Front=Split-Red
Slope (deg.)=0
Base Model Name=Omni
Kill Shadow=False

Omni_SplitRed.png


Type=Omni
Guid to Call=1c27c72345447aa8fb167695e2c78f1b
Guid to Attach=739c01ab443f8afe04c83ba805827d5e
Light Only=False
All in One=False
Use Effect=*
No. Bulbs=1
Strobe Firing Sequence=0
Total Strobe Flashes=8
Strobe Seed=0
Color_Front=Red
Slope (deg.)=0
Base Model Name=Omni
Kill Shadow=False

Omni_Red.png



Thanks,
Barry
 

gadgets

Resource contributor
Messages
9,388
Country
ca-britishcolumbia
You said "lens", I read "light".

When I added the new color names a while back, I neglected to edit the code that selects the texture UVs.

Development Release 2.0.07, just posted to http://stuff4fs.com fixes.

Don
 
Top