I am trying to use P3D as a CIGI host for my custom visualizer, but so far I have only received IG Control packets without the Entity Control packets necessary to extract P3Ds ownship position.
For my use case I am not interested in waiting for the IG to initiate packet transmission, and as such have set IsSynchronous to 0. While I’m able to confirm this has increased the rate of IG control packets to the specified frequency, the packets do not contain the necessary Entity Control packets.
I’m not sure what I’m missing.
It’s my understanding that with IsSynchronous at 0, my IG shouldn’t have to send any data P3D before Entity Control packets are sent.
Thank You!
CIGI Host - No Entity Control
-
- Lockheed Martin
- Posts: 1207
- Joined: Tue Sep 25, 2012 2:34 pm
Re: CIGI Host - No Entity Control
Hi Invertedfilter,
It sounds like you may need to configure your Entity Type ID's. Which version of CIGI are you targeting? If you are using CIGI 3.3 or less, you'll need to define your EntityTypeID's in the DISEntityTypes.xml file. We do not ship default values for these. If you are using CIGI 4.0, we do ship default values using the DIS enumeration strings. Here is a link the v6 Learning Center article:
https://www.prepar3d.com/SDKv6/prepar3d ... tityTypeID
Hope this helps.
Regards,
Clifton
It sounds like you may need to configure your Entity Type ID's. Which version of CIGI are you targeting? If you are using CIGI 3.3 or less, you'll need to define your EntityTypeID's in the DISEntityTypes.xml file. We do not ship default values for these. If you are using CIGI 4.0, we do ship default values using the DIS enumeration strings. Here is a link the v6 Learning Center article:
https://www.prepar3d.com/SDKv6/prepar3d ... tityTypeID
Hope this helps.
Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
Prepar3D® Software Engineer Sr.
-
- Posts: 3
- Joined: Fri Jan 12, 2024 2:29 am
Re: CIGI Host - No Entity Control
I am targeting CIGI 3.3 and can verify my versioning is correct through wireshark.
I did omit the <EntityTypeID> from DISEntityType.xml, however even after adding <EntityTypeID>0</EntityTypeID> to the Lockheed Martin F-16C - USAF Gray <EntityType> I am piloting within P3D, I still only see IG Control within my packets.
I did omit the <EntityTypeID> from DISEntityType.xml, however even after adding <EntityTypeID>0</EntityTypeID> to the Lockheed Martin F-16C - USAF Gray <EntityType> I am piloting within P3D, I still only see IG Control within my packets.
-
- Lockheed Martin
- Posts: 1207
- Joined: Tue Sep 25, 2012 2:34 pm
Re: CIGI Host - No Entity Control
Hi Invertedfilter,
Could you try a non-zero value (up to 65535)? Zero is used to represent "null" entities. I'll make note to update the documentation.
Regards,
Clifton
Could you try a non-zero value (up to 65535)? Zero is used to represent "null" entities. I'll make note to update the documentation.
Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
Prepar3D® Software Engineer Sr.
-
- Posts: 3
- Joined: Fri Jan 12, 2024 2:29 am
Re: CIGI Host - No Entity Control
I’ve tried setting to a non-zero value, namely 1, 2 then the sample line from the documentation using 20001. Sadly I still only receive IG Control packets.
-
- Lockheed Martin
- Posts: 1207
- Joined: Tue Sep 25, 2012 2:34 pm
Re: CIGI Host - No Entity Control
Hi Invertedfilter,
It looks like the P3D host will require at least one Start of Frame packet when in asynchronous mode. Does sending a SOF packet with the IG Mode set to Operate have any effect?
Regards,
Clifton
It looks like the P3D host will require at least one Start of Frame packet when in asynchronous mode. Does sending a SOF packet with the IG Mode set to Operate have any effect?
Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
Prepar3D® Software Engineer Sr.