Jump to content

Welcome to OZx Forum

Welcome to OZx Forum guest,

Wouldn't it be nice if I would call you by your name or nickname of your choice ? 

Like most online communities you must register to post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of OZx Forum by signing in or creating an account.

  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

  • 0
Lockheart

Mercedes O405N2 V2

Question

So many of remember the excitement when it was announced someone was releasing the Mercedes O405 N2 bus, though many were disappointed when they found this bus to be rittled with bugs and problems, low textures, awkward mirrors to name a few. Well "jay_zhead" and "krtz07" put together a improved version of this bus. If you haven't already downloaded this bus you can obtain it: here

Newbuswalmart.png

(this is what the bus looks like, minus the paint job, thats my doing)

Personally this bus works much better then the old version that was released, so if you liked the bus before I would highly recommend grabbing this new version and enjoy it that much more.

Now for the other reason I'm posting this, I stumbled across a script that'll make the bus work differently in this bus, currently each door is individually controlled by a different button, but this new script I found makes the back doors auto while the front door is manual, much like that of the MAN buses(code is supposedly taken from the D92's) Now there is one problem with this little script, all the passengers insist upon boarding the bus from the BACK door(as in the last one). So are there any of our great scripters here able to fix this problem, so that they only board at the front of the bus?

Link here

The script is posted by "cooper".

* DOWNLOAD LINKS *

Bus Download

Script Download

Edited by Lockheart

Share this post


Link to post
Share on other sites

155 answers to this question

Recommended Posts

  • 0

They have really imporved this bus to a point which it's lovely to drive now, it's also lovely to repaint.......

omsi2011100817073219.jpg

:D

Dave

You know what's coming here Fleetline7221 !! ...... Would you be able to send me that repaint and I'll get it uploaded? :) I'm desperate to get this new Merc in Stagecoach colours. Looks fab on theat X82 !

Cheers.

They have really imporved this bus to a point which it's lovely to drive now, it's also lovely to repaint.......

omsi2011100817073219.jpg

:D

Dave

You know what's coming here Fleetline7221 !! ...... Would you be able to send me that repaint and I'll get it uploaded? :) I'm desperate to get this new Merc in Stagecoach colours. Looks fab on theat X82 !

Cheers.

Share this post


Link to post
Share on other sites
  • 0

So to achieve behaviour like the MAN buses, doorwise that is. Go to the Mercedes script folder and change doordar.osc with the code below:

'

##############

'Door Script

'##############

'Controls Doors

'© 2007-2009 Rüdiger Hülsmann

'© 2007-2009 Marcel Kuhnt

'Script Version: 1.1

'Omsi release: 1.0

'Needs:

'- elec

'Revision History:

'- Marcel Kuhnt 13.06.2009 Batterietrennschalter => elec_busbar_main

'- Marcel Kuhnt 21.06.2009 AI-Unterstützung hinzugefügt

'- Rüdiger Hülsmann 24.10.2009 Ansteuerung des Kinderwagenwunsches modifiziert

'- Rüdiger Hülsmann 19.12.2009 Timer für Ausstiegstür jetzt Timegap-basiert, Bugfix: Tür schließt jetzt nur bei elec_busbar=1

'- RÜdiger Hülsmann 22.09.2010 Door light trigger value set to 0.1

'- RÜdiger Hülsmann 07.11.2010 Door speed based on reservoir pressure, air-operated doors made an option

'- Marcel Kuhnt 08.11.2010 AI procedure closing doors debugged

'- Rüdiger Hülsmann 21.11.2010 Front doors only operable when busbar on

'- Rüdiger Hülsmann 23.12.2010 External front door operation included, option: doors only operable with actual stop brake

'- Rüdiger Hülsmann 31.12.2010 Electric door function debugged

'- Rüdiger Hülsmann 05.01.2011 20h-switch

'- Rüdiger Hülsmann 07.01.2011 Backdoor manual switch sound debugged, 20h switch depending on bus type

'- Rüdiger Hülsmann 19.01.2011 Electric door support

'--------------------------------------------------------------------------------

{trigger:bus_doorfront0}

(L.L.elec_busbar_main) (L.L.bremse_halte_sw) (C.L.door_needs_stopbrake) ! && &&

(L.L.elec_busbar_main) (L.L.bremse_halte) (C.L.door_needs_stopbrake) && && ||

{if}

(M.L.trg_bus_doorfront0)

{endif}

1 (S.L.cockpit_tuertaster1)

{end}

{trigger:bus_doorfront0_off}

0 (S.L.cockpit_tuertaster1)

{end}

{trigger:bus_doorfront0_external}

(L.L.elec_busbar_avail)

{if}

(M.L.trg_bus_doorfront0)

{endif}

{end}

{trigger:bus_doorback1}

(L.L.elec_busbar_main) (L.L.bremse_halte_sw) (C.L.door_needs_stopbrake) ! && &&

(L.L.elec_busbar_main) (L.L.bremse_halte) (C.L.door_needs_stopbrake) && && ||

{if}

(M.L.trg_bus_doorback1)

{endif}

1 (S.L.cockpit_tuertaster2)

{end}

{trigger:bus_doorback1_off}

0 (S.L.cockpit_tuertaster2)

{end}

{trigger:bus_doorback2}

(L.L.elec_busbar_main) (L.L.bremse_halte_sw) (C.L.door_needs_stopbrake) ! && &&

(L.L.elec_busbar_main) (L.L.bremse_halte) (C.L.door_needs_stopbrake) && && ||

{if}

(M.L.trg_bus_doorback2)

{endif}

1 (S.L.cockpit_tuertaster3)

{end}

{trigger:bus_doorback2_off}

0 (S.L.cockpit_tuertaster3)

{trigger:bus_dooraft}

(M.L.trg_bus_dooraft)

{end}

{trigger:bus_20h-switch}

(C.L.cockpit_has_20h_switch)

{if}

(M.L.trg_bus_20h-switch)

{endif}

{end}

{trigger:int_haltewunsch}

1 (S.L.haltewunsch)

{end}

{trigger:door_haltewunsch}

1 (S.L.haltewunsch) (S.L.door_haltewunsch_knopfdruck)

{end}

{trigger:door_haltewunsch_off}

0 (S.L.door_haltewunsch_knopfdruck)

{end}

{trigger:cp_schalter_kinderwagen}

(L.L.door_handsteuerung) ! (S.L.door_handsteuerung)

{if}

0 (S.L.door_kinderwagenwunsch)

(T.L.ev_kippschalter_ein)

{else}

(T.L.ev_kippschalter_aus)

{endif}

{end}

{trigger:door_kinderwagenwunsch}

(L.L.bremse_halte) (L.L.door_handsteuerung) ! &&

{if}

1 (S.L.door_kinderwagenwunsch)

{endif}

{end}

{macro:Door_Init}

1000 random 500 / 1 - (C.L.door_acc_var) * (C.L.fdoor_acc) + (S.L.doorAcc_0)

1000 random 500 / 1 - (C.L.door_acc_var) * (C.L.fdoor_acc) + (S.L.doorAcc_1)

1000 random 500 / 1 - (C.L.door_acc_var) * (C.L.bdoor_acc) + (S.L.doorAcc_2)

1000 random 500 / 1 - (C.L.door_acc_var) * (C.L.bdoor_acc) + (S.L.doorAcc_3)

1000 random 500 / 1 - (C.L.door_maxspeed_var) * (C.L.fdoor_maxspeed) + (S.L.doorMaxSpeed_0_norm)

1000 random 500 / 1 - (C.L.door_maxspeed_var) * (C.L.fdoor_maxspeed) + (S.L.doorMaxSpeed_1_norm)

1000 random 500 / 1 - (C.L.door_maxspeed_var) * (C.L.bdoor_maxspeed) + (S.L.doorMaxSpeed_2_norm)

1000 random 500 / 1 - (C.L.door_maxspeed_var) * (C.L.bdoor_maxspeed) + (S.L.doorMaxSpeed_3_norm)

(C.L.door_refl) (S.L.doorRefl_0)

(C.L.door_refl) (S.L.doorRefl_1)

(C.L.door_refl) (S.L.doorRefl_2)

(C.L.door_refl) (S.L.doorRefl_3)

{end}

{macro:Door_Frame}

(M.L.Door0_Calc)

(M.L.Door1_Calc)

(M.L.DoorAftCalc)

(M.L.Door2_Calc)

(M.L.Door3_Calc)

(L.L.door_0) 0.9 > (S.L.PAX_Entry0_Open)

(L.L.door_1) 0.9 > (S.L.PAX_Exit0_Open)

(L.L.door_2) 0.9 > (L.L.door_2) 0.9 > && (S.L.PAX_Exit1_Open)

' "Dauerfeuer"-Haltewunsch über Kinderwagenschalter (macht genau dasselbe wie der "trigger:int_haltewunsch"):

(L.L.door_handsteuerung) (L.L.door_haltewunsch_knopfdruck) ||

{if}

1 (S.L.haltewunsch)

{endif}

' Setzen der Haltestellenbremse erst bei Stillstand des Busses:

(L.L.bremse_halte_sw) (L.L.door_20h_sw) ||

(L.L.bremse_halte) ! (L.L.Velocity) (C.L.Door_Bremse_Halte_MaxKMH) < && &&

{if}

(L.L.elec_busbar_main)

{if}

(T.L.ev_haltebremse_an)

1 (S.L.bremse_halte)

{endif}

{endif}

' Anhand dieser Bedingungen kann nun die Automatiktür geöffnet werden:

(M.L.DoorAft_Open)

' Türfreigabekriterium

(L.L.bremse_halte_sw) (L.L.bremse_halte) && (S.L.door_freigabe)

' Haltewunschlampe:

(L.L.haltewunsch) (L.L.door_1) 0.2 < (L.L.elec_busbar_main) && &&

(L.L.haltewunsch) (L.L.door_2) 0.2 < (L.L.elec_busbar_main) && &&

{if}

1 (S.L.haltewunschlampe)

{else}

0 (S.L.haltewunschlampe) (S.L.haltewunsch)

{endif}

' Abfall des Kinderwagenwunsch-Relais bei fehlender Stromversorgung:

(L.L.elec_busbar_main) 0 =

{if}

0 (S.L.door_kinderwagenwunsch)

{endif}

' Beleuchtung der Einstiege

(L.L.elec_busbar_main)

{if}

(L.L.door_0) 0.1 > (L.L.door_0) 0.1 > || (S.L.door_light_1)

(L.L.door_1) 0.1 > (L.L.door_1) 0.1 > || (S.L.door_light_2)

(L.L.door_2) 0.1 > (L.L.door_2) 0.1 > || (S.L.door_light_3)

{else}

0 (S.L.door_light_1) (S.L.door_light_2) (S.L.door_light_3)

{endif}

' Druckabhängige Türgeschwindigkeit

(C.L.door_druckluft)

{if}

(L.L.doorMaxSpeed_0_norm) (L.L.bremse_p_Tank04) 100000 - 850000 / (S.L.doorMaxSpeed_0)

(L.L.doorMaxSpeed_1_norm) (L.L.bremse_p_Tank04) 100000 - 850000 / (S.L.doorMaxSpeed_1)

(L.L.doorMaxSpeed_2_norm) (L.L.bremse_p_Tank04) 100000 - 850000 / (S.L.doorMaxSpeed_2)

(L.L.doorMaxSpeed_3_norm) (L.L.bremse_p_Tank04) 100000 - 850000 / (S.L.doorMaxSpeed_3)

{endif}

'----------------------

' AI-Ablauf:

(L.L.AI_Scheduled_AtStation) s0

1 =

{if}

'Wenn Türen geöffnet werden sollen:

(L.L.Velocity) (C.L.Door_Bremse_Halte_MaxKMH) <

{if}

'Nur, wenn v < maxkmh, sonst warten

'Taster jeweils nur betätigen, falls noch nicht an

(L.L.bremse_halte_sw) !

{if}

(M.L.trg_bus_dooraft)

{endif}

(L.L.doorTarget_0) ! (L.L.door_AI_timer) 0.3 > &&

{if}

(M.L.trg_bus_doorfront0)

{endif}

(L.L.doorTarget_1) ! (L.L.door_AI_timer) 0.6 > &&

{if}

(M.L.trg_bus_doorback1)

{endif}

(L.L.doorTarget_2) ! (L.L.door_AI_timer) 0.6 > &&

{if}

(M.L.trg_bus_doorback2)

{endif}

{else}

0 (S.L.door_AI_timer)

{endif}

(L.L.door_AI_timer) (L.S.Timegap) + (S.L.door_AI_timer)

{else}

l0 -1 =

{if}

'Wenn Türen geschlossen werden sollen:

'Taster jeweils nur betätigen, falls noch nicht aus:

(L.L.doorTarget_1)

{if}

(M.L.trg_bus_doorback1)

0 (S.L.door_AI_timer)

{endif}

(L.L.doorTarget_0) (L.L.door_AI_timer) 0.3 > &&

{if}

(M.L.trg_bus_doorfront0)

{endif}

(L.L.doorTarget_2) (L.L.door_AI_timer) 0.3 > &&

{if}

(M.L.trg_bus_doorback2)

0 (S.L.door_AI_timer)

{endif}

'Haltestellenbremse erst wegnehmen, wenn alle Türen zu. Dann auch erst den Bus AI-mäßig freigeben:

(L.L.door_0) 0.1 <

(L.L.door_1) 0.1 < &&

(L.L.door_2) 0.1 < &&

{if}

(L.L.bremse_halte_sw) (L.L.door_AI_timer) 0.3 > &&

{if}

(M.L.trg_bus_dooraft)

{endif}

(L.L.bremse_halte_sw) !

{if}

0 (S.L.AI_Scheduled_AtStation)

{endif}

{else}

'Sollte eine der Türen auf sein und die Haltestellenbremse aus, dann sofort diese einlegen

(L.L.bremse_halte_sw) !

{if}

(M.L.trg_bus_dooraft)

{endif}

(L.L.doorTarget_0) !

(L.L.doorTarget_1) ! &&

(L.L.doorTarget_2) ! &&

{if}

0 (S.L.door_AI_timer)

{endif}

{endif}

(L.L.door_AI_timer) (L.S.Timegap) + (S.L.door_AI_timer)

{endif}

{endif}

{end}

{macro:Door0_Calc}

(C.L.electric_doors)

{if}

(L.L.doorTarget_0)

{if}

(L.L.door_0) (F.L.door_0_opn_speed) (S.L.doorMaxSpeed_0)

{else}

(L.L.door_0) (F.L.door_0_cls_speed) (S.L.doorMaxSpeed_0)

{endif}

(C.L.fdoor_acc) (S.L.doorAcc_0)

(L.L.doorTarget_0) ! (L.L.doorSpeed_0) s0 abs 0.05 > (L.L.door_0) 0 > || &&

{if}

l0 /-/ (L.L.doorMaxSpeed_0) <

{if}

(L.L.doorSpeed_0) (L.L.doorAcc_0) (L.S.Timegap) * - (S.L.doorSpeed_0)

{else}

(L.L.doorSpeed_0) (L.L.doorAcc_0) (L.S.Timegap) * + (S.L.doorSpeed_0)

{endif}

(L.L.door_0) (L.L.doorSpeed_0) (L.S.Timegap) * + (S.L.door_0)

{else}

(L.L.doorSpeed_0) abs 0.05 > (L.L.door_0) 1 < || (L.L.doorTarget_0) &&

{if}

l0 (L.L.doorMaxSpeed_0) <

{if}

(L.L.doorSpeed_0) (L.L.doorAcc_0) (L.S.Timegap) * + (S.L.doorSpeed_0)

{else}

(L.L.doorSpeed_0) (L.L.doorAcc_0) (L.S.Timegap) * - (S.L.doorSpeed_0)

{endif}

(L.L.door_0) (L.L.doorSpeed_0) (L.S.Timegap) * + (S.L.door_0)

{else}

0 (S.L.doorSpeed_0)

{endif}

{endif}

{else}

(L.L.doorTarget_0) ! (L.L.doorSpeed_0) s0 abs 0.05 > (L.L.door_0) 0 > || &&

{if}

l0 /-/ (L.L.doorMaxSpeed_0) <

{if}

(L.L.doorSpeed_0) (L.L.doorAcc_0) (L.S.Timegap) * - (S.L.doorSpeed_0)

{endif}

(L.L.door_0) (L.L.doorSpeed_0) (L.S.Timegap) * + (S.L.door_0)

{else}

(L.L.doorSpeed_0) abs 0.05 > (L.L.door_0) 1 < || (L.L.doorTarget_0) &&

{if}

l0 (L.L.doorMaxSpeed_0) <

{if}

(L.L.doorSpeed_0) (L.L.doorAcc_0) (L.S.Timegap) * + (S.L.doorSpeed_0)

{endif}

(L.L.door_0) (L.L.doorSpeed_0) (L.S.Timegap) * + (S.L.door_0)

{else}

0 (S.L.doorSpeed_0)

{endif}

{endif}

{endif}

(L.L.door_0) 1 >

{if}

(T.L.ev_doorhitopen_0)

1 (S.L.door_0)

(L.L.doorSpeed_0) /-/ (L.L.doorRefl_0) * (S.L.doorSpeed_0)

{else}

(L.L.door_0) 0 <

{if}

(T.L.ev_doorhitclose_0)

0 (S.L.door_0)

(L.L.doorSpeed_0) /-/ (L.L.doorRefl_0) * (S.L.doorSpeed_0)

{endif}

{endif}

{end}

{macro:Door1_Calc}

(C.L.electric_doors)

{if}

(L.L.doorTarget_1)

{if}

(L.L.door_1) (F.L.door_1_opn_speed) (S.L.doorMaxSpeed_1)

{else}

(L.L.door_1) (F.L.door_1_cls_speed) (S.L.doorMaxSpeed_1)

{endif}

(C.L.fdoor_acc) (S.L.doorAcc_1)

(L.L.doorTarget_1) ! (L.L.doorSpeed_1) s0 abs 0.05 > (L.L.door_1) 0 > || &&

{if}

l0 /-/ (L.L.doorMaxSpeed_1) <

{if}

(L.L.doorSpeed_1) (L.L.doorAcc_1) (L.S.Timegap) * - (S.L.doorSpeed_1)

{else}

(L.L.doorSpeed_1) (L.L.doorAcc_1) (L.S.Timegap) * + (S.L.doorSpeed_1)

{endif}

(L.L.door_1) (L.L.doorSpeed_1) (L.S.Timegap) * + (S.L.door_1)

{else}

(L.L.doorSpeed_1) abs 0.05 > (L.L.door_1) 1 < || (L.L.doorTarget_1) &&

{if}

l0 (L.L.doorMaxSpeed_1) <

{if}

(L.L.doorSpeed_1) (L.L.doorAcc_1) (L.S.Timegap) * + (S.L.doorSpeed_1)

{else}

(L.L.doorSpeed_1) (L.L.doorAcc_1) (L.S.Timegap) * - (S.L.doorSpeed_1)

{endif}

(L.L.door_1) (L.L.doorSpeed_1) (L.S.Timegap) * + (S.L.door_1)

{else}

0 (S.L.doorSpeed_1)

{endif}

{endif}

{else}

(L.L.doorTarget_1) ! (L.L.doorSpeed_1) s0 abs 0.05 > (L.L.door_1) 0 > || &&

{if}

l0 /-/ (L.L.doorMaxSpeed_1) <

{if}

(L.L.doorSpeed_1) (L.L.doorAcc_1) (L.S.Timegap) * - (S.L.doorSpeed_1)

{endif}

(L.L.door_1) (L.L.doorSpeed_1) (L.S.Timegap) * + (S.L.door_1)

{else}

(L.L.doorSpeed_1) abs 0.05 > (L.L.door_1) 1 < || (L.L.doorTarget_1) &&

{if}

l0 (L.L.doorMaxSpeed_1) <

{if}

(L.L.doorSpeed_1) (L.L.doorAcc_1) (L.S.Timegap) * + (S.L.doorSpeed_1)

{endif}

(L.L.door_1) (L.L.doorSpeed_1) (L.S.Timegap) * + (S.L.door_1)

{else}

0 (S.L.doorSpeed_1)

{endif}

{endif}

{endif}

(L.L.door_1) 1 >

{if}

(T.L.ev_doorhitopen_1)

1 (S.L.door_1)

(L.L.doorSpeed_1) /-/ (L.L.doorRefl_1) * (S.L.doorSpeed_1)

{else}

(L.L.door_1) 0 <

{if}

(T.L.ev_doorhitclose_1)

0 (S.L.door_1)

(L.L.doorSpeed_1) /-/ (L.L.doorRefl_1) * (S.L.doorSpeed_1)

{endif}

{endif}

{end}

{macro:DoorAft_Open}

(L.L.haltewunsch) (L.L.bremse_halte) &&

{if}

(L.L.doorTarget_1) !

(L.L.doorTarget_2) !

(L.L.bremse_halte_sw) &&

{if}

(T.L.ev_doortriggeropen_2)

1 (S.L.doorTarget_1)

1 (S.L.doorTarget_2)

(C.L.door_druckluft)

{if}

(L.L.bremse_p_Tank04) 100000 - 0.96 * 100000 + (S.L.bremse_p_Tank04)

{endif}

{endif}

0 (S.L.doorAftLastOpen)

{endif}

{end}

{macro:DoorAftCalc}

(L.L.bremse_halte_sw) !

(L.L.door_20h_sw) ! &&

(L.L.door_2) 0 = &&

(L.L.door_3) 0 = &&

(L.L.elec_busbar_main) ! ||

(L.L.bremse_halte) &&

{if}

0 (S.L.bremse_halte) (S.L.doorAftLastOpen)

(T.L.ev_haltebremse_aus)

{endif}

(L.L.elec_busbar_main)

{if}

(L.L.bremse_halte)

{if}

(L.L.doorAftLastOpen) (L.S.Timegap) + (S.L.doorAftLastOpen)

{endif}

(L.L.doorTarget_1)

(L.L.doorAftLastOpen) (C.L.doorAftOpenTime) > &&

{if}

(T.L.ev_doortriggerclose_2)

0 (S.L.doorTarget_1)

(C.L.door_druckluft)

{if}

(L.L.bremse_p_Tank04) 100000 - 0.96 * 100000 + (S.L.bremse_p_Tank04)

{endif}

{endif}

(L.L.doorTarget_2)

(L.L.doorAftLastOpen) (C.L.doorAftOpenTime) > &&

{if}

(T.L.ev_doortriggerclose_2)

0 (S.L.doorTarget_2)

(C.L.door_druckluft)

{if}

(L.L.bremse_p_Tank04) 100000 - 0.96 * 100000 + (S.L.bremse_p_Tank04)

{endif}

{endif}

{endif}

{end}

{macro:Door2_Calc}

(C.L.electric_doors)

{if}

(L.L.doorTarget_1)

{if}

(L.L.door_2) (F.L.door_2_opn_speed) (S.L.doorMaxSpeed_2)

{else}

(L.L.door_2) (F.L.door_2_cls_speed) (S.L.doorMaxSpeed_2)

{endif}

(C.L.bdoor_acc) (S.L.doorAcc_2)

(L.L.doorTarget_1) ! (L.L.doorSpeed_2) s0 abs 0.05 > (L.L.door_2) 0 > || &&

{if}

l0 /-/ (L.L.doorMaxSpeed_2) <

{if}

(L.L.doorSpeed_2) (L.L.doorAcc_2) (L.S.Timegap) * - (S.L.doorSpeed_2)

{else}

(L.L.doorSpeed_2) (L.L.doorAcc_2) (L.S.Timegap) * + (S.L.doorSpeed_2)

{endif}

(L.L.door_2) (L.L.doorSpeed_2) (L.S.Timegap) * + (S.L.door_2)

{else}

(L.L.doorSpeed_2) abs 0.05 > (L.L.door_2) 1 < || (L.L.doorTarget_1) &&

{if}

l0 (L.L.doorMaxSpeed_2) <

{if}

(L.L.doorSpeed_2) (L.L.doorAcc_2) (L.S.Timegap) * + (S.L.doorSpeed_2)

{else}

(L.L.doorSpeed_2) (L.L.doorAcc_2) (L.S.Timegap) * - (S.L.doorSpeed_2)

{endif}

(L.L.door_2) (L.L.doorSpeed_2) (L.S.Timegap) * + (S.L.door_2)

{else}

0 (S.L.doorSpeed_2)

{endif}

{endif}

{else}

(L.L.doorTarget_1) ! (L.L.doorSpeed_2) s0 abs 0.05 > (L.L.door_2) 0 > || &&

{if}

l0 /-/ (L.L.doorMaxSpeed_2) <

{if}

(L.L.doorSpeed_2) (L.L.doorAcc_2) (L.S.Timegap) * - (S.L.doorSpeed_2)

{endif}

(L.L.door_2) (L.L.doorSpeed_2) (L.S.Timegap) * + (S.L.door_2)

{else}

(L.L.doorSpeed_2) abs 0.05 > (L.L.door_2) 1 < || (L.L.doorTarget_1) &&

{if}

l0 (L.L.doorMaxSpeed_2) <

{if}

(L.L.doorSpeed_2) (L.L.doorAcc_2) (L.S.Timegap) * + (S.L.doorSpeed_2)

{endif}

(L.L.door_2) (L.L.doorSpeed_2) (L.S.Timegap) * + (S.L.door_2)

{else}

0 (S.L.doorSpeed_2)

{endif}

{endif}

{endif}

(L.L.door_2) 1 >

{if}

(T.L.ev_doorhitopen_2)

1 (S.L.door_2)

(L.L.doorSpeed_2) /-/ (L.L.doorRefl_2) * (S.L.doorSpeed_2)

{else}

(L.L.door_2) 0 <

{if}

(T.L.ev_doorhitclose_2)

0 (S.L.door_2)

(L.L.doorSpeed_2) /-/ (L.L.doorRefl_2) * (S.L.doorSpeed_2)

{endif}

{endif}

{end}

{macro:Door3_Calc}

(C.L.electric_doors)

{if}

(L.L.doorTarget_2)

{if}

(L.L.door_3) (F.L.door_3_opn_speed) (S.L.doorMaxSpeed_3)

{else}

(L.L.door_3) (F.L.door_3_cls_speed) (S.L.doorMaxSpeed_3)

{endif}

(C.L.bdoor_acc) (S.L.doorAcc_3)

(L.L.doorTarget_2) ! (L.L.doorSpeed_3) s0 abs 0.05 > (L.L.door_3) 0 > || &&

{if}

l0 /-/ (L.L.doorMaxSpeed_3) <

{if}

(L.L.doorSpeed_3) (L.L.doorAcc_3) (L.S.Timegap) * - (S.L.doorSpeed_3)

{else}

(L.L.doorSpeed_3) (L.L.doorAcc_3) (L.S.Timegap) * + (S.L.doorSpeed_3)

{endif}

(L.L.door_3) (L.L.doorSpeed_3) (L.S.Timegap) * + (S.L.door_3)

{else}

(L.L.doorSpeed_3) abs 0.05 > (L.L.door_3) 1 < || (L.L.doorTarget_2) &&

{if}

l0 (L.L.doorMaxSpeed_3) <

{if}

(L.L.doorSpeed_3) (L.L.doorAcc_3) (L.S.Timegap) * + (S.L.doorSpeed_3)

{else}

(L.L.doorSpeed_3) (L.L.doorAcc_3) (L.S.Timegap) * - (S.L.doorSpeed_3)

{endif}

(L.L.door_3) (L.L.doorSpeed_3) (L.S.Timegap) * + (S.L.door_3)

{else}

0 (S.L.doorSpeed_3)

{endif}

{endif}

{else}

(L.L.doorTarget_2) ! (L.L.doorSpeed_3) s0 abs 0.05 > (L.L.door_3) 0 > || &&

{if}

l0 /-/ (L.L.doorMaxSpeed_3) <

{if}

(L.L.doorSpeed_3) (L.L.doorAcc_3) (L.S.Timegap) * - (S.L.doorSpeed_3)

{endif}

(L.L.door_3) (L.L.doorSpeed_3) (L.S.Timegap) * + (S.L.door_3)

{else}

(L.L.doorSpeed_3) abs 0.05 > (L.L.door_3) 1 < || (L.L.doorTarget_2) &&

{if}

l0 (L.L.doorMaxSpeed_3) <

{if}

(L.L.doorSpeed_3) (L.L.doorAcc_3) (L.S.Timegap) * + (S.L.doorSpeed_3)

{endif}

(L.L.door_3) (L.L.doorSpeed_3) (L.S.Timegap) * + (S.L.door_3)

{else}

0 (S.L.doorSpeed_3)

{endif}

{endif}

{endif}

(L.L.door_3) 1 >

{if}

(T.L.ev_doorhitopen_3)

1 (S.L.door_3)

(L.L.doorSpeed_3) /-/ (L.L.doorRefl_3) * (S.L.doorSpeed_3)

{else}

(L.L.door_3) 0 <

{if}

(T.L.ev_doorhitclose_3)

0 (S.L.door_3)

(L.L.doorSpeed_3) /-/ (L.L.doorRefl_3) * (S.L.doorSpeed_3)

{endif}

{endif}

{end}

{macro:trg_bus_doorfront0}

(L.L.doorTarget_0) ! (S.L.doorTarget_0)

{if}

(T.L.ev_doortriggeropen_0)

{else}

(T.L.ev_doortriggerclose_0)

{endif}

(C.L.door_druckluft)

{if}

(L.L.bremse_p_Tank04) 100000 - 0.98 * 100000 + (S.L.bremse_p_Tank04)

{endif}

{end}

{macro:trg_bus_doorback1}

(L.L.doorTarget_1) ! (S.L.doorTarget_1)

{if}

(T.L.ev_doortriggeropen_1)

{else}

(T.L.ev_doortriggerclose_1)

{endif}

(C.L.door_druckluft)

{if}

(L.L.bremse_p_Tank04) 100000 - 0.98 * 100000 + (S.L.bremse_p_Tank04)

{endif}

{end}

{macro:trg_bus_doorback2}

(L.L.doorTarget_2) ! (S.L.doorTarget_2)

{if}

(T.L.ev_doortriggeropen_2)

{else}

(T.L.ev_doortriggerclose_2)

{endif}

(C.L.door_druckluft)

{if}

(L.L.bremse_p_Tank04) 100000 - 0.98 * 100000 + (S.L.bremse_p_Tank04)

{endif}

{end}

{macro:trg_bus_dooraft}

(L.L.bremse_halte_sw) ! (S.L.bremse_halte_sw)

(L.L.bremse_halte_sw)

{if}

(T.L.ev_haltebremse_sw_an)

{else}

(T.L.ev_haltebremse_sw_aus)

{endif}

{end}

{macro:trg_bus_20h-switch}

(L.L.door_20h_sw) ! (S.L.door_20h_sw)

(L.L.door_20h_sw)

{if}

(T.L.ev_haltebremse_sw_an)

{else}

(T.L.ev_haltebremse_sw_aus)

{endif}

{end}

Then in your door_varlist.txt change:

doorTarget_23

to

doorTarget_2

Above script, many thanks to Cooper but I thought I would put it here before it becomes lost.

Share this post


Link to post
Share on other sites
  • 0

2.1 has been released now

http://jacob.studioaloni.com/web/files/Mercedes_New_2.1.rar

From the author:

This is the just-finished version 2.1, in which I had included an older drivetrain version (weaker 210hp Engine, older gearbox model, air-operated doors with new sounds) and two new BVG repaints by me - the old Beige one and the new yellow one.

If you already have the v2.0 mod, you can just overwrite the folder with the new one, replacing all files.

Share this post


Link to post
Share on other sites
  • 0

I... must.. have... that... paint !!

omgomgomgomgomgoogmog o.o GIVE ME IT NOOOOOOOOOOWWWWWWWWWWWWWWWWWWWWWWWWW!

HEARTS FOR YOU <3333

Haha David will upload it for me tomorrow most likely as I am unable to, must wait a bit longer ;)

Share this post


Link to post
Share on other sites
  • 0

Ok, mine now looks like this:

###################################

0

[exit]

29

[exit]

35

###################################

People only get in at the front doors and exit either central or rear :)

Share this post


Link to post
Share on other sites
  • 0

Hi, can someone please give to me step-by-step tips how to change that people is getting in only from front door? I'm very bad doing this so i need step-by-step instructions :) Thanks.

And which is key event for rear door?

Edited by zige

Share this post


Link to post
Share on other sites
  • 0

Thiago, what is in that script, is that coopers adjustment? Also have a look what I put up earlier .. is your script better than how I have it do you know ?

@Fleetline, hanging for that paint mate, it looks awesome!

Share this post


Link to post
Share on other sites
  • 0

Oh oh oh I didn't notice you have posted an update to it mate, sorry!

Well, I still have the 2.0 version - This zip I uploaded is composed by cooper's script and the only front entrance thing. If yours is working ok, I think it won't need the update. :)

Share this post


Link to post
Share on other sites
  • 0

I've yet to try the 2.1 update for this bus yet, so this problem may be fixed. But I've noticed that the interior display(like that of the D92) is upside down and doesn't light up properly, anyone know how to fix this?

And lastly, I found it before but for the life of me I cannot find it now, where is the script that alters how the front matrix display is? I want to change the color of the fonts.

And Fleetline, that is one AWESOME looking Stagecoach, much better that what I would have pulled off!

Share this post


Link to post
Share on other sites
  • 0

Well mate about the upside down display I really don't know. I'm not at home to check that for you.

But I remember you can change the display colors by going to the .cfg file inside the Model folder and search for the "texttexture" related to the ANNAX thing. The 3 last values correspond to the RGB channels

Share this post


Link to post
Share on other sites
  • 0

Well mate about the upside down display I really don't know. I'm not at home to check that for you.

But I remember you can change the display colors by going to the .cfg file inside the Model folder and search for the "texttexture" related to the ANNAX thing. The 3 last values correspond to the RGB channels

Thanks, found it, though garbled up. As for the upside down display I don't think its a model fault, as the stop request light(on the display) is right side up, so I think the text is just upside down. No rush for this, if you have time or someone else can get to it.

Share this post


Link to post
Share on other sites
  • 0

PS @fleetline, how come you cannot upload here ? Are you getting errors or something ?

Yeah some random error saying:

There was an error attempting to upload the file. Please contact an administrator

Dave

Edited by Fleetline7221

Share this post


Link to post
Share on other sites
  • 0

Ok, I have adjusted some settings on your account, you can try it again if you want or if you are happy with just sending it to David, that is cool with me too.

If you can give me the links of your files, I can change the name of the owner of the file to your name as well :)

Share this post


Link to post
Share on other sites
  • 0

Thanks to Thiago, now passengers enter from ffront door. But still it have couple things, passsengers enter from front door ONLY IF REAR DOOR IS OPENED and central and rear doors doenst are automatic... For me front door is button front door 1st swing and central door second swing and back doors bus stop brake/door release button..

Share this post


Link to post
Share on other sites
  • 0

Ok, I have adjusted some settings on your account, you can try it again if you want or if you are happy with just sending it to David, that is cool with me too.

If you can give me the links of your files, I can change the name of the owner of the file to your name as well :)

Thanks, but it still gives me the same error :hmm:

The files David has already uploaded for me are...Stagecoach Enviro500 and Arriva Enviro500

Dave

Share this post


Link to post
Share on other sites
  • 0

Thanks to Thiago, now passengers enter from ffront door. But still it have couple things, passsengers enter from front door ONLY IF REAR DOOR IS OPENED and central and rear doors doenst are automatic... For me front door is button front door 1st swing and central door second swing and back doors bus stop brake/door release button..

Do you have cooper's script for the doors? if not, look in the first post I made it lists a link to that script and it'll fix the doors for you.

Share this post


Link to post
Share on other sites
  • 0

Ok all updated now fleetline, now, can you click on the bottom link here in the forums where it says 'Delete my cookies'

Also clear your cache and temp files and try it again?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×