Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Pages: 1 2 
Send Topic Print
A Few 737 Questions (Read 765 times)
Reply #15 - May 14th, 2010 at 11:19pm

B-Valvs   Offline
Colonel
Jaggie Police
5B2

Gender: male
Posts: 5949
*****
 
That worked great, thanks. The textures are working and so are the lights. What lines would I have to take out of that code to make that switch work for only the NAV lights? If it's comlicated and involves writing something else, don't worry about it, you've already helped a lot.

Cool

 

...
IP Logged
 
Reply #16 - May 14th, 2010 at 11:55pm

Tech Diver   Offline
Colonel
Concord, Massachusetts

Gender: male
Posts: 196
*****
 
I'm very glad that it worked. Here is the situation of how this all functions: The left-most light switch in the stock 737 VC is hardwired to toggle a type-9 light. The XML code that I wrote, turns on a type-3 light whenever it detects that a type-9 light has been turned on, and turns it off the same way. The Nav light that is embedded in the Posky model is hardwired to be a type-3 light. You can not change the light type of the VC switch nor the light type of the Nav light in the model. Since we got the Nav light to go on with the switch in the VC we know the code is OK so we should not modify that.

However, I noticed in one of you previous posts that there were several type-3 lights defined in the [lights] section of your "aircraft.cfg" file that will also illuminate when the Nav lights are toggled. Namely:

light.4 = 3,  30.000,   0.000,  -3.000, Opensky_nacelle_refl ,   // front cargo
light.5 = 3, -33.000,   0.000,  -2.000, Opensky_nacelle_refl ,   // rear cargo
light.6 = 3,  40.000,   0.000,   4.000, Opensky_nacelle_refl ,   // pax door
light.16= 3, -62.000,   0.000,   7.000, Opensky_nav_yellow   ,   // Tail Nav Light

You can simply disable (comment out) any light that you don't want to have turned on by putting two slashes (such as: //) at the beginning of the line. My recommendation would be to comment out lights 4, 5, and 6, but leave light 16 because it is the rear Nav light.

Another thing you can do is assign lights 4, 5, and 6, to be type-4 lights that will turn on whenever the cockpit light goes on. Your Aircraft.cfg file would have entries like:

light.4 = 4 ...etc
light.5 = 4 ...etc
light.6 = 4 ...etc

Peter
 
IP Logged
 
Reply #17 - May 17th, 2010 at 7:20pm

B-Valvs   Offline
Colonel
Jaggie Police
5B2

Gender: male
Posts: 5949
*****
 
Thanks so much. That is exactly what I wanted to do.

Cool

 

...
IP Logged
 
Pages: 1 2 
Send Topic Print