I'm having trouble getting new sounds to play

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
User avatar
Arreon
Trained
Trained
Posts: 324
Joined: 15 Feb 2009, 05:57

I'm having trouble getting new sounds to play

Post by Arreon »

I'm trying to put in a couple of new sounds to play on Warzone. The problem is, when I go to play a game, Warzone crashes with the following code snippet:

Code: Select all

fatal   |04:15:42: [statsGetAudioIDFromString] statsGetAudioIDFromString: couldn't get ID -1 for sound rocketfiring.ogg
I'm guessing that Warzone couldn't find my sounds somehow, even through I put the OGG files in the sound folder and changed the weaponsounds.txt to play the new sounds. What am I doing wrong?

The code snippet above is the only one that existed (apart from my mod notices).

EDIT: I need to know what txt files I need to edit.
OS: Windows 7 Home Premium 64-bit
Processor: AMD Phenom II X6 1045T (6 CPUs), ~2.7GHz
Memory: 8192MB RAM
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: I'm having trouble getting new sounds to play

Post by cybersphinx »

Sounds are hardcoded in the source (lib/sound/audio_id.c/h), without modifying that you can only replace existing sounds.
User avatar
Arreon
Trained
Trained
Posts: 324
Joined: 15 Feb 2009, 05:57

Re: I'm having trouble getting new sounds to play

Post by Arreon »

If These files can be found on the Warzone program (audio_id.c/h), where are they located?
Last edited by Arreon on 05 Sep 2010, 18:07, edited 1 time in total.
OS: Windows 7 Home Premium 64-bit
Processor: AMD Phenom II X6 1045T (6 CPUs), ~2.7GHz
Memory: 8192MB RAM
User avatar
Black Project
Regular
Regular
Posts: 751
Joined: 04 Apr 2008, 20:53

Re: I'm having trouble getting new sounds to play

Post by Black Project »

Arreon, there are lots of unused sounds in the Warzone, one of those, for example, the commander voice messages.

It's located in "audio/memressp/cmndrvoc/"

There are 18 files that you can use it for your new sounds.
Arreon wrote:EDIT: I need to know what txt files I need to edit.
weaponsounds.txt (weapon sound file)

propulsionsounds.txt (propulsion sound file)

Remember that Cyborg & Transport engine sound are hardcoded, the wheeled sound only applies to the wheeled truck, any wheeled combat unit is hardcoded to use the thread sound of the tracked propulsion.

Regards BP
User avatar
Arreon
Trained
Trained
Posts: 324
Joined: 15 Feb 2009, 05:57

Re: I'm having trouble getting new sounds to play

Post by Arreon »

@ Black Project

Just a quick question: Do I change the name of the two commander OGGs I used for my new sounds, so that they match up with the ones I put in weaponsounds.txt?

EDIT: I've tested my method, but I'm still getting the same game-crashing code snippet as the one above.

I'm doing something wrong, but I don't know what.
OS: Windows 7 Home Premium 64-bit
Processor: AMD Phenom II X6 1045T (6 CPUs), ~2.7GHz
Memory: 8192MB RAM
User avatar
Black Project
Regular
Regular
Posts: 751
Joined: 04 Apr 2008, 20:53

Re: I'm having trouble getting new sounds to play

Post by Black Project »

Arreon wrote:Just a quick question: I change the name of the two commander OGGs I used for my new sounds, so that they match up with the ones I put in weaponsounds.txt?
Don't change the name of the sound, keep it the same, but replace the older commander voice you want to replace with your new weapon sound (I always do this when i have a new sound, without replacing the older one)

You have to change the sound of the desirable weapon in order to apply your new sound:

Example:

Old Heavy Cannon firing sound
Cannon375mmMk1,lrgcan.ogg,lrgexpl.ogg,174
(weaponID,firing sound,impact sound,soundID => must be a unique number)

Updating to new HC firing sound (using unused commander voice message as your new weapon sound)
Cannon375mmMk1,com021.ogg,lrgexpl.ogg,174
User avatar
Arreon
Trained
Trained
Posts: 324
Joined: 15 Feb 2009, 05:57

Re: I'm having trouble getting new sounds to play

Post by Arreon »

@ Black Project

It WORKS!!! :D

Thanks for the advice, many thanks to you.
OS: Windows 7 Home Premium 64-bit
Processor: AMD Phenom II X6 1045T (6 CPUs), ~2.7GHz
Memory: 8192MB RAM