plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


question

bouveng avatar image
bouveng asked FlyingRaccoon commented

lightdef.Type for non typed light?

Hi! Two small questions:

1, Is there any other lightdef.Type beyond 13 (AMBIENT)?

2, I'm having issues with creating a light, that is not bound to any particular type. I need a lightdef.Type but I cant assign my light to any of the types available, as the type need to be in an "on" state for allowing power through the bus and connection.

Type 13 is always in an "on" state, and that is good, but type 13 lights do not work outside the cockpit is used for ambient lighting.

So. What would be a good solution to create a light, not dependent on any particular type? In my case it is a small indicator light, driven by the state of a simvar.

Thanks in advance.

Br.

/J

aircraftlight
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

FlyingRaccoon avatar image
FlyingRaccoon answered

Hello @bouveng

Can you try using Type:0 ?
This is defined as type "None" in our engine and the environment cast these lights.
Not sure why they're not listed in the AircraftEditor and documentation. I'll have that reviewed.

Regards,
Sylvain


10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

bouveng avatar image
bouveng answered FlyingRaccoon commented

Hi @FlyingRaccoon

Thanks for your answer.

I did try the Type:0, but could not get it to work.
I added Type:0#Index:0 for my light.
And a circuit.99 = Type:NONE:0#Connections:bus.15# ...

Bit unsure what circuit type name to use?

Br

/J

1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Type "none" lights are not related to any circuit type, you just have to write to their potentiometer simvar to control them.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.