[Scummvm-cvs-logs] SF.net SVN: scummvm: [24859] tools/trunk

sev at users.sourceforge.net sev at users.sourceforge.net
Sat Dec 16 06:28:07 CET 2006


Revision: 24859
          http://scummvm.svn.sourceforge.net/scummvm/?rev=24859&view=rev
Author:   sev
Date:     2006-12-15 21:28:01 -0800 (Fri, 15 Dec 2006)

Log Message:
-----------
Add batches for autoconverting Feeble Files SMK videos.

Modified Paths:
--------------
    tools/trunk/README

Added Paths:
-----------
    tools/trunk/convert_dxa.bat
    tools/trunk/convert_dxa.sh
    tools/trunk/convert_dxa_one.bat

Modified: tools/trunk/README
===================================================================
--- tools/trunk/README	2006-12-15 23:54:42 UTC (rev 24858)
+++ tools/trunk/README	2006-12-16 05:28:01 UTC (rev 24859)
@@ -154,3 +154,23 @@
                 'Convert' button. It will ask you either you want them
                 processed in batch mode and will do this for you. All buttons
                 and conversion options work the same.
+
+        convert_dxa.bat
+        convert_dxa_one.bat
+
+                To ease your life we also provide batch files to autoconvert
+                all files. It should work with any game version.
+
+                1. Copy *.smk files from all CDs to some directory
+
+                2. Edit paths in convert_dxa.bat file.
+
+                3. Run the batch. If you set everything correct, it will be
+                almost unattended conversion, just for several files there
+                are no audio, and RAD Game Tools converter will ask you to
+                press OK
+
+        convert_dxa.sh
+
+                Same as above convert_dxa.bat, just for *nix-based systems.
+                It uses Wine to run RAD Game Tools.

Added: tools/trunk/convert_dxa.bat
===================================================================
--- tools/trunk/convert_dxa.bat	                        (rev 0)
+++ tools/trunk/convert_dxa.bat	2006-12-16 05:28:01 UTC (rev 24859)
@@ -0,0 +1,26 @@
+rem Script for converting Feeble Files video to ScummVM format
+rem
+rem modify the paths below
+rem
+rem (c) 2006 ScummVM Team
+rem (c) 2006 oduverne
+rem
+rem $URL$
+rem
+rem $Id$
+
+ at echo off
+rem Feeble Files smk->dxa batch convertor
+
+echo Setting environment variables...
+SET TOOLS_PATH=C:\Program files\ScummVM\tools
+SET BINK_PATH=C:\Program Files\RADVideo
+SET SMK_PATH=C:\games\feeble\smk
+SET DXA_PATH=C:\games\feeble\dxa
+SET DXA_CONVERT=CORRECT
+
+cd "%TOOLS_PATH%"
+
+for %%i in (%SMK_PATH%\*.smk) do call convert_dxa_one "%%i"
+
+echo Converting finished!


Property changes on: tools/trunk/convert_dxa.bat
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + text/plain
Name: svn:keywords
   + Date Rev Author URL Id
Name: svn:eol-style
   + native

Added: tools/trunk/convert_dxa.sh
===================================================================
--- tools/trunk/convert_dxa.sh	                        (rev 0)
+++ tools/trunk/convert_dxa.sh	2006-12-16 05:28:01 UTC (rev 24859)
@@ -0,0 +1,37 @@
+#! /bin/bash
+# Script for converting Feeble Files video to ScummVM format
+#
+# modify the paths below
+#
+# (c) 2006 ScummVM Team
+# (c) 2006 crowley
+#
+# $URL$
+#
+# $Id$
+
+WINE=wine
+VIDEO_PATH=~/games/Feeble/video
+BINK=~/.wine/drive_c/Program\ Files/RADVideo/binkconv.exe
+ENCODE_DXA=~/scummvm/tools/encode_dxa
+FORMAT=vorbis
+
+cd "$VIDEO_PATH"
+
+for i in *.SMK
+do
+    in=`basename "$i" .SMK`;
+    mv "$i" "$in.smk";
+done
+
+for i in *.smk
+do
+    in=`basename "$i" .smk`;
+    if [ ! -f "$in.dxa" ]
+    then
+	$WINE "$BINK" "$i" "$in.png" /n-1 /z1 /#;
+	$WINE "$BINK" "$i" "$in.wav" /v /#;
+	$ENCODE_DXA --$FORMAT "$in";
+	rm *.png *.wav;
+    fi
+done


Property changes on: tools/trunk/convert_dxa.sh
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + text/plain
Name: svn:keywords
   + Date Rev Author URL Id
Name: svn:eol-style
   + native

Added: tools/trunk/convert_dxa_one.bat
===================================================================
--- tools/trunk/convert_dxa_one.bat	                        (rev 0)
+++ tools/trunk/convert_dxa_one.bat	2006-12-16 05:28:01 UTC (rev 24859)
@@ -0,0 +1,34 @@
+rem Auxiliary script for converting Feeble Files video to ScummVM format
+rem
+rem (c) 2006 ScummVM Team
+rem (c) 2006 oduverne
+rem
+rem $URL$
+rem
+rem $Id$
+
+ at echo off
+
+if "%DXA_CONVERT%"=="CORRECT" goto proceed
+
+goto usage
+
+:proceed
+
+echo Processing %1...
+"%BINK_PATH%\BinkConv.exe" %1 "%SMK_PATH%\%~n1.png" /n-1 /z1 /#
+"%BINK_PATH%\BinkConv.exe" %1 "%SMK_PATH%\%~n1.wav" /v /#
+cd "%SMK_PATH%"
+"%TOOLS_PATH%\encode_dxa.exe" --vorbis "%~n1.smk"
+echo Deleting temp files
+del "%SMK_PATH%\%~n1*.png"
+del "%SMK_PATH%\%~n1.wav"
+move "%SMK_PATH%\%~n1.*" "%DXA_PATH%"
+cd "%TOOLS_PATH%"
+
+goto quit
+
+:usage
+echo Please, modify and run convert_dxa.bat
+
+:quit


Property changes on: tools/trunk/convert_dxa_one.bat
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + text/plain
Name: svn:keywords
   + Date Rev Author URL Id
Name: svn:eol-style
   + native


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list