So. I'm working on a "high fidelity" engine pack. For now will be only stock engines with custom power curves. I'm now working with the rough idle setting, the biggest problem I see is that the engine rough idle even when hot. I want to know if its possible to "read" actual engine temperature to use in programming the rough idle. Let´s say if engine_temperature > 40 (celsius, maybe, idk) then "rough idle parameters for hot engine else "rough idle parameter for cold engine" end if Any help will be great appreciated
It's electrics.values.watertemp in vehicle lua which has engine temperature stored, for air cooled that would be oiltemp I guess. Just not sure how would one set that rough idle parameter via lua, but I remember seeing in some lua code how jbeam parameter is accessed, can it be written too, that I don't know. But reading jbeam was in lua file I saw like this jbeamData.headGasketBlownOverride Maybe you can replace that with rough idle parameter and maybe you can set it too, but haven't done such. I guess like this, just not sure if it would work: if electrics.values.watertemp > 40 then jbeamData.yourRoughIdleParameter = value you want it set end Then you would need to make lua script that would actually make that happen, however that would be done, but maybe that gives you ideas to get started experimenting.
Thanks. I will try this. As for the pack, it will consist on various engines for the vanilla cars. These engines will have carb and efi variations. thanks again. I will be experimenting with these
There might also be some helpful information bits in this thread: https://www.beamng.com/threads/simplefunction-for-hot-water-temperature.52214/