1. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  2. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.25 Bug Reporting thread
    Solutions and more information may already be available.

Change behaviour of signals

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Paulca, Aug 22, 2020.

  1. Paulca

    Paulca
    Expand Collapse

    Joined:
    Aug 22, 2020
    Messages:
    12
    Hi , complete noob on beamng , I'm trying to change the left / right signals so that they're not toggled .... ie whilst pressing down a controller button the signal is ON , when releasing the button the signal goes OFF.

    Any advice on how to do this would be gratefully received.
     
  2. Phym

    Phym
    Expand Collapse

    Joined:
    Jan 1, 2020
    Messages:
    1,379
    One push=on
    Second push=off
    It’s that simple.
     
  3. Paulca

    Paulca
    Expand Collapse

    Joined:
    Aug 22, 2020
    Messages:
    12
    Hi thanks for replying, I've built a realistic cockpit with real car controls (trying to teach my kids to drive) . I could do with some advice on customising the bindings behaviour for the turn signals. the signal needs to turn on when a switch is closed then stay on until the switch is open again.... but the default behaviour is to toggle , so as it is I have to turn the left signal on , signal light starts flashing, turn the left signal switch off ... it keeps flashing....I have to turn the left signal on again to stop the light flashing.

    I presume I need to edit some code somewhere , I did find a LUA file with a toggle_left_signal function, but can't find where that gets called from.

    Any help greatly appreciated.
     
  4. Phym

    Phym
    Expand Collapse

    Joined:
    Jan 1, 2020
    Messages:
    1,379
    :confused: The signal turns off immediately, try it on your keyboard.
     
  5. Paulca

    Paulca
    Expand Collapse

    Joined:
    Aug 22, 2020
    Messages:
    12
    Hi Phym, yes I know, but I've got it wired up to a real car signal control stalk, I. need to change the behaviour as mentioned above.
     
  6. FS16

    FS16
    Expand Collapse

    Joined:
    Feb 18, 2015
    Messages:
    993
    no, they want the signal to be triggered only while the input is pressed, like a real stalk would work, and not for the input to act as a toggle.

    OP, I sadly have no idea how to do it, but it definitely seems doable if someone with experience with BeamNG's lua jumps in
     
    • Like Like x 1
  7. Phym

    Phym
    Expand Collapse

    Joined:
    Jan 1, 2020
    Messages:
    1,379
    Wait, are you talking about the animation?
    Or are you saying the turn signal will be on only when the user is holding the button? Wouldn’t that counterattack the much easier system currently?
     
  8. FS16

    FS16
    Expand Collapse

    Joined:
    Feb 18, 2015
    Messages:
    993
    read the thread again. they have a replica of a real car interior with an actual turn signal stalk, it doesnt work properly with the current controls
     
  9. Phym

    Phym
    Expand Collapse

    Joined:
    Jan 1, 2020
    Messages:
    1,379
    How come? The stalk just stays down until you press the button. Or am I missing something, as the wording OP has is very confusing.
     
  10. Paulca

    Paulca
    Expand Collapse

    Joined:
    Aug 22, 2020
    Messages:
    12
    Sorry if it's confusing .... this is what I need

    button down=on
    button up=off

    instead of

    button pressed once = on
    button pressed again = off
     
    • Like Like x 1
  11. Phym

    Phym
    Expand Collapse

    Joined:
    Jan 1, 2020
    Messages:
    1,379
    Oh, I see.
     
  12. esesel

    esesel
    Expand Collapse

    Joined:
    Feb 18, 2019
    Messages:
    585
    I sadly can't help you. The lack of support for custom controllers, is really holding beams potential back... My plans to make a custom dash with indicator stick, real buttons and realistic automatic gear lever were spoiled by beams lacking keybindings in the past (they should take an example from ED with DCS)... But I'd love to see what you have... Do you have a photo, or is it just a plan for now...
    Also I guess you could configure a Arduino to generate a custom button press sequence translated from the sensors of the indicator stick... Something like: "left indicator on - left indicator of" to "comma - comma again". Since beam supports OutGauge you could even get the automatic "return to indicator off when going over the neutral steering position" by ways of servo motor to work... But I'm no expert on Arduino stuff, tho I bet it's rather easy with a little research and tinkering...
     
  13. ltntai

    ltntai
    Expand Collapse

    Joined:
    Mar 18, 2017
    Messages:
    523
    All game cars have automatic turn signal cancel after a turn. With your setup just switch the lever back to center?
     
  14. Paulca

    Paulca
    Expand Collapse

    Joined:
    Aug 22, 2020
    Messages:
    12
    It must be quite a simple change, as the parking brake works like this.
    I've got the clutch, manual gears working a charm, you can assign a different switch to each gear, it is pretty much as a real car would be, just the damned turn signals. The. pedals work using an arduino pro , the gearshifter uses one of those generic USB joystick boards (they're about £8 on amazon) , and I've wired the turn signals onto that.... it's so close
     
  15. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    3,026
    This is actually a super cool idea and I think you should document your progress on this super realistic be,ang sim in another thread!
     
  16. Paulca

    Paulca
    Expand Collapse

    Joined:
    Aug 22, 2020
    Messages:
    12
    Yeah, that works , but it's just not perfect... e.g. if you're pulled over at the side of the road, and then turn the signal on to set off. Did I mention I'm using this to teach my kids to drive ? so trying to get it as realistic as possible.
     
  17. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    3,026
    I mean I would just use... ya know... an actual car. But you do you.
     
  18. Paulca

    Paulca
    Expand Collapse

    Joined:
    Aug 22, 2020
    Messages:
    12
    We've hit a bit of a backlog in the UK since lockdown, very hard to get driving lessons round my area. I've got 17 year old twins. Adding them to my car insurance would be nearly £3000 , sending them out with an instructor is £25 per hour each ..... this sim has cost me about £30 in bits so far...plus you know, I love a challenge ! If I can save them even 1 lesson each it's paid for itself, and I can play my racing sims on it ;)
     
  19. Shadier

    Shadier
    Expand Collapse
    Banned

    Joined:
    Jun 3, 2019
    Messages:
    65
    I sadly really can't help you but I hope someone experimented can help you on this sim. The idea is sick.
     
  20. Paulca

    Paulca
    Expand Collapse

    Joined:
    Aug 22, 2020
    Messages:
    12
    Also could do with some more maps that drive on the left. I'm using an Australian map atm, which is very similar to UK road signs, but it's up in the mountains , could do with something a bit more urban with a few more junctions / traffic lights etc.
     
  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