Docs / Reference / Content formats
Radio variables (plugins)
OMSI plays no music itself. The radios of the buses only set variables that plugins read:
Snd_Radio - the cassette player (KR_play/KR_stop) of the stock SD200/SD202/NL and of
most mods, 1 while it plays (no sound.cfg uses it);
the Sound Extension plugin's
SndExt_Radio - the station button pressed (1..n, 0 = off; the W906 Sprinter and the
Procity show their own station names for it) with SndVol_Radio - the volume knob (0..1,
the Sprinter's goes to 2) and SndExt_RadioPlaylist for its USB/CD modes. openOMSI
plays internet stations for them (~/.openomsi/radio.cfg).
Streams in HE-AAC with a
program config element (some .aacp stations) are not decoded; MP3, AAC-LC and Ogg are.
A radio whose display is a text of its script gets the station and the song that play,
ten characters a line, a longer text running through: into Snd_Radio_Text where the
script has that variable, and into the second line of magnitola_1 (frequency@station,
@ the line break) on Dmitrij's "Magnitola" radio, while it shows its track
(mp3_display_track_name).
A map may bring stations of its own: a radio.cfg beside its global.cfg (not an OMSI
file; Omsi.exe does not read it), a line name = address each. They come first, on the
first station buttons, and the player's follow. Its volume line is not read.
Behind the
address the frequencies the station is on may stand, for the display: | 94.6 is its
frequency everywhere, | 94.6 @ x, y the one near that place of the map, in the game's
metres (tile column and row times 300 m plus the place within the tile; the log gives a
bus's place when it is put on the map). The frequency of the place nearest to the bus is
shown:
Radiozurnal = https://example.org/radiozurnal.mp3 | 94.6 @ 25500, 20000 | 90.9 @ 2300, -720
Regional = https://example.org/regional.mp3 | 97.9Something wrong or missing? Fix it on GitHub or open an issue.