ehem. OMSI - Forum
Würden Sie gerne auf diese Nachricht reagieren? Erstellen Sie einen Account in wenigen Klicks oder loggen Sie sich ein, um fortzufahren.
ehem. OMSI - Forum

Dieses Forum wurde geschlossen. Das neue Forum befindet sich auf www.omnibussimulator.de/forum !
 
StartseiteStartseite  Neueste BilderNeueste Bilder  SuchenSuchen  AnmeldenAnmelden  LoginLogin  

 

 [Beta] Manual Gearbox Development Kit

Nach unten 
+19
N
aarongilp
f1fan
FR1GTS
Smallhail741
Warrior888
HHA 1732
FilipeRicardo
EHST
Skiv
powerz
Scenicruiser
bus-1809
krtz07
midtown292
FRENZYMAX_RUS
kosakkosak
OVS driver
Thiago
23 verfasser
Gehe zu Seite : 1, 2, 3  Weiter
AutorNachricht
Thiago

Thiago


Anzahl der Beiträge : 252
Anmeldedatum : 18.02.11
Ort : Brazil

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeFr 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. study
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. Smile

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!

EDIT
I created a separate D86 .bus file to avoid game crashes with the original D86 AI. Here is the download:
www.tooo.com.br/omsi/d/MAN_D86_manual_v1.zip




These are the codes for antrieb.osc

Code:
'##############
'Getriebe-Script
'##############

'D851-Gearbox

'(c) 2008-2010 Rüdiger Hülsmann

'Script Version: 1.0
'Omsi release: 1.0

'Needs:
'- engine
'- bremse

'Revision History:
'- Rüdiger Hülsmann   13.04.2009   Neutralstellung mit anderer Zeitverzögerung
'- Rüdiger Hülsmann   04.06.2009   Verzögertes Einsetzen des Retarders
'- Marcel Kuhnt      13.06.2009   Removed Gearbox switches to cockpit script
'- Marcel Kuhnt      09.08.2009   Added Gearbox Failure
'- Rüdiger Hülsmann   09.10.2009   Rework for improved flexibility: Support for D.2/3-gearbox via config file
'               Functions added: Automatic neutral, retarder in 1st gear
'- Rüdiger Hülsmann   29.10.2009   Retarder bug removed
'- Rüdiger Hülsmann   16.09.2010   Reverse gear torque reduction
'- Rüdiger Hülsmann   14.10.2010   Downshift 3-2 added
'- Rüdiger Hülsmann   13.12.2010   Gearshift procedures debugged, smooth retarder fadeout, dynamic shifting moment
'- Rüdiger Hülsmann   27.12.2010   Retarder fadeout debugged
'- Rüdiger Hülsmann   01.01.2011   Retarder linked to ABS
'- Rüdiger Hülsmann   04.01.2011   Reverse only below 5 km/h
'- Thiago Sobral    05.05.2011          Added Junky Manual Gearbox 0.0001 - Just for fun and study of OMSI

'----------------------
'   Manual Gearbox Triggers
'----------------------


{trigger:kw_s_1}
 1 (S.L.antrieb_getr_aktugang)
 (T.L.ev_schaltruck)

{end}

{trigger:kw_s_2}
 2 (S.L.antrieb_getr_aktugang)
 (T.L.ev_schaltruck)

{end}

{trigger:kw_s_3}
 3 (S.L.antrieb_getr_aktugang)
 (T.L.ev_schaltruck)

{end}

{trigger:kw_s_4}
 4 (S.L.antrieb_getr_aktugang)
 (T.L.ev_schaltruck)

{end}

{trigger:kw_s_5}
 5 (S.L.antrieb_getr_aktugang)
 (T.L.ev_schaltruck)

{end}

'----------------------
'   Init
'----------------------

{macro:antrieb_init}
   1 (S.L.antrieb_getr_gangwahl) (S.L.antrieb_getr_gangvorwahl)
   1 (S.L.antrieb_getr_aktugang)
   
   0 (S.L.antrieb_wandler_moment)
{end}

'----------------------
'   Frame
'----------------------

{macro:antrieb_frame}

'Berechnen der Abtriebsdrehzahl
   (L.L.Wheel_RotationSpeed_1_L) (L.L.Wheel_RotationSpeed_1_R) + 2 / (C.L.antrieb_i_achse) * (S.L.antrieb_n_kardanwelle)

'Einlegen der Fahrstufe

   (L.S.GetTime) (L.L.antrieb_getr_gangwahlzeitpunkt) - (C.L.antrieb_gangwahlzeit) >
   (L.L.antrieb_getr_gangvorwahl) (L.L.antrieb_getr_gangwahl) = ! &&
   (L.L.antrieb_failure_general) ! &&
   {if}
         
      (L.L.antrieb_getr_gangwahl) 1 =
      {if}
         (L.L.engine_on) 1 =
         {if}
            (L.L.engine_n) (S.L.antrieb_rucksoundvol)
            (C.L.antrieb_kuppl_M_dn_min) (S.L.antrieb_schaltmoment_soll)

            (L.L.antrieb_getr_gangvorwahl) 1 >
            {if}
               (L.L.antrieb_n_kardanwelle) (C.L.antrieb_getr_autoSwDnMinSpd3) >
               {if}
                  
                  
               {else}
                  (L.L.antrieb_n_kardanwelle) (C.L.antrieb_getr_autoSwDnMinSpd2) >
                  {if}
                     
                     
                  {else}
                     
                     0 (S.L.antrieb_gear_engaged_timer)
                     
                  {endif}
               {endif}
            {else}
               (L.L.velocity) 5 <
               {if}
                  
                  0 (S.L.antrieb_gear_engaged_timer)
                  
               {endif}
            {endif}
         {endif}
      {endif}   
      (L.L.antrieb_getr_gangvorwahl) (S.L.antrieb_getr_gangwahl)
   {endif}

'Gang rausnehmen, wenn Neutral angefordert

   (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

   (L.L.antrieb_getr_gangvorwahl) 0 =
   (L.L.velocity) 5 >= &&
   {if}
      1 (S.L.antrieb_getr_gangwahl)
   {endif}







'Prüfen, ob Gang gewechselt wird - aber nur, wenn Getriebe heil ist:

   (L.L.antrieb_failure_general) !
   {if}
      (M.L.antrieb_getr_chkNxtGear)
   {endif}

'Berechnung des aktuellen Motordrehmoments:

   (M.L.engine_moment)



'Berechnung des dynamischen Schaltmoments

   (L.L.antrieb_getr_fest) !
   {if}
      (L.L.antrieb_schaltmoment) (L.S.Timegap) 1000 * + (L.L.antrieb_schaltmoment_soll) min (S.L.antrieb_schaltmoment)
   {endif}





'Fallunterscheidung, ob Getriebe reibt oder wandelt oder nicht:

   (L.L.antrieb_getr_fest)
   {if}

'#################################################################################
'   Berechnung der Beschleunigung des Antriebsstrangs (am Motorflansch)
'#################################################################################


      (L.L.n_Wheel) (L.L.antrieb_getr_ratio) * (L.L.engine_n) - 2 * pi * 60 / (L.S.Timegap) /

'   Berechnung des Momentes am Motor durch Trägheit:

      (C.L.engine_J) * s0

'   Berechnung des vom Antriebsstrang durchgeleiteten Momentes

      l0 /-/ (L.L.engine_M) (L.L.engine_M_additional_load) - + s1


'   Wenn das Antriebsmoment zu groß ist oder ein Wandlergang eingelegt wird, rutscht die Kupplung durch:

      l1 abs (L.L.antrieb_schaltmoment) > (L.L.antrieb_getr_gangwahl) 1 <= || (L.L.antrieb_getr_aktugang) 1 = ||


      {if}

         0 (S.L.antrieb_getr_fest)

      {else}

'      Setzen des Momentes

         l1 (S.L.antrieb_getr_M_an)


'      Berechnung des Getriebeabtriebmomentes:

         (L.L.antrieb_getr_M_an) (L.L.antrieb_getr_ratio) * (C.L.gear_efficiency) * (S.L.M_Wheel)

'      Drehzahl des Motors ergibt sich aus der Getriebeabtriebswelle:

         (L.L.antrieb_getr_ratio) (L.L.n_Wheel) * (S.L.engine_n)      
      {endif}


      0 (S.L.antrieb_wandler_moment)

   {else}

'#################################################################################
'   Bestimmen, ob Leerlauf ist...:
'#################################################################################

      (L.L.antrieb_getr_gangwahl) 1 = (L.L.antrieb_getr_aktugang) 0 = ||

      {if}

'      ... Antriebs- und Getriebeantriebsmoment sind 0:
         0 (S.L.M_Wheel) (S.L.antrieb_getr_M_an)

         (M.L.engine_acceleration)
         0 (S.L.antrieb_wandler_moment)

'         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...:
'#################################################################################

         (L.L.antrieb_getr_aktugang) 1 =
         {if}

            (L.L.antrieb_wandler_moment) abs (L.L.antrieb_getr_M_an) abs >
            {if}
               (L.L.antrieb_wandler_moment) 0 >
               {if}
                  (L.L.antrieb_getr_M_an) (C.L.antrieb_wandler_fillrate) (L.S.Timegap) * + (S.L.antrieb_getr_M_an)
                  (L.L.antrieb_wandler_moment) (L.L.antrieb_getr_M_an) <
                  {if}
                     (L.L.antrieb_wandler_moment) (S.L.antrieb_getr_M_an)
                  {endif}
               {else}
                  (L.L.antrieb_getr_M_an) (C.L.antrieb_wandler_fillrate) (L.S.Timegap) * - (S.L.antrieb_getr_M_an)
                  (L.L.antrieb_wandler_moment) (L.L.antrieb_getr_M_an) >
                  {if}
                     (L.L.antrieb_wandler_moment) (S.L.antrieb_getr_M_an)
                  {endif}
               {endif}
            {else}
               (L.L.antrieb_wandler_moment) (S.L.antrieb_getr_M_an)
            {endif}
   
         
         

'#################################################################################
'         Wandler Rückwärtsgang:
'#################################################################################

            (L.L.antrieb_getr_gangwahl) 0 =
            {if}
               (L.L.antrieb_n_kardanwelle) 2 * (S.L.antrieb_getr_n_ab) /-/ (L.L.engine_n) / (S.L.antrieb_wandler_ny)



                     

'               Berechnung des Motor-Antriebsmomentes

                  (L.L.engine_n) 2 * 3.14 * 60 / (L.L.engine_n) 2 * 3.14 * 60 / * s1
                  0.0042 (L.L.antrieb_wandler_ny) (F.L.antrieb_wandler_lambda) * l1 * (L.L.engine_n) (F.L.antrieb_wandler_lowrpmsoftness) * (S.L.antrieb_wandler_moment)


'               Berechnung des Rad-Abtriebsmomentes
      
                  (L.L.antrieb_wandler_ny) (F.L.antrieb_wandler_my) (L.L.antrieb_getr_M_an) * (C.L.antrieb_i_achse) * 0.9 * /-/ (L.L.engine_n) (F.L.antrieb_wandler_lowrpmsoftness) * (C.L.gear_efficiency) *
                   (L.L.antrieb_n_kardanwelle) (F.L.antrieb_reverse_torque_reduction) *
                  (S.L.M_Wheel)
               

'#################################################################################
'         Wandler Vorwärtsgang:   
'#################################################################################

            {else}
               (L.L.n_Wheel) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_n_ab) (L.L.engine_n) / (S.L.antrieb_wandler_ny)

               (L.L.antrieb_wandler_ny) 0.7 <
               {if}      

'               Berechnung des Motor-Antriebsmomentes

                  (L.L.engine_n) 2 * 3.14 * 60 / (L.L.engine_n) 2 * 3.14 * 60 / * s1
                  0.0042 (L.L.antrieb_wandler_ny) (F.L.antrieb_wandler_lambda) * l1 * (L.L.engine_n) (F.L.antrieb_wandler_lowrpmsoftness) * (S.L.antrieb_wandler_moment)


'               Berechnung des Rad-Abtriebsmomentes
      
                  (L.L.antrieb_wandler_ny) (F.L.antrieb_wandler_my) (L.L.antrieb_getr_M_an) * (C.L.antrieb_i_achse) * 0.77 * (L.L.engine_n) (F.L.antrieb_wandler_lowrpmsoftness) * (C.L.gear_efficiency) * (S.L.M_Wheel)
               {else}
   
'               Berechnung des Motor-Antriebsmomentes
         
                  (L.L.engine_n) (L.L.antrieb_getr_n_ab) / (S.L.antrieb_wandler_ny_r)

                  (L.L.engine_n) 2 * 3.14 * 60 / (L.L.engine_n) 2 * 3.14 * 60 / * s1
                  0.0042 (L.L.antrieb_wandler_ny_r) (F.L.antrieb_wandler_lambda_r) * l1 * (L.L.engine_n) (F.L.antrieb_wandler_lowrpmsoftness) * (S.L.antrieb_wandler_moment)


'               Berechnung des Rad-Abtriebsmomentes
      
                  (L.L.antrieb_wandler_ny_r) (F.L.antrieb_wandler_my_r) (L.L.antrieb_getr_M_an) * (C.L.antrieb_i_achse) * 0.77 * (L.L.engine_n) (F.L.antrieb_wandler_lowrpmsoftness) * (C.L.gear_efficiency) * (S.L.M_Wheel)
               {endif}
            {endif}
      

'         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:
'#################################################################################

         {else}


'         Berechnung der Drehzahldifferenz:

            (L.L.antrieb_getr_ratio) (L.L.n_Wheel) * (L.L.engine_n) - s0



'         An dieser Stelle muss ggf. noch das unterschiedliche Kupplungsmoment eingesetzt werden:

            l0 0 <
            {if}
               (L.L.antrieb_schaltmoment)
            {else}
               (L.L.antrieb_schaltmoment) /-/
            {endif}
            (S.L.antrieb_getr_M_an)
            (L.L.antrieb_getr_ratio) *
            (C.L.gear_efficiency) * (S.L.M_Wheel)

            (M.L.engine_acceleration)

'         Prüfen, ob sich das Vorzeichen der Drehzahldifferenz umgekehrt hat:

            (L.L.antrieb_getr_ratio) (L.L.n_Wheel) * (L.L.engine_n) - l0 * 0 <= (L.L.engine_n) 560 > &&
            {if}
               (L.L.antrieb_getr_ratio) (L.L.n_Wheel) * (S.L.engine_n)
               (L.L.n_Wheel) (L.L.antrieb_getr_ratio) * (L.L.engine_n) - 2 * pi * 60 / (L.S.Timegap) /

'               Berechnung des Momentes am Motor durch Trägheit:

               (C.L.engine_J) * s0

'               Berechnung des vom Antriebsstrang durchgeleiteten Momentes

               l0 /-/ (L.L.engine_M) (L.L.engine_M_additional_load) - + (S.L.antrieb_getr_M_an)


'               Berechnung des Getriebeabtriebmomentes:

               (L.L.antrieb_getr_M_an) abs (L.L.antrieb_schaltmoment) abs <
               {if}
                  (L.L.antrieb_getr_M_an) (L.L.antrieb_getr_ratio) * (C.L.gear_efficiency) * (S.L.M_Wheel)
                  1 (S.L.antrieb_getr_fest)
                  (C.L.antrieb_kuppl_M_up_max) (S.L.antrieb_schaltmoment)
               {else}
                  (L.L.antrieb_schaltmoment) /-/ (S.L.antrieb_getr_M_an) (L.L.antrieb_getr_ratio) * (C.L.gear_efficiency) * (S.L.M_Wheel)
               {endif}
               


            {endif}

            0 (S.L.antrieb_wandler_moment)

         {endif}
      {endif}

   {endif}







'#################################################################################
'   Retarder
'#################################################################################


   (L.L.brake) 0.01 >
   (L.L.antrieb_retarder_sw) &&
   (L.L.antrieb_retarder_sw_direkt) ||
   (L.L.antrieb_getr_gangwahl) 1 > &&
   (L.L.Throttle) 0.1 < &&
   (L.L.antrieb_n_kardanwelle) 0.1 > &&
   (L.L.antrieb_failure_general) ! &&
   (L.L.bremse_ABS_eingriff) ! &&
   {if}   

      (L.L.antrieb_retarder_armed) !
      {if}
         1 (S.L.antrieb_retarder_armed)
         0 (S.L.antrieb_retarder_armtime_elapsed)
      {endif}

'      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}
   

      (L.L.antrieb_n_kardanwelle) (C.L.retarder_min_einschaltspeed) > (L.L.antrieb_retarder_armtime_elapsed) (C.L.antrieb_retarder_startdelay) > && (L.L.antrieb_retarder) ! &&
      {if}
         1 (S.L.antrieb_retarder)
         0 (S.L.antrieb_retarder_time_elapsed)
      {endif}


      (L.L.antrieb_retarder_sw_direkt)
      {if}
         2 (S.L.antrieb_retarderstufe)
      {else}
         1 (S.L.antrieb_retarderstufe)
      {endif}

'Verhaltensweise des Retarders beim Erreichen der Drehzahluntergrenze im 2. Gang:

      (L.L.antrieb_n_kardanwelle) (C.L.antrieb_getr_autoSwDnMinSpd2) <
      (L.L.antrieb_retarder) 1 = &&
      {if}
         (C.L.antrieb_getr_version) s0 1 = l0 3 = ||
         {if}
            0 (S.L.antrieb_retarder) (S.L.antrieb_wendesatz)
            (L.L.engine_n) (S.L.antrieb_rucksoundvol)
            (T.L.ev_schaltruck)
         {else}
            0 (S.L.antrieb_getr_aktugang)
         {endif}
      {endif}
   

      (L.L.antrieb_retarder_armed)
      {if}
         (L.L.antrieb_retarder_armtime_elapsed) (L.S.Timegap) + (S.L.antrieb_retarder_armtime_elapsed)
         (L.L.antrieb_retarder_time_elapsed) (L.S.Timegap) + (S.L.antrieb_retarder_time_elapsed)
      {endif}

' Ausschalten des Retarders:

   {else}
      (L.L.antrieb_retarder) (L.L.antrieb_n_kardanwelle) (C.L.antrieb_getr_autoSwDnMinSpd2) < &&
      {if}
         0 (S.L.antrieb_retarder_offtime) (S.L.antrieb_wendesatz)
         1 (S.L.antrieb_retarder_wasrunning)
      {endif}
      0 (S.L.antrieb_retarder) (S.L.antrieb_retarder_armed) (S.L.antrieb_retarder_armtime_elapsed) (S.L.antrieb_retarder_time_elapsed)   
   {endif}

'Umschaltverzögerung zwischen Bremsen und Traktion:

   (L.L.antrieb_retarder_wasrunning)
   {if}
      (L.L.antrieb_retarder_offtime) (L.S.Timegap) + (S.L.antrieb_retarder_offtime)
      (C.L.antrieb_retarder_changetime) >
      (L.L.antrieb_getr_gangwahl) 1 > &&
      {if}
         (T.L.ev_retarder_aus)

'3424 soll hier laut rucken!
         (L.$.number) "3424" $=
         {if}
            900
         {else}
            (L.L.engine_n)
         {endif}
         (S.L.antrieb_rucksoundvol)
         (T.L.ev_schaltruck)
         1 (S.L.antrieb_getr_aktugang)
         0 (S.L.antrieb_retarder_wasrunning) (S.L.antrieb_gear_engaged_timer)
      {endif}
   {endif}

   

'Bremsmoment des Retarders:

   (L.L.antrieb_retarder) 1 =
   {if}
      (L.L.antrieb_retarderstufe) 1 =
      {if}
         (L.L.antrieb_n_kardanwelle) 29.3 / (F.L.retarder_stufe1) 0.7 * (C.L.antrieb_i_achse) /-/ * (L.L.antrieb_retarder_time_elapsed) (F.L.retarder_fadein) * (S.L.antrieb_retardermoment) (L.L.M_Wheel) + (S.L.M_Wheel)
      {else}
         (L.L.antrieb_retarderstufe) 2 =
         {if}
            (L.L.antrieb_retardermoment) (L.S.Timegap) 10000 * - s1
            (L.L.antrieb_n_kardanwelle) 29.3 / (F.L.retarder_stufe2) 0.7 * (C.L.antrieb_i_achse) /-/ * (L.L.antrieb_retarder_time_elapsed) (F.L.retarder_fadein) * s2
            l1 l2 max (S.L.antrieb_retardermoment) (L.L.M_Wheel) + (S.L.M_Wheel)
         {else}
         (L.L.antrieb_retarderstufe) 3 =
         {if}   
            (L.L.antrieb_retardermoment) (L.S.Timegap) 10000 * - s1
            (L.L.antrieb_n_kardanwelle) 29.3 / (F.L.retarder_stufe3) 0.7 * (C.L.antrieb_i_achse) /-/ * (L.L.antrieb_retarder_time_elapsed) (F.L.retarder_fadein) * s2
            l1 l2 max (S.L.antrieb_retardermoment) (L.L.M_Wheel) + (S.L.M_Wheel)
         {endif}
         {endif}
      {endif}
   {else}
'      Ausfaden der Retarder-Bremsstärke
      (L.L.antrieb_retardermoment) (L.S.Timegap) 10000 * + 0 min (S.L.antrieb_retardermoment) (L.L.M_Wheel) + (S.L.M_Wheel)
      (L.L.antrieb_retarder_volume) (L.S.Timegap) 2 * - 0 max (S.L.antrieb_retarder_volume) s0
      l0 0 =
      {if}
         0 (S.L.antrieb_wendesatz)
      {endif}
   
   {endif}



'#################################################################################
'   Automatische Neutralschaltung bei Stillstand
'#################################################################################

(C.L.antrieb_getr_version) 1 >
{if}
   (L.L.antrieb_gear_engaged_timer) (L.S.Timegap) + (S.L.antrieb_gear_engaged_timer)
   
   (L.L.antrieb_n_kardanwelle) (C.L.antrieb_neutral_maxspeed) <
   (L.L.antrieb_getr_gangwahl) 1 > &&
   (L.L.antrieb_retarder) ! &&
   (L.L.antrieb_retarder_wasrunning) ! &&   
   {if}
      (L.L.bremse_p_Brzyl_HA) (C.L.antrieb_neutral_brakepressure) >
      {if}
         (L.L.antrieb_neutral_requested) !
         {if}
            0 (S.L.antrieb_neutral_requested)

            (C.L.antrieb_getr_version) 2 = !
            (C.L.antrieb_getr_version) 2 = (L.L.antrieb_gear_engaged_timer) (C.L.antrieb_gear_engaged_mintime) < && ||
            {if}
               0 (S.L.antrieb_gear_engaged_timer)
            {endif}
         {endif}
         
         (L.L.antrieb_neutral_requested)
         (L.L.antrieb_gear_engaged_timer) (C.L.antrieb_gear_engaged_mintime) >= &&
         {if}
            0 (S.L.antrieb_getr_aktugang)
         {endif}

      {else}      
         0 (S.L.antrieb_neutral_requested) (S.L.antrieb_gear_engaged_timer)
      {endif}
      
   {endif}
{endif}










'#################################################################################
'   Planetengetriebe-Wendesatz (Fjü-Sound)
'#################################################################################
   
   (L.L.antrieb_retarder) 
   (L.L.antrieb_getr_gangwahl) 0 = ||
   {if}
      1 (S.L.antrieb_wendesatz) (S.L.antrieb_retarder_volume)
'      Rücksetzen auf 0 erfolgt beim Fadeout des Retarderbremsmoments
   {endif}
{end}



'#################################################################################
'   Bestimmung der Schaltgeschwindigkeiten
'#################################################################################

{macro:antrieb_getr_chkNxtGear}

'   Höchster Gang: s0!

'   Verzögerung der Kickdown-Schaltung:

   (L.L.throttle) 1 =
   {if}
      (L.L.antrieb_kickdown_stellglied) (L.S.Timegap) 2 * + 1 min (S.L.antrieb_kickdown_stellglied)
      1 =
      {if}
         
      {endif}
   {else}
      (L.L.antrieb_kickdown_stellglied) (L.S.Timegap) 1 * - 0 max (S.L.antrieb_kickdown_stellglied)
      0 =
      {if}
         
      {endif}
   {endif}

'   Verzögerung der gaspedalabhängigen Schaltschwelle:

   
   (L.L.throttle) (L.L.antrieb_throttle_stellglied) >
   {if}
      (L.L.antrieb_throttle_stellglied) (L.S.Timegap) 1 * + (L.L.throttle) min (S.L.antrieb_throttle_stellglied)
   {else}
      (L.L.antrieb_throttle_stellglied) (L.S.Timegap) 0.5 * - (L.L.throttle) max (S.L.antrieb_throttle_stellglied)
   {endif}
   
'   Berechnen der aktuellen Beschleunigung:
   
   (L.L.Velocity) (L.L.antrieb_last_geschwindigkeit) - 3.6 / (L.S.Timegap) / (S.L.antrieb_beschleunigung)
   (L.L.Velocity) (S.L.antrieb_last_geschwindigkeit)
   
   



   (L.L.antrieb_getr_gangwahl) 0 =
   {if}
      
   {else}
   (L.L.antrieb_getr_gangwahl) 1 =
   {if}
      
   {else}
      (L.L.antrieb_getr_gangwahl) 2 =
      {if}
         (L.L.antrieb_retarder_armed) 0 =
         {if}
            1 s0
         {else}
            2 s0
         {endif}
      {else}
      (L.L.antrieb_getr_gangwahl) 3 =
      {if}
         2 s0
      {else}
         3 s0
      {endif}
   {endif}


         (L.L.antrieb_getr_aktugang) s1

         1 =
         {if}
            (C.L.antrieb_getr_ratio1) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_ratio)
            (L.L.antrieb_kickdown)
            {if}
               (C.L.antrieb_getr_autoSwUpkickdnSpd1) s3 s4
            {else}
               (C.L.antrieb_getr_autoSwUpMinSpd1) s4
               (C.L.antrieb_getr_autoSwUpMaxSpd1) s3
            {endif}
      
            (M.L.antrieb_getr_chkCh) (L.L.antrieb_n_kardanwelle) < l0 2 >= && (L.L.antrieb_beschleunigung) 0 > &&
            {if}
               1 (S.L.antrieb_getr_aktugang)
               (C.L.antrieb_kuppl_M_up_max) s6
               (C.L.antrieb_kuppl_M_up_min) s7
               (M.L.antrieb_getr_schaltmoment) (S.L.antrieb_schaltmoment_soll)   (S.L.antrieb_schaltmoment)            
               
            {endif}

            (L.L.antrieb_getr_aktugang) 1 =
            (L.L.antrieb_getr_gangwahl) 1 > &&
            (L.L.antrieb_retarder_armed) 1 = &&
            (L.L.antrieb_n_kardanwelle) (C.L.retarder_min_einschaltspeed) > &&
            {if}
               1 (S.L.antrieb_getr_aktugang)
               300 (S.L.antrieb_schaltmoment_soll) (S.L.antrieb_schaltmoment)
            {endif}
            
         {endif}
         l1 2 =
         {if}
            (C.L.antrieb_getr_ratio2) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_ratio)
            (L.L.antrieb_kickdown)
            {if}
               (C.L.antrieb_getr_autoSwUpkickdnSpd2) s3 s4
            {else}
               (C.L.antrieb_getr_autoSwUpMinSpd2) s4
               (C.L.antrieb_getr_autoSwUpMaxSpd2) s3
            {endif}
            (M.L.antrieb_getr_chkCh) (L.L.antrieb_n_kardanwelle) < l0 3 >= && (L.L.antrieb_beschleunigung) 0 > &&
            {if}
               2 (S.L.antrieb_getr_aktugang)
               (C.L.antrieb_kuppl_M_up_max) s6
               (C.L.antrieb_kuppl_M_up_min) s7
               (M.L.antrieb_getr_schaltmoment) (S.L.antrieb_schaltmoment_soll) (S.L.antrieb_schaltmoment)
                        
            {endif}
            (L.L.antrieb_kickdown) l0 1 = ||
            {if}
               (C.L.antrieb_getr_autoSwDnkickdnSpd2) s3 s4
            {else}
               (C.L.antrieb_getr_autoSwDnMinSpd2) s4
               (C.L.antrieb_getr_autoSwDnMaxSpd2) s3
            {endif}
            (M.L.antrieb_getr_chkCh) (L.L.antrieb_n_kardanwelle) > (L.L.antrieb_retarder_armed) ! &&
            (L.L.antrieb_n_kardanwelle) (C.L.antrieb_getr_autoSwDnMinSpd2) < ||
            {if}
               2 (S.L.antrieb_getr_aktugang)
               0 (S.L.antrieb_schaltmoment)
            {endif}
         {endif}
      
         l1 3 =
         {if}
            (C.L.antrieb_getr_ratio3) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_ratio)
            (L.L.antrieb_kickdown)
            {if}
               (C.L.antrieb_getr_autoSwUpkickdnSpd3) s3 s4
            {else}
               (C.L.antrieb_getr_autoSwUpMinSpd3) s4
               (C.L.antrieb_getr_autoSwUpMaxSpd3) s3
            {endif}
            (M.L.antrieb_getr_chkCh) (L.L.antrieb_n_kardanwelle) < l0 3 >= && (L.L.antrieb_beschleunigung) 0 > &&
            {if}
               3 (S.L.antrieb_getr_aktugang)
               (C.L.antrieb_kuppl_M_up_max) s6
               (C.L.antrieb_kuppl_M_up_min) s7
               (M.L.antrieb_getr_schaltmoment) (S.L.antrieb_schaltmoment_soll) (S.L.antrieb_schaltmoment)
                        
            {endif}
            (L.L.antrieb_kickdown) l0 1 = ||
            {if}
               (C.L.antrieb_getr_autoSwDnkickdnSpd3) s3 s4
            {else}
               (C.L.antrieb_getr_autoSwDnMinSpd3) s4
               (C.L.antrieb_getr_autoSwDnMaxSpd3) s3
            {endif}
            (M.L.antrieb_getr_chkCh) (L.L.antrieb_n_kardanwelle) > (L.L.antrieb_retarder_armed) ! &&
            (L.L.antrieb_n_kardanwelle) (C.L.antrieb_getr_autoSwDnMinSpd3) < ||
            {if}
               3 (S.L.antrieb_getr_aktugang)
               0 (S.L.antrieb_schaltmoment)
            {endif}
         {endif}
   
         l1 4 =
         {if}
            (C.L.antrieb_getr_ratio4) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_ratio)
            (L.L.antrieb_kickdown)
            {if}
               (C.L.antrieb_getr_autoSwUpkickdnSpd4) s3 s4
            {else}
               (C.L.antrieb_getr_autoSwUpMinSpd4) s4
               (C.L.antrieb_getr_autoSwUpMaxSpd4) s3
            {endif}
            (M.L.antrieb_getr_chkCh) (L.L.antrieb_n_kardanwelle) < l0 3 >= && (L.L.antrieb_beschleunigung) 0 > &&
            {if}
               4 (S.L.antrieb_getr_aktugang)
               (C.L.antrieb_kuppl_M_up_max) s6
               (C.L.antrieb_kuppl_M_up_min) s7
               (M.L.antrieb_getr_schaltmoment) (S.L.antrieb_schaltmoment_soll) (S.L.antrieb_schaltmoment)
                        
            {endif}
            (L.L.antrieb_kickdown) l0 1 = ||
            {if}
               (C.L.antrieb_getr_autoSwDnkickdnSpd4) s3 s4
            {else}
               (C.L.antrieb_getr_autoSwDnMinSpd4) s4
               (C.L.antrieb_getr_autoSwDnMaxSpd4) s3
            {endif}
            (M.L.antrieb_getr_chkCh) (L.L.antrieb_n_kardanwelle) > (L.L.antrieb_retarder_armed) ! &&
            (L.L.antrieb_n_kardanwelle) (C.L.antrieb_getr_autoSwDnMinSpd4) < ||
            {if}
               4 (S.L.antrieb_getr_aktugang)
               0 (S.L.antrieb_schaltmoment)
            {endif}
         {endif}
         
         l1 5 =
         {if}
            (C.L.antrieb_getr_ratio5) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_ratio)
            (L.L.antrieb_kickdown) l0 2 <= ||
            {if}
               (C.L.antrieb_getr_autoSwDnkickdnSpd5) s3 s4
            {else}
               (C.L.antrieb_getr_autoSwDnMinSpd5) s4
               (C.L.antrieb_getr_autoSwDnMaxSpd5) s3
            {endif}
            (M.L.antrieb_getr_chkCh) (L.L.antrieb_n_kardanwelle) >
            {if}
               5 (S.L.antrieb_getr_aktugang)
               (C.L.antrieb_kuppl_M_dn_max) s6
               (C.L.antrieb_kuppl_M_dn_min) s7
               (M.L.antrieb_getr_schaltmoment) (S.L.antrieb_schaltmoment_soll)
               0 (S.L.antrieb_schaltmoment)
               
            {endif}
         {endif}


   {endif}
   {endif}


'   Testweise: Differenzialdrehzahlpfeifen

   (L.L.engine_n) (L.L.antrieb_n_kardanwelle) 2 * - (S.L.antrieb_n_differenz)





{end}

{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

[const]
antrieb_getr_autoSwUpMinSpd1
690
710

[const]
antrieb_getr_autoSwUpMaxSpd1
1500

[const]
antrieb_getr_autoSwUpkickdnSpd1
1090

[const]
antrieb_getr_autoSwDnMinSpd2
442

[const]
antrieb_getr_autoSwDnMaxSpd2
740

[const]
antrieb_getr_autoSwDnkickdnSpd2
1025.5

[const]
antrieb_getr_autoSwUpMinSpd2
1300

[const]
antrieb_getr_autoSwUpMaxSpd2
1300

[const]
antrieb_getr_autoSwUpkickdnSpd2
1537


Terceira marcha

[const]
antrieb_getr_autoSwDnMinSpd3
442

[const]
antrieb_getr_autoSwDnMaxSpd3
740

[const]
antrieb_getr_autoSwDnkickdnSpd3
1025.5

[const]
antrieb_getr_autoSwUpMinSpd3
690
710

[const]
antrieb_getr_autoSwUpMaxSpd3
1300

[const]
antrieb_getr_autoSwUpkickdnSpd3
1537

Fim Terceira marcha

Nova Quarta marcha

[const]
antrieb_getr_autoSwDnMinSpd4
442

[const]
antrieb_getr_autoSwDnMaxSpd4
740

[const]
antrieb_getr_autoSwDnkickdnSpd4
1025.5

[const]
antrieb_getr_autoSwUpMinSpd4
690
710


[const]
antrieb_getr_autoSwUpMaxSpd4
1300

[const]
antrieb_getr_autoSwUpkickdnSpd4
1537

Fim Quarta marcha

Nova Quinta marcha

[const]
antrieb_getr_autoSwDnMinSpd5
800

[const]
antrieb_getr_autoSwDnMaxSpd5
1040

[const]
antrieb_getr_autoSwDnkickdnSpd5
1408

[const]
antrieb_wandler_fillrate
4000

Fim Quinta marcha

[const]
retarder_min_einschaltspeed
502

[const]
antrieb_retarder_startdelay
0.2

[newcurve]
retarder_stufe1
[pnt]
0
0
[pnt]
10
194
[pnt]
20
388
[pnt]
30
407
[pnt]
40
485
[pnt]
50
641
[pnt]
60
854
[pnt]
70
990
[pnt]
80
1165

[newcurve]
retarder_stufe2
[pnt]
0
0
[pnt]
10
291
[pnt]
20
582
[pnt]
30
874
[pnt]
40
1019
[pnt]
50
1165
[pnt]
60
1262
[pnt]
70
1359
[pnt]
80
1456

[newcurve]
retarder_stufe3
[pnt]
0
0
[pnt]
10
291
[pnt]
20
582
[pnt]
30
1068
[pnt]
40
1554
[pnt]
50
1845
[pnt]
60
1942
[pnt]
70
1991
[pnt]
80
2039


[const]
antrieb_gangwahlzeit
0.5

[const]
antrieb_neutralwahlzeit
0.1

[newcurve]
antrieb_wandler_lambda

[pnt]
-2
50

[pnt]
0
8.5

[pnt]
0.5
3.1

[pnt]
0.7
0

[newcurve]
antrieb_wandler_my

[pnt]
0
5
4.65

[pnt]
0.6
1.4

[pnt]
0.7
0


[newcurve]
antrieb_reverse_torque_reduction

[pnt]
-220
0

[pnt]
0
1



[newcurve]
antrieb_wandler_lambda_r

[pnt]
0.2
-12

[pnt]
0.5
-8

[pnt]
1
-4

[pnt]
1.42857
0


[newcurve]
antrieb_wandler_my_r

[pnt]
0.2
5

[pnt]
1.42857
0


[newcurve]
antrieb_wandler_lowrpmsoftness

[pnt]
0
0.4

[pnt]
1000
1



[newcurve]
retarder_fadein

[pnt]
0
0.5

[pnt]
0.4
1.5

[pnt]
0.6
1

[const]
gear_efficiency
0.95


'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
Nach oben Nach unten
http://www.tooo.com.br/omsi
OVS driver

OVS driver


Anzahl der Beiträge : 1046
Anmeldedatum : 01.08.10
Alter : 28
Ort : Bad Blankenburg

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeFr 6 Mai - 8:55

That works very great Very Happy
Thank you for this mod. I like it Wink
Nach oben Nach unten
https://www.youtube.com/user/MrLionsCity
kosakkosak




Anzahl der Beiträge : 163
Anmeldedatum : 14.03.11

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeFr 6 Mai - 10:42

Looks interesting.. I will look on it and maybe we can try to add manual clutch
Nach oben Nach unten
Thiago

Thiago


Anzahl der Beiträge : 252
Anmeldedatum : 18.02.11
Ort : Brazil

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeFr 6 Mai - 12:55

OVS driver schrieb:
That works very great Very Happy
Thank you for this mod. I like it Wink

Thank you! Smile

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. Sad
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!
Nach oben Nach unten
http://www.tooo.com.br/omsi
FRENZYMAX_RUS

FRENZYMAX_RUS


Anzahl der Beiträge : 118
Anmeldedatum : 03.04.11
Ort : Somewhere in the Bearland...

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeFr 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 Razz )
Nach oben Nach unten
Thiago

Thiago


Anzahl der Beiträge : 252
Anmeldedatum : 18.02.11
Ort : Brazil

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeFr 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 Razz )

Oh, indeed. That's true! Very Happy
Nice bus sounds! It would be nice to have it in OMSI. Smile
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. Sad
Nach oben Nach unten
http://www.tooo.com.br/omsi
midtown292

midtown292


Anzahl der Beiträge : 163
Anmeldedatum : 24.02.11

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeSa 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!
Nach oben Nach unten
krtz07




Anzahl der Beiträge : 413
Anmeldedatum : 10.09.09
Alter : 38
Ort : Philadelphia PA

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeSa 7 Mai - 13:52

Thiago schrieb:
OVS driver schrieb:
That works very great Very Happy
Thank you for this mod. I like it Wink

Thank you! Smile

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. Sad
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. Very Happy


Zuletzt von krtz07 am Di 10 Mai - 1:51 bearbeitet; insgesamt 1-mal bearbeitet
Nach oben Nach unten
http://www.philadelphiatransitvehicles.info
bus-1809




Anzahl der Beiträge : 5
Anmeldedatum : 18.04.11
Alter : 32

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeMo 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
Nach oben Nach unten
Scenicruiser




Anzahl der Beiträge : 83
Anmeldedatum : 16.01.11

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeSa 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. Smile 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.
Nach oben Nach unten
Thiago

Thiago


Anzahl der Beiträge : 252
Anmeldedatum : 18.02.11
Ort : Brazil

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeSa 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. Smile 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! Very Happy
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:

'----------------------
' Frame
'----------------------

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. Sad
Hope I could help you at least 'a little'.
Nach oben Nach unten
http://www.tooo.com.br/omsi
Scenicruiser




Anzahl der Beiträge : 83
Anmeldedatum : 16.01.11

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeSo 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 Laughing

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.
Nach oben Nach unten
krtz07




Anzahl der Beiträge : 413
Anmeldedatum : 10.09.09
Alter : 38
Ort : Philadelphia PA

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeSo 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. Smile 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! Very Happy
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:

'----------------------
' Frame
'----------------------

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. Sad
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:

Code:
(L.L.antrieb_kickdown)
            {if}
               (C.L.antrieb_getr_autoSwUpkickdnSpd1) s3 s4
            {else}
               (C.L.antrieb_getr_autoSwUpMinSpd1) s4
               (C.L.antrieb_getr_autoSwUpMaxSpd1) s3
            {endif}

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


Code:

         (L.L.antrieb_getr_aktugang) s1

         1 =
         {if}
            (C.L.antrieb_getr_ratio1) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_ratio)

            
         {endif}
         l1 2 =
         {if}
            (C.L.antrieb_getr_ratio2) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_ratio)
            
         {endif}
      
         l1 3 =
         {if}
            (C.L.antrieb_getr_ratio3) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_ratio)
            
         {endif}
   
         l1 4 =
         {if}
            (C.L.antrieb_getr_ratio4) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_ratio)
            
         {endif}
         
         l1 5 =
         {if}
            (C.L.antrieb_getr_ratio5) (C.L.antrieb_i_achse) * (S.L.antrieb_getr_ratio)
            
         {endif}


   {endif}
   {endif}

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.
Nach oben Nach unten
http://www.philadelphiatransitvehicles.info
Thiago

Thiago


Anzahl der Beiträge : 252
Anmeldedatum : 18.02.11
Ort : Brazil

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeSo 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. Sad
I still have no clue about the clutch
Nach oben Nach unten
http://www.tooo.com.br/omsi
krtz07




Anzahl der Beiträge : 413
Anmeldedatum : 10.09.09
Alter : 38
Ort : Philadelphia PA

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeMo 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 Laughing

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.

https://omnibussimulator.forumieren.com/t4064-speed-governor-kph
Nach oben Nach unten
http://www.philadelphiatransitvehicles.info
krtz07




Anzahl der Beiträge : 413
Anmeldedatum : 10.09.09
Alter : 38
Ort : Philadelphia PA

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeDi 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. Sad
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.

Nach oben Nach unten
http://www.philadelphiatransitvehicles.info
Thiago

Thiago


Anzahl der Beiträge : 252
Anmeldedatum : 18.02.11
Ort : Brazil

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeDo 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.
Nach oben Nach unten
http://www.tooo.com.br/omsi
powerz




Anzahl der Beiträge : 1
Anmeldedatum : 31.05.11

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeDi 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 Very Happy Rolling Eyes
Nach oben Nach unten
Skiv

Skiv


Anzahl der Beiträge : 113
Anmeldedatum : 26.04.09
Alter : 35
Ort : Łódź

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeDo 2 Jun - 15:04

Meh the link doesn't work anymore.
Nach oben Nach unten
Thiago

Thiago


Anzahl der Beiträge : 252
Anmeldedatum : 18.02.11
Ort : Brazil

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeSo 5 Jun - 22:12

Fixed.
Nach oben Nach unten
http://www.tooo.com.br/omsi
krtz07




Anzahl der Beiträge : 413
Anmeldedatum : 10.09.09
Alter : 38
Ort : Philadelphia PA

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeFr 10 Jun - 16:20

Thiago, made any progress with the script?
Nach oben Nach unten
http://www.philadelphiatransitvehicles.info
Thiago

Thiago


Anzahl der Beiträge : 252
Anmeldedatum : 18.02.11
Ort : Brazil

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeFr 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!
Nach oben Nach unten
http://www.tooo.com.br/omsi
Thiago

Thiago


Anzahl der Beiträge : 252
Anmeldedatum : 18.02.11
Ort : Brazil

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeSo 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'm having trouble with these constants:

antrieb_kupp_Mmax_haft
antrieb_kupp_Mmax_gleit
antrieb_eng_coldM
antrieb_eng_Mmax
antrieb_eng_n_Mmax

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 Smile
I'll update this if I get some good news.
Nach oben Nach unten
http://www.tooo.com.br/omsi
krtz07




Anzahl der Beiträge : 413
Anmeldedatum : 10.09.09
Alter : 38
Ort : Philadelphia PA

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeMo 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.
Nach oben Nach unten
http://www.philadelphiatransitvehicles.info
Thiago

Thiago


Anzahl der Beiträge : 252
Anmeldedatum : 18.02.11
Ort : Brazil

[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitimeMo 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
Nach oben Nach unten
http://www.tooo.com.br/omsi
Gesponserte Inhalte





[Beta] Manual Gearbox Development Kit Empty
BeitragThema: Re: [Beta] Manual Gearbox Development Kit   [Beta] Manual Gearbox Development Kit Icon_minitime

Nach oben Nach unten
 
[Beta] Manual Gearbox Development Kit
Nach oben 
Seite 1 von 3Gehe zu Seite : 1, 2, 3  Weiter
 Ähnliche Themen
-
» Manual gearbox
» Karosa B732 - v0.2 Released, but it is not finished, because this project is stopped.
» SOLVED: Manual Gearbox
» A manual gearbox sample
» Gearbox script

Befugnisse in diesem ForumSie können in diesem Forum nicht antworten
ehem. OMSI - Forum :: OMSI-Design (english) :: Script programming-
Gehe zu: