setup.bat 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. @echo off
  2. move /Y bin\* . > NUL
  3. echo Welcome to barebones
  4. 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?")
  5. if %errorlevel% equ 1 (
  6. set dcpath=C:\Program Files ^(x86^)\Steam\steamapps\common\Dead Cells& goto :destructor
  7. )
  8. goto :customdir
  9. :customdir
  10. set /p dcpath=Paste the full path of your Dead Cells directory: & goto :verifydir
  11. :verifydir
  12. if exist "%dcpath%\res.pak" (goto :destructor) else (echo Invalid directory. & goto :customdir)
  13. :destructor
  14. @echo set dcpath=%dcpath%>>config.bat
  15. call extract-vanilla.bat
  16. echo.
  17. echo How to use:
  18. echo 1. Install the Dummy Mod from the workshop.
  19. echo 2. Copy the files you want to edit from CDBV/PAKV ^(except for data.cdb^) to CDB/PAK, retaining all the subdirectories.
  20. echo 3. Run compile-all and launch Dummy Mod.
  21. echo 4. Run extract-vanilla each time there's a new Dead Cells update.
  22. echo.
  23. echo This file will now be autodestructed.
  24. pause
  25. pause
  26. del setup.bat & exit