Guest User

Untitled

a guest
Jul 17th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. @echo off
  2. echo Usage: unzip Masterwork zip to Masterwork folder, and Meph tileset zip to Meph Tileset folder, put this script next to them and run it!
  3. pause
  4.  
  5. cd /D "%~dp0"
  6. if NOT exist Masterwork (
  7. echo "Masterwork" directory not found!
  8. goto fail_exit
  9. )
  10. if NOT exist "Meph Tileset" (
  11. echo "Meph Tileset" directory not found!
  12. goto fail_exit
  13. )
  14.  
  15. PUSHD "Masterwork"
  16. echo Updating Dwarf Fortress version...
  17. ren "Dwarf Fortress" "_Dwarf Fortress"
  18. move /Y "..\Meph Tileset\Dwarf Fortress" "Dwarf Fortress"
  19. PUSHD "Dwarf Fortress"
  20.  
  21. echo Updating \raws...
  22. ren "raw" "_raw"
  23. mkdir "raw"
  24. xcopy /Y/R/E "..\_Dwarf Fortress\raw\*.*" "raw\"
  25.  
  26. echo Updating \data...
  27. PUSHD "data"
  28. ren "index" "_index"
  29. ren "shader.fs" "_shader.fs"
  30. ren "shader.vs" "_shader.vs"
  31. PUSHD "init"
  32. ren "interface.txt" "_interface.txt"
  33. POPD
  34. xcopy /Y/R/E "..\..\_Dwarf Fortress\data\*.*" "."
  35. del /F/Q "index"
  36. ren "_index" "index"
  37. del /F/Q "shader.fs"
  38. ren "_shader.fs" "shader.fs"
  39. del /F/Q "shader.vs"
  40. ren "_shader.vs" "shader.vs"
  41. PUSHD "init"
  42. del /F/Q "interface.txt"
  43. ren "_interface.txt" "interface.txt"
  44. POPD
  45. POPD
  46.  
  47. echo Updating various settings files...
  48. ren "dfhack.init" "_dfhack.init"
  49. xcopy /Y/R "..\_Dwarf Fortress\dfhack.init" .
  50. ren "Masterwork.settings" "_Masterwork.settings"
  51. xcopy /Y/R "..\_Dwarf Fortress\Masterwork.settings" .
  52. REM extra df hack init doesn't exist in meph tileset version?
  53. REM ren "extra_dfhack_init.init" "_extra_dfhack_init.init"
  54. xcopy /Y/R "..\_Dwarf Fortress\extra_dfhack_init.init" .
  55. REM stocksettings doesn't exist in meph tileset version?
  56. REM ren "stocksettings" "_stocksettings"
  57. mkdir "stocksettings"
  58. xcopy /Y/R/E "..\_Dwarf Fortress\stocksettings\*.*" "stocksettings\."
  59. mkdir "hack\scripts\masterwork"
  60. xcopy /Y/R/E "..\_Dwarf Fortress\hack\scripts\masterwork" "hack\scripts\masterwork"
  61. PUSHD "hack\plugins"
  62. mkdir "twbt"
  63. mkdir "original"
  64. xcopy /Y/R "automaterial.plug.dll" "twbt\."
  65. xcopy /Y/R "mousequery.plug.dll" "twbt\."
  66. xcopy /Y/R "resume.plug.dll" "twbt\."
  67. xcopy /Y/R "twbt.plug.dll" "twbt\."
  68. POPD
  69. POPD
  70.  
  71. echo Updating Utilities...
  72. ren "MasterworkDwarfFortress" "_MasterworkDwarfFortress"
  73. mkdir "MasterworkDwarfFortress"
  74. xcopy /Y/R/E "_MasterworkDwarfFortress\*.*" "MasterworkDwarfFortress\*.*"
  75. xcopy /Y/R/E "..\Meph Tileset\TilesetExtras\*.*" "MasterworkDwarfFortress\*.*"
  76.  
  77. exit /b 0
  78. :fail_exit
  79. echo Merge failed!
  80. exit /b 1
Add Comment
Please, Sign In to add comment