Get Exterior Announcements on ANY OMSI 2 Bus

This tutorial will show you how to get exterior announcements on your buses, based on the schedule you’re on. Make sure you make backups of all your files and attempt at your own risk! I will not be held responsible if you didn’t make backups!!

So like lookup which door OSC your bus uses (it’s usually named door.osc but make sure you look at your.bus file to be sure) and then find this:

{macro:Door Frame}

scroll down until you find something similar to this:

(L.L.door_0) 0.9 > (S.L.PAX_Entry0_Open) (S.L.PAX_Exit0_Open)
 (L.L.door_2) 0.9 > (S.L.PAX_Entry1_Open) (S.L.PAX_Exit1_Open)
 (L.L.door_3) 0.9 > (S.L.PAX_Entry2_Open) (S.L.PAX_Exit2_Open)
 (L.L.door_4) 0.9 > (S.L.PAX_Entry3_Open) (S.L.PAX_Exit3_Open)
 (L.L.door_5) 0.9 > (S.L.PAX_Entry4_Open) (S.L.PAX_Exit4_Open)

Now I must warn it won’t be exactly the same, so that’s why I never outright told people to do this because if it doesn’t work, I know for a fact that people will get angery with me and tell me I broke their games. So I warn it won’t be the same, and if you’re unsure MAKE BACKUPS. Anyways, under the last door Entry/exit, in this case the last one is 5, hit return to add an extra space, then add in this:

(L.L.door_0) 0.05 >
 (L.L.external_announcement) 1 = &&
 {if}
 "..\..\Announcements\"
 0 (M.V.GetDepotStringGlobal) $+   
 "\" $+ 
 (M.V.GetTTLineString) $+
 "_EXT_" $+
 (M.V.GetTTTerminusIndex) 0 (M.V.GetTerminusString) $+
 ".wav" $+
 $msg (T.F.ev_ext_announce)
 0 (S.L.external_announcement)
 {endif}

 (L.L.door_0) 0.04 <
 (L.L.external_announcement) 0 = &&
 {if}
 "ditto.wav" $msg (T.F.ev_ext_announce)
 1 (S.L.external_announcement)
 {endif}

Then save.

NEXT, we open up the varlist for that same bus, mind you it’s usually door_varlist.txt but it could be named something differently so check your .bus file under varlists to be sure.

anyway all you do in this case is add in this:

external_announcement

We’re almost done.

LAST STEP:

Open up the sound cfg file for whatever bus you’re using. In this case, it’s in the sound folder and normally named sound_[bus name].cfg but it could be named differently so make sure, again, you check your .bus files.

Anyways, just add in this small bit of code and save.

[sound]

1

[3d]
1.386
5.502
2.573
5

[trigger]
ev_ext_announce

and save and viola, you’ve just given your bus automatic exterior announcements!

NOTES:

  • Depending on your scheduled trip and whatnot, so far this only works by default with Cayuga USA as it’s the only map that has announcements made with this function in mind, but it could be expanded to other maps if other developers work with this, or if you make announcements yourself.
  • In order to have announcements play in other maps, you must create .wav files in the GLOBAL announcements directory relative to the .hof file with the name:
    [SCHEDULED ROUTE NUMBER]_EXT_[SCHEDULED ROUTE IBIS TERMINUS STRING].wav
    For example,
    47_EXT_CITY HALL.wav
  • To make buses announce when the front doors close, you can add a .wav file to your vehicle named “ditto.wav” in your vehicle’s sound folder.

Thank me by sharing this tutorial if it works for you! Special thanks to user “John” for creating the originals as well!

About the author: Dash Verified icon 1

I have been with Virtual Transit Center since it's conception as the "Dash Forums" back in 2008. Since then, I have been writing and doing YouTube side by side, focusing both on Transportation and Gaming. Most of my knowledge comes from SEPTA as I lived in Philadelphia for most of my life. As of 2021, I am on YouTube as DashTransit, Dash5155, and TheDashOfficial.

As for the name DashTransit itself, it actually stems from my YouTube channel.

DashTransit was originally called "njt5329" and the channel was just clips of buses. Mostly SEPTA and NJT. A Fujifilm Finepix was used in this era.

Starting in July 2011, the Canon SX130IS camera became the camera of the channel, bringing HD documentary-style videos much like my buddy (trainman1971) did for DVD for many years past. This is when the channel became known as "Transit Action Series"

In May 2012, the original Canon SX130IS retired, and then all videos were recorded off a mobile phone until eventually uploaded proved too difficult due to hardships IRL

Starting in 2017, I used a Canon SX200IS from Bastranz to reboot the channel that otherwise was dead for a whole year prior.

Between April 19th, 2019, and January 21st, 2021, all videos were recorded by a Canon SX710 HS camera. The channel was renamed DashTransit 4/19/19.

Similar Posts

Give your feedback on this post!

Get Connected!
Come join Virtual Transportation Center now to become part of a bigger transportation fandom.

Comments

@peepso_user_219(Elijah)
how many spaces do i need in the 2 section?
February 4, 2021 2:48 am