Disappearing aircraft

Report problems with JoinFS.
Post Reply
bert.laverman
Posts: 17
Joined: Sun Dec 25, 2016 9:26 am

Disappearing aircraft

Post by bert.laverman »

Hi there!

I've reported before that I have an issue where one particular player regularly disappears from the session. For some reason, it is almost always the same person, and he reports that he has the same issue concerning me. I have been using the monitoring option to see what happens, but do not see logging of "Removing aircraft" when this happens.

Looking through the sources for version 3.1.2 that were made available some time ago, I noticed that there are actually two locations where "simconnect.RemoveObject()" is called. One is accompanied by a logging statement, but the other isn't. This is in the processing of the assigned ObjectID (method "Sim.ProcessAssignedObjectId(uint objectId, uint requestId)"), where a check is made if a reference to the object in question is available. (creatingObject != null) If so, some work on it is done, but if not, the AI aircraft with that id is removed without any logging.

Would you consider just generating a log message along the lines of "Spurious assigned ObjectID <value> received" and not deleting the AI aircraft?

For what it's worth, in CsSimConnect I keep the requestId of (practically) every SimConnect request and use that to match up requests with the unfortunately unpredictable responses. You could consider using a dictionary on the requestId of the AI creation with the aircraft object, so you're not as much dependent on timing.

Bert Laverman
User avatar
Peter
Site Admin
Posts: 2281
Joined: Fri Sep 23, 2016 8:51 am
Contact:

Re: Disappearing aircraft

Post by Peter »

Hi Bert,

I have just added a message "Unknown object assigned an ID" for that case, so you can keep an eye out for that.

When you say the player disappears by how much do they disappear? Obviously from the simulator, but do they also disappear from the aircraft and session windows as well?

Peter
bert.laverman
Posts: 17
Joined: Sun Dec 25, 2016 9:26 am

Re: Disappearing aircraft

Post by bert.laverman »

Yes, he will completely disappear. I need to disconnect from the server and reconnect in order to see him again.

Scanning yesterday's logs, there appears to be a delay at times between the aircraft disappearing and it being logged that I didn't notice before. My apologies. So I actually _do_ get a log message, just some time after it happened. So I need to keep the monitor window open longer to see it.

Example:

Code: Select all

09-01-2022 19:55:51.945 - Added node '04714-51343-6112/37' @ '04714-51343-6112'
09-01-2022 19:55:52.657 - Connected '04714-51343-6112/37'
09-01-2022 19:55:52.793 - Listing aircraft 'PHHMS' from '04714-51343-6112/37' - Model 'C90B King Air Red'
09-01-2022 19:55:52.890 - Injecting aircraft 'PHHMS' - User '04714-51343-6112/37' - Model 'C90B King Air Red' - Sub 'Carenado C90B King Air Beige Red'
09-01-2022 19:55:52.901 - Aircraft injected 'PHHMS' - User '04714-51343-6112/37' - ID '20' - Sub 'Carenado C90B King Air Beige Red'
09-01-2022 19:56:29.391 - Removing aircraft 'PHHMS' - User '04714-51343-6112/37' - ID '20- Sub 'Carenado C90B King Air Beige Red'
09-01-2022 19:56:29.391 - Delisting aircraft 'PHHMS' - User '04714-51343-6112/37' - Model 'C90B King Air Red'
09-01-2022 19:56:48.733 - Removed node '04714-51343-6112/37'
As you can see, it just states "removing", half a minute after it was injected. (he was added last) During this particular session, we had 7 aircraft including my own, and only the PH-HMS drops out at unpredictable moments.

Bert
Post Reply