Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Sound drops randomly

A topic by xxxLEOPARDxxx created Mar 10, 2021 Views: 206 Replies: 4
Viewing posts 1 to 5
(+1)

Sound drops randomly.

It appears and disappears. Mostly on city streets and interface forms. Inside, everything is fine, no problem.

This constantly writes to the system log:

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\female-citizen

Can't find cache for sound !!!! RESOURCE\sounds\female-citizen

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\female-citizen

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\male-citizen

Can't find cache for sound !!!! RESOURCE\sounds\male-citizen

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\male-citizen

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Can't find cache for sound !!!! RESOURCE\sounds\merchant

Sound disappears very often.

I also have constant problems with the missing sound in the settlements.

I met this very often in the interface. The sound dropped.

The missing cache sounds are from script function LAi_CharacterPlaySound, found in the program scripts of your mod.  You need to add the missing sounds to sound_alias.ini

[cache name]
prior = (default is 128 if missing)
minDistance =
maxDistance =
volume =

Read the FMOD documentation for how to set priority (prior in the .ini file), minDistance and maxDistance.  The engine uses FMOD_MODE = FMOD_3D_LINEARROLLOFF.  If the "prior" settings are not set properly, many sounds might be "stolen" or "virtualized" by all other sounds that are playing with a ranking priority.  The mod is responsible for setting these things properly.

https://documentation.help/FMOD-Studio-API/FMOD_Channel_SetPriority.html

https://documentation.help/FMOD-API/FMOD_Channel_Set3DMinMaxDistance.html

https://documentation.help/FMOD-API/FMOD_MODE.html

FMOD_3D_LINEARROLLOFF This sound will follow a linear rolloff model where mindistance = full volume, maxdistance = silence.

You might also want to adjust the number of virtual channels in the start.ini.  Read about Virtual channels:  https://documentation.help/FMOD-API/FMOD_System_Init.html

start.ini

[sound]
...
...
virtSoundSlots = (default is 1024 if missing)
virtSoundSlots maximum is 4093