Set the data for every frame using SimConnectAPI.

Discuss on the SimConnect SDK can be used by programmers to write add-on components for Prepar3D
Post Reply
rvDevman
Posts: 8
Joined: Wed Jan 26, 2022 6:25 am

Set the data for every frame using SimConnectAPI.

Post by rvDevman »

Hello.
I have recently started learning about Prepar3D.
I have a question because I have encountered a problem in an implementation I am currently working on.

I would like to use the SimConnectAPI to set the coordinates of the AI aircraft for each frame and fly an arbitrary route.
However, I am getting exceptions in the request and configuration processes that I am calling at the same time.
(1 frame = 60FPS = 1000/60 ≈ 16.666... ms)

The following is an example of an exception that occurs.
------------------------
System.Runtime.InteropServices.COMException: '0xC00000B0'
------------------------

I have tried creating multiple SimConnect connections, separating them by request and configuration, etc., but it did not work.
I hope you can help me solve this problem.

Thank you.
seanmcleod
Posts: 55
Joined: Thu Mar 24, 2011 1:18 pm

Re: Set the data for every frame using SimConnectAPI.

Post by seanmcleod »

Which SimConnect API are you using to set the coordinates for the AI aircraft?
Post Reply