Problem
BeamNG simulates the drivetrain in great detail, but the stock cars drive without the electronics around it: automatics hang in gear after you lift off, there is no launch control and no proper DSC modes.
BMW-style driving electronics for BeamNG.drive.
A BeamNG.drive mod that loads into every car and adds what a current BMW does on the road: drive profiles from ECO PRO to SPORT+, DSC, DTC and DSC OFF, xDrive, launch control, auto start-stop, auto hold and coasting. Each feature checks whether the car has the hardware for it and stays off otherwise. On top come rain with wet roads on any map and optional aquaplaning per tyre. For the ETK 800 it adds eight Touring setups, the 320d, 330d, 340d and 340i each with rear-wheel drive and xDrive, tuned to the real cars' figures, plus an F31-style instrument cluster in beta. A fan project, not affiliated with BMW or BeamNG.
~ $ gh repo view jx-grxf/beamng-drivetech
DriveTech BMW-style driving electronics for BeamNG.drive.
status Active
version v1.2.0
stack Lua · LuaJIT · BeamNG.drive
platform BeamNG.drive 0.39
repo github.com/jx-grxf/beamng-drivetech
~ $ git clone https://github.com/jx-grxf/beamng-drivetech.git && cd beamng-drivetech
~ $ BeamNG simulates the drivetrain in great detail, but the stock cars drive without the electronics around it: automatics hang in gear after you lift off, there is no launch control and no proper DSC modes.
Lua on BeamNG's vehicle extension system, one file per feature. Every feature runs isolated: if one throws, it is logged, switched off and its changes are undone while the rest keeps running. Nothing runs on AI or traffic cars, no stock file is overwritten, and 34 scenario tests run against BeamNG mocks under LuaJIT.
Flip the switches, watch the curves.
These are DriveTech's defaults from its config.lua. Pick a drive profile and a DSC mode; the curves use the same formulas the mod runs in the game.
How far the throttle opens for each pedal position. ECO PRO starts soft and caps part throttle at 80 %, SPORT+ opens early. The last 3 % of pedal travel is kickdown and always full throttle.
Throttle
Full throttle in D, then off the pedal. While the line is high the gearbox keeps the gear; as it drops, it upshifts. Stock BeamNG holds the high rpm for seconds.
full lock below 20 km/h when pulling away
ECO PRO only
Engine off after 1 s at a standstill on the brake in D, back on as soon as you release the brake.
The car's own tuning: traction and stability control work as the car came.
DriveTech makes it rain on any map, with wet roads. Paved surfaces lose about 25 % grip. Aquaplaning is optional and works out each tyre on its own: speed, water depth, tread depth, tyre pressure and width.
How much grip a 205 tyre at 2.3 bar has left on an even water film. From 65 % of the critical speed it starts to float, just above it it floats completely.
less grip
The water builds up while it rains and does not sit evenly. Ruts and dips hold more, and some spots collect real puddles. There a tyre floats earlier, often on one side only.
Eight F31 LCI Touring configurations in the vehicle selector under ETK 800: every engine with rear-wheel drive and with xDrive. Each table puts DriveTech's figures next to the real car's.
| DriveTech | BMW 320d Touring | |
|---|---|---|
| Power / torque | approx. 192 PS / 405 Nm | 190 PS / 400 Nm (1750–2500 rpm) |
| Gearbox | ZF 8HP50 | ZF 8HP50 |
| Final drive | 2.813, adjustable | 2.813 |
| 0–100 km/h | – | 7.5 s, xDrive 7.7 s |
| Top speed | 230 km/h, limited | approx. 230 km/h |
| DriveTech | BMW 330d Touring | |
|---|---|---|
| Power / torque | approx. 265 PS / 570 Nm | 258 PS / 560 Nm (1500–3000 rpm) |
| Gearbox | ZF 8HP70 | ZF 8HP70 |
| Final drive | 2.563, adjustable | 2.563 |
| 0–100 km/h | xDrive approx. 5.5 s | 5.6 s, xDrive 5.4 s |
| Top speed | 250 km/h, limited | 250 km/h, limited |
| DriveTech | BMW 335d xDrive Touring | |
|---|---|---|
| Power / torque | approx. 315 PS / 636 Nm | 313 PS / 630 Nm (1500–2500 rpm) |
| Gearbox | ZF 8HP70 | ZF 8HP70 |
| Final drive | 2.563, adjustable | 2.563 |
| 0–100 km/h | – | xDrive 4.9 s |
| Top speed | 250 km/h, limited | 250 km/h, limited |
The F31 never had a 340d. It uses the data of the 335d xDrive (N57 twin turbo); the rear-wheel drive version did not exist and is a what-if car.
| DriveTech | BMW 340i Touring | |
|---|---|---|
| Power / torque | approx. 328 PS / 452 Nm | 326 PS / 450 Nm (1380–5000 rpm) |
| Gearbox | ZF 8HP50 | ZF 8HP50 |
| Final drive | 2.813, adjustable | 2.813 |
| 0–100 km/h | – | 5.1 s, xDrive approx. 5.0 s |
| Top speed | 250 km/h, limited | 250 km/h, limited |
B58 petrol six on staggered 19-inch wheels, 245/35 front and 265/35 rear.
| Gearbox | Gears 1–8 |
|---|---|
| ZF 8HP50320d, 340i | 53.22.1431.721.31410.8220.64 |
| ZF 8HP70330d, 340d | 4.7143.1432.1061.6671.28510.8390.667 |
Sources: BMW Group technical data BMW 3 Series Touring LCI (F31), edition 11/2018; BMW press kit 330d xDrive Touring (03/2013); ADAC car catalogue 340i Touring xDrive Steptronic (07/15–06/18); auto-data.net for the 340i xDrive's 0–100 time. The DriveTech column is the in-game torque curve of the DriveTech ECUs; for the 320d and 330d it comes from BeamNG's own measurements of the stock calibrations they are based on. A dash means not measured.
DriveTech loads into every car and only uses what the car has. AI and traffic cars are left alone.
| In the car | Features |
|---|---|
| Torque converter automatic | shift logic, throttle map, launch control with converter unloading, start-stop, auto hold, coasting |
| Dual clutch (DCT) | shift logic, throttle map, launch control, start-stop, auto hold |
| Manual | throttle map, launch control with the clutch, auto hold |
| Modern driving electronics | DSC / DTC / DSC OFF, linked vehicle drive modes |
| Electronically clutched AWD | xDrive |
git clone https://github.com/jx-grxf/beamng-drivetech.git && cd beamng-drivetech