Factorio-Access / FactorioAccess

An accessibility mod for the video game Factorio, making the game accessible to the blind and visually impaired.
Other
14 stars 8 forks source link

Prevent Remote View muffling sounds #180

Open LevFendi opened 2 weeks ago

LevFendi commented 2 weeks ago

Remote view in the vanilla game takes the perspective of something flying over the land, therefore changing the soundscape to include more wind and muffle the ground, and center on the cursor instead of the player.

This seems to affect all sounds played by mods, including UI sounds.

To fix the muffling i have tried to play the sound at the cursor position instead, with no noticeable gain. Playing around with the game's sound options might yield some solutions.

LevFendi commented 1 week ago

I remember that zooming in on remote view made the focus change to local sounds. But also, we had turned off the mod sounds depending on zoom. I should turn that back on and explore the other sound settings to see if some config can solve all this.

ahicks92 commented 1 week ago

Why turn off the mod sounds in the first place? muffled > off, right?

ahicks92 commented 1 week ago

Lol followed up just now on something else I saw. Betting we want:

https://lua-api.factorio.com/latest/concepts.html#SoundType

Specifically gui, I'm betting. It's an option to all play_sound variants. It's newish if you're wondering how you didn't notice. Was reading changelogs earlier because faketorio (SIC) claims to synthesize gui click events somehow and I was like wait no you can't do that.

LevFendi commented 1 week ago

The thing turned off was zoom dependence.

This setting you shared seems to be exactly what we needed, thanks!

LevFendi commented 1 week ago

More ideas to explore here: https://lua-api.factorio.com/latest/prototypes/SoundPrototype.html