HolographicWings / LethalSDK-Unity-Project

Unity Project using Lethal Company SDK
MIT License
43 stars 5 forks source link

Audio-related issues #52

Open rainbow137 opened 8 months ago

rainbow137 commented 8 months ago

I am trying to implement a new feature using the 'SDK-1.3.17,' where a sound effect is triggered by clicking the mouse when holding an item. However, I am not quite clear about the triggering conditions and the sound output settings. If not configured, the sound effect triggers immediately when the spaceship lands. This issue is also troubling me when working on the background music for MOONS; the music is audible everywhere, even after adjusting the maximum propagation distance.

L5KAIED1Y$LXK7Y~`1682HT

2@AS7ZPS}6FK_Q)D@VUF4VT

I hope to get the URL for tutorial videos (if available)

rainbow137 commented 8 months ago

2EV45%WYO9X6@EZU%P5F2OX

HolographicWings commented 8 months ago

Hello The new scrap types are really experimental, I still not tested them, only ported the proper fields I fear you already know more than me about how it work ^^"

rainbow137 commented 8 months ago

您好,新的废料类型确实是实验性的,我还没有测试它们,只移植了适当的字段,恐怕你已经比我更了解它的工作原理^^”

Compared to you, I'm just a beginner who knows how to use tools. In fact, the issue of scrap is not my main concern; I'm more interested in knowing how to make a specific area emit sound when creating MOON. <3

HolographicWings commented 8 months ago

您好,新的废料类型确实是实验性的,我还没有测试它们,只移植了适当的字段,恐怕你已经比我更了解它的工作原理^^”

Compared to you, I'm just a beginner who knows how to use tools. In fact, the issue of scrap is not my main concern; I'm more interested in knowing how to make a specific area emit sound when creating MOON. <3

The 3D audio settings should help You can change the max distance and the volume curve

rainbow137 commented 8 months ago

您好,新的废料类型确实是实验性的,我还没有测试它们,只移植了适当的字段,恐怕你已经比我更了解它的工作原理^^"

与你相比,我只是一个知道如何使用工具的初学者。事实上,废料问题并不是我主要关心的问题;我更感兴趣的是知道如何在创建 MOON 时使特定区域发出声音。<3

3D 音频设置应该会有所帮助 您可以更改最大距离和音量曲线

May I ask presumptuously, do I need to adjust the output settings? image

HolographicWings commented 8 months ago

您好,新的废料类型确实是实验性的,我还没有测试它们,只移植了适当的字段,恐怕你已经比我更了解它的工作原理^^"

与你相比,我只是一个知道如何使用工具的初学者。事实上,废料问题并不是我主要关心的问题;我更感兴趣的是知道如何在创建 MOON 时使特定区域发出声音。<3

3D 音频设置应该会有所帮助 您可以更改最大距离和音量曲线

May I ask presumptuously, do I need to adjust the output settings? image

Add the AudioOutputInterface component and keep it's default settings (Diagetic and Master)

rainbow137 commented 8 months ago

您好,新的废料类型确实是实验性的,我还没有测试它们,只移植了适当的字段,恐怕你已经比我更了解它的工作原理^^"

与你相比,我只是一个知道如何使用工具的初学者。事实上,废料问题并不是我主要关心的问题;我更感兴趣的是知道如何在创建 MOON 时使特定区域发出声音。<3

3D 音频设置应该会有所帮助 您可以更改最大距离和音量曲线

我可以冒昧地问,我需要调整输出设置吗?图像

添加 AudioOutputInterface 组件并保留其默认设置(Diagetic 和 Master)

thank you!

BoniatoRelleno commented 8 months ago

Do you know how to add a personalized grab and drop sound? Since it is a text field I don't know how to add audio

rainbow137 commented 8 months ago

您知道如何添加个性化的抓取和放下声音吗?由于它是一个文本字段,我不知道如何添加音频 Bind the audio to the asset, then give it a name. When needed, just use that name. image image

BoniatoRelleno commented 8 months ago

Thank you! I'm having a problem, the sound only works if i put both grab and drop sfx, if I only put the drop sfx it doesn't work and the game plays the default sound.

Another problem is that the value of my scraps doesn't pair with the introduced values, for example, i created a bronze bar with min value 42 and max value 102 and in the game i found one with a value of 36, the same with all the scaps I have created

rainbow137 commented 8 months ago

谢谢!我遇到了一个问题,只有当我同时放置抓取和放下 sfx 时声音才有效,如果我只放置放置 sfx 它不起作用,游戏播放默认声音。

另一个问题是我的废料的价值与引入的值不匹配,例如,我创建了一个最小值为 42 且最大值为 102 的青铜条,在游戏中我发现了一个值为 36 的青铜条,与我创建的所有 scap 相同 I don't know what the problem would be if I didn't set one of them, I usually set it to be custom "lethalexpansion" comes with a default setting that will adjust the price of scrap, which you can change in the configuration file image

HolographicWings commented 8 months ago

Yes vanilla scrap value multiplier is 0.4 About the audio file it's weird, you are supposed to be able to put only one audio file

BoniatoRelleno commented 8 months ago

Thank you for helping me last time. Now I want to make an item that plays a song, the problem is that the song sounds with a random pitch and speed and I don't know how desactivate it.

a a1
HolographicWings commented 8 months ago

Thank you for helping me last time. Now I want to make an item that plays a song, the problem is that the song sounds with a random pitch and speed and I don't know how desactivate it.

a a1

i dunno, but here the settings for the clownhorn image image

HolographicWings commented 8 months ago

image image

HolographicWings commented 8 months ago

Oh, and don't put an audio mixer output in the audio source, use the script called AudioOutputInterface instead

BoniatoRelleno commented 8 months ago

I tried with that options but continue happening the same.

By the way, do you know the name of the grab sounds? I only find the characteristic of an object like the shovel or the hive but not the standart scrap grab sounds.

HolographicWings commented 8 months ago

I tried with that options but continue happening the same.

By the way, do you know the name of the grab sounds? I only find the characteristic of an object like the shovel or the hive but not the standart scrap grab sounds.

There is no standard grab sound All the vanilla sounds are written on the readme of the repo