Page 1 of 1

Traffic automatically remove on weapon fire in P3D PP

Posted: Fri Aug 05, 2016 10:37 am
by zamirk
when I fire weapon in P3D Professional Plus, Client app automatically removes all the traffic generated by Simconnect. This is badly affecting my students' training scenario. Is there any limit for traffic, if so, then will it be resolved by increasing traffic in settings. Kindly, guide me anybody from LM ASAP.

Best regards,
Zamirk

Re: Traffic automatically remove on weapon fire in P3D PP

Posted: Fri Aug 05, 2016 1:17 pm
by Clifton Crane
Zamirk,

Are the students in a multiplayer session? I don't believe increasing traffic settings has an effect on AI created via a SimConnect application.

Re: Traffic automatically remove on weapon fire in P3D PP

Posted: Fri Aug 05, 2016 2:51 pm
by zamirk
Hi Clifton,

No, students are not in multiplayer session, we just created some AINonATCSimObjects through Simconnect. When we increase number of aircrafts upto 50, sometimes on weapon launch P3D deletes all aircrafts in client application and suddenly target selection goes to zero. By right clicking, we found that in aircrafts list,there is no object. Can you please guide us why this is happening and how can I check in P3D that if entity exists or not? So that I can re create it in p3d via simconnect.

Thanks for your precious time.

Best regards,
Zamirk

Re: Traffic automatically remove on weapon fire in P3D PP

Posted: Sun Aug 07, 2016 6:32 pm
by zamirk
We are calling dispatchProc in separate thread and when one fires missile from aircraft, SIMCONNECT HANDLE lost its value and becomes garbage. Can you help to eradicate this problem.

Re: Traffic automatically remove on weapon fire in P3D PP

Posted: Mon Aug 08, 2016 1:36 pm
by Clifton Crane
Hi Zamirk,

Do you have the SimConnect console open when running your application? The console may provide information/exceptions being thrown by SimConnect calls. You can enable the SimConnect console by adding the following SimConnect.ini file to your Documents\Prepar3D v3 directory:

Code: Select all

[SimConnect]
level=verbose
console=1
;RedirectStdOutToConsole=1
;OutputDebugString=1
;file=c:\simconnect%03u.log
;file_next_index=0
;file_max_index=9

Re: Traffic automatically remove on weapon fire in P3D PP

Posted: Wed Aug 10, 2016 4:31 am
by zamirk
Thanks for your guidance. I have found three exception codes, 1, 3 & 9.

Re: Traffic automatically remove on weapon fire in P3D PP

Posted: Tue Aug 23, 2016 9:10 am
by zamirk
Hi Clifton,

I had resolved some issues by the help of these exception codes, but still the main problem exists. And there is nothing in the console for this problem. Kindly, guide me to solve this. It is messing our training scenario.

Best Regards,
Zamirk

Re: Traffic automatically remove on weapon fire in P3D PP

Posted: Tue Aug 23, 2016 2:02 pm
by Clifton Crane
Zamirk,

Are you still having issues losing the SimConnect handle on the other thread? When SimConnect clients close, any object created by that client is removed. Could this be what you are seeing?

Testing with the SimConnect SDK AITraffic sample I did not see this behavior.

Re: Traffic automatically remove on weapon fire in P3D PP

Posted: Tue Aug 23, 2016 3:24 pm
by zamirk
No, Simconnect handle is not closing on weapon fire. Let me check it with AITraffic sample.

Thanks.

Re: Traffic automatically remove on weapon fire in P3D PP

Posted: Thu Aug 25, 2016 2:02 pm
by zamirk
Hi Clifton,

Thanks for your guidance. I was wrong and you were right as SimConnect handle was losing. That is why traffic is being removed. I couldn't find the exact reason at this time. Will let you know with further progress.

Best Regards,
Zamirk