convert *smk in dxa

Ask for help with ScummVM problems

Moderator: ScummVM Team

necros
Posts: 17
Joined: Wed Aug 28, 2013 9:40 pm

Re: convert *smk in dxa

Post by necros »

trying to use official convert_dxa.bat - binkconv + it`s dependencies + scummvm-tools + broken sword smk in the same folder - run bat ,then i see empty dxa files
containing "DEXA яяЯsЂђNULL" inside, what i miss?

binkconv 1.300.10.0
ScummVM Tools 2.1.0git (Sep 19 2018 06:47:20)
win10 x64

my bat below:

@echo off
echo ScummVM SMK2DXA batch convertor

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Edit audio parameter to mp3/vorbis/flac and additional params ::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

set AUDIO=--vorbis
set AUDIO_PARAMS=

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Default directories for tools and RadVideo utils ::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

if "%SCUMMVM_TOOLS_PATH%"=="" (set "SCUMMVM_TOOLS_PATH=.")
if "%BINK_PATH%"=="" (set "BINK_PATH=.")

:check_tools
if exist "%SCUMMVM_TOOLS_PATH%\scummvm-tools-cli.exe" goto :preencode
echo.
echo ScummVM command line tool cannot be found!
goto :eof

:check_bink
if exist "%BINK_PATH%\binkconv.exe" goto :preencode
echo.
echo Bink convertion tool cannot be found!
goto :eof

:preencode
for /R . %%i in (*.smk) do (call :encode "%%i")
echo.
echo Converting finished!
goto :eof

:encode
echo.
echo Processing %~nx1...
set OLDDIR=CD
cd /d %~dp1
"%BINK_PATH%\binkconv.exe" %1 "%~n1.smk.png" /n-1 /z1 /#
"%BINK_PATH%\binkconv.exe" %1 "%~n1.wav" /v /#
"%SCUMMVM_TOOLS_PATH%\scummvm-tools-cli.exe" --tool encode_dxa %AUDIO% %AUDIO_PARAMS% "%~nx1"
echo Deleting temp files
del "%~n1*.png"
del "%~n1.wav"
chdir /d %OLDDIR%
goto :eof
User avatar
Longcat
Posts: 1061
Joined: Sat Sep 23, 2006 3:15 pm

Re: convert *smk in dxa

Post by Longcat »

Why? Smacker is supported in ScummVM now, no need to convert to dxa.
necros
Posts: 17
Joined: Wed Aug 28, 2013 9:40 pm

Re: convert *smk in dxa

Post by necros »

remind me maybe file size?
User avatar
Longcat
Posts: 1061
Joined: Sat Sep 23, 2006 3:15 pm

Re: convert *smk in dxa

Post by Longcat »

You can check for yourself, pre-converted DXA video packs are already available from the ScummVM downloads page:

https://scummvm.org/games/#sword1
Post Reply