Solved Problem with lightmaps - headlight is also turning on brake, blinker, etc.

Discussion in 'Mod Support' started by naguluna, May 9, 2017.

  1. naguluna

    naguluna
    Expand Collapse

    Joined:
    Aug 31, 2013
    Messages:
    345
    Hello, i made this therad to ask how can i solve this this:

    Because my mod is based on the ibishu covet shares the same lights "behavior"
    when i turn on the lights the blinkers and brake lights also turn on
    screenshot_00012.png screenshot_00011.png
    i want tem to be separate (like is on the real car)
    i'm scratching my head trying to figure this out.
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    How are the materials in there set up?
    You should have a different material for each part (ie. brakes, signal, reverse, etc)
     
  3. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    @nahuelito007 Have you solved this issue / are you still working on this?
     
  4. naguluna

    naguluna
    Expand Collapse

    Joined:
    Aug 31, 2013
    Messages:
    345
    I think they are set up correctly
    op.png op2.png
    (sorry i ignored your reply, i missed completly the notification)

    I was working on other things but i still haven't solved this
     
  5. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    Could you post your glowmaps section here?
     
  6. naguluna

    naguluna
    Expand Collapse

    Joined:
    Aug 31, 2013
    Messages:
    345
    singleton Material(uno_reverselight)
    {
    mapTo = "uno_reverselight";
    };

    singleton Material(uno_signal_R)
    {
    mapTo = "uno_signal_R";
    };

    singleton Material(uno_signal_L)
    {
    mapTo = "uno_signal_L";
    };

    singleton Material(uno_headlight)
    {
    mapTo = "uno_headlight";
    };

    singleton Material(uno_parkinglight)
    {
    mapTo = "uno_parkinglight";
    };

    singleton Material(uno_chmsl)
    {
    mapTo = "uno_chmsl";
    };

    singleton Material(uno_taillight)
    {
    mapTo = "uno_taillight";
    };

    singleton Material(uno_highbeam)
    {
    mapTo = "uno_highbeam";
    };
     
  7. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    That's your materials section , but how does the glowmaps section work ?
     
  8. naguluna

    naguluna
    Expand Collapse

    Joined:
    Aug 31, 2013
    Messages:
    345
    sorry for my ignorance, you mean this right?

    "glowMap":{
    "uno_signal_L": {"simpleFunction":{"lowhighbeam":0.49,"signal_L":0.49}, "off":"uno_lights", "on":"uno_lights_on", "on_intense":"uno_lights_on_intense"},
    "uno_signal_R": {"simpleFunction":{"lowhighbeam":0.49,"signal_R":0.49}, "off":"uno_lights", "on":"uno_lights_on", "on_intense":"uno_lights_on_intense"},
    "uno_taillight": {"simpleFunction":{"brake":0.49,"lowhighbeam":0.49}, "off":"uno_lights", "on":"uno_lights_on", "on_intense":"uno_lights_on_intense"},
    "uno_chmsl": {"simpleFunction":{"brake":100}, "off":"uno_lights", "on":"uno_lights_on", "on_intense":"uno_lights_on_intense"},
    "uno_headlight": {"simpleFunction":{"lowbeam":0.49,"highbeam":0.49}, "off":"uno_lights", "on":"uno_lights_on", "on_intense":"uno_lights_on_intense"},
    "uno_parkinglight": {"simpleFunction":{"highbeam":1}, "off":"uno_lights", "on":"uno_lights_on", "on_intense":"uno_lights_on_intense"},
    "uno_reverselight": {"simpleFunction":{"reverse":0.49}, "off":"uno_lights", "on":"uno_lights_on", "on_intense":"uno_lights_on_intense"},
    "uno_gauges": {"simpleFunction":{"lowhighbeam":0.6}, "off":"uno_gauges", "on":"uno_gauges_on" },
    //gauge lights
    "signal_L": {"simpleFunction":"signal_L", "off":"invis", "on":"decals_gauges"},
    "signal_R": {"simpleFunction":"signal_R", "off":"invis", "on":"decals_gauges"},
    "checkengine": {"simpleFunction":"checkengine", "off":"invis", "on":"decals_gauges"},
    "hazard": {"simpleFunction":"hazard", "off":"invis", "on":"decals_gauges"},
    "battery": {"simpleFunction":"battery", "off":"invis", "on":"decals_gauges"},
    "highbeam": {"simpleFunction":"highbeam", "off":"invis", "on":"decals_gauges"},
    "parkingbrake": {"simpleFunction":"parkingbrake", "off":"invis", "on":"decals_gauges"},
    "lowfuel": {"simpleFunction":"lowfuel", "off":"invis", "on":"decals_gauges"},
    "lowpressure": {"simpleFunction":"lowpressure", "off":"invis", "on":"invis"},
    "abs": {"simpleFunction":"abs", "off":"invis", "on":"decals_gauges"},
    "light_generic":{"simpleFunction":{"highbeam":0.6}, "off":"light_generic", "on":"light_generic_on", "on_intense":"light_generic_on_intense"},
    },
     
  9. Inertia

    Inertia
    Expand Collapse

    Joined:
    Dec 29, 2015
    Messages:
    1,692
    If you look at the top, your signals are mapped to come on when the lowhighbeam function is activated, which AFAIK is when the lights are on, both lowbeam and highbeam. Try disabling that section and see if you get the result you want.
     
    • Like Like x 1
  10. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    Use the code tag to copy Jbeams :)

    "uno_signal_L": {"simpleFunction":{"lowhighbeam":0.49,"signal_L":0.49}, "off":"uno_lights", "on":"uno_lights_on", "on_intense":"uno_lights_on_intense"},

    This tells the game to switch the 'uno_signal_L' when you use lowhighbeams & signal.
    You want to remove the red part, so that it lights up only when you use the signal.
    The same for rest.
     
    #10 Nadeox1, May 26, 2017
    Last edited: May 26, 2017
    • Like Like x 1
  11. naguluna

    naguluna
    Expand Collapse

    Joined:
    Aug 31, 2013
    Messages:
    345
    That solved it! thank you so much!
     
    • Like Like x 1
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice