[MOD 0.12.x, 0.13.x] Honk!

Topics and discussion about specific mods
GotLag
Filter Inserter
Filter Inserter
Posts: 510
Joined: Sat May 03, 2014 3:32 pm
Contact:

[MOD 0.12.x, 0.13.x] Honk!

Post by GotLag » Wed Mar 16, 2016 4:34 am

Type: Mod
Name: Honk
Description: Trains now have horns!
License: No rights reserved
Version: 0.2.1
Release: 2016-03-17
Tested-With-Factorio-Version: 0.12.26
Category: Helper
Download: Mod Portal
Honk_2.1.1.zip
Factorio 0.13
(82.79 KiB) Downloaded 423 times
Honk_0.2.1.zip
Factorio 0.12
(82.08 KiB) Downloaded 127 times
Website: n/a

License
License
Description
Example video
When braking for a signal or station, trains emit one long horn sound.
Upon starting to move, trains emit two short horn blasts in quick succession.

Version History
Version history
Known Issues
The sound originates from the location of the lead locomotive at the time it's triggered. This means that for the long horn blast, the sound location does not move with the train.

Acknowledgements
Thanks to Supercheese for the method used to play sounds, taken from the Red Alerts mod.
Last edited by GotLag on Sat Jul 16, 2016 4:56 am, edited 9 times in total.

waduk
Filter Inserter
Filter Inserter
Posts: 371
Joined: Tue Feb 10, 2015 5:44 pm
Contact:

Re: [MOD 0.12.x] Honk! v0.2.0

Post by waduk » Wed Mar 16, 2016 7:35 pm

Haha,..this is really great.
Yeah, it's a bit sad the sound were not following train, especially noticeable on the long horn.
Sound work best if we're riding the train.

But this is a great start.
10/10 must have mod (along with smart train by choumiko)

Give it a shout to YuokiTani, he really love train.

Please also post it on reddit, many other user the other day is wondering if someone can make this, and you did !


Edit :
Oh, you already posted on reddit. Didn't notice since it was a reply, not self post.

Alexs
Fast Inserter
Fast Inserter
Posts: 101
Joined: Sun Sep 07, 2014 9:46 am

Re: [MOD 0.12.x] Honk! v0.2.1

Post by Alexs » Thu Mar 17, 2016 9:18 am

thx! great idea!

User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1613
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: [MOD 0.12.x] Honk! v0.2.1

Post by Arch666Angel » Thu Mar 17, 2016 12:05 pm

Love for trains = 10/10

Qon
Smart Inserter
Smart Inserter
Posts: 1240
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: [MOD 0.12.x] Honk! v0.2.1

Post by Qon » Mon Mar 21, 2016 2:28 pm

I would like if trains instead used that long horn singlan if the player is close to a railpiece that the train will use within a few seconds. So you don't get run over...

BlakeMW
Filter Inserter
Filter Inserter
Posts: 951
Joined: Thu Jan 21, 2016 9:29 am
Contact:

Re: [MOD 0.12.x] Honk! v0.2.1

Post by BlakeMW » Mon Mar 28, 2016 12:43 pm

And trains definitely need a "victory horn" for when they run you over.

GotLag
Filter Inserter
Filter Inserter
Posts: 510
Joined: Sat May 03, 2014 3:32 pm
Contact:

Re: [MOD 0.12.x] Honk! v0.2.1

Post by GotLag » Wed Mar 30, 2016 10:58 am

I like that idea, I'll see if I can find an appropriate sound :lol:

Qon
Smart Inserter
Smart Inserter
Posts: 1240
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: [MOD 0.12.x] Honk! v0.2.1

Post by Qon » Thu Mar 31, 2016 11:18 am

BlakeMW wrote:And trains definitely need a "victory horn" for when they run you over.
Or run over a biter :>
GotLag wrote:I like that idea, I'll see if I can find an appropriate sound :lol:
Which idea? Mine or BlakeMW's?

GotLag
Filter Inserter
Filter Inserter
Posts: 510
Joined: Sat May 03, 2014 3:32 pm
Contact:

Re: [MOD 0.12.x] Honk! v0.2.1

Post by GotLag » Thu Mar 31, 2016 11:21 am

Victory horn. I don't think the train should honk until after it's run you over, as that would impede its primary function (which is running you over).

Qon
Smart Inserter
Smart Inserter
Posts: 1240
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: [MOD 0.12.x] Honk! v0.2.1

Post by Qon » Sun Apr 03, 2016 1:03 pm

GotLag wrote:Victory horn. I don't think the train should honk until after it's run you over, as that would impede its primary function (which is running you over).
LOL :D
Sure that would be funny. It must be something that really sounds both like "victory" and "haha, got you!" for maximum effect.

User avatar
Roktaal
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Sat Mar 26, 2016 6:42 pm
Contact:

Re: [MOD 0.12.x] Honk! v0.2.1

Post by Roktaal » Sun Apr 03, 2016 2:26 pm

Qon wrote:
GotLag wrote:Victory horn. I don't think the train should honk until after it's run you over, as that would impede its primary function (which is running you over).
LOL :D
Sure that would be funny. It must be something that really sounds both like "victory" and "haha, got you!" for maximum effect.
Headshot! :D

JasonC
Fast Inserter
Fast Inserter
Posts: 241
Joined: Tue Mar 22, 2016 3:05 am
Contact:

Re: [MOD 0.12.x] Honk! v0.2.1

Post by JasonC » Mon Apr 04, 2016 7:37 am

This is so awesome, thanks for making this one. It really ought to be standard with the game.

Also for some reason YouTube decided that your video is related to a video titled "Why Avocados Shouldn't Exist". I didn't watch it, sounds way too controversial.

GotLag
Filter Inserter
Filter Inserter
Posts: 510
Joined: Sat May 03, 2014 3:32 pm
Contact:

Re: [MOD 0.12.x, 0.13.x] Honk!

Post by GotLag » Wed Jun 29, 2016 2:01 pm

Updated to 0.13

nerdkusi
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Apr 08, 2015 10:36 am
Contact:

Re: [MOD 0.12.x, 0.13.x] Honk!

Post by nerdkusi » Sat Jul 09, 2016 6:38 am

Thanks for this mod its great I love it! There is one issue tho, if a train follows another on a rail it emmits the honk every 0.5 second or so, resulting in mashed noise.
Maybe you could add a minimum delay between two honks? A two to five seconds would probably do. :D

GotLag
Filter Inserter
Filter Inserter
Posts: 510
Joined: Sat May 03, 2014 3:32 pm
Contact:

Re: [MOD 0.12.x, 0.13.x] Honk!

Post by GotLag » Sat Jul 09, 2016 6:45 am

The honks are emitted when trains enter three of the possible states: on_the_path, arrive_station, and arrive_signal. So if your trains are constantly honking it means they're very often switching between braking for a signal, and back to full speed ahead. I didn't catch that in testing, as I used a simple test track which wasn't congested.

I'll look into adding a cooldown today.

GotLag
Filter Inserter
Filter Inserter
Posts: 510
Joined: Sat May 03, 2014 3:32 pm
Contact:

Re: [MOD 0.12.x, 0.13.x] Honk!

Post by GotLag » Mon Jul 11, 2016 2:21 pm

Added an experimental cooldown. It should now only allow 3 honks per rolling 1.5-second window.

GotLag
Filter Inserter
Filter Inserter
Posts: 510
Joined: Sat May 03, 2014 3:32 pm
Contact:

Re: [MOD 0.12.x, 0.13.x] Honk!

Post by GotLag » Wed Jul 13, 2016 11:48 am

Updated to 2.1.0:
Image

User avatar
Mattyrogue
Inserter
Inserter
Posts: 35
Joined: Wed Feb 11, 2015 2:18 pm
Contact:

Re: [MOD 0.12.x, 0.13.x] Honk!

Post by Mattyrogue » Thu Jul 14, 2016 1:34 pm

I have to say, I love this mod, it adds so much life to my factories actually hearing trains arriving and leaving the station from a distance.

I do have a small suggestion though; why not make this a generalized vehicle mod and give cars and tanks their own horn too? (Triggered by the same button as trains are manually)

Also maybe a tickbox in the train's menu for whether or not you want this train to honk.

GotLag
Filter Inserter
Filter Inserter
Posts: 510
Joined: Sat May 03, 2014 3:32 pm
Contact:

Re: [MOD 0.12.x, 0.13.x] Honk!

Post by GotLag » Sat Jul 16, 2016 5:00 am

More honking = more better

Updated the 0.13 mod to have per-locomotive cooldown, and fixed a bug whereby only one end of the train would honk, which was particularly noticeable on long trains. Now the forward-moving end honks on braking, and both ends honk on starting (there's no way to determine the forward-facing locomotive on a train when it starts to move, as the speed is still 0 and the front_movers and back_movers arrays are not relative to direction of travel).

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2242
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [MOD 0.12.x, 0.13.x] Honk!

Post by Optera » Sat Jul 16, 2016 5:35 am

Please add a variable for volume control to control.lua file or add a config.lua for that.

Post Reply

Return to “Mods”

Who is online

Users browsing this forum: garson111, Solinya