Sea Power

Sea Power

carvajrBR Nov 27, 2024 @ 9:36am
Cannot mod audio voiceovers?
Hi. I am trying to mod/add some audio in the voiceover directory.

The way I understand it, I could create a audio/voiceover directory in my user directory, or in a mod directory under StreamingAssets, right?

So, if I start simple, let's say I mod the voice.ini in my user directory:

.../StreamingAssets/user/audio/voiceover/voice.ini

and edit that file to swap some keys, for example swap NewIntelReceived with MissionFail

Then, after reloading, when I have a mission with audio, I should hear "Mission Failed!" when I call the key for NewIntelReceived. But I still get "New Intel Received". SO the game is not reading my edited voice.ini.

Why is that?

The way I understand, if there is a file .../original/somedir/somefile, and I have a directory somedir/somefile in my user directory (or in a dedicated mod directory) then the game should load my file instead of the original file, right?

Any support will be greatly appreciated!

EDIT: The behavior of the program seems to be inconsistent. I tried again using a modified voice.ini by swapping some audio key files. But now I have put it in the user dir:

.../user/audio/voiceover/voice.ini

And now it works,i.e., it does swap the audio keys as expected. The funny thing is that now it also works in my mod directory called audiotest-newaudio, even after removing the audio directory from my user directory (the one above), so now:

.../StreamingAssets/audiotest-newaudio/audio/voiceover/voice.ini

works. It didn't before... why?

Also, adding a new wav file (and changing the ReturnToBase key in the voice.ini file to point to it, only works if it is in the user directory. The audio file is here:

.../user/audio/voiceover/modaudio/AudioTest.wav

If I put the same file structure under .../StreamingAssets/audiotest-newaudio/ any changes in the voice.ini file are read and applied by the game, but the audio file does not become available and when the RTB sound should appear, nothing is played instead.

So the game only accepts audio changes from the user directory? Is that it? How can I make this into a mod in the workshop, if using a different directory tha user does not add the extra wav file?

Also, why didn't parsing the voice.ini file work before and now it does? ANy hints on how the loading of mods behaves? I don't get it!

I have the directory structure, with the modded voice.ini and the extra wav in this (unlisted) mod:

https://steamcommunity.com/sharedfiles/filedetails/?id=3372862952

After you subscribe it should be available here: C:\Program Files (x86)\Steam\steamapps\workshop\content\1286220\3372862952\

If I activate it (workshop version) it behaves the same as the local copy, i.e., no audio is played instead of "RTB"

Oh, and since the objective is to add extra sounds for a mission, the audiotest-newaudio directory also contains a test mission under /missions/. But after removing it to test, the behavior is the same, i.e. it does not load the new audio.

Any help will be greatly appreciated.
Last edited by carvajrBR; Nov 28, 2024 @ 2:59am