Honk

by GotLag

Trains honk when stopping. And starting. And on command.

Tweaks
a month ago
0.13 - 2.0
95.8K
Trains

i adding sounds

5 years ago

hey there, i am liking this mod, but was thinking of adding more/custom sounds,

would that be possible, and how would i go about doing that?

5 years ago

I don't have plans to support custom sounds.

I suggest extracting the mod from the zip and looking at data.lua and control.lua to see how it works, to create your own version.

5 years ago

currently what i tried gets me the following error
"
The mod Honk caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Honk::on_train_changed_state (ID 23)
Unknown sound: "hyonk"
stack traceback:
Honk/control.lua:62: in function 'playSoundAtEntity'
Honk/control.lua:99: in function 'attemptHonk'
Honk/control.lua:109: in function 'findLocoToHonk'
Honk/control.lua:153: in function <Honk/control.lua:150>
stack traceback:
[C]: in function 'play_sound'
Honk/control.lua:62: in function 'playSoundAtEntity'
Honk/control.lua:99: in function 'attemptHonk'
Honk/control.lua:109: in function 'findLocoToHonk'
Honk/control.lua:153: in function <Honk/control.lua:150>
"

5 years ago

It looks like you haven't defined your sound, which you will need to do in data.lua

If you have further questions I suggest you ask in the #mod-making channel on the Factorio Discord server

5 years ago

got it, thanks for the advice

5 years ago

You'll get quicker answers there because I'm about to go out.

New response