The website and forum will be intermittently unavailable while we're making some security updates.
File uploads to the download hangar are also disabled until further notice.

Help with AIFP

All things Military AI that don't fit anywhere else.
Joseph29
Colonel
Colonel
Posts: 2189
Joined: 20 Sep 2006, 20:35
Version: P3D
Location: Long Island New York

Help with AIFP

Post by Joseph29 »

In P3D v5 the Twentynine Palms ICAO code is KNXP and when I compile a flightplan with that airport AIFP says it has replaced KNXP with NXP because NXP was the ICAO code in FSX.

I have tried to change the Twentynine Palms ICAO code to KNXP but when I do I get a error using AIFP v3222. Can someone help me? I was able to change the code in older versions of AIFP.
Joseph29
Colonel
Colonel
Posts: 2189
Joined: 20 Sep 2006, 20:35
Version: P3D
Location: Long Island New York

Re: Help with AIFP

Post by Joseph29 »

Here is the error from AIFP

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

************** Exception Text **************
System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at AIFP_3.Utilities.Capitalize(String s)
at AIFP_3.AirportEditor.MakeUpdate()
at AIFP_3.AirportEditor.UpdateAirportList(Int32 iIndex)
at AIFP_3.AirportEditor.btnApply_Click(Object sender, EventArgs e)
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.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
AIFP3
Assembly Version: 3.2.21.6
Win32 Version: 3.2.21.6
CodeBase: file:///C:/Users/Joeseph/Documents/New%20folder%20(2)/AIFP3.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
ASToFra.Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Joeseph/Documents/New%20folder%20(2)/ASToFra.Interfaces.DLL
----------------------------------------
ASToFra.TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Joeseph/Documents/New%20folder%20(2)/ASToFra.TextureObject.DLL
----------------------------------------
ASToFra.ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Joeseph/Documents/New%20folder%20(2)/ASToFra.ObjectModel3D.DLL
----------------------------------------
ASToFra.FSUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Joeseph/Documents/New%20folder%20(2)/ASToFra.FSUtils.DLL
----------------------------------------
ASToFra.ObjectRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Joeseph/Documents/New%20folder%20(2)/ASToFra.ObjectRenderer.DLL
----------------------------------------
ASToFra.ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Joeseph/Documents/New%20folder%20(2)/ASToFra.ObjectReader.DLL
----------------------------------------
CSGL12DLL
Assembly Version: 12.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Joeseph/Documents/New%20folder%20(2)/CSGL12DLL.DLL
----------------------------------------
ASToFra.ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Joeseph/Documents/New%20folder%20(2)/ASToFra.ParticleEffects.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.
hgschnell
First Lieutenant
First Lieutenant
Posts: 107
Joined: 12 Feb 2011, 08:36
Version: FS9

Re: Help with AIFP

Post by hgschnell »

Did you mix ICAO and IATA codes?

NXP is the IATA code
Guenther
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12111
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Help with AIFP

Post by Firebird »

Is this an afcad that you have created yourself or another addon?
The error seems to point to an error in the properties of the afcad.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
Joseph29
Colonel
Colonel
Posts: 2189
Joined: 20 Sep 2006, 20:35
Version: P3D
Location: Long Island New York

Re: Help with AIFP

Post by Joseph29 »

hgschnell wrote: 19 Jun 2020, 05:10 Did you mix ICAO and IATA codes?

NXP is the IATA code
No. In P3D V5 they use KNXP. NXP is not used at all.
Firebird wrote: 19 Jun 2020, 07:00 Is this an afcad that you have created yourself or another addon?
The error seems to point to an error in the properties of the afcad.
No this is the default P3D airport. I have changed NXP to KNP before, but when I tried it this time I got that error.
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12111
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Help with AIFP

Post by Firebird »

OK well that error doesn't seem to fit with AIFP not finding the designation. It could be an error in reading an afcad file.
So I would load up the afcad in ADE and look at the properties to see if anything looks wrong. It almost looks like one of the default parms exceeds the length expected by AIFP. Could be name, identifier, position basically anything.

Either you will have to work it out yourself or post pics of the parms to see if anything.

Now if nothing appears wrong then try this.
1. Open up the afcad in ADE.
2. Save it as a new scenery in an active folder.
3. Use the 'Find/Collect Airports' function to build a new list of all your addon sceneries.
Now you will have a scenery with id of 'KNXP' known about by AIFP so you should be able to use it.

There is another possible cause. and that is that when you tried to alter the icao in the plan you created an ID that is either too short or too long. If you saved your txt files have a look at those.

The only other thing I can think of is that AIFP doesn't recognise P3Dv5 as valid. Have you tried to compile/recompile any other plans under v5?
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
Joseph29
Colonel
Colonel
Posts: 2189
Joined: 20 Sep 2006, 20:35
Version: P3D
Location: Long Island New York

Re: Help with AIFP

Post by Joseph29 »

Thank you Steve, but before I try all that there is a thread in the AIG forums that is dedicated to AIFP that the author of AIFP goes to (I forgot the thread existed), so I asked this question in that thread. So maybe this will get sorted out there.

I will keep you guys informed and if it gets solved there I will post it here incase anyone else is having this problem too.

Edit: forgot to mention that I can compile/recompile other plans under v5 with AIFP.
Joseph29
Colonel
Colonel
Posts: 2189
Joined: 20 Sep 2006, 20:35
Version: P3D
Location: Long Island New York

Re: Help with AIFP

Post by Joseph29 »

Also wanted to say that if I leave the Twentynine Palms airport ICAO code at NXP the plans will compile fine, but I don't want to have NXP I want KNXP because if I leave NXP there will not be any traffic at Twentynine Palms.
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12111
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Help with AIFP

Post by Firebird »

I understand. Hence why I asked the question I did, and you are correct about the traffic.

So what you are telling me seems to fit with you have to load the default scenery, alter the ICAO and compile it into an active folder and then add it to AIFP.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
User avatar
TimC340
Lieutenant Colonel
Lieutenant Colonel
Posts: 1305
Joined: 07 Mar 2015, 13:18
Version: P3D
Location: Hadleigh, Suffolk
Contact:

Re: Help with AIFP

Post by TimC340 »

Don has a forum specifically for AIFP tech support on FSDeveloper. It's here.
Joseph29
Colonel
Colonel
Posts: 2189
Joined: 20 Sep 2006, 20:35
Version: P3D
Location: Long Island New York

Re: Help with AIFP

Post by Joseph29 »

Just a update. He (Don) thinks I unintentionally created a new airport which conflicts with the one in the database and that is causing the error.
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12111
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Help with AIFP

Post by Firebird »

Hmmm. That doesn't fit with what you described. How many NXP and KNXP afcads do you have in your system?
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
Joseph29
Colonel
Colonel
Posts: 2189
Joined: 20 Sep 2006, 20:35
Version: P3D
Location: Long Island New York

Re: Help with AIFP

Post by Joseph29 »

Well ADE only shows 1 KNXP, so maybe Don is wrong I don't know.
User avatar
tango234
MAIW Conversion Team
MAIW Conversion Team
Posts: 783
Joined: 10 Feb 2009, 20:11
Version: P3D
Location: UK

Re: Help with AIFP

Post by tango234 »

It might be worth looking in the AIFP database file. That might be what Don meant.
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12111
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Help with AIFP

Post by Firebird »

So If you have only 1x KNXP (default) and 0x NXP then I think he doesn't have all the information, i.e. P3Dv5 is different from the FSX on that ICAO.

Again I think you have have to load and save KNXP as an addon scenery and then find/collect it. Then I think that AIFP will work. Have you tried that yet?

On the database file you can see if you created a corruption by downloading the latest version of AIFP and copying all off the files over the top. What it won't do is wipe out your addon scenery list, Airport_Temp.dat, but you can always delete that and recreate by running ... well you know what.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
Joseph29
Colonel
Colonel
Posts: 2189
Joined: 20 Sep 2006, 20:35
Version: P3D
Location: Long Island New York

Re: Help with AIFP

Post by Joseph29 »

Firebird wrote: 21 Jun 2020, 08:04 So If you have only 1x KNXP (default) and 0x NXP then I think he doesn't have all the information, i.e. P3Dv5 is different from the FSX on that ICAO.

Again I think you have have to load and save KNXP as an addon scenery and then find/collect it. Then I think that AIFP will work. Have you tried that yet?

On the database file you can see if you created a corruption by downloading the latest version of AIFP and copying all off the files over the top. What it won't do is wipe out your addon scenery list, Airport_Temp.dat, but you can always delete that and recreate by running ... well you know what.
1. About your first paragraph, I told him EXACTLY what I did the first time I changed NXP to KNXP so he can try to recreate what I did. He hasn't gotten back to me yet.

2. About your second paragraph. I am going to hold off on doing that until I see what Don says. If he can't come up with something then I will do that.
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12111
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Help with AIFP

Post by Firebird »

OK.
So to rule out the airport list corruption try copying the latest version over the top and rebuild your airports. This will at least enable you to give a bit more info to Don when he comes back to you.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
Joseph29
Colonel
Colonel
Posts: 2189
Joined: 20 Sep 2006, 20:35
Version: P3D
Location: Long Island New York

Re: Help with AIFP

Post by Joseph29 »

I don't have to click on anything to rebuild the airports right?
User avatar
jimrodger
Lieutenant Colonel
Lieutenant Colonel
Posts: 1489
Joined: 22 Apr 2008, 13:34
Version: FS9
Location: EGQK (RIP)

Re: Help with AIFP

Post by jimrodger »

Just to compound the problem....

The default FSX & P3dV4.5 afcads do not have any parking, so you'll never see any traffic there anyway...

Jim
"When all else fails, and your AI doesn't show up...... check the AI slider.......DOH!!!!"
Joseph29
Colonel
Colonel
Posts: 2189
Joined: 20 Sep 2006, 20:35
Version: P3D
Location: Long Island New York

Re: Help with AIFP

Post by Joseph29 »

The default AFCAD for P3D v5 does have 5 helipad parking spots.
Post Reply