SP2 Interior Lights - Fantastic!

N4GIX
Posts: 1023
Joined: Mon Sep 06, 2010 3:47 pm
Re: SP2 Interior Lights - Fantastic!

Post by N4GIX » Sat Apr 14, 2018 6:23 pm

Ron Attwood wrote:
Fri Apr 13, 2018 9:37 pm
However one could create Lua scripts via FSUIPC to control them.
That is if one had any idea on creating a lua script. We're not all coders :roll:
You might wish to ask this fellow user to share his solution: viewtopic.php?p=80166#p80166

Ron Attwood
Posts: 176
Joined: Sun Mar 20, 2011 1:34 am
Contact:
Re: SP2 Interior Lights - Fantastic!

Post by Ron Attwood » Sat Apr 14, 2018 10:31 pm

As I understand it, you were that fellow. It looked Greek to me then and it does now. But not to worry, it's no trouble to use the mouse.
:D

N4GIX
Posts: 1023
Joined: Mon Sep 06, 2010 3:47 pm
Re: SP2 Interior Lights - Fantastic!

Post by N4GIX » Sat Apr 14, 2018 10:53 pm

I was actually referring to Jay, the person to whom I had given the information he asked for. ;)

Ron Attwood
Posts: 176
Joined: Sun Mar 20, 2011 1:34 am
Contact:
Re: SP2 Interior Lights - Fantastic!

Post by Ron Attwood » Sat Apr 14, 2018 10:57 pm

He doesn't say what he did with it.

fppilot
Posts: 83
Joined: Sat Jan 19, 2013 4:08 pm
Re: SP2 Interior Lights - Fantastic!

Post by fppilot » Sun Apr 15, 2018 3:43 am

So here is a somewhat naive question. Like Ron, I am not by any means a coder. There are however so called coders within our communities in this activity. Within the community there are master painters, like Ron. There are master panel configurators and .xml activists, like Bert P. So Colin, and Bill, you did not use standard simulator commands for a number of functions. Not finding fault with that because it appears to have resulted in a great product. Innovative in some respects. Question: How can a master Lua coder in the community proceed to provide custom code for us if there are not privy to the non-standard methods in use?

Not raging the argument here. Just gaining understanding.

N4GIX
Posts: 1023
Joined: Mon Sep 06, 2010 3:47 pm
Re: SP2 Interior Lights - Fantastic!

Post by N4GIX » Sun Apr 15, 2018 2:31 pm

In the case of the four magneto switches, there are no default commands or token variables. FSX/P3D provides the token variables and commands for a standard "key type switch" only. Anything else - such as the arrangement in the C310 - has to be custom coded.

In the case of the landing lights, the default LL commands are used, but provision for extending the lights from the wings must be done first. There is no provision in FSX/P3D for such an event.

As for other coders/scripters all that's required is that they ask - as Jay did - and the information will be provided. ;)

N4GIX
Posts: 1023
Joined: Mon Sep 06, 2010 3:47 pm
Re: SP2 Interior Lights - Fantastic!

Post by N4GIX » Sun Apr 15, 2018 4:15 pm

Okay, I was feeling a bit down this morning so I figured out a simple way for you folks to control the landing lights using the Wing Fold event via FSUIPC. Simply unzip this modified "Logic" gauge into the ..\panel\C310_XMLGauges folder:
C310_Logic.zip
(1.75 KiB) Downloaded 17 times
Assign your hardware button or lever to the TOGGLE_WING_FOLD event and you will be able to control the landing lights.

Ron Attwood
Posts: 176
Joined: Sun Mar 20, 2011 1:34 am
Contact:
Re: SP2 Interior Lights - Fantastic!

Post by Ron Attwood » Mon Apr 16, 2018 5:22 pm

Brilliant! :)


Locked

Return to “310 Redux Support Forum”