Allah 6 years ago
parent
commit
ab021cf159
7 changed files with 49 additions and 15 deletions
  1. 0 0
      bin/compile-all.bat
  2. 9 0
      bin/compile-cdb.bat
  3. 0 0
      bin/compile-pak.bat
  4. 1 3
      config.bat
  5. 6 4
      extract-vanilla.bat
  6. 0 8
      compile-cdb.bat
  7. 33 0
      setup.bat

compile-all.bat → bin/compile-all.bat


+ 9 - 0
bin/compile-cdb.bat

@@ -0,0 +1,9 @@
+@echo off
+call config.bat
+rd /s /q "%~dp0CDB0" > NUL
+mkdir CDB0 > NUL
+xcopy /s /q /y "%~dp0CDBV" "%~dp0CDB0" > NUL
+xcopy /s /q /y "%~dp0CDB"  "%~dp0CDB0" > NUL
+"%dcpath%\ModTools\CDBTool.exe" -Collapse -InDir "%~dp0CDB0" -OutCDB "%~dp0PAK\data.cdb"
+rd /s /q "%~dp0CDB0"
+if %pause%==1 (pause)

compile-pak.bat → bin/compile-pak.bat


+ 1 - 3
config.bat

@@ -1,7 +1,6 @@
 :: Your output pak destination
 :: Below is Quittouff's Dummy Mod by default
 set outpak=C:\Program Files (x86)\Steam\steamapps\workshop\content\588650\1405810340\res.pak
-:: set outpak=D:\SteamLibrary\steamapps\workshop\content\588650\1405810340\res.pak
 
 :: Whether it should pause the terminal at the end
 :: Could be useful for troubleshooting I guess
@@ -11,5 +10,4 @@ set pause=0
 set runafter=1
 
 :: Make sure this path is correct and it has all the shit (vanilla res.pak, ModTools)
-set dcpath=C:\Program Files (x86)\Steam\steamapps\common\Dead Cells
-:: set dcpath=D:\SteamLibrary\steamapps\common\Dead Cells
+:: set dcpath=

+ 6 - 4
extract-vanilla.bat

@@ -1,9 +1,11 @@
 @echo off
 call config.bat
-mkdir "%~dp0PAK"
-mkdir "%~dp0CDB"
-mkdir "%~dp0PAKV"
-mkdir "%~dp0CDBV"
+rd /s /q CDBV > NUL
+rd /s /q PAKV > NUL
+mkdir PAK > NUL
+mkdir CDB > NUL
+mkdir PAKV > NUL
+mkdir CDBV > NUL
 "%dcpath%\ModTools\PAKTool.exe" -Expand -OutDir "%~dp0PAKV" -RefPak "%dcpath%\res.pak"
 "%dcpath%\ModTools\CDBTool.exe" -Expand -OutDir "%~dp0CDBV" -RefCDB "%~dp0PAKV\data.cdb"
 if %pause%==1 (pause)

+ 0 - 8
compile-cdb.bat

@@ -1,8 +0,0 @@
-@echo off
-call config.bat
-mkdir CDB0
-xcopy /s /q /y "%~dp0CDBV" "%~dp0CDB0"
-xcopy /s /q /y "%~dp0CDB"  "%~dp0CDB0"
-"%dcpath%\ModTools\CDBTool.exe" -Collapse -InDir "%~dp0CDB0" -OutCDB "%~dp0PAK\data.cdb"
-rd /s /q "%~dp0CDB0"
-if %pause%==1 (pause)

+ 33 - 0
setup.bat

@@ -0,0 +1,33 @@
+@echo off
+move /Y bin\* . > NUL
+
+echo Welcome to barebones
+
+if exist "C:\Program Files (x86)\Steam\steamapps\common\Dead Cells\res.pak" (choice /M "Is the path C:\Program Files (x86)\Steam\steamapps\common\Dead Cells correct?")
+
+if %errorlevel% equ 1 (
+set dcpath=C:\Program Files ^(x86^)\Steam\steamapps\common\Dead Cells & goto :destructor
+)
+
+goto :customdir
+
+:customdir
+set /p dcpath=Paste the full path of your Dead Cells directory: & goto :verifydir
+
+:verifydir
+if exist "%dcpath%\res.pak" (goto :destructor) else (echo Invalid directory. & goto :customdir)
+
+:destructor
+@echo set dcpath=%dcpath% >> config.bat
+call extract-vanilla.bat
+echo.
+echo How to use:
+echo 1. Install the Dummy Mod from the workshop.
+echo 2. Copy the files you want to edit from CDBV/PAKV ^(except for data.cdb^) to CDB/PAK, retaining all the subdirectories.
+echo 3. Run compile-all and launch Dummy Mod.
+echo 4. Run extract-vanilla each time there's a new Dead Cells update.
+echo.
+echo This file will now be autodestructed.
+pause
+pause
+del setup.bat & exit