[Solved] Adding more voice lines

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Alberto.Rota
Posts: 78
Joined: Fri, 22. Feb 13, 17:34
x4

[Solved] Adding more voice lines

Post by Alberto.Rota »

I'm trying to add some voice-acting to my mod (viewtopic.php?f=181&t=424589), mainly a more threatening Betty (Ship computer).

Has anyone succeeded in adding more "Voices" to the game?
On my side, the text lines are added, and if you enable subtitles, they are written down as if they are being pronounced... but no sound at all.

Here is what I have (Updated to add a proper example):
https://github.com/AlbertoRota/add_voic ... al_example

Debug traces get written down, no error in between, the subtitles correctly show "The battle is over, abandon your ship immediately!", but no sound is played at all.

Can you help me?
Last edited by Alberto.Rota on Thu, 23. Apr 20, 09:46, edited 2 times in total.
Alberto.Rota
Posts: 78
Joined: Fri, 22. Feb 13, 17:34
x4

Re: [Question] Adding more voice lines

Post by Alberto.Rota »

I've uploaded a minimal example showing the problem to my GitHub, you are welcome to download and point me in the right direction:
https://github.com/AlbertoRota/add_voic ... al_example

It should basically play "/voice/99972009/normal/4401.ogg" every time you or any of your ships shoot to any other ship.
But as stated, the "The battle is over, abandon your ship immediately!" is written down in the ClosedCaption/Subtitles, and in the log, no error between "Custom voice: Before speak" and "Custom voice: After speak". :gruebel:

Any help will be welcome.
sco1981
Posts: 282
Joined: Fri, 14. Sep 18, 14:47
x4

Re: [Question] Adding more voice lines

Post by sco1981 »

Alberto.Rota wrote: Wed, 22. Apr 20, 18:24 I've uploaded a minimal example showing the problem to my GitHub, you are welcome to download and point me in the right direction:
https://github.com/AlbertoRota/add_voic ... al_example

It should basically play "/voice/99972009/normal/4401.ogg" every time you or any of your ships shoot to any other ship.
But as stated, the "The battle is over, abandon your ship immediately!" is written down in the ClosedCaption/Subtitles, and in the log, no error between "Custom voice: Before speak" and "Custom voice: After speak". :gruebel:

Any help will be welcome.
Hey, saw your message.
You did copy the right things of my mod, but forgot to change the extensions folder in your sound_library.xml. :wink:
<sample start="extensions\ror\voice\99972009\normal" />

And if you want to create a mod with more voice lines for the public, you should change your page id, because they have to be unique.
Alberto.Rota
Posts: 78
Joined: Fri, 22. Feb 13, 17:34
x4

Re: [SOLVED] Adding more voice lines

Post by Alberto.Rota »

sco1981 wrote: Wed, 22. Apr 20, 19:05
Alberto.Rota wrote: Wed, 22. Apr 20, 18:24 I've uploaded a minimal example showing the problem to my GitHub, you are welcome to download and point me in the right direction:
https://github.com/AlbertoRota/add_voic ... al_example

It should basically play "/voice/99972009/normal/4401.ogg" every time you or any of your ships shoot to any other ship.
But as stated, the "The battle is over, abandon your ship immediately!" is written down in the ClosedCaption/Subtitles, and in the log, no error between "Custom voice: Before speak" and "Custom voice: After speak". :gruebel:

Any help will be welcome.
Hey, saw your message.
You did copy the right things of my mod, but forgot to change the extensions folder in your sound_library.xml. :wink:
<sample start="extensions\ror\voice\99972009\normal" />

And if you want to create a mod with more voice lines for the public, you should change your page id, because they have to be unique.
You are absolutely right! I failed to notice that for some reason, thank you very much for pointing it out!!!
I'm going to update the title to SOLVED and to update the GitHub example, just in case it can help any other modders.

Return to “X4: Foundations - Scripts and Modding”