[mod] Torch Sounds [wip]
[mod] Torch Sounds [wip]
This mod adds new sounds to torches.
if placing/removing a torch a "swush" sound is played.
Continuos sound is removed because of some engine issues
Github: https://github.com/MarkuBu/torch_sounds
For Minetest Version: 0.4.14 (uses LBM)
Depends: default
Optional: torches
Version: 0.0.1
License: DWYWPL
Feel free to try and report bugs
View Video for demo
https://youtu.be/2OkIe0j3ZzA
if placing/removing a torch a "swush" sound is played.
Continuos sound is removed because of some engine issues
Github: https://github.com/MarkuBu/torch_sounds
For Minetest Version: 0.4.14 (uses LBM)
Depends: default
Optional: torches
Version: 0.0.1
License: DWYWPL
Feel free to try and report bugs
View Video for demo
https://youtu.be/2OkIe0j3ZzA
Last edited by burli on Mon Mar 13, 2017 12:01, edited 7 times in total.
- TumeniNodes
- Member
- Posts: 2941
- Joined: Fri Feb 26, 2016 19:49
- GitHub: TumeniNodes
- IRC: tumeninodes
- In-game: TumeniNodes
- Location: in the dark recesses of the mind
- Contact:
Re: [mod] Torch Sounds [wip]
A nice mod that adds some ambience, thanks. These are the sort of subtle features which continue to make Minetest better all the time :)
A Wonderful World
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [mod] Torch Sounds [wip]
+1
i love the header of your game, who did it?? XD
i love the header of your game, who did it?? XD
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: [mod] Torch Sounds [wip]
Don't know. It was just there ;-)azekill_DIABLO wrote: i love the header of your game, who did it?? XD
I have some more ideas like this.TumeniNodes wrote:These are the sort of subtle features which continue to make Minetest better all the time :)
Re: [mod] Torch Sounds [wip]
what is the license of this "mod"?
Edit: same for the audio files, I can't find any license info.?
Edit: same for the audio files, I can't find any license info.?
Re: [mod] Torch Sounds [wip]
Will be DWYWPL or something similar. Will add more informations soonsofar wrote:what is the license of this "mod"?
Re: [mod] Torch Sounds [wip]
Add some more informations and reduced the length of the burning sound to 20 seconds. Attached the new file to the first post
Re: [mod] Torch Sounds [wip]
I tried my mod with the Karsthafen map. There are lots of default torches. There is a bug if the 3d torches mod has to convert the torches first. And if there are many torches I get an out of memory warning.
I also add a random delay in the lbm becaus it sounds strange if many torches are "ignited" at nearly the same time
I also add a random delay in the lbm becaus it sounds strange if many torches are "ignited" at nearly the same time
Last edited by burli on Sat May 14, 2016 16:12, edited 1 time in total.
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [mod] Torch Sounds [wip]
yes.
exemple: in old MT version (4.6 i think) i started a fire in a forest (IMMA PIXEL ARSONIST!!) and, after a while i got some error about sounds, huge and strange noises and then silence....
add a range for listening sounds (15 nodes is perfect) and you will not have problems ;)
exemple: in old MT version (4.6 i think) i started a fire in a forest (IMMA PIXEL ARSONIST!!) and, after a while i got some error about sounds, huge and strange noises and then silence....
add a range for listening sounds (15 nodes is perfect) and you will not have problems ;)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: [mod] Torch Sounds [wip]
Well, that does not work with my solution. If I set eg max_hear_distance=5, then only torches near to the player will play a sound. The other torches remain silent.azekill_DIABLO wrote: add a range for listening sounds (15 nodes is perfect) and you will not have problems ;)
I guess I have to find another solution. Maybe I try "find_nodes_in_area" to turn the sound on and the node timer to turn the sound off. As long as the node is near the player the timer will reset every few seconds
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [mod] Torch Sounds [wip]
what's the problem? only players can hear sounds, so it's useful to play them when torches are near you, no?burli wrote: Well, that does not work with my solution. If I set eg max_hear_distance=5, then only torches near to the player will play a sound. The other torches remain silent.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: [mod] Torch Sounds [wip]
You make the same mistake as I did. max_hear_distance is the distance between sound and player, where you can hear the sound when you execute sound_play. So if the player is within the radius, when sound_play is executed, he can hear the sound, otherwise not.azekill_DIABLO wrote: what's the problem? only players can hear sounds, so it's useful to play them when torches are near you, no?
Try yourself. Set all max_hear_distance to 2. Then place a torch inside the radius. You can hear the sound, even if you walk away. Then place a torch outside the radius. You don't hear a sound, even if you get closer to the torch
max_hear_distance is not the distance you can hear a sound or not. It is the distance where sounds are added to the node or not.
Hope you understand what I mean. My english is not so good
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [mod] Torch Sounds [wip]
ok i totally understand
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: [mod] Torch Sounds [wip]
This mod conflicted with the torches (3d torches) mod.
2016-05-16 22:52:53: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2016-05-16 22:52:53: WARNING[Main]: Field "tile_images": Deprecated; new name is "tiles".
2016-05-16 22:52:53: WARNING[Main]: Field "light_propagates": Deprecated; determined from paramtype
2016-05-16 22:52:53: ERROR[Main]: ModError: Failed to load and run script from /home/user/.minetest/mods/torches_sounds/init.lua:
2016-05-16 22:52:53: ERROR[Main]: /home/user/.minetest/mods/torches_sounds/init.lua:33: Attempt to override non-existent item default:torch_wall
2016-05-16 22:52:53: ERROR[Main]: stack traceback:
2016-05-16 22:52:53: ERROR[Main]: [C]: in function 'error'
2016-05-16 22:52:53: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:338: in function 'override_item'
2016-05-16 22:52:53: ERROR[Main]: /home/user/minetest/mods/torches_sounds/init.lua:33: in main chunk
2016-05-16 22:52:53: ERROR[Main]: Check debug.txt for details.
2016-05-16 22:52:53: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2016-05-16 22:52:53: WARNING[Main]: Field "tile_images": Deprecated; new name is "tiles".
2016-05-16 22:52:53: WARNING[Main]: Field "light_propagates": Deprecated; determined from paramtype
2016-05-16 22:52:53: ERROR[Main]: ModError: Failed to load and run script from /home/user/.minetest/mods/torches_sounds/init.lua:
2016-05-16 22:52:53: ERROR[Main]: /home/user/.minetest/mods/torches_sounds/init.lua:33: Attempt to override non-existent item default:torch_wall
2016-05-16 22:52:53: ERROR[Main]: stack traceback:
2016-05-16 22:52:53: ERROR[Main]: [C]: in function 'error'
2016-05-16 22:52:53: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:338: in function 'override_item'
2016-05-16 22:52:53: ERROR[Main]: /home/user/minetest/mods/torches_sounds/init.lua:33: in main chunk
2016-05-16 22:52:53: ERROR[Main]: Check debug.txt for details.
Blend 3d models https://www.dropbox.com/sh/eocmx6axullc ... aI9sa?dl=0
Corals mod(WIP) viewtopic.php?f=9&t=13425
Corals mod(WIP) viewtopic.php?f=9&t=13425
Re: [mod] Torch Sounds [wip]
I only tested it with the latest version of sofars mod (see first post). There is a known issue if the torches mod has to convert default torches to 3d torches.
Because of other issues I will rewrite the code.
Because of other issues I will rewrite the code.
Re: [mod] Torch Sounds [wip]
My torch sound mod is back, but a little bit simpler for now. I removed the continuous sound because of some engine issues.
I just replace the dig and replace sound for now
I just replace the dig and replace sound for now
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [mod] Torch Sounds [wip]
it's a bit sad. AFAIK minetest always got problem with looping sounds
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Who is online
Users browsing this forum: No registered users and 20 guests