September 20, 20241 yr I’ve also came across what seems to be an issue with FSLTL aircraft. For some reason, the landing lights and taxi lights are swapped, even though everything looks properly set in the systems.cfg file. When you trigger the landing lights, the taxi lights turn on instead—and vice versa. This explains why some aircrafts are seen taxiing with the landing lights ON, and others taking off and landing with only taxi lights. I’m planning to dig into this over the weekend to figure out why. Worst case, I’ll release an updated version of the Light Fixer tool that flips the light definitions for the FSLTL models. Edited September 20, 20241 yr by vcaptain747
September 20, 20241 yr 43 minutes ago, vcaptain747 said: Would you be up to try it out? If anyone’s curious, I’d be happy to share the thought process that led me here! Cheers, Amine. How can we try it out or it has to be put into PSXT by Nico? mike Sim,PC, monitor,prescription glasses, chair.
September 20, 20241 yr 1 minute ago, mike stryczek said: How can we try it out or it has to be put into PSXT by Nico? This has to be added by Nico indeed. At this point, it’s just a theory, and only Nico can confirm whether it works or not 😉
September 20, 20241 yr Author Hi, So I confirm issue also with some just flight fs traffic package. So it accurs with any package of aircraft some have lights some dont have. I confirm with my previous stream recorder that before version 8.0 , lights where good. Please Nico test these new code and tell us the result. Cheers Hewpilot Edited September 20, 20241 yr by HewPilot
September 20, 20241 yr 6 hours ago, vcaptain747 said: Like many PSXT users, I've noticed recurring inconsistencies with the lighting behavior, especially after the recent updates. While lighting issues have always been around, they seem to have been amplified in the latest PSXT version. So, I decided to dive deep today and investigate. After a few hours of testing, I discovered that the issue seems to be tied to a recent change in PSXT, which increased the aircraft injection rate to 4 per second instead of 2. This change has amplified an existing SimConnect issue, leading to the lighting problems. Now, instead of my usual lengthy and complex breakdowns, I'm getting straight to the point this time. @kiek, I’m convinced that introducing a 500ms to 1-second delay before setting the lights on newly created aircrafts could solve all of these lighting issues. The idea is to allow models and textures to load properly before attempting to control the lights. No delay is needed afterwards to control the lights, only the first time when the aircraft is injected. In my test code, I used the Sleep() function like below, but not sure if it's even possible to sleep PSXT and what impact it might have.I guess you'll figure that out. Reveal hidden contents case SIMCONNECT_RECV_ID_ASSIGNED_OBJECT_ID: { SIMCONNECT_RECV_ASSIGNED_OBJECT_ID* pObjData = (SIMCONNECT_RECV_ASSIGNED_OBJECT_ID*)pData; switch (pObjData->dwRequestID) { case REQUEST_ADD_AIRCRAFT: DWORD newID = pObjData->dwObjectID; printf("\nCreated new id = %d", newID); Sleep(1000); // will only delay lights coming up. Have not impact on spawning other aircrafts. hr = SimConnect_AIReleaseControl(hSimConnect, newID , REQUEST_REMOVE_AICONTROL); hr = SimConnect_TransmitClientEvent(hSimConnect, newID , NAV_LIGHTS_SET, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_FAST_REPEAT_TIMER); hr = SimConnect_TransmitClientEvent(hSimConnect, newID , LANDING_LIGHTS_SET, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); hr = SimConnect_TransmitClientEvent(hSimConnect, newID , TAXI_LIGHTS_SET, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); hr = SimConnect_TransmitClientEvent(hSimConnect, newID , STROBES_SET, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); hr = SimConnect_TransmitClientEvent(hSimConnect, newID , BEACON_LIGHTS_SET, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); hr = SimConnect_TransmitClientEvent(hSimConnect, newID , CABIN_LIGHTS_SET, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); hr = SimConnect_TransmitClientEvent(hSimConnect, newID , LOGO_LIGHTS_SET, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); } } Would you be up to try it out? If anyone’s curious, I’d be happy to share the thought process that led me here! Cheers, Amine. Hi Amine, First thank you for your help. I'll certainly give it a try, although sleeping in the SimConnect thread it self is not very wise, I will do that in the controlling thread without halting. I doubt the change from 2 to 5 ac per second has made the lighting problem worse (there always has been a lighting problem), because the time frame between injecting and setting the light will be still the same. And aircraft are not always injected 5 times per second.... After the start new aircraft pop up 0 /sec or 1 /sec , or 1 in 1 minute! But I'll make a new version with that delay, and we will see. Hopefully it is the solution. Thx again, Nico Edited September 20, 20241 yr by kiek
September 20, 20241 yr 1 hour ago, kiek said: Hopefully it is the solution. Well what I already feared, it makes no difference at all. :-[ I set the lights of an aircraft 1 second after SimConnect reports the creation of a new aircraft object in MSFS (and Release control done), but no difference noticed. Edited September 20, 20241 yr by kiek
September 21, 20241 yr Author something strange noticed yesterday, As I started psxt at the begining of my flight (cold and dark parking). No planes had lights. When I closed then restart psxt most of ai had lights. I add that before this flight I clean my MSFS, deleting content, scenery indexer, and ccleaner for Windows. May be related when first load msfs after a clean like that. Or loading psxt first time in msfs. Crazy as I see easyjet with light and other easyjet without can not understand how it works.
September 22, 20241 yr 17 hours ago, HewPilot said: something strange noticed yesterday, As I started psxt at the begining of my flight (cold and dark parking). No planes had lights. When I closed then restart psxt most of ai had lights. I add that before this flight I clean my MSFS, deleting content, scenery indexer, and ccleaner for Windows. May be related when first load msfs after a clean like that. Or loading psxt first time in msfs. Crazy as I see easyjet with light and other easyjet without can not understand how it works. I tried the above but it made no difference. I did notice this little gem when testing: THE LANDING LIGHTS POINT BACKWARDS! AI aircraft is AIG - probably this one: (AIGAIM_United Airlines Boeing 737 MAX 9 - OC) Clearly this is not a function of PSXT, rather an AIG model error, and just another AI lights quirk to add to the pile. i7-6700k • Gigabyte GA-Z170X-UD5 • 32GB DDR4 2666 • EVGA FTW ULTRA RTX3080 12GB
Create an account or sign in to comment