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

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

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

Post by GotLag »

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 695 times
Honk_0.2.1.zip
Factorio 0.12
(82.08 KiB) Downloaded 318 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: 372
Joined: Tue Feb 10, 2015 5:44 pm
Contact:

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

Post by waduk »

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: 102
Joined: Sun Sep 07, 2014 9:46 am

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

Post by Alexs »

thx! great idea!

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

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

Post by Arch666Angel »

Love for trains = 10/10

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

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

Post by Qon »

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...
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser

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 »

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

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

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

Post by GotLag »

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

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

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

Post by Qon »

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?
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser

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

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

Post by GotLag »

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: 2164
Joined: Thu Mar 17, 2016 6:27 am
Contact:

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

Post by Qon »

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.
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser

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 »

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
Filter Inserter
Filter Inserter
Posts: 449
Joined: Tue Mar 22, 2016 3:05 am
Contact:

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

Post by JasonC »

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.
Took a break from 0.12.29 to 0.17.79, and then to ... oh god now it's 1.something. I never know what's happening.

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

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

Post by GotLag »

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 »

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: 532
Joined: Sat May 03, 2014 3:32 pm
Contact:

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

Post by GotLag »

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: 532
Joined: Sat May 03, 2014 3:32 pm
Contact:

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

Post by GotLag »

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

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

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

Post by GotLag »

Updated to 2.1.0:
Image

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

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

Post by Mattyrogue »

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: 532
Joined: Sat May 03, 2014 3:32 pm
Contact:

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

Post by GotLag »

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: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

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

Post by Optera »

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

Post Reply

Return to “Mods”