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

P3D v3 System.ArgumentOutOfRangeException after Defining Ground Poly Texture

Messages
19
Country
iran
Hello, After I Defined a texture in GP editor . When I want to use texture in Line/Pattern Style, I will face with the error below:


System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at ADE_GroundPolys.GPEditor.AlignToTexture(Int32 iTexture)
at ADE_GroundPolys.GPEditor.MakeStraightLine(Int32 iTexture)
at ADE_GroundPolys.GPEditor.cbLineType_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.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)


My ADE version is v01.78.7298 and GP editor version is 2.2.23.12
Thanks for Your Help in Advance.
 
Since you provided neither the texture you created, the definition files, nor your AD4 file, all I can tell you is that the definitions in Texture_Def.txt and/or Lines_Def.txt are suspect or the texture is not in the correct format.

Please provide:
  • .ad4 file
  • Lines_Def.txt
  • Texture_Def.txt
  • Textures folder, including the new texture
  • Textures_Dpy folder, including the new texture
so that I can attempt to duplicate the issue.
 
Sorry Sir I forgot to do:


Here you are ,

The texture have this issue is named Runway idents

Thanks
 
I am able to duplicate. The problem - at least a problem, is that Runway idents.bmp in Textures_Dpy is 728x356 whereas Runway idents.dds in Textures is 512x256. Textures used in FS should be binary multiples in size. Also, Runway idents.bmp doesn't appear to contain any useful data. Also, the associated Lines_Def.tx entry seems to provide for a 1-pixel wide swath of the texture for the "1" line which seems to be a bit narrow.

If fixing these issues doesn't solve the problem, please get back to me with the corrected texture/entry.

In the meantime, I'll see if I can issue an error message rather than having ADE-GP throw an unrecoverable exception under these circumstances
 
While attempting to prevent recurrence of this situation, I discovered that a simple number cannot be used as a line name. Line names must contain at least 1 alpha character. Unfortunately, the Texture Editor did not warn of this and allowed you to use "1" as a line name. (It no longer does) That, in fact was the cause of the exception thrown. The other issues I noted earlier will, however, prevent ADE-GP from doing what you expect.

Edit Lines_Def.txt to change the line name for this texture to, say, "Rwy1"and the exception should no longer be thrown.

Once we confirm all your difficulties have been resolved, I'll re-release ADE-GP.
 
1631906487997.png

Thank you for your excellent and accurate guidance
Problem was solved and Working Great.
 
I have uploaded ADE-GP version 2.2.23.13 to http://stuff4fs.com. This new version stops the system from throwing an exception when attempting to assign to a GP a line whose name translates to an integer, ie, a whole number without alpha characters. Only users who have created such line definitions need update to this new release.

However, Jon (when you get back in the saddle), 2.2.23.13 should be the version included in future updates to ADE.
 
Back
Top