Custom Sounds Not Working

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
Phraggah
Posts: 29
Joined: Fri, 30. Mar 12, 05:54
x3ap

Custom Sounds Not Working

Post by Phraggah » Thu, 31. Jul 14, 00:37

I currently have a copy of the Argon Discoverer which I want to change the engine sound of. I also have a copy of impulse ray emitter laser and want to change the firing sound of.

I have two WAV files in the /s/ folder: 54000 (the engine sound loop) and 54001 to 54003 (the laser's firing sound). The WAV files are 22k and 44khz sample rate respectively and 16bit PCM mono. The sample rates are different because the original discoverer sound and IRE sound are different rates. I assume the engine doesn't care what the sample rate is between those two.

I have edited my sounds.txt with the following:

Code: Select all

54000;10
180;0;SFX_3DCONTROL|SFX_LOOP;0;0;0;0; // 54000 custom engine Loop
180;190;NULL;-20;20;5;90000; // 54001 Custom laser 1 modded
180;230;NULL;-20;20;5;90000; // 54002 Custom laser 2 modded
180;255;NULL;-20;20;5;90000; // 54003 Custom laser 3 modded
54001-54003 are just copies of the same sound which I will replace with alternates later. The only reason I had them is because I am under the impression the IRE works this way and I am just copying it.

I loosely understand what these sound files do. 54000;10 is what number in the /s/ folder these scripts refer to, and how many files after 54000 respectively (in this case 54000-54010 right?)

BUT when I change the engine sound in my discoverer copy to 54000, nothing plays in game. Same thing with my lasers.

So am I missing anything? Why won't the sounds work in game?

Also, where does the game list using the other two variations for the IRE's sound? In TLasers the IRE is set only to use 913. Is it just programmed to use +/- one numbered sound? Where is that setting located?

Thanks for any help!

Phraggah
Posts: 29
Joined: Fri, 30. Mar 12, 05:54
x3ap

Post by Phraggah » Wed, 6. Aug 14, 04:10

No one? :(

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24961
Joined: Sun, 2. Apr 06, 16:38
x4

Post by X2-Illuminatus » Wed, 6. Aug 14, 11:47

Some info on adding weapon and engine sounds is scattered around the forum. Unfortunately, there doesn't seem to be a proper guide. Maybe the following topics contain at least some useful pieces of information for you:

Little tutorial about adding sounds by Syklon for X3R
[RESEARCH] Sounds by AdmiralTigerclaw (X3R)
Modding weapon sounds
Engine Volume + Range
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

Phraggah
Posts: 29
Joined: Fri, 30. Mar 12, 05:54
x3ap

Post by Phraggah » Fri, 8. Aug 14, 07:25

X2-Illuminatus wrote:Some info on adding weapon and engine sounds is scattered around the forum. Unfortunately, there doesn't seem to be a proper guide. Maybe the following topics contain at least some useful pieces of information for you:

Little tutorial about adding sounds by Syklon for X3R
[RESEARCH] Sounds by AdmiralTigerclaw (X3R)
Modding weapon sounds
Engine Volume + Range
Thanks for finding those! I'll take a look and report back. Maybe I'll even find time to write up what I find.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”