Code Monkey home page Code Monkey logo

walls-have-ears's Introduction

Foundry VTT - Walls have ears

GitHub license GitHub release Forge Installs Foundry HUB Endorsements Minimum Foundry VTT version

"A simple-as-possible module to muffle sounds that are behind a wall for a player or token."

Installation

In the setup screen, use the URL https://github.com/SebaSOFT/walls-have-ears/releases/latest/download/module.json to install the module.

Release Notes

See CHANGELOG

Features

  • Detects sound that are in range but through a wall, and muffles them
  • Ignores open doors so sound should not be muffled if listened throughan open door

How it works

  • Enable Token Vision on the scene (this is a MUST)
  • DO NOT Disable "Constrained by Walls" on the Sound
  • EITHER Set sound occlussion on Walls to limited or none as needed
  • It works with sound easing (volume changing)
  • It will detect walls and muffle the sound (see table below)
  • Windows are less likely to muffle (see table below)
  • Terrain walls don't contribute to muffling (see table below)
  • Ethereal Walls don't contribute to muffling (see table below)

See:

Test cases for Muffling logic

Demo videos:

Nightclub demo

Nightclub demo

Test suite demo

Test suite demo

TO DO

  • Estimate L shaped rooms and track sound bouncing, so it doesn't get muffled (possible echo/delay effect)
  • Have three or more muffling densities and assign them to the wall they are listening through
  • Have a setting for disable sound muffling, useful for muffled sounds or ambient global sounds you may want to eclude

Known Issues

  • If the first action you do when accessing the site is selecting a token, it won't be muffled, just select another token or move it one time.

Contributing

We're always happy for community contributions.

Licence

This module has been released under the MIT licence, meaning you can do pretty much anything you like with it, so long as the original copyright remains in place.

You can use it in commercial products.

If the licence terminology in the licence.txt is confusing, check out this: https://www.tldrlegal.com/l/mit

walls-have-ears's People

Contributors

doumoku avatar sebasoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

walls-have-ears's Issues

[Enhancement suggestion] Scene muffle percentage

Hi! I love your module, one of my "must-have"! Would it be possible to implement a functionality that would allow to decrease/increase the muffle percentage globally in a scene? Thus, it would be possible to determine scenes with thick walls and scenes with thin walls, as a whole, without having to work wall to wall. Thank you for your work!

Too many tokens?

image
I keep getting this error whenever I select more than 3 tokens at once, not really an issue but it is annoying to see it every 5 seconds, what do I do? I tested this with and without the module on a new world and got the same issue.

Popping noise when moving token

Hello, I have been experimenting with this module for a little while and noticed that whenever a token is moved, a pop noise happens.
This happens when one moves their own token and when someone else moves their token. I checked out one of your videos on YouTube if this was a user issue and not a module issue and heard the same popping noises there when you moved the token.
Is there a way to get rid of this noise or is it a side effect of updating the lowpass filter on the move?
Otherwise, this is a solid sound enhancement.

Link to video: https://youtu.be/pT5mhNLVPlQ

Sounds not muffled at all

I've placed a sound behind a wall, set sound restriction to none and there is no muffle. Any chance that I'm doing something wrong?

Cannot update

Trying both the link in description and the Foundry update system and neither worked. On Foundry failed with error

Cannot read property "version" of undefined

[Bug?] Cannot read properties of undefined (reading 'sight')

Hi! Firstly, some stats.

Ver: Foundry version 10, build 291.
System: Cyberpunk RED - CORE
I've tried this both with my usual module setup, and with no other modules loaded but walls have ears. Both have this issue.

The muffling dosn't work at ALL, thanks to the debug setting im able to understand why, but not sure how to contine. Currently when selecting a token it says that it cannot read properties of undefined (reading 'sight'). WHenever I move the token, it prints an even larger error, saying there was an error in hooked function '' for hoko 'updateToken' cannot read properties of undefined (reading 'sight').

image
image
image

[Request] Muffled only in drawing tool area's

Hi, love the plugin. One thing i dislike about it though, is that even if theres say a bard playing music on a stage, going behind a wall muffles them, despite been in the same room and only going behind a wall 1 tile long. To fix this I thought of an idea, can you make it possible to turn a mode on or something, where audio would only be muffled inside boxes labaled muffle or something?

Heres an example of how I would like to use this. The 2 rooms in the front have walls, if you go behind that wall the sound gets muffled which makes no sense, however going behind the bar would have the sound muffled. It would be like muffle1 for 1 wall of muffle, muffle2 for 2, etc.
image

[Feature Request] Mark all selected walls sound restriction to none

Now that I understand the mod better. I can see how it could be annoying after setting a scene to have to manually click on all the walls making sure the sound settings are correctly set to none. If I try to do this by selecting all walls then all the selected walls will copy all settings to each other instead of just the sound one.

I'm sure this could be done with a macro that could be included with the mod and/or a simple UI button in the wall section to "make all new walls with no sound restrictions".

fist time using butbot it work like terrain wall

i don't know if it just me that useing it worng bit i set the sound to local and the walls on limited and if there are more than one wall no sound and if there only one wall i don't hear any thing the not just gobal sound
if we talk about door the sound don't change if it open or closed
i use foudry 0.8.8 atm if this is not a bug can i get some guideing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.