1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Posting restricted: Only the BeamNG team members can post in this sub-forum in order to prevent spam. If you really want to comment on something, please create/reuse a thread in General chat and quote the post in question - sorry for the inconvenience.

Micro Blog(s) - 2017

Discussion in 'Developer Section' started by tdev, Jan 2, 2017.

  1. Diamondback

    Diamondback
    Expand Collapse
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    740
    Little update from my side:
    We have decided to not allow any shift anymore. Previously, the game did not use any safeguards against weird or almost impossible shifts, for example it let you shift into too low gears, overrevving the engine or let you shift without using the clutch (essentially assuming unlimited force to engage the gear and applying gear damage at the same time).
    We now moved away from this and implemented several safe guards and changes to this:
    • There's a new "Gearbox safety" option which prevents you from using gears that would exceed the engine's maximum rpm, the game will simply reject the shift
    • This also applies to switching non manual transmission modes (for example going from D to 2/1)
    • In addition to that we made the switch to rejecting shifts that did not use the clutch at all. While we are still working on this and we might change the design slightly, the idea is to prevent users from "cheating" by not using the clutch while tolerating the applied gear damage. We also try not to interfere too much with users that don't press the clutch far enough.
     
    • Like x 36
    • Awesome x 24
    • Informative x 8
    • Agree x 1
    • Funny x 1
    • Useful x 1
  2. Diamondback

    Diamondback
    Expand Collapse
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    740
    A little update on the previous blog:
    • There has been some confusion about whether the gearbox safety will be enforced or an option. Of course it will be an option :) We won't restrict your joy in destroying your favorite gearbox if you so wish
    • The reason the safety option has been added is that overrevving now causes serious damage, so it tends to destroy your engine pretty quickly if you don't watch out. To prevent frustration about that, the gearboxes will protect themselves a bit better when that option is enabled
    • In addition we switched from outright rejecting shifts to "cutting power" for a short time. This makes it much less frustrating to miss a shift while still penalizing you for it
     
    • Like x 32
    • Awesome x 24
    • Informative x 13
    • Funny x 2
    • Agree x 1
    • Useful x 1
  3. tdev

    tdev
    Expand Collapse
    Developer
    Staff Member

    Joined:
    Aug 3, 2012
    Messages:
    2,643
    Working on things, loving the cappuccino freddo :D
     

    Attached Files:

    • IMG_20170720_124512.jpg
    • Like x 40
    • Awesome x 25
    • Funny x 9
    • Agree x 3
    • Informative x 3
    • Useful x 1
  4. tdev

    tdev
    Expand Collapse
    Developer
    Staff Member

    Joined:
    Aug 3, 2012
    Messages:
    2,643
    Work, 10+h days, not holidays guys :)
     

    Attached Files:

    • IMG_20170721_122901.jpg
    • Like x 36
    • Awesome x 20
    • Funny x 8
    • Informative x 6
    • Agree x 3
    • Useful x 2
  5. Goosah

    Goosah
    Expand Collapse
    Global Moderator
    Staff Member

    Joined:
    Aug 29, 2013
    Messages:
    723
    Just a little detail to show you, I added adjustable caster to most of the cars in the tuning menu. Adding more caster usually results in stronger self steering forces, making drifting more predictable. However too much can be a bad thing, upsetting the balance of the car due to weight jacking, as well as negatively affecting bump steer and steering ackerman.

    Also if you look closely, you will see that we added a smoother way to implement the alignment changes, this way the suspension should no longer become damaged or break from extreme alignment setups.

    Video - Click to Play - Direct Link
     
    • Awesome x 38
    • Like x 25
    • Informative x 4
    • Useful x 3
    • Agree x 1
    • Funny x 1
  6. Diamondback

    Diamondback
    Expand Collapse
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    740
    Finally got around to fixing that DCT bug where you could drive in the wrong direction for a brief moment when switching from R to D (or vice versa) under somewhat unrealistic circumstances :)
     
    • Like x 39
    • Awesome x 25
    • Useful x 4
    • Agree x 1
    • Funny x 1
    • Informative x 1
  7. tdev

    tdev
    Expand Collapse
    Developer
    Staff Member

    Joined:
    Aug 3, 2012
    Messages:
    2,643
    Buildbot broke, we needed to reinstall its OS and compilation environment, took us until 4am yesterday. Testing out the Jenkins Pipeline jobs to build the game. (This is an accelerated quick build, the complete build takes around 20 minutes):


    And the steps to upload the game to steam:


    Lots of work on things you will never see ^^
     
    #27 tdev, Aug 16, 2017
    Last edited: Aug 16, 2017
    • Like Like x 30
    • Informative Informative x 20
    • Awesome Awesome x 13
    • Funny Funny x 1
  8. Diamondback

    Diamondback
    Expand Collapse
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    740
    Something new in something old.
    Video - Click to Play - Direct Link
     
    • Awesome x 24
    • Like x 13
    • Agree x 2
    • Funny x 1
    • Informative x 1
  9. Diamondback

    Diamondback
    Expand Collapse
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    740
    Work in progress :)
    Video - Click to Play - Direct Link
     
    • Awesome x 114
    • Like x 32
    • Agree x 1
    • Funny x 1
    • Informative x 1
  10. Diamondback

    Diamondback
    Expand Collapse
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    740
    Just a little feature for you drag fans out there :)
    Video - Click to Play - Direct Link
     
    • Awesome x 64
    • Like x 30
    • Agree x 2
    • Funny x 2
    • Informative x 1
    • Useful x 1
  11. Diamondback

    Diamondback
    Expand Collapse
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    740
    A tiny little detail, but like most real life transmissions the M mode now does actually shift down automatically if your rpm drops to almost idle.
    This ensures the car won't bog down too much and makes driving in M mode much easier.

    Video - Click to Play - Direct Link
     
    • Like x 31
    • Awesome x 19
    • Informative x 2
    • Agree x 1
    • Funny x 1
    • Useful x 1
  12. Goosah

    Goosah
    Expand Collapse
    Global Moderator
    Staff Member

    Joined:
    Aug 29, 2013
    Messages:
    723
    The lateral damping of our tire carcass was too low before, but we found a way to increase it by 4-5x by using specialized damping. This has also made the tires feel more direct, predictable, and smooth through ffb.

    Left is old, Right is new. I used the most wobbly old bias ply tires to make it easy to see the difference.

    Video - Click to Play - Direct Link
     
    • Awesome Awesome x 67
    • Like Like x 33
    • Informative Informative x 2
    • Funny Funny x 1
  13. Diamondback

    Diamondback
    Expand Collapse
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    740
    A little more information on how the N2O system works:
    The basic components are:
    • N2O tank with a given capacity and actual content
    • Purge valve nodes
    • N2O controller which just acts as a little proxy to enable/disable things
    • Of course the added power can be selected either via hardcoded values in jbeam or for example with a slider in the tuning tab
    You have two basic modes of operation:
    • Automatic injection
    • Manual injection
    The automatic injection has a minimum RPM, a minimum gear and only actually injects any N2O with full throttle and when not on the clutch.
    It can be armed/disarmed (arming also triggers a short purge visual) via a key binding, everything else then happens automatically.

    The manual injection on the other hand does not have these safety guards, does not purge and just lets you inject N2O whenever you want really.
    This has a couple of drawbacks. To prevent slipping of clutches the actual torque from the N2O system is taken into account while calculating the clutch torque, however, this uses the minimum RPM from the automatic injection as a baseline. So when you manually inject at lower RPMs, you'll likely slip the clutch.

    (Purging is just a visual thing btw)

    For those that don't know how N2O works and why the above issue exists: N2O injection essentially adds a constant power offset to your engine (hence the "xyzHP shot" names), however, since essentially power = RPM * torque (with the right units) having an additional 100hp at low RPMs requires a much higher additional torque compared to another 100hp at 5000 RPM.
    To ensure the maximum powertrain stability we always want the clutch torque to be as low as possible, so making it work with insane amounts of torque at very low RPMs does not make sense.

    Using N2O in the game also touches various other parts that we are still working on. (For example engine thermals, efficiency, durability etc)
    Don't expect miracles though, we work with what we have engine wise, so you're not getting some sort of new and highly detailed engine simulation ;)
     
    • Awesome x 36
    • Like x 14
    • Informative x 9
    • Agree x 2
    • Useful x 1
  14. Goosah

    Goosah
    Expand Collapse
    Global Moderator
    Staff Member

    Joined:
    Aug 29, 2013
    Messages:
    723
    Fans of trucks and solid axle vehicles will appreciate the newly added torque reaction features. Important results of that are:
    • Chassis twist, very relevant in heavy trucks
    • Asymmetric tire loading from driveshaft torque. Due to the driveshaft torque twisting the solid axle, these cars will tend to spin the rear right tire, and tend to handle differently left vs. right under power
    • Engine rocking when revving due to flywheel inertia
    • Engine rocking due to the opposite reaction of the driveshaft torque
    Video - Click to Play - Direct Link
     
    #34 Goosah, Oct 18, 2017
    Last edited: Oct 18, 2017
    • Awesome x 78
    • Like x 17
    • Funny x 2
    • Informative x 1
    • Useful x 1
  15. Diamondback

    Diamondback
    Expand Collapse
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    740
    • Awesome x 20
    • Like x 10
    • Agree x 2
    • Useful x 2
    • Funny x 1
    • Informative x 1
  16. thomatoes50

    thomatoes50
    Expand Collapse
    Staff Member

    Joined:
    Jan 31, 2013
    Messages:
    342
    Hot-loading for Mesh is fixed too

    Video - Click to Play - Direct Link
     
    • Awesome x 31
    • Like x 14
    • Funny x 6
    • Useful x 3
    • Agree x 2
    • Informative x 1
  17. stenyak

    stenyak
    Expand Collapse
    Staff Member

    Joined:
    Aug 6, 2012
    Messages:
    798
    Currently working on small improvements for the spawn algorithm of External camera. Here's some debug visualizations of two of its worst enemies:

    One of them is curved tunnels:

    The other is... fast tunnels:


    Red lines are the reasons why specific spawn configurations were discarded.
    Blue lines are those discarded spawn configurations: each blue line represents the predicted camera path during its panning movement. If the camera was static, it would be just a point, rather than a line.
    The black line represents the chosen spawn point. Green sphere is the original position, white is its current position, red will be the final position, if everything goes according to the basic predictions we performed at the beginning of the take.
     
    • Awesome x 22
    • Like x 12
    • Informative x 8
    • Agree x 2
    • Useful x 2
    • Funny x 1
  18. tdev

    tdev
    Expand Collapse
    Developer
    Staff Member

    Joined:
    Aug 3, 2012
    Messages:
    2,643
    Sneak peak, work in progress :)
     

    Attached Files:

    • IMG_20171114_225348.jpg
    • Awesome x 64
    • Like x 19
    • Agree x 2
    • Funny x 2
    • Informative x 2
    • Useful x 1
  19. stenyak

    stenyak
    Expand Collapse
    Staff Member

    Joined:
    Aug 6, 2012
    Messages:
    798
    This is a statistical profiler, and is one of the tools a developer can use to optimize software:
    profiler.png

    It sneakily gathers stats about what the program is internally doing at intervals, for a period of time. If this profiler thingie caught BeamNG.drive doing the same thing (in the same function of code) 90% of the times it has taken a look, then it would mean we are probably spending 90% of the time there.

    More samples means more reliable stats. In this case, the profiler has taken 62.000 samples while I was recording a replay of an ETK K-series doing burnouts and donuts.

    Once you know what the cpu time is used for, you have a better idea of where it might be worth to spend your time optimizing. As you analyze and rework the chosen code, you run the profiler again to verify the results are indeed what you expect (they not always are).

    In this case, the changes resulted in roughly a 0.6% increase in framerate for that specific replay recording scenario in my computer.
     
    • Awesome x 32
    • Informative x 15
    • Like x 14
    • Agree x 3
    • Useful x 3
    • Funny x 1