Jump to content

Lets talk Lights Data Blocks


SkateZilla

Recommended Posts

the lights work, just my tail strobe isnt working when the AI turns on strobes.

 

dunno if it's a connector or arg issue. im gonna clone one of the wing tip strobes connectors/meshes and re-animate with different ARG.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

i used 192 as that's the arg that's used by A-10C, i think I'll just copy one of the wingtip lights that work, mesh and Connector, and move them a lil, get the 3rd strobe working in a position where i can see the flash on the ground, and go from there.

 

I got all the omni's and stuff where i want them, now i just gotta set connectors for the spotlights that shine on the tail code and the landing/taxi lights. these all work, but since there's no connectors they are placed at 0,0,0. so the formation spotlights shine inside my fuselage, and the landing/taxi light works fine, I just havent placed a connector to put it where it's supposed to be, it shines onto the ground from 0,0,0 it looks like.


Edited by SkateZilla

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

The list I have doesnt say anything about AFM/SFM/EFM. That also doesnt explain why the strobe light source isnt rendered. (so knowing which ones are EFM only would be nice.)

 

I think at 1 point I Tried Arg 197, but that was before I even got the wingtip strobes to work, so I may try that again.

 

typename = "collection",

lights = {

[1] = { typename = "collection",

lights = {-- Left Anticollision Light -- WORKS

{typename = "natostrobelight",

connector = "Left_Position_Light_Red",

argument_1 = 195,

period = 1.2,

phase_shift = 0},

-- Right Anticollision Light -- WORKS

{typename = "natostrobelight",

connector = "Right_Position_Light_Green",

argument_1 = 196,

period = 1.2,

phase_shift = 0},

-- Vertical Stabilizer Anticollision Light -- DOESNT WORK

{typename = "natostrobelight",

connector = "Tail_Position_Light_01",

argument_1 = 192,

period = 1.2,

phase_shift = 0},

}

},

 

 

 

190	Navigation light #1	0
1	Off
On
191	Navigation light #2	0
1	Off
On
192	Navigation light #3	0
1	Off
On
193	Navigation light #4	0
1	Off
On
194	Navigation light #5	0
1	Off
On
195	Navigation light #6	0
1	Off
On
196	Navigation light #7	0
1	Off
On
197	Navigation light #8	0
1	Off
On
198	Navigation light #9	0
1	Off
On
199	Navigation light #10	0
1	Off
On


Edited by SkateZilla

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

well,

 

I played some, If I Move the Arg# and COnnector Name for the Right strobe to the tail strobe the tail works,

 

now, if I copy and paste the working wing strobe and re-assign connector and arg, it wont work.

 

It looks like i cant place anymore than 2 strobes at one time, if I swap the arg and connector names in the wing strobe and the tail the wing stops working and the tail works. and vise versa.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

Still havent gotten the tail strobe to work..

 

Everything else is gravy though.

 

Edit;

 

is there a max limit of 2 strobes?

 

as I can swap the Arg and Connector of one of the wing strobes and tail works fine.


Edited by SkateZilla

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

A question, I create all lights for my mirage f1, I use strobe, formation light with conector and light arg, all works fine, but Taxi light no work well, a light from taxi light is looking at front back the ohter loo at back, I used this arg

 

[2] = { typename = "collection",

lights = {-- Landing light

{typename = "spotlight",

connector = "MAIN_SPOT_PTR_02",

argument = 209,

 

dir_correction = {elevation = math.rad(-1)}

},

{-- Landing/Taxi light

typename = "spotlight",

connector = "MAIN_SPOT_PTR_01",

argument = 208,

 

dir_correction = {elevation = math.rad(3)}

}

}

Link to comment
Share on other sites

can you post a screenshot?

 

 

it sounds like the connectors are oriented wrong (ie, pointing the wrong way).

 

I can rotate/move my point in max to rotate/move my taxi light position in DCSW.

 

ie

 

a Point with Z Axis Rotate Value of -90 should be looking left, 90 right, 180/-180 Aft.

a Point with X Axis Rotate Value of -90 should be looking down, 90 up, 180/-180 Aft. (but upside down)

a Point with Y Axis Rotate Value of -90 will be tilted left, 90 tilted right, 180/-180 will be upside down.

 

See Tail Light in Attachment:

Rotated Point in Max +90 Degrees on the X Axis To Point Up, and then 90 degrees on the Z Axis to get it to point at the tail, then 15-20 degrees on Z Axis to get it to point up the tail at an Angle.

 

(Note: the Image of the F-100D is not a representation of final product or features. I'm Aware there is no such light on the F-100D.)

615276_4883626458320_1738025116_o.thumb.jpg.1867fa4febfa5e9759f6c28e3faa3d43.jpg


Edited by SkateZilla

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

like for example, bano_1, the light works, but only works the arg, on the ground I can´t see the red or green color reflecting on ground

 

is the connector positions and names correct?

 

without the connectors, Args will play (see 3d mesh turning on/off), but the Light point will be emitted from 0,0,0 of the model, which in most cases is Inside the Airframe Mesh.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

We are using SFM right now.

 

im in office right now, but I'll Post Video/Images of our lights tonite.

 

I think I use Fake Omni Light in Max, but im not sure, I know Strobes, Red and Green Both Have light on the ground.

 

As for the Parking/Taxi Lights, Find out which one is pointing backwards (disable one and run DCSW).

 

then rotate the connector point 180 degrees.

 

I also appears that you have a light position set under the aircraft that shines onto the ground directly below it.

 

 

 

as for LUA, this is how it's setup for me right now, everything but tail strobe and wing floods work (SU-25 doesnt have systems/command for human player to toggle them, AI can Toggle strobes, but I havent Seen the Floods on.) (the coding for the floods/refuel light arent completed yet).

 

lights_data = {
   typename = "collection",
   lights = {
   [1] = { typename = "collection",
           lights = {-- Left Anticollision Light
                       {typename = "natostrobelight",
                       connector = "Left_Position_Light_Red",
                       argument_1 = 195,
                       period = 1.2,
                       phase_shift = 0},
                     -- Right Anticollision Light
                       {typename = "natostrobelight",
                       connector = "Right_Position_Light_Green",
                       argument_1 = 196,
                       period = 1.2,
                       phase_shift = 0},
                     -- Vertical Stab Anticollision Light
                       {typename = "natostrobelight",
                       connector = "Top_Tail_Light_Bano",
                       argument_1 = 192,
                       period = 1.2,
                       phase_shift = 0},
                     }
            },
   [2] = { typename = "collection",
           lights = {-- Landing light
                       {typename = "spotlight",
                       connector = "MAIN_SPOT_PTR001",
                       argument = 209,
                       dir_correction = {elevation = math.rad(-1)}},
                       -- Landing/Taxi light
                       {typename = "spotlight",
                       connector = "MAIN_SPOT_PTR002",
                       argument = 208,
                       dir_correction = {elevation = math.rad(3)}},
                    }
         },
   [3]    = {    typename = "collection",
           lights = {-- Left Position Light (Red)
                       {typename = "omnilight",
                       connector = "Left_Position_Light_Red",
                       color = {0.99, 0.11, 0.3},
                       pos_correction  = {0, 0, -0.2},
                       argument  = 190},
                     -- Right Position Light (Green)
                       {typename = "omnilight",
                       connector = "Right_Position_Light_Green",
                       color = {0, 0.894, 0.6},
                       pos_correction = {0, 0, 0.2},
                       argument  = 191},
                     -- Tail Position Light (White)
                       {typename = "omnilight",
                       connector = "Tail_Position_Light_01",
                       color = {1, 1, 1},
                       pos_correction  = {0, 0, 0},
                       argument  = 203}
                    }
         },

   [4] = {    typename = "collection",
               lights = {{typename = "collection",
                          lights = {
                                    -- Top Formation Light (white)
                                    {typename = "omnilight",
                                     connector = "Top_Fuselage_Light_Red",
                                     color = {0.99, 0.11, 0.3},
                                    },
                                    {typename  = "argumentlight", argument = 202},
                                    -- Bottom Formation Light (white)
                                    {typename = "omnilight",
                                     connector = "Bott_Fuselage_Light_Red",
                                     color = {0.99, 0.11, 0.3},
                                    },
                                    {typename  = "argumentlight", argument = 201},
                                   }
                           },
                           -- Electroluminescent formation lights
                           {typename  = "argumentlight", argument = 200},
                        }
                                   },
   [5]    = {typename = "collection",
           lights = {
                       	{-- Left Wing Floodlight
                               typename  = "spotlight",
                               position  = {-3.038, -0.028, -3.925},
                               color = {1.0, 1.0, 1.0},
                               intensity_max = 6.0, angle_max = 0.45,
                               direction = {azimuth = math.rad(45)},
                               argument = 211,
                               dont_change_color = false,
                               angle_change_rate = 0
                              },
                              {
                               -- Right Wing Floodlight
                               typename = "spotlight",
                               position  = {-3.038, -0.028, 3.925},
                               color = {1.0, 1.0, 1.0},
                               intensity_max = 6.0,
                               angle_max = 0.45,
                               direction = {azimuth = math.rad(-45)},
                               argument = 210,
                               dont_change_color = false,
                               angle_change_rate = 0
                              }
                       }
                   },
                   -- UARRSI light
                   {
                       typename = "omnilight", position  = {-0.586, -0.395, 1.976}, color = {1, 1, 1}
                   }
                 },
           }
       }
   },
}


Edited by SkateZilla

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

So the Taxi Light is the one that's backwards?

 

I'll check my Material Settings when i get home, which wont be for at least 5-6 hours.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

im using a custom TGA i made a while back for a different flight sim, and custom 3d arrangement in max, i never liked the Stock DCS Snowball Light TGAs.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

We are using SFM right now.

 

im in office right now, but I'll Post Video/Images of our lights tonite.

 

I think I use Fake Omni Light in Max, but im not sure, I know Strobes, Red and Green Both Have light on the ground.

 

As for the Parking/Taxi Lights, Find out which one is pointing backwards (disable one and run DCSW).

 

then rotate the connector point 180 degrees.

 

I also appears that you have a light position set under the aircraft that shines onto the ground directly below it.

 

 

 

as for LUA, this is how it's setup for me right now, everything but tail strobe and wing floods work (SU-25 doesnt have systems/command for human player to toggle them, AI can Toggle strobes, but I havent Seen the Floods on.) (the coding for the floods/refuel light arent completed yet).

 

lights_data = {
   typename = "collection",
   lights = {
   [1] = { typename = "collection",
           lights = {-- Left Anticollision Light
                       {typename = "natostrobelight",
                       connector = "Left_Position_Light_Red",
                       argument_1 = 195,
                       period = 1.2,
                       phase_shift = 0},
                     -- Right Anticollision Light
                       {typename = "natostrobelight",
                       connector = "Right_Position_Light_Green",
                       argument_1 = 196,
                       period = 1.2,
                       phase_shift = 0},
                     -- Vertical Stab Anticollision Light
                       {typename = "natostrobelight",
                       connector = "Top_Tail_Light_Bano",
                       argument_1 = 192,
                       period = 1.2,
                       phase_shift = 0},
                     }
            },
   [2] = { typename = "collection",
           lights = {-- Landing light
                       {typename = "spotlight",
                       connector = "MAIN_SPOT_PTR001",
                       argument = 209,
                       dir_correction = {elevation = math.rad(-1)}},
                       -- Landing/Taxi light
                       {typename = "spotlight",
                       connector = "MAIN_SPOT_PTR002",
                       argument = 208,
                       dir_correction = {elevation = math.rad(3)}},
                    }
         },
   [3]    = {    typename = "collection",
           lights = {-- Left Position Light (Red)
                       {typename = "omnilight",
                       connector = "Left_Position_Light_Red",
                       color = {0.99, 0.11, 0.3},
                       pos_correction  = {0, 0, -0.2},
                       argument  = 190},
                     -- Right Position Light (Green)
                       {typename = "omnilight",
                       connector = "Right_Position_Light_Green",
                       color = {0, 0.894, 0.6},
                       pos_correction = {0, 0, 0.2},
                       argument  = 191},
                     -- Tail Position Light (White)
                       {typename = "omnilight",
                       connector = "Tail_Position_Light_01",
                       color = {1, 1, 1},
                       pos_correction  = {0, 0, 0},
                       argument  = 203}
                    }
         },

   [4] = {    typename = "collection",
               lights = {{typename = "collection",
                          lights = {
                                    -- Top Formation Light (white)
                                    {typename = "omnilight",
                                     connector = "Top_Fuselage_Light_Red",
                                     color = {0.99, 0.11, 0.3},
                                    },
                                    {typename  = "argumentlight", argument = 202},
                                    -- Bottom Formation Light (white)
                                    {typename = "omnilight",
                                     connector = "Bott_Fuselage_Light_Red",
                                     color = {0.99, 0.11, 0.3},
                                    },
                                    {typename  = "argumentlight", argument = 201},
                                   }
                           },
                           -- Electroluminescent formation lights
                           {typename  = "argumentlight", argument = 200},
                        }
                                   },
   [5]    = {typename = "collection",
           lights = {
                           {-- Left Wing Floodlight
                               typename  = "spotlight",
                               position  = {-3.038, -0.028, -3.925},
                               color = {1.0, 1.0, 1.0},
                               intensity_max = 6.0, angle_max = 0.45,
                               direction = {azimuth = math.rad(45)},
                               argument = 211,
                               dont_change_color = false,
                               angle_change_rate = 0
                              },
                              {
                               -- Right Wing Floodlight
                               typename = "spotlight",
                               position  = {-3.038, -0.028, 3.925},
                               color = {1.0, 1.0, 1.0},
                               intensity_max = 6.0,
                               angle_max = 0.45,
                               direction = {azimuth = math.rad(-45)},
                               argument = 210,
                               dont_change_color = false,
                               angle_change_rate = 0
                              }
                       }
                   },
                   -- UARRSI light
                   {
                       typename = "omnilight", position  = {-0.586, -0.395, 1.976}, color = {1, 1, 1}
                   }
                 },
           }
       }
   },
}

thanks, works perfectly all, thanks alot, my prolem was the dir_position of each light in lua, they were wrong, the cockpit light, has it?only a question can you send me a explain about how can I fly my aircraft?When I select my aircraft my dcs crash, why?thanks, answer if you want in a PM

Link to comment
Share on other sites

crash or does it start loading then stop at 50% and bump you back to the menu?

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

Check for missing punctuation in your scripts, those pesky , and ; always seem to be the issue.

i7 7700K | 32GB RAM | GTX 1080Ti | Rift CV1 | TM Warthog | Win 10

 

"There will always be people with a false sense of entitlement.

You can want it, you can ask for it, but you don't automatically deserve it. "

Link to comment
Share on other sites

Check for missing punctuation in your scripts, those pesky , and ; always seem to be the issue.

 

dofile(LockOn_Options.script_path.."config.lua")

shape_name = Cockpit-MirageF1M

is_EDM = true

new_model_format = true

if not new_shape then

shift = {-0.228, 0.0, 0}

rotation = math.rad(5.17)

end

 

--glass_name = LockOn_Options.script_path.."../Resources/Model/Shape/A10C-GLASS" -- prehistoric junk

ambient_light = {255,255,255}

 

ambient_color_day_texture = {72, 100, 160}

ambient_color_night_texture = {40, 60 ,150}

 

ambient_color_from_devices = {50, 50, 40}

ambient_color_from_panels = {35, 25, 25}

 

dusk_border = 0.4

 

--alfa_blend_disable_material = {"Dash-Board Arrows", "Ki13"}

draw_old_cockpit = false

draw_pilot = false

 

external_model_canopy_arg = 38

 

--use_external_views = true

 

this that I have

Link to comment
Share on other sites

was it doing that the entire time or after you changed the light code?

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...