Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: [Beta] Manual Gearbox Development Kit Fr 6 Mai - 6:15
Please see last pages for more recent updates. This first post will be kept unchanged so people can track the progress of this project.
Good morning. I've been trying to figure out how to use OMSI scripting language. I changed the antrieb.osc of SD202 to create a very very (and one more very) basic manual gearbox. As I don't have the required knowledge about transmissions, it doesn't feature a clutch yet. My idea was to remove the event triggers that upshift and downshift the gear (related to automatic transmission) and add triggers related to keyboard keys of joystick buttons (I'm using a Logitech G27, which has a H Shifter). It looks like a mix of a smple arcade gearbox (like Midtown Madness 2) and the complex engine scripting, which obviously wasn't created by me, but by Marcel and Rüdiger.
OMSI still shows some errors while loading the script, but it does not crash the game. I'll try to give small steps on that and try to correct this. I presume the errors are related to the AI, because they won't be able to change gears, or something like that. Maybe do I need to create a separate .bus file? Thanks!
(L.L.antrieb_getr_gangwahl) 1 = {if} 0 (S.L.antrieb_getr_aktugang) {endif} 'Verhindern, dass der Rückwärtsgang oberhalb von 5 km/h eingelegt werden kann
'Fallunterscheidung, ob Getriebe reibt oder wandelt oder nicht:
(L.L.antrieb_getr_fest) {if}
'################################################################################# ' Berechnung der Beschleunigung des Antriebsstrangs (am Motorflansch) '#################################################################################
' Wenn Neutralgang beim Bremsen eingelegt wird (L.L.antrieb_getr_gangwahl) 1 = {if} 0 (S.L.antrieb_retarder_wasrunning) (S.L.antrieb_gear_engaged_timer) {endif}
{else}
'################################################################################# ' Bestimmen, ob ein Wandlergang eingelegt ist...: '#################################################################################
' Vergleich der Ein- und Ausgangsleistungen: (L.L.M_Wheel) (L.L.n_Wheel) * 3.14 * 30000 / (S.L.antrieb_gesamtleistung) (L.L.antrieb_gesamtleistung) (L.L.antrieb_motorleistung) / (S.L.antrieb_eta)
(M.L.engine_acceleration)
'################################################################################# ' Sonst ist ein normaler Gang eingelegt: '#################################################################################
' Das Hochschalten aus dem 1. Gang (Antriebsstrang nicht fest eingekuppelt) zählt nicht zur Latenzzeit, solange also Armtime auf 0 halten: (L.L.antrieb_getr_fest) ! (L.L.antrieb_retarder) ! && {if} 0 (S.L.antrieb_retarder_armtime_elapsed) {endif}
{macro:antrieb_getr_chkCh} ' Berechnung der aktuellen Hochschaltschwelle: (l3 = bei Vollgas, l4 = bei Leergas) (L.L.antrieb_throttle_stellglied) s2 l3 * 1 l2 - l4 * + {end}
{macro:antrieb_getr_schaltmoment} ' Berechnung des Schaltmomentes (l6 = bei Vollgas, l7 = bei Leergas) (L.L.antrieb_throttle_stellglied) s5 l6 * 1 l5 - l7 * + {end}
And for antrieb_constfile_D86.txt
Code:
Getriebeversion: 1: Retarder nicht im 1. Gang, keine Neutralschaltung 2: Retarder im 1. Gang, Neutralschaltung 3: Retarder nicht im 1. Gang, Neutralschaltung [const] antrieb_getr_version 2
Zeit für den Wechsel zwischen Retarder und Traktion (nur bei Getriebeversion 2) [const] antrieb_retarder_changetime 0.6
Mindestzeit, die eingekuppelt sein muss, bevor Neutralschaltung greift [const] antrieb_gear_engaged_mintime 2
Geschwindigkeit, unterhalb der die Neutralschaltung greift [const] antrieb_neutral_maxspeed 70
Bremsdruck in Pa, ab dem Neutralschaltung greift [const] antrieb_neutral_brakepressure 170000
[const] antrieb_kuppl_M_up_max 2100
[const] antrieb_kuppl_M_up_min 400
[const] antrieb_kuppl_M_dn_max 2100
[const] antrieb_kuppl_M_dn_min 500
[const] antrieb_getr_ratio1 2.5
[const] antrieb_getr_ratio2 1.2
[const] antrieb_getr_ratio3 0.9
[const] antrieb_getr_ratio4 0.7
[const] antrieb_getr_ratio5 0.5
[const] antrieb_i_achse 8.74
Die folgenden Werte beziehen sich auf die Drehzahl der Kardanwelle und sind somit unabhängig von Achsübersetzung und Reifengröße! km/h zu Wellendrehzahl (Raddurchmesser=1.03, i_achse=5.74 =>Faktor 29.56
'Actuator rate in 1/n per second (total range 0..1)
[const] kickdown_stellglied_inc_rate 2
[const] kickdown_stellglied_dec_rate 1
[const] throttle_stellglied_inc_rate 1
[const] throttle_stellglied_dec_rate 0.3
'minimum acceleration for upshift (m/s^2)
[const] min_upshift_acceleration -0.2
If you use this little script into your project, please remain the credit line intact.[b]
Zuletzt von Thiago am Sa 9 Jul - 13:14 bearbeitet; insgesamt 5-mal bearbeitet
OVS driver
Anzahl der Beiträge : 1046 Anmeldedatum : 01.08.10 Alter : 29 Ort : Bad Blankenburg
Thema: Re: [Beta] Manual Gearbox Development Kit Fr 6 Mai - 8:55
That works very great Thank you for this mod. I like it
kosakkosak
Anzahl der Beiträge : 163 Anmeldedatum : 14.03.11
Thema: Re: [Beta] Manual Gearbox Development Kit Fr 6 Mai - 10:42
Looks interesting.. I will look on it and maybe we can try to add manual clutch
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: [Beta] Manual Gearbox Development Kit Fr 6 Mai - 12:55
OVS driver schrieb:
That works very great Thank you for this mod. I like it
Thank you!
kosakkosak schrieb:
Looks interesting.. I will look on it and maybe we can try to add manual clutch
Thanks! I'm thinking on a way to add a clutch, but at this moment I still don't know how it would be. I don't understand about transmissions, but I suppose that when the clutch is triggered, the bus behavior should be like if it were on Neutral gear. Or probably I'm wrong. I would appreciate any help. Thanks in advance!
FRENZYMAX_RUS
Anzahl der Beiträge : 118 Anmeldedatum : 03.04.11 Ort : Somewhere in the Bearland...
Thema: Re: [Beta] Manual Gearbox Development Kit Fr 6 Mai - 19:06
Good job, but you must add a small delay (2-4 sec.) between gear changes. Something like in beginning of this video (damn, i'm love this sound )
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: [Beta] Manual Gearbox Development Kit Fr 6 Mai - 21:28
FRENZYMAX_RUS schrieb:
Good job, but you must add a small delay (2-4 sec.) between gear changes. Something like in beginning of this video (damn, i'm love this sound )
Oh, indeed. That's true! Nice bus sounds! It would be nice to have it in OMSI. Tonight I'll try to understand how OMSI interprets the different levels of pressure in the clutch, according to the pedal or the button. There still are so many things to learn.
midtown292
Anzahl der Beiträge : 163 Anmeldedatum : 24.02.11
Thema: Re: [Beta] Manual Gearbox Development Kit Sa 7 Mai - 13:34
Very good - its like a semi automatic, the Leyland Hydracyclic!!! This is just what I have been looking for! Well done!
krtz07
Anzahl der Beiträge : 413 Anmeldedatum : 10.09.09 Alter : 39 Ort : Philadelphia PA
Thema: Re: [Beta] Manual Gearbox Development Kit Sa 7 Mai - 13:52
Thiago schrieb:
OVS driver schrieb:
That works very great Thank you for this mod. I like it
Thank you!
kosakkosak schrieb:
Looks interesting.. I will look on it and maybe we can try to add manual clutch
Thanks! I'm thinking on a way to add a clutch, but at this moment I still don't know how it would be. I don't understand about transmissions, but I suppose that when the clutch is triggered, the bus behavior should be like if it were on Neutral gear. Or probably I'm wrong. I would appreciate any help. Thanks in advance!
You will figure it out, trust me!! There were many things about the OMSI script which I felt I never figured out but apparently did. The stuff which you think was not possible in one week, could very well be possible the next week.
Zuletzt von krtz07 am Di 10 Mai - 1:51 bearbeitet; insgesamt 1-mal bearbeitet
bus-1809
Anzahl der Beiträge : 5 Anmeldedatum : 18.04.11 Alter : 33
Thema: Re: [Beta] Manual Gearbox Development Kit Mo 9 Mai - 18:56
Basically you have just made a Wilson SCG Semi Auto box. I think you might have also just made a lot of peoples days!
Rgds, 1809
Scenicruiser
Anzahl der Beiträge : 83 Anmeldedatum : 16.01.11
Thema: Re: [Beta] Manual Gearbox Development Kit Sa 14 Mai - 8:12
I added 7 more gears to your transmission so now I have 12 speed manual transmission with gear rations of Volvo- I-Shift. But there is no way to select gears 11 and 12, because there is no 11 or 12 keys in keyboard.
What do you removed from script to make this manual, I mean how to make this to be automatic again. And is there any way to choose between automatic and manual when driving, if I make a separate files for automatic and manual transmission.
One more question: How to add 4 reverse gear.
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: [Beta] Manual Gearbox Development Kit Sa 14 Mai - 22:09
Scenicruiser schrieb:
I added 7 more gears to your transmission so now I have 12 speed manual transmission with gear rations of Volvo- I-Shift. But there is no way to select gears 11 and 12, because there is no 11 or 12 keys in keyboard.
What do you removed from script to make this manual, I mean how to make this to be automatic again. And is there any way to choose between automatic and manual when driving, if I make a separate files for automatic and manual transmission.
One more question: How to add 4 reverse gear.
Hello Scenicruiser. Volvo I-Shift is great! Well, I presume it is possible to make an advanced script that changes to automatic or manual depending on the driver's choice. But my knowledge on scripting (and transmission) is very poor and I'm trying to find time to learn it better.
I "removed" all the entries of the scripts which triggers the gear change. I don't remember very well because I was on a 'trial and error' basis, and when it worked, I was quite confused about how it worked. Most of the changes I made are related to the trigger (T.L.ev_schaltruck), which changes the gear based on the variable (S.L.antrieb_getr_aktugang). But if you get the original antrieb.osc and start comparing with antrieb_manual.osc starting from the line:
You will find some lines that were deleted from the original files. That was what I have changed. Also, some lines were added about the gears (to include 3 , 4 , 5 ) gears. About the reverse 4th gear, I don't make a clue.
I'm looking forward to learn about transmission scripting, but it will be a hard work. Hope I could help you at least 'a little'.
Scenicruiser
Anzahl der Beiträge : 83 Anmeldedatum : 16.01.11
Thema: Re: [Beta] Manual Gearbox Development Kit So 15 Mai - 6:34
Thiago schrieb:
Okay, I take a look at those lines. In fact when I choose gear 1 the bus runs well, but if I select any other gear, bus stops. So, the engine may not be enough powerful.
How to limit speed of bus to 80km/h, so I can`t drive over 120km/h when I select 6th gear.
I can make transmission which can be used automatically or manually at the same time, so, if you don`t like gear selected by automatic you can choose other gear manually. It is far away from Volvo I-Shift but... I tested it with Voith, and it worked well. You can`t choose between automatic or manual, but it is manual and automatic at same time
When I say 4 reverse gears I mean this:
Rear gears 17.48:1 3.73:1 4.02:1 3.16:1
There is 4 rear gear in Volvo I-Shift.
krtz07
Anzahl der Beiträge : 413 Anmeldedatum : 10.09.09 Alter : 39 Ort : Philadelphia PA
Thema: Re: [Beta] Manual Gearbox Development Kit So 15 Mai - 13:28
Thiago schrieb:
Scenicruiser schrieb:
I added 7 more gears to your transmission so now I have 12 speed manual transmission with gear rations of Volvo- I-Shift. But there is no way to select gears 11 and 12, because there is no 11 or 12 keys in keyboard.
What do you removed from script to make this manual, I mean how to make this to be automatic again. And is there any way to choose between automatic and manual when driving, if I make a separate files for automatic and manual transmission.
One more question: How to add 4 reverse gear.
Hello Scenicruiser. Volvo I-Shift is great! Well, I presume it is possible to make an advanced script that changes to automatic or manual depending on the driver's choice. But my knowledge on scripting (and transmission) is very poor and I'm trying to find time to learn it better.
I "removed" all the entries of the scripts which triggers the gear change. I don't remember very well because I was on a 'trial and error' basis, and when it worked, I was quite confused about how it worked. Most of the changes I made are related to the trigger (T.L.ev_schaltruck), which changes the gear based on the variable (S.L.antrieb_getr_aktugang). But if you get the original antrieb.osc and start comparing with antrieb_manual.osc starting from the line:
You will find some lines that were deleted from the original files. That was what I have changed. Also, some lines were added about the gears (to include 3 , 4 , 5 ) gears. About the reverse 4th gear, I don't make a clue.
I'm looking forward to learn about transmission scripting, but it will be a hard work. Hope I could help you at least 'a little'.
Whew, hold on there!!
(T.L.ev_schaltruck) is an sound trigger, so any changes made based on this trigger will only change the sound.
(S.L.antrieb_getr_aktugang). does indeed change the gear assuming that you put an number before this trigger such as 8 for each gear or phase. My 4 speed ZF transmission has 8 phases
Code:
8 (S.L.antrieb_getr_aktugang).
Zitat :
I "removed" all the entries of the scripts which triggers the gear change
You could remove 90% of the script and it will still function well. In fact, if haven't done so already, you can remove the retarder script completely.
These kickdown scripts right here controls at which speeds, driveshaft rpm which the transmission will shift at. You do not need any of these scripts as shown below:
It tells the simulator to active kickdown after 2 seconds when the throttle is at 100%. If the throttle is less then 100% yet more then 50%, then the s3 variable will be used. s0...s9 are stacks which can be saved on the spot, provided that they are defined. L0...L0 loads them up. they save time from going into the variable text file and setup the variable, then define it. but since this is an manual transmission, you do not need that.
Also to simplified matters more, you could simplied this script
I would like to add, if you want to add an clutch, then the entire torque converter script needs to be removed and replaced with an clutch.
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: [Beta] Manual Gearbox Development Kit So 15 Mai - 22:15
Many thanks for your help, krtz07. Things got clearer for me now. I really need to learn the entrails of the manual transmission. It's still a very big challenge for me. I still have no clue about the clutch
krtz07
Anzahl der Beiträge : 413 Anmeldedatum : 10.09.09 Alter : 39 Ort : Philadelphia PA
Thema: Re: [Beta] Manual Gearbox Development Kit Mo 16 Mai - 1:14
Scenicruiser schrieb:
Thiago schrieb:
Okay, I take a look at those lines. In fact when I choose gear 1 the bus runs well, but if I select any other gear, bus stops. So, the engine may not be enough powerful.
How to limit speed of bus to 80km/h, so I can`t drive over 120km/h when I select 6th gear.
I can make transmission which can be used automatically or manually at the same time, so, if you don`t like gear selected by automatic you can choose other gear manually. It is far away from Volvo I-Shift but... I tested it with Voith, and it worked well. You can`t choose between automatic or manual, but it is manual and automatic at same time
Anzahl der Beiträge : 413 Anmeldedatum : 10.09.09 Alter : 39 Ort : Philadelphia PA
Thema: Re: [Beta] Manual Gearbox Development Kit Di 17 Mai - 15:05
Thiago schrieb:
Many thanks for your help, krtz07. Things got clearer for me now. I really need to learn the entrails of the manual transmission. It's still a very big challenge for me. I still have no clue about the clutch
my advice to you is to use parts of the manual transmission script which MR done for the cars, and then work backwards until you get an winning result without having omsi crashing. Some changes to other scripts such as the cockput may be required. I want to add that the variables in the manual transmission script has been renamed. For example, engine_n in the bus's script which is the engine RPM. is named eng_n in the manual transmission script.
several other things which may help down the road...
engine_n = engine rpm engine_M = engine torque in NM M_Wheel = transmission output torque; to get the output torque the formula is engine torque (times) transmission gear ratio (times) final drive ratio antrieb_kuppl_M_up_max = Max input torque, usually specification sheets will specified the amount, the amount is in NM.
antrieb_beschleunigung = acceleration
To get an reverse gear, simply put an negative sign before the gear ratio.
\I already said what the stacks does... Also what may looks like "ll" is really "l1" . That is load stack number one. That confused me for a while there.
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: [Beta] Manual Gearbox Development Kit Do 19 Mai - 4:40
Oh mate, thanks for these precious hints and information. I'm quite busy right now fixing some issues on my map, but I will be giving a look on this when I get finished. Many thanks again!
* That ll and l1 is really confusing.
powerz
Anzahl der Beiträge : 1 Anmeldedatum : 31.05.11
Thema: Re: [Beta] Manual Gearbox Development Kit Di 31 Mai - 15:21
Thank you for the awesome manuel gearbox. I was wondering if anyone could help me add a 6th gear. That would be nice. Thank you again and keep up the good work
Skiv
Anzahl der Beiträge : 113 Anmeldedatum : 26.04.09 Alter : 36 Ort : Łódź
Thema: Re: [Beta] Manual Gearbox Development Kit Do 2 Jun - 15:04
Meh the link doesn't work anymore.
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: [Beta] Manual Gearbox Development Kit So 5 Jun - 22:12
Fixed.
krtz07
Anzahl der Beiträge : 413 Anmeldedatum : 10.09.09 Alter : 39 Ort : Philadelphia PA
Thema: Re: [Beta] Manual Gearbox Development Kit Fr 10 Jun - 16:20
Thiago, made any progress with the script?
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: [Beta] Manual Gearbox Development Kit Fr 10 Jun - 20:59
Hey dude, I didn't have time to work on it yet, because I'm studying to my masters' exam now in July. But I didn't give up on it, I hope to back to it in the next weeks. Thank you!
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: [Beta] Manual Gearbox Development Kit So 26 Jun - 23:05
Good evening. I've returned to the pain attempts of implementing the manual gearbox. I followed your advice krtz and I could until now put the manual script (from the cars) into the buses. Still very experimental, but I could drive a little with them. But I'm having problems with some variables different from those you told me that seem to be very sensible to the config. By the way, I imported the gear ratio and engine_J from the original MAN SD202.
I can have some idea because of the hint you told me about the eng_N and eng_M, but these 'haft', 'gleit', 'cold' words are giving me some headache. Not sure what they do. This cold has a negative value I'll update this if I get some good news.
krtz07
Anzahl der Beiträge : 413 Anmeldedatum : 10.09.09 Alter : 39 Ort : Philadelphia PA
Thema: Re: [Beta] Manual Gearbox Development Kit Mo 27 Jun - 1:32
Well if the bus does have some sort of manual transmission and it is moving above 2kph, upload what you have and I will see what can be done. I will then upload it on my server so you can download it and fine tune it. The coupling torque values may need values between 400 min and 1200 max.
Thiago
Anzahl der Beiträge : 252 Anmeldedatum : 18.02.11 Ort : Brazil
Thema: Re: [Beta] Manual Gearbox Development Kit Mo 27 Jun - 1:49
Hello. Here it is: (removed, new link will be available soon!)
I included the 5th gear ratio but didn't enabled it in the antrieb.osc The modified files are now on a separate folder inside \Script\ to avoid mixing with your files. Thank you for you kind attention.
Zuletzt von Thiago am Mi 29 Jun - 15:06 bearbeitet; insgesamt 1-mal bearbeitet