[PC] Sound Effects dumper/encoder - sfxEdit (0.3)

  • Thread starter Thread starter luksy
  • Start date Start date
Status
Not open for further replies.
I'm not trying to be rude, but I already read the readme and it doesn't do a very good job of explaining it so a noob like me can understand. I wouldn't ask if I didn't need the help.
 
You need to learn how to use the command line.  There are tons of easy tutorials online.  Without knowing the command line you are always going to be at a disadvantage with certain programs.
 
OK, I'll have to look into that. For now I'm just going to do the files 1 by 1 using cosmo.
 
Unless someone here wants to create you a batch file(anyone?).  Which would do the command line stuff for you.
 
Code: [Select]
Code:
@echo offSETLOCAL EnableDelayedExpansionset key="HKLM\SOFTWARE\Square Soft, Inc.\Final Fantasy VII"set value=AppPathset fmt=audio.fmtset dat=audio.datset target=sfxREG QUERY %key% /v %value% > nul 2>&1if not ERRORLEVEL 1 for /f "skip=2 tokens=3" %%s in ('REG QUERY %key% /v %value%') do ( set fmt=%%s\data\sound\!fmt! set dat=%%s\data\sound\!dat!) else echo Using files in local foldermd %target% > nul 2>&1 choice /c dp /n /m "[d]ump or [p]ack?"if ERRORLEVEL 2 sfxpack %fmt% %dat% %target%if ERRORLEVEL 1 sfxdump %fmt% %dat% %target%
Does Steam store the path in the registry as well? I suppose it must store a base path to Steam itself, I can search there too.
 
Last edited:
No,I think not.. Or I couldn't find it !
Check what I did. Just put the file in the same folder. And for a GUI version, a folder browser would be cool !  :D

Dr. Zaius
For now, how to use:
Create a folder "soundedit" in your harddrive. C:\soundedit\:
- folder "files"
- audio.dat
- audio.fmt
- sfxEdit.exe
- sfxdump.exe

If you want to extract the sound effect:
1. Start a windows console
2. Drag and drop sfxdump.exe into the console. (magic!)
3. you should have something like: C:\soundedit\sfxdump.exe
4. Add to this line: C:\soundedit\sfxdump.exe C:\soundedit\audio.fmt C:\soundedit\audio.dat C:\soundedit\files

You will get your sound effect into the files folder :)

Do the same to pack back your sounds files.
 
Does Steam store the path in the registry as well? I suppose it must store a base path to Steam itself, I can search there too.
Code: [Select]
Code:
...SET "RegKey_Steam=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 39140"SET "RegKey_Re=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{141B8BA9-BFFD-4635-AF64-078E31010EC3}_is1"SET newValue=InstallLocation...
respectively without "Wow6432Node" on 32 bit OS


EDIT:     I have not tested this!

Code: [Select]
Code:
@ECHO offSETLOCAL EnableDelayedExpansionIF %PROCESSOR_ARCHITECTURE% == x86 ( SET "RegKey_Steam=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 39140" SET "RegKey_Re=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{141B8BA9-BFFD-4635-AF64-078E31010EC3}_is1" SET "RegKey_Old=HKLM\SOFTWARE\Square Soft, Inc.\Final Fantasy VII") ELSE ( SET "RegKey_Steam=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 39140" SET "RegKey_Re=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{141B8BA9-BFFD-4635-AF64-078E31010EC3}_is1" SET "RegKey_Old=HKLM\SOFTWARE\Wow6432Node\Square Soft, Inc.\Final Fantasy VII")SET fmt=audio.fmtSET dat=audio.datSET target=sfxREG QUERY "%RegKey_Old%" /v AppPath >NUL 2>&1IF NOT ERRORLEVEL 1 FOR /F "skip=2 tokens=2*" %%s in ('REG QUERY "%RegKey_Old%" /V AppPath') DO ( SET fmt=%%t\data\sound\!fmt! SET dat=%%t\data\sound\!dat! GOTO :continue)REG QUERY "%RegKey_Steam%" /v InstallLocation >NUL 2>&1IF NOT ERRORLEVEL 1 FOR /F "skip=2 tokens=2*" %%s in ('REG QUERY "%RegKey_Steam%" /V InstallLocation') DO ( SET fmt=%%t\data\sound\!fmt! SET dat=%%t\data\sound\!dat! GOTO :continue)REG QUERY "%RegKey_Re%" /v InstallLocation >NUL 2>&1IF NOT ERRORLEVEL 1 FOR /F "skip=2 tokens=2*" %%s in ('REG QUERY "%RegKey_Re%" /V InstallLocation') DO ( SET fmt=%%t\data\sound\!fmt! SET dat=%%t\data\sound\!dat! GOTO :continue)ECHO Using files in local folder :continuemd %target% >nul 2>&1 choice /c dp /n /m "[d]ump or [p]ack?"if ERRORLEVEL 2 sfxpack "%fmt%" "%dat%" %target% && GOTO :EOFsfxdump "%fmt%" "%dat%" %target%
 
Last edited:
From Luksy:

Excellent! If you make sure the 32bit version of cmd is running you can avoid the Wow6432Node stuff, doesn't change much in this case. Thanks for the other improvements.

please change "Cmd exe" below to include the .
For some reason this post won't... post when it is there.


Code: [Select]
Code:
@echo offSETLOCAL EnableDelayedExpansionif %processor_architecture%==AMD64 ( %SystemRoot%\SysWOW64\cmd exe /c %0 goto:eof)set "RegKey_Steam=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 39140"set "RegKey_Re=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{141B8BA9-BFFD-4635-AF64-078E31010EC3}_is1"set "RegKey_Old=HKLM\SOFTWARE\Square Soft, Inc.\Final Fantasy VII"set fmt=audio.fmtset dat=audio.datset target=sfxcall:reg_query %RegKey_Old% AppPathcall:reg_query %RegKey_Re% InstallLocationcall:reg_query %RegKey_Steam% InstallLocationecho Using files in local folder:runmd %target% > nul 2>&1 choice /c dp /n /m "[d]ump or [p]ack?"if errorlevel 2 sfxpack "%fmt%" "%dat%" %target% && goto:eofsfxdump "%fmt%" "%dat%" %target%goto:eof:reg_queryREG QUERY %1 /v %2 > nul 2>&1if not errorlevel 1 for /f "skip=2 tokens=2*" %%s in ('REG QUERY %1 /v %2') do ( set fmt=%%t\data\sound\!fmt! set dat=%%t\data\sound\!dat! goto:run)
 
Last edited:
Code: [Select]
Code:
...if %processor_architecture%==AMD64 ( %SystemRoot%\SysWOW64\cmd exe /c %0 goto:eof)....
This trick is great! I'll remember that  8)
 
Please note that this tool does have a big bug at the moment. Sound files are being chopped at the ends (I think only the ends). This is often a few hundred samples and not easily noticeable (until you try looping) - Sometimes it's easily noticeable even without looping, like with effect 45.

Nope.  The bug is Adobe Audition.  :oops:  It is chopping the adpcm files near the end.  How bizarre.  Looks like I'll be needing a new editor.
 
Last edited:
Thanks.  Ended up using FF8Audio (java program) which worked great, but still nice to have this tool =)
 
Status
Not open for further replies.
Back
Top