View Single Post
  #12  
Old 20-03-2018, 07:30
Webster17's Avatar
Webster17 Webster17 is offline
Registered User
 
Join Date: Jan 2015
Location: Goa, India, Asia, Planet Earth
Posts: 55
Thanks: 14
Thanked 34 Times in 13 Posts
Webster17 is on a distinguished road
Quote:
Originally Posted by ZakirAhmad View Post
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.
Attached Files
File Type: 7z zip.7z (175.4 KB, 11 views)
Reply With Quote