Train announcements


This Factorio mod adds train announcements to the game when sitting in a train. Generic station announcements can be assigned to your custom station names via the mod settings.

14 days ago
1.1
78
Owner:
boernsen2
Source:
https://github.com/boernsen-developme...
Homepage:
N/A
License:
MIT and CC BY-NC 3.0
Created:
14 days ago
Latest Version:
0.1.1 (14 days ago)
Factorio version:
1.1
Downloaded:
78 times

Train Announcements

Description

This Factorio mod adds train announcements to the game when sitting in a train. Currently the following announcements are supported:

  • Next station (at configurable distance before the next station)
  • Final station (if any wait condition of the next station is one of: Passenger not present, Inactivity >= 0.5h)
  • Destination full
  • No path
  • Stopping at a red signal
  • Back on path (train continues after being interrupted)
  • Pleasant journey (train has been switched to automatic and starts to move)
  • Intermediate (at configurable distances before the next station)

Announcements are available as text as well as sound and they are in English only for now. Both can be turned off individually if desired. The audio announcements have been generated using https://freetts.com. Various generic station names are included, which can be assigned to the actual station names of your game via the mod settings by copy & paste. These settings are savegame-wise and should also be in sync automatically for all players of a multiplayer game. The textual announcements do print the actual station names.

Additionally, a few jingles are included, which will be played before the announcement if configured. Unfortunately, there is no audio preview possible in the settings, so you will have to try the sounds or play them manually from the sounds folder in the mod's zip file.

If you play single player / locally only, you may add your own announcement sounds, e.g. from a recording, Youtube, freesound.org or any free text-to-speech service such as https://freetts.com .

DISCLAIMER: If you use any included script, you do that on your own responsibility. I will not take any responsibility for any damage to or loss of any data caused by the script.

To add your own sounds extract the mod zip file (in Factorio folder/mods), remove the zip file (keep the folder) and then add your sounds as *.ogg files to the corresponding sub-folders (i.e. Factorio folder/mods/TrainAnnouncements_x.x.x/sounds/...). After that you will need to run the two scripts update_data_settings_locale.py and update_sound_durations.py (tested on Ubuntu only). This makes them available in the mod settings and stores the sound durations to avoid overlapping sounds. If you delete any of the existing sounds, Factorio might complain about missing default settings, so you might be better off to add your sounds in own sub-folders. BE WARNED that if you added custom sounds and the mod is updated, your sounds will be removed, so make sure to backup them before updating or maintain them in a separate folder and copy/update them after each mod update!

CREDITS

This mod uses the following sounds or modified versions from freesound.org:

"Airport Announcement.wav" by Benboncan ( https://freesound.org/people/Benboncan/sounds/93645/ ) licensed under CC BY 3.0

"Announcement-03.wav" by gollamar ( https://freesound.org/people/gollamar/sounds/273232/ ) licensed under CC BY 3.0

"Stockholm's Tunnelbana jingle.wav" by klankbeeld ( https://freesound.org/people/klankbeeld/sounds/587168/ ) licensed under CC BY 4.0

This mod uses various text-to-speech conversions from https://freetts.com

This mod uses the following icons or modified versions from iconfinder.com:

"Ui, essential, app, sound, speaker" icon by Nack Thanakorn ( https://www.iconfinder.com/icons/8324192/ui_essential_app_sound_speaker_icon )

LICENSE

All sound and image files are licensed under Creative Commons Attribution 4.0 International (CC BY 4.0)
https://creativecommons.org/licenses/by/4.0/

Everything else is under the following MIT License:

Copyright (c) 2022 boernsen-development (77436741+boernsen-development@users.noreply.github.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.