Hi, I'm working on an Anti-Lag system (ALS). The mod is integrated with the jbeam of the vehicle so you can easlly edit variables without modifing the lua file. Code: "ALSTime" : 2, //How long the ALS should stay active in seconds "ALS" : true, //If false the Anti-Lag System will be completelly disabled "ALSExhaustPower" : 180000, //How mutch exhsaust power does the ALS make? "ALSPressure" : 32, //The pressure which the turbo should keep while tle ALS is active, (can be an array) "ALSInstantLoadDrop" : 0.7, // if the engine's load drops very quickly by 70% the ALS kicks in "mainEngine":{ "turbochargerLuaFileName" = "powertrain/ALSturbocharger" } // used to make the game use the custom turbocharger.lua file UPDATE: From version 1.2 you no longer need to copy my entire mod to use the ALS in your custom engines, here's how: Code: "slots": [ ["type", "default", "description"] ["ALS_turbo_diesel","Empty", "Intake"], ], It is this easy: just create a slot with type "ALS_turbo_diesel" if you're adding it to a diesel engine, "ALS_turbo" otherwise. Of course my mod needs to be installed in order to use this method. If the vehicle is not one of the stock BeamNG ones, you still need to copy the vehicle specific files over to your mod.
https://www.beamng.com/threads/two-step.56977/ The devs are already making a two step system, but by all means continue working on yours because it may be better.
I'm aware that devs are developing a two-step system but mine is an anti-lag system so it keeps the turbo spooled up even when you shift gear! Thanks for the positive feedback! In about a week you'll be able to use it in every stock BeamNG car and even in the bus !
I know that 2-step and Antilag are different things, but they often go hand in hand. As far as we know, the developers are developing a 2-step rev limiter, but they could also have antilag in the works behind closed doors.
I have a may be stupid question. What does ALS pressure % means? I simply cannot figure it out how it affect performance. And what's its recommend value%??
Hi, sorry for the late reply... ALS Pressure % indicates the pressure where the ALS System operates, in percentual to the boost pressure of the current gear. You can verify it by revving the engine all the way to readline in second or third gear pressing the cluthc. I havn’t had enough time to test the mod in the latest update. I'll test it as soon as possible. BTW thanks for the report!
Haven't looked into what exactly you are doing in your mod but the turbocharger.lua got reorganized a bit, not many logic changes but code was moved around etc. You'll most likely will have to port your changes over to the new version.
Suggestion: Make an "altitude compensation" option, increase boost with altitude to make the engine power constant.
Hi, That's a great suggestion. However, I'm not sure if the altitude in BeamNg affects the engine's power... If it does I'll try to implement such a feature
Altitude in Beam does affect engine power. Wastegate IRL is trying to maintain a constant boost pressure above the existing manifold pressure. Thus if you're at sea level and the boost is 1.5bar, the manifold pressure is 2.5bar. When you're at high elevation where the atmospheric pressure is 0.5bar, the manifold pressure would be 2.0bar, the engine only losts 20%power.Where an NA losts it's 50%power. However in BeamNG both turbo and NA engine lost the same 50% power if the atmospheric pressure is 0.5bar. The pictures above show that both turbocharged and N/A engine lose the same amount(about one third) torque at 2470 meters above sea level
I sure could, but this mod is not about tuning the engine (AFR, Ignition time, etc..) it's about boost controllers and anti lag. I don't think it would make much sense to implement something like this even though it woludn't be hard...