Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

definitivly something wrong with AI lights

Featured Replies

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 by vcaptain747

  • Replies 37
  • Views 4.5k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • 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 ampl

  • 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 😉

  • 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

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.

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 😉

  • 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 by HewPilot

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 by kiek

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 by kiek

  • 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.

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.

spacer.png

spacer.png

Steven_Miller.png?dl=1

i7-6700k Gigabyte GA-Z170X-UD5 32GB DDR4 2666 EVGA FTW ULTRA RTX3080 12GB

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.