SimConnect_SetDataOnSimObject Waypoints on MSFS 2024 Objects

Version: 1.3.7.0

Frequency: Consistently

Severity: High

Bug description:

SimConnect_SetDataOnSimObject and sending of waypoints does not appear to work on all AI objects. For example, using the hr = SimConnect_SetDataOnSimObject(hSimConnect, DEFINITION_WAYPOINT, GiraffeID, 0, ARRAYSIZE(waypointListGiraffe), sizeof(waypointListGiraffe[0]), waypointListGiraffe); command in the AIObjectsAndWaypoints SDK example project does nothing. Found a correct giraffe name of GAngolanMale and was able to create it, but when sending waypoints to make it move from one location to another, nothing happens. In another project, it returns this error:

Value cannot be null.
Parameter name: Argument ‘Array’ is Nothing.

However, the older MSFS 2020 BlackBear can use the waypoints.

Are there limits to the MSFS 2024 objects being used in waypoints, vs. MSFS 2020? Or a different way to handle it via SimConnect?

Repro steps:

Attachments:

Private attachments: Send a PM to @PrivateContent with the link to this topic and the link to download your content

duplicate

Simconnect samples contains old 2020 simobject names - [MSFS 2024] Bug Reports / SDK: Tools/Samples/Documentation - MSFS DevSupport

Good catch. Same thing. I searched but did not see the duplicate. There are so many new models, it would be great for them to follow waypoints. Maybe the error message I posted would be useful.