Anzahl der Beiträge : 413 Anmeldedatum : 10.09.09 Alter : 39 Ort : Philadelphia PA
Thema: Turbocharger scripting help, So 3 Apr - 5:15
I've been trying to script out a turbocharger, not too sure if I am even remotely on the right track, but I started out to reuse the f.l.engine.throttle function in the engine.osc which OMSI apparently has and duplicated the code, but change the values, set yp those values in the consist file and whatnot, and made changes to the varlist.txt... in omsi, the bus acts extremely funny.
then I took the {macro:engine_acceleration} values and created duplicates values... I managed to set everything up so it would not have any type of crash or anything when selecting the experiential vehicle, but apparently no luck with getting OMSI to understand what i want it to do.
Code:
{macro:engine_acceleration} ' Berechnung der Drehzahlbeschleunigung:
It would be nice to know if i am headed in the right direction or should i abandon ship? I would greatly appreciate any help or something.. Is there some kind of function just for a turbocharger that could be used?
krtz07
Anzahl der Beiträge : 413 Anmeldedatum : 10.09.09 Alter : 39 Ort : Philadelphia PA
Thema: Re: Turbocharger scripting help, Di 5 Jul - 13:54
Tried it again using a different approach and now it is working with the turbocharger sound, lag, inertia and all.
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: Turbocharger scripting help, Mi 6 Jul - 6:57
Great. Will it feature some of your existing engine/transmissions?
krtz07
Anzahl der Beiträge : 413 Anmeldedatum : 10.09.09 Alter : 39 Ort : Philadelphia PA
Thema: Re: Turbocharger scripting help, Do 7 Jul - 1:10
Yea as always the script will be open to those who wishes to use it. It makes no sense to do a script and limit it to my self to use it. No transmission scripting involved, thankfully. My first post in this thread which i have made back in April was so wrong! It is amazing how much I have learned about the coding since then.
I will admit up ahead that I do not know everything about how turbochargers work. I just got down to the basic function and use several factors such as engine rpm, turbocharger inertia, horsepower contribution, and a few other options, curves to make it work.
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: Turbocharger scripting help, Sa 9 Jul - 11:14
That's very interesting! I never saw a turbocharger in action. I think they don't exist in buses here.
ediblechickenwing
Anzahl der Beiträge : 317 Anmeldedatum : 16.04.10 Ort : South Wales, UK
Thema: Re: Turbocharger scripting help, Sa 9 Jul - 13:07
Thiago schrieb:
That's very interesting! I never saw a turbocharger in action. I think they don't exist in buses here.
Yes they will, any modern bus will have them
krtz07
Anzahl der Beiträge : 413 Anmeldedatum : 10.09.09 Alter : 39 Ort : Philadelphia PA
Thema: Re: Turbocharger scripting help, So 17 Jul - 0:53