Hi Everyone,
Does anyone know the best program / format to save OGG files in the correct format?
I have some custom sound effects but the editor is "Unable to parse format of OGG Vorbis"
Any advice is amazing, and it will be worth your input!
Thanks
OGG Vorbis Format?
-
Arab
- PR:BF2 Developer
- Posts: 2898
- Joined: 2012-05-18 03:37
Re: OGG Vorbis Format?
It depends on what effect you would like.
For gun effects that need looping like automatic rifles, vehicles effects: Helicopter, Jets, Tank engines, Car Horns use .wav since it supports setting up loop markers.
There's a tool included in the BF2 Sound Tools called BF2 Add Sound Regions.exe made by UberWazuSoldier.
Simply run it, point to your .wav file, enter the rate of fire and the tool will add it to your wav file. There's other tools like Soundforge and some free alternatives that can view them.
For ambient effects, car music or simply single-fire sounds use .ogg
The best thing to do is use BF2 Sound Tools to convert your .wav file into .ogg.
BF2 Sound Tools.zip
Extract the folder, and drag the .wav file into oggenc.exe and it will convert it into ogg.
For the .wav file, make sure the format is saved as WAV (Microsoft) signed 16-bit PCM/16-bit with a sample rate of 44.1 kHz and that the file is saved as mono for 3p effect. We use those settings mostly for sounds.
(Without tweaking the ObjectTemplate.is3dSound code which if set to 1 on a Stereo, will play throughout all the maps).
Best tools to create .wav is Audacity. You can use FormatFactory to change audio from mono to stereo quickly and sample rates, and use MediaInfo to view the .wav, .ogg file bitrate etc.
It can be saved as 22050 - The sample rate Battlefield 2 uses for Ambient Effects + 2 Channels, and there's a bunch of other settings but we normally use 44.1 kHz. You can save the file as stereo, but make sure in the .tweak file of the Vehicle that's using the effect that ObjectTemplate.is3DSound is set to 0 for the filename that's added.
Also .ogg files would need to be serialized in-order for it to work in a server environment.
This is kind of a trial and error thing.
For gun effects that need looping like automatic rifles, vehicles effects: Helicopter, Jets, Tank engines, Car Horns use .wav since it supports setting up loop markers.
There's a tool included in the BF2 Sound Tools called BF2 Add Sound Regions.exe made by UberWazuSoldier.
Simply run it, point to your .wav file, enter the rate of fire and the tool will add it to your wav file. There's other tools like Soundforge and some free alternatives that can view them.
For ambient effects, car music or simply single-fire sounds use .ogg
The best thing to do is use BF2 Sound Tools to convert your .wav file into .ogg.
BF2 Sound Tools.zip
Extract the folder, and drag the .wav file into oggenc.exe and it will convert it into ogg.
For the .wav file, make sure the format is saved as WAV (Microsoft) signed 16-bit PCM/16-bit with a sample rate of 44.1 kHz and that the file is saved as mono for 3p effect. We use those settings mostly for sounds.
(Without tweaking the ObjectTemplate.is3dSound code which if set to 1 on a Stereo, will play throughout all the maps).
Best tools to create .wav is Audacity. You can use FormatFactory to change audio from mono to stereo quickly and sample rates, and use MediaInfo to view the .wav, .ogg file bitrate etc.
It can be saved as 22050 - The sample rate Battlefield 2 uses for Ambient Effects + 2 Channels, and there's a bunch of other settings but we normally use 44.1 kHz. You can save the file as stereo, but make sure in the .tweak file of the Vehicle that's using the effect that ObjectTemplate.is3DSound is set to 0 for the filename that's added.
Also .ogg files would need to be serialized in-order for it to work in a server environment.
This is kind of a trial and error thing.
- Copy the .wav files into the extracted BF2 Sound Tools folder and then drag it into the .bat file. For 22khz wav files, use make56khzoggwithserial.bat.
For 44.1khz which is what we use, use 44.1khzoggwithserial.ogg and type in a serial number to use. Use 22224 etc. It will make an .ogg. If the same serial number is used for other .ogg files, then it will override the other ones but don't worry about those too much since we can use the getogginfo.bat file to get the serial number for each .ogg file. - Drag and drop in-game, create a shortcut of PRBF2_w32ded, modify the shortcut to add +modPath mods/pr_edit, modify any level file to include the object with the sound and modify maplist.con to add the level to the first list then
Last edited by Arab on 2018-09-19 18:01, edited 15 times in total.
-
dunem666
- Posts: 559
- Joined: 2009-06-02 13:04
Re: OGG Vorbis Format?
I really appreciate the response and your comprehensive explination!
I will try out the tools now thanks very much. The sounds are mainly just ambients.
I will try out the tools now thanks very much. The sounds are mainly just ambients.
dunem






-
MaxP
- Posts: 117
- Joined: 2008-09-08 19:18
Re: OGG Vorbis Format?
Ah, that is why the 40mm effects dulls all other sounds?If the same serial number is used for other .ogg files, then it will override the other ones but don't worry about those too much since we can use the getogginfo.bat file to get the serial number for each .ogg file.
Yeah, changed it to wav, and there are no problems now.
Last edited by MaxP on 2018-09-22 11:54, edited 1 time in total.

