Looking for anyone that has successfully got SimObject Function - SimConnect_AICreateSimulatedObject to work. I get an SIMCONNECT_RECV_ID_EVENT_OBJECT_ADDREMOVE return with a objectID - however my simobject does not show up. SDK 0.8.0
The SDK blog update suggested that this is working now. But not for me.
I can get the function to run, and I see the object description in game but I cannot see the object. Such a bummer that there are no technical resources.
It is now working fine here (SDK 0.9.0.0 and MSFS 1.12.13.0). There is still something wrong with SimConnect_AIReleaseControl not always working, but I can live with this.
I can confirm it works as well. What I cannot do is have the ai aircraft fly to a waypoint. Anyone play with that yet? I create the AI aircraft and it just does it’s own thing. Tried setting “AI WAYPOINT LIST” to no avail.
I tried this (waypoints) with a ground vehicle and worked fine. Don’t know if with an aircraft will be the same. I suggest to follow the “AI Objects and Waypoints” sample from older FSX SDK.
Has anyone got waypoints to work with aircraft after using SimConnect_AICreateNonATCAircraft to create the aircraft? I tried with them on both the ground and in air, but when i send a Waypoint via a set data call for AI WAYPOINT LIST - the function returns true with no error - but the waypoint doesn’t take effect.
If i check the object via the simobject viewer it just says its still in Zombie mode and just keeps flying at them same values i set in the initial create call.
I have a node wrapper around the c sdk… i.e. non managed code. I just want to send the one waypoint. The object id is being passed in and definitely maps to an AI aircraft created with AICreateNonATCAircraft. My core code below, can you post what works for you?
Working here too (managed code), but only the first time. I can send an entire route to an object or plane once, but it seems to ignore subsequent updates when I want to change the route of this object.
Thanks for the response - for me with non managed code - i got it to work if the aircraft is on the ground. It will follow waypoints and accept updates. But if i start the aircraft in the air - waypoints are ignored completely.
I am pretty sure that you can’t send waypoints to your own vehicle (OBJECT_ID_USER). This procedure only works on AI objects that your client program has created. Try the “ASO_Shuttle_01_Gray”, at least that bus is really moving - not all objects that you can create actually move, even when they are in a vehicle category. Especially moving aircraft can be tricky, they don’t seem to be able to taxi on ground. And when they fly, they fly badly. You can’t change their route when they are under way, that hasn’t changed. Don’t expect the level of sophistication that we had with FSX, let alone P3D.