1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

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

Automatic Transmissions..

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by iheartmods, Feb 3, 2013.

  1. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    I figured I move this post to the questions thread...

    Hi Forum/Devs,

    Now, I remember a while back, probably at the start of the programming, you guys talked about incorporating a realistic automatic transmission code with realistic kick-downs (IE gear 4 goes to gear 2 when you bury the pedal) and vice versa (you let off the throttle in gear 2, the transmission automatically upshifts to 4).

    If this is confirmed, for me, the simulator just got a hell of a lot more realistic

    /threads/46-Transmissions

    -I'm referencing this post from back in August, just looking for an update
     
  2. gabester

    gabester
    Expand Collapse
    Vehicle Director
    BeamNG Team

    Joined:
    Jun 6, 2012
    Messages:
    2,653
    Confirmed, and as of today, the basics are working :)
     
  3. Mythbuster

    Mythbuster
    Expand Collapse

    Joined:
    Aug 11, 2012
    Messages:
    782
    Talking about transmissions, there's some things I'd gladly see changed from the latest RoR versions. I know you guys said it'll be possible and easy to change stuff easily with lua scripting, and that no silly bugs from RoR would be carried over and whatnot, but I still feel this might be something discussion worthy:



    In RoR 0.4.0, when you were standing still in automatic transmission mode, the brake would be applied. In itself that wasn't always a bad thing(since yes, on an auto you would press the brake or it will idle itself forward). However, when you were driving up a steep hill, sometimes you want the car to roll backwards to get a better run-up, but you couldn't because the brake was applied. On top of that, afaik you still just need to press the brake pedal on an automatic tranny for it to brake, so I think that's something that could be "reverted".


    The other thing I felt was a pain in the butt, in short: I'd like to see the function back that you can use the manual up and down buttons to also work for the automatic transmission like they did in RoR 0.38 and 0.39. It might not have been entirely realistic in some aspects(ie most automatic cars won't let you shift manually between 3rd, 4th and 5th), but having to reach for the keyboard everytime you want to reverse is a bit silly as well.

    On top of that, in 0.4.0 you couldn't use the normal up-down shift buttons in automatic transmission to shift to reverse. Ie I had A and Z as up and down shift buttons for in manual, and page up page down for up and down from say, Reverse to Neutral to Drive. In 0.39 and lower, using automatic transmission, you could use A and Z to shift through all the drive-gears but also to shift from first gear down to neutral and reverse. In 0.4.0 that was "fixed": You could only use page up and page down to shift from Drive in to neutral and reverse, and use A and Z to shift from first through fifth, but in auto-mode, you couldn't switch back to reverse anymore. Again, in itself that's not a big deal when you're using a keyboard, but when you're using a controller it gets annoying, taking my Xbox controller for example: I use B to shift up, and X to shift down for manual transmission.

    It worked fine in auto-mode in 0.39 and lower, I could shift down to reverse whenever I felt like it, without touching the keyboard, and I still had the "laziness"-advantage of not having to shift between first through fifth manually.
    But like I said, with the new tranmission in 0.4.0, I can't shift to reverse using the controller in auto-mode, so I have to reach over to the keyboard to press page down or page up...

    You can probably see where this is going: When I go off-roading, and I can't get up a hill and want to roll back down and get a run-up, the brakes get applied so I have to shift down to neutral or reverse, but then I have to reach for the keyboard to press page-down, because my controller becomes useless for shifting. And I don't like having to switch to manual either because I don't want to keep shifting between all forward gears manually(I usually forget to shift down when I'm driving in games in manual).
     
  4. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    Excellent!!!
     
  5. gabester

    gabester
    Expand Collapse
    Vehicle Director
    BeamNG Team

    Joined:
    Jun 6, 2012
    Messages:
    2,653
    There will be a distinction between manual vs. automatic transmissions on the level of the transmission part itself. So a manual transmission won't have P R N D etc, and an automatic transmission won't allow manually selecting forward gears (with the exception of the 1 and 2 that most automatics allow for). Shift up and shift down will be the same buttons for automatics and manuals. So in an automatic transmission car, shifting will only move through the automatic gears. In a manual, there won't be any automatic gears, and shifting will only move through the manual gears. If you have automatic shifting enabled while driving a manual car, it'll work like an automated manual does in most racing games, shifting at (roughly) optimum RPM.
     
  6. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    I hope you will say that real-world style kickdowns/ opposite are programmed?
     
  7. djmengu

    djmengu
    Expand Collapse

    Joined:
    Feb 19, 2013
    Messages:
    86
    He said transmissions are not coded in C++, if you know some programming and have an idea for improving the transmission you will be able to implement it by lua scripting.
     
  8. gabester

    gabester
    Expand Collapse
    Vehicle Director
    BeamNG Team

    Joined:
    Jun 6, 2012
    Messages:
    2,653
    Yes, everything is in Lua, and you can very easily code a new transmission type. A CVT (Continously Variable Transmission) for example would be entirely possible, or you could make a new type of automatic with different behavior from the standard one.
     
  9. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    For people who have no coding experience like me, is coding in LUA difficult?
     
  10. gabester

    gabester
    Expand Collapse
    Vehicle Director
    BeamNG Team

    Joined:
    Jun 6, 2012
    Messages:
    2,653
    It's hard to say. If you have the mind for it you can probably pick it up fairly quickly. It's far easier than C++. If you know something similar like Python (like I did) then Lua is easy to figure out.
     
  11. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    mmmmmmmmmm....... yeahhh.. Well, we all learn somewhere! Would LUA code examples from BeamNG be too hard to learn off of or should I go through several tutorials? (...when the Sim releases)

    PS, does RoR use any LUA scripting? Maybe I could practice there if it does..

    - - - Updated - - -

    Another question I have is...coding in LUA or Python, in English whatsoever (if you know what I mean) or is it mundane coding language
     
  12. Bubbleawsome

    Bubbleawsome
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,887
    When you boot blender you will see python
    Code:
    File "<blender_console>", line 1
        /start blend
        ^
    SyntaxError: invalid syntax
    
    is what it will give you if you goof off. :p
     
  13. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    seems ok for coding nubs..
     
  14. Michaelflat

    Michaelflat
    Expand Collapse

    Joined:
    Jul 10, 2014
    Messages:
    1,543
    CVT isn't fully programmable yet but you can stimulate it by having one gear (1.0 is a good ratio) and change the viscous coupling to 2 or 3 (depending on the torque that the engine outputs)
     
  15. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    Bump and false. Per vehicle lua has since allowed true CVT simulation which is in use on the sunburst.
     
  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