Allah 6 years ago
parent
commit
62797f18fa
5 changed files with 20 additions and 17 deletions
  1. 10 5
      README.md
  2. 1 1
      compile-cdb.bat
  3. 2 2
      compile-pak.bat
  4. 5 7
      config.bat
  5. 2 2
      extract-vanilla.bat

+ 10 - 5
README.md

@@ -1,12 +1,17 @@
 Put a full vanilla res.pak and ModTools into this directory. Vanilla files will be stored in CDBV and PAKV.
 Create dirs CDB and PAK, and only put the files you edited. Refer to the [Corrupted](https://gitlab.com/alaah/dead-cells-corrupted-mode) files for an example.
 
+# Howto
+Edit config to your needs, and make sure the Dead Cells path is correct.
+Run extract-vanilla to get your vanilla directories.
+Then you can use the "compilers".
+
 # Files
-* compile-all – exec compile-cdb and compile-pak
-* compile-cdb – collapse the CDB dir into PAK/data.cdb
-* compile-pak – build the mod and optionally launch dead cells
-* config – variables; edit to your needs
-* extract-vanilla – extracts the full res.pak
+* compile-all  exec compile-cdb and compile-pak
+* compile-cdb  collapse the CDB dir into PAK/data.cdb
+* compile-pak  build the mod and optionally launch dead cells
+* config  variables; edit to your needs
+* extract-vanilla  extracts the full res.pak
 
 # License
 See LICENSE for information

+ 1 - 1
compile-cdb.bat

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

+ 2 - 2
compile-pak.bat

@@ -1,4 +1,4 @@
 call config.bat
-ModTools\PAKTool.exe -CreateDiffPak -RefPak "%~dp0res.pak" -InDir "%~dp0PAK" -OutPak %outpak%
-if %runafter%==1 (%dcpath%)
+"%dcpath%\ModTools\PAKTool.exe" -CreateDiffPak -RefPak "%dcpath%\res.pak" -InDir "%~dp0PAK" -OutPak "%outpak%"
+if %runafter%==1 ("%dcpath%\deadcells.exe")
 if %pause%==1 (pause)

+ 5 - 7
config.bat

@@ -1,17 +1,15 @@
 :: Your output pak destination
 :: Below is Quittouff's Dummy Mod by default
-
-set outpak="G:\SteamLibrary\steamapps\workshop\content\588650\1405810340\res.pak"
+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
-
 set pause=0
 
 :: Whether to exec DC after compiling the pak 
-
 set runafter=1
 
-:: If you have the above toggled on, make sure this path is correct.
-
-set dcpath="G:\SteamLibrary\steamapps\common\Dead Cells\deadcells.exe"
+:: 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

+ 2 - 2
extract-vanilla.bat

@@ -1,6 +1,6 @@
 call config.bat
 mkdir "%~dp0PAKV"
 mkdir "%~dp0CDBV"
-ModTools\PAKTool.exe -Expand -OutDir "%~dp0PAKV" -RefPak "%~dp0res.pak"
-ModTools\CDBTool.exe -Expand -OutDir "%~dp0CDBV" -RefCDB "%~dp0PAKV\data.cdb"
+"%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)