Alpha India Group

Alpha India Group => TC - Support => AIG Traffic Controller => AIG Software => TC Solved Issues => Topic started by: RayP on September 08, 2021, 09:55:05 AM

Title: [SOLVED] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 09:55:05 AM
Yesterday I finally uninstalled P3Dv4. I removed all v4 folders in Documents but when AIG TC is launched by SimStarterNG an error window briefly appears but then disappears before I can read it.

Looking at this log file it's looking for a P3Dv4 addon folder but as that version is no more can you advise how to prevent this happening please? It does load the P3Dv5 addon.
Title: Re: AIG TC looking for uninstalled P3Dv4
Post by: Kaiii3 on September 08, 2021, 01:22:03 PM
can you post all log files please
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 01:45:35 PM
Here you are Kaiii. It seems to be looking for a camera.cfg.

I should add that I've had to modify the Registry to add an entry for P3Dv4 in order for a 3rd party aircraft to work. Might that be a factor?
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: Kaiii3 on September 08, 2021, 01:51:21 PM
ok now things are a bit stragen:

AIGTC is identifiying 3 AIGTC addons...

1) C:\Users\Ray\Documents\AIG Traffic Controller\add-on.xml -> that is just the base file AIGTC is using to copy on the first run and should not be referenced at all
2) C:\Users\Ray\Documents\Prepar3D v4 Add-ons\AIG Traffic Controller\add-on.xml -> looks like the v4 installation
3) C:\Users\Ray\Documents\Prepar3D v5 Add-ons\AIG Traffic Controller\add-on.xml -> looks like the v5 installation

AIGTC has 2 ways of getting started:
1) Via the EXE, when you have more then one Sim installed (Windows Registry) you will be asked to select the Sim to start
2) Via Startup-Parameter (in the shortcut or the add-on.xml).

add-on.xml for the v5 Addon
<CommandLine>-P3DV5</CommandLine>

add-on.xml for the v4 Addon
<CommandLine>-P3DV4</CommandLine>

Maybe SimStarterNG has mixed up there something...
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 02:15:08 PM
Thanks Kaiii. I'm struggling to find any entry for AIGTC in any add-on.xml or even in a exe.xml.

What happens is the AIGTC program launches and the error message briefly appears and then disappears and it minimises to the task bar. A folder is created in Documents\P3Dv4 Addons for AIG Traffic Controller but it's empty. Something is creating that but it still happens when I launch P3Dv5 without using SimStarterNG.

I'm wondering if it might just be simpler to uninstall AIGTC and reinstall it.
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: Kaiii3 on September 08, 2021, 02:50:38 PM
C:\Users\Ray\Documents\AIG Traffic Controller\add-on.xml
C:\Users\Ray\Documents\Prepar3D v4 Add-ons\AIG Traffic Controller\add-on.xml
C:\Users\Ray\Documents\Prepar3D v5 Add-ons\AIG Traffic Controller\add-on.xml

can you confirm that these add-on.xml files are there?
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 03:02:16 PM
Yes, all three but the P3Dv4 one shouldn't be.

I've discovered why it's happening. Your reading the Registry entries here HKEY_LOCAL_MACHINE\SOFTWARE\Lockheed Martin to determine what versions of P3D are installed.

As I said earlier I've had to create an entry there for P3Dv4 in order to allow a utility file for the Vertx DA62 aircraft to run as it's only designed for v4. Without that entry it won't launch.

At least I've discovered why it's happening. if you can think of another way around this that doesn't involve much work I'd appreciate it.
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: Kaiii3 on September 08, 2021, 03:04:28 PM
it should work, as long as AIGTC is not started as "V4".

1) Make sure SimStarterNG is pointing to the P3Dv5 add-on.xml and that the "<CommandLine>-P3DV5</CommandLine>" line is inside this XML files as well.
2) Make sure to identify in which addon.cfg the "C:\Users\Ray\Documents\AIG Traffic Controller\add-on.xml" is referenced and remove it from there
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 03:09:59 PM
I'll check SimStarterNG but as I said it's happening when I launch P3Dv5 from its own icon.

Where in the XML does the command line go?
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 03:14:09 PM
This didn't work. P3Dv5 Add-ons folder - AIG Traffic Controller

<?xml version="1.0" encoding="utf-8"?>
<SimBase.Document Type="AddOnXml" version="4,0" id="add-on">
  <AddOn.Name>AIGTech - Traffic Controller</AddOn.Name>
  <AddOn.Description>AIGs Traffic Controller Software</AddOn.Description>
  <AddOn.Component>
    <Category>EXE</Category>
<CommandLine>-P3DV5</CommandLine>
    <Path>C:\AIGTC\AIGTech - Traffic Controller.exe</Path>
    <NewConsole>True</NewConsole>
  </AddOn.Component>
</SimBase.Document>
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 03:20:51 PM
As you can see SimStarterNG is configured fine.
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: Kaiii3 on September 08, 2021, 03:37:03 PM
ok lets try something new:

1) Start P3Dv5
2) Close AIGTC that is started automatically
3) Start AIGTC via the EXE and select v5 on startup
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 04:03:49 PM
I'm not prompted which version of P3D to select when I start AIGTC manually. Does that suggest a problem install or a bug?
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: Kaiii3 on September 08, 2021, 04:23:08 PM
actual some issue on your end...

cause it should give you the option for v4 and v5...

ok lets try something else:

create a shortcut for AIGTC on your desktop

and add following to the target: [..].exe" -P3DV5 and run AIGTC based on this shortcut
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 04:25:31 PM
I'll do that tomorrow Kaiii and report back. Thanks for your continued help.  ::cheers::

But why would it show P3Dv4 when I've uninstalled it? Because of my Registry hack for the DA62?
Title: [SOLVED] Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: Kaiii3 on September 08, 2021, 04:29:12 PM
based on the logs AIGTC is actual starting fine, what kind of error message actual appears? CMD window?
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 04:47:05 PM
Quote from: Kaiii3 on September 08, 2021, 04:29:12 PM
based on the logs AIGTC is actual starting fine, what kind of error message actual appears? CMD window?

A .NET window appears but only for a few seconds. There's a reference to cameras.cfg in P3Dv4\add-on folder missing. I'll do a screen grab tomorrow. It's like it's trying to connect to v4 but then the error message disappears and it successfully connects to v5 and AIGTC minimises to the Taskbar.

It's the attempt to connect to a non-existent sim that's the baffling bit. That's why I asked if you read Registry entries to determine what versions were installed. Maybe my 'dummy' P3Dv4 entry is responsible?
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 08, 2021, 05:18:35 PM
Kaiii, a little more info. I installed v5 back in March and have used that version all the time. I haven't touched AIG TC in ages. When AIGTC is launched I never saw a prompt for the version of P3D. It ran without any error message appearing.

It's only when I uninstalled v4 yesterday that this error started. And although it does eventually connect to v5 it seems to want to connect to v4 first.

I've looked at all the .config files but none seem to show which version of P3D it should connect to.
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: Kaiii3 on September 08, 2021, 06:07:05 PM
can you check the evenview of windows for any potential error entry?
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 09, 2021, 09:10:05 AM
Hi Kaiii,

Here's the .NET error message plus two errors related to AiLightsReborn which may or may not be related.

Faulting application name: FSRebornConfigChecker.exe, version: 1.35.0.0, time stamp: 0xbff39f90
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1151, time stamp: 0x891df6d3
Exception code: 0xe0434352
Fault offset: 0x0000000000034ed9
Faulting process ID: 0x34fc
Faulting application start time: 0x01d7a5598f2a611f
Faulting application path: C:\Program Files\AI Lights Reborn Professional Edition\FSRebornConfigChecker.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report ID: dba1d9be-3a5b-410f-aafc-96f5004d18b6
Faulting package full name:
Faulting package-relative application ID:


Application: FSRebornConfigChecker.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ObjectDisposedException
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Form.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.ContainerControl.FocusActiveControlInternal()
   at System.Windows.Forms.Form.SetVisibleCore(Boolean)
   at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
   at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[])
   at EkiJ8Ge75atj4NKQpm.J0x7MQrhggJFjT7Tbd.J0xr7MQhg(System.String[])


I hope that helps shed some light on the problem.
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 09, 2021, 09:46:45 AM
It's definitely a AiLights Reborn problem as I get the same error when opening that program and no sim can be selected from the drop-down. I've posted on their AvSim forum.
https://www.avsim.com/forums/topic/606733-error-after-p3dv4-was-uninstalled/

Sorry to have wasted your time Kaiii. Once this problem is sorted I'm sure AIGTC will be fine.
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: RayP on September 09, 2021, 02:14:20 PM
Ai Lights Reborn looks in the Registry for installed versions of P3D. My hack for v4 has caused issues for it. I have posted about it on AvSim with a suggested work-around.

https://www.avsim.com/forums/topic/606747-vertx-da62-in-v5-and-ai-lights-reborn-problem/?tab=comments#comment-4617145

Just save that P3Dv4 Registry entry to a file, then delete the entry and only run the .reg file to reinstate the entry whenever you want to use the Vertx DA62 Utility program. For all other situations remove it and it keeps AILR and AIG TC happy.

Feel free to mark this as SOLVED.  readytogo
Title: Re: [OPEN] AIG TC looking for uninstalled P3Dv4
Post by: Kaiii3 on September 09, 2021, 02:29:15 PM
glad you found it :) Now Raul can handle it ;D