Quote:
Originally Posted by ZakirAhmad
How can we use oggenc on .iwd files. can u please share the info.
|
Sure, Its a batch process, Use 7z to extract .iwd files with sound files in it. Start from bottom to top. Then compress .wav files and later delete them. Now copy zip.exe to "main" folder and oggdec in game folder. Create a batch files using notepad and type
This ones for Decompressing . ogg to .wav, you can also use this code to compress .wav files.
for /R main %%i in (*.ogg) do oggdec.exe -Q "%%i"
This one to only delete files with same extension like .ogg
del /f /q /s engine\*.ogg >nul
After restoring the wav files, this code will compress the folder back to .iwd file, just replace iw_15 to the files you extracted, and you have to copy the entire code below for each .iwd file you restore, and after restoration this code will automatically delete the folder as well
cd iw_15
..\zip a -tzip -r iw_15.iwd -mx1
move iw_15.iwd ..
cd ..
del /f /q /s iw_15\*.*
rd /q /s iw_15
Have Fun.