Main Menu

[SOLVED] TC stops after clicking inject traffic

Started by Reinier2511, August 11, 2020, 08:48:36 AM

Previous topic - Next topic

Reinier2511

Hi guys,

To see the helicopters I started P3Dv5 and loaded a flight at Cambridge EGSC. After loading I could see one of the helipads nearby, so then I tried to connect and inject traffic. I pressed connect and waited for the Simulator timestamp to show up. So far so good, on the map AI traffic appears and the log states:
11-8-2020 10:26:52: Added new SimConnectController
11-8-2020 10:26:52: Connected to: P3D 5.0.31.35253

Then I went to Settings in TC and clicked on Inject Traffic (I did not enable Dynamic Fuel, Set Flaps option is active). Then the log shows:
11-8-2020 10:31:30: Added new SimConnectController
11-8-2020 10:31:30: Connected to: P3D 5.0.31.35253
14-4-2020 11:56:46: Inject in flight: G-RESU
14-4-2020 11:56:46: Inject parked helicopter: G-HEMC

Then TC just stops without any warning/error shown. The first thing I noticed, was the timestamp, but that is the timestamp in the sim, default P3Dv5 selects 14-4-2020. I think that is no problem. I could not find any logfiles showing an error or warning. So then I checked the Windows logs. I have the Dutch version, but basically it says there is an unhandled exception in .NET:

Toepassing: AIGTech - Traffic Controller.exe
Framework-versie: v4.0.30319
Beschrijving: het proces is beƫindigd als gevolg van een onverwerkte uitzondering.
Uitzonderingsinformatie: System.AccessViolationException
   bij <Module>.SimConnect_SetDataOnSimObject(Void*, UInt32, UInt32, UInt32, UInt32, UInt32, Void*)
   bij LockheedMartin.Prepar3D.SimConnect.SimConnect.SetDataOnSimObject(System.Enum, UInt32, LockheedMartin.Prepar3D.SimConnect.SIMCONNECT_DATA_SET_FLAG, System.Object)
   bij AIGTech.TrafficController.Classes.Manager.Moduls.AIGFP_TrafficManager.setFlightplanForHelicopter_Flight(AIGTech.TrafficController.Classes.Objects.AIGTC_AIHelicopter, Int32)
   bij AIGTech.TrafficController.Classes.Manager.Moduls.AIGFP_TrafficManager.checkRegistrationStatusForHelicopter(AIGTech.TrafficController.Classes.Objects.AIGTC_AIHelicopter)
   bij AIGTech.TrafficController.Classes.Manager.Moduls.AIGFP_TrafficManager.checkRegistrationStatus(AIGTech.Common.Connector.AIObjects.AISimObject)
   bij AIGTech.TrafficController.Classes.Manager.Moduls.AIGFP_TrafficManager.manageTraffic()
   bij System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   bij System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   bij System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   bij System.Threading.ThreadHelper.ThreadStart()

I also see an Application Error for module LockheedMartin.Prepar3D.SimConnect.dll, but I think that is a result of the .NET error.

Is there anything else I can check for you to pinpoint the issue?



Kind regards,

Reinier


Kaiii3

I will have a look at it.

Can you try 2 or 3 times more, so we can see if this is a regualr crash or something more random?

bvanhout

Hi,
Everytime I start TC is says No OCI path has been set.
If I go to settings AIGFP is activated and OCI path is visible.
If I click "inject traffic" or "connect" the programme closes.
This sequence is repeated everytime TC is started.

Thanks
Brian

Kaiii3

please verify this path: [..]\AIGAIM - OCI\Traffic Files\AIGFP ,  does this directory exits? To what directory is your AIGTC pointing?

bvanhout

No that directory in OCI does not exist
OCI installation path is: V:\AIGAIM - OCI
Does TC need to point to the Traffic Files path?

Reinier2511

I have tried a few times, also on other airports nearby, same error. But then I went back to EGSC, setting the timestamp to match my system time in P3D. Then there is no error, it did generate the helicopters (visible in P3D AI Traffic list), but they are in Africa somewhere, near the coast of Angola? So one of the issues seems to be the timestamp selected in P3D. I don't understand why the helicopters are showing up in the ocean near Angola.

I have also checked if the aigfp files are working correctly by going to Toulouse (LFBO). I saw some traffic from Traffic_AIG_AirbusCooperation(GA-C)_Winter_2019-2020v2.aigfp, so that is okay. Then TC does not inject helicopters, but I would not expect that, so that is fine.

Kaiii3

the timestamp in AIGTC shown below is getting directly from the Sim, so there can actual no difference in them. I will have alook at the code, maybe I find something that could cause this strange spawing of the helicopters.

Can you check this two directories:

\AIGAIM - OCI\Airports\AIGTC
\AIGAIM - OCI\Airports\scenery

what files are there?

Reinier2511

I added two screenshots as attachment showing the files in the mentioned directories

Kaiii3

that look ok. I am currently working on an new logger for AIGTC (update maybe today or tomorrow) Maybe this can tell us what is going wrong on your end ::confused::

bvanhout


Kaiii3


Reinier2511

One more thing I have noticed now, the helicopters are spawning near the cross on the map in TC, see attachment

Kaiii3

yeah thats 0,0. Seems they do not get the coordinates for theier planed spot... Just did a test on my system and everything went fine ??? I will extent to logger so we will see how this coordinates are generated on your system

bvanhout

Ok so I have installed, deleted and reinstalled AIGTC, both previous and latest version several time.
I followed the quick start instructions.
When I click "Save Settings" nothing happens.
I close AIGTC and on restart get the message "No OCI-Path has been set"
When I accept the error message AIGTC opens and when I go to settings the OCI path is there and "Use AIGFP" ticked.
No files or folders have been added to OCI.

Is some external programme such as a specific version DotNet Framework or similar required to be installed to make this work on my PC?

Kaiii3

have you installed AIM-OCI with an AIGFP flightplan?