Author Topic: [PC] Sound Effects dumper/encoder - sfxEdit (0.3)  (Read 28906 times)

orugari

  • *
  • Posts: 4
    • View Profile
Re: sfxEdit 0.3 --- sound effects dumper / encoder
« Reply #25 on: 2014-02-19 06:07:22 »

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.

Kompass63

  • *
  • Posts: 695
    • View Profile
Re: sfxEdit 0.3 --- sound effects dumper / encoder
« Reply #26 on: 2014-02-19 21:10:29 »
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]
...
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]
@ECHO off
SETLOCAL EnableDelayedExpansion

IF %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.fmt
SET dat=audio.dat
SET target=sfx

REG QUERY "%RegKey_Old%" /v AppPath >NUL 2>&1
IF 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>&1
IF 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>&1
IF 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
 
:continue
md %target% >nul 2>&1

choice /c dp /n /m "[d]ump or [p]ack?"

if ERRORLEVEL 2 sfxpack "%fmt%" "%dat%" %target% && GOTO :EOF
sfxdump "%fmt%" "%dat%" %target%
« Last Edit: 2014-02-19 22:29:25 by Kompass63 »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: sfxEdit 0.3 --- sound effects dumper / encoder
« Reply #27 on: 2014-02-20 01:49:36 »
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]
@echo off
SETLOCAL EnableDelayedExpansion

if %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.fmt
set dat=audio.dat
set target=sfx

call:reg_query %RegKey_Old% AppPath
call:reg_query %RegKey_Re% InstallLocation
call:reg_query %RegKey_Steam% InstallLocation

echo Using files in local folder

:run
md %target% > nul 2>&1

choice /c dp /n /m "[d]ump or [p]ack?"

if errorlevel 2 sfxpack "%fmt%" "%dat%" %target% && goto:eof
sfxdump "%fmt%" "%dat%" %target%

goto:eof

:reg_query
REG QUERY %1 /v %2 > nul 2>&1
if 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 Edit: 2014-02-20 01:53:08 by DLPB »

Kompass63

  • *
  • Posts: 695
    • View Profile
Re: sfxEdit 0.3 --- sound effects dumper / encoder
« Reply #28 on: 2014-02-20 08:14:46 »

Code: [Select]
...
if %processor_architecture%==AMD64 (
%SystemRoot%\SysWOW64\cmd exe /c %0
goto:eof
)
....

This trick is great! I'll remember that  8)

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [FF7] Sound Effects dumper/encoder - sfxEdit (0.3)
« Reply #29 on: 2017-01-19 05:24:05 »
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 Edit: 2017-01-19 07:14:22 by DLPB »

stavstav

  • *
  • Posts: 34
    • View Profile
Re: [FF7] Sound Effects dumper/encoder - sfxEdit (0.3)
« Reply #30 on: 2017-04-09 04:10:06 »
404
please re-upload, thanks

luksy

  • *
  • Posts: 375
    • View Profile
Re: [FF7] Sound Effects dumper/encoder - sfxEdit (0.3)
« Reply #31 on: 2017-04-09 15:31:24 »
Updated link in first post.

stavstav

  • *
  • Posts: 34
    • View Profile
Re: [FF7] Sound Effects dumper/encoder - sfxEdit (0.3)
« Reply #32 on: 2017-04-10 00:00:45 »
Thanks.  Ended up using FF8Audio (java program) which worked great, but still nice to have this tool =)