MecklenburgV-B5a5.bat 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @echo off
  2. set WADROOT=D:\Hammer
  3. echo ###################################################
  4. echo # Batch Compiler #
  5. echo ###################################################
  6. echo ###################################################
  7. echo # Please report bugs to: [email protected] #
  8. echo ###################################################
  9. echo.
  10. echo Written At: 3/3/2007 4:27 PM
  11. echo BC Version: 3.1.2.0
  12. echo.
  13. "D:\Hammer\batch2\Tools\hlcsg.exe" -wadautodetect -cliptype Simple -wadinclude embeded.wad -chart -estimate -texdata 15000 -lightdata 15000 "D:\Hammer\Mecklenburg\vfinal\meckv_final"
  14. if ERRORLEVEL 1 goto failed
  15. "D:\Hammer\batch2\Tools\hlbsp.exe" -maxnodesize 8192.0 -chart -estimate -texdata 15000 -lightdata 15000 "D:\Hammer\Mecklenburg\vfinal\meckv_final"
  16. if ERRORLEVEL 1 goto failed
  17. "D:\Hammer\batch2\Tools\hlvis.exe" -chart -estimate -texdata 15000 -lightdata 15000 "D:\Hammer\Mecklenburg\vfinal\meckv_final"
  18. if ERRORLEVEL 1 goto failed
  19. "D:\Hammer\batch2\Tools\hlrad.exe" -chop 70 -sparse -chart -estimate -texdata 15000 -lightdata 15000 "D:\Hammer\Mecklenburg\vfinal\meckv_final"
  20. if ERRORLEVEL 1 goto failed
  21. if ERRORLEVEL 1 goto failed
  22. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.wic" goto nodelwic
  23. del "D:\Hammer\Mecklenburg\vfinal\meckv_final.wic"
  24. echo D:\Hammer\Mecklenburg\vfinal\meckv_final.wic deleted.
  25. :nodelwic
  26. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.lin" goto nodellin
  27. del "D:\Hammer\Mecklenburg\vfinal\meckv_final.lin"
  28. echo D:\Hammer\Mecklenburg\vfinal\meckv_final.lin deleted.
  29. :nodellin
  30. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.p0" goto nodelp0
  31. del "D:\Hammer\Mecklenburg\vfinal\meckv_final.p0"
  32. echo D:\Hammer\Mecklenburg\vfinal\meckv_final.p0 deleted.
  33. :nodelp0
  34. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.p1" goto nodelp1
  35. del "D:\Hammer\Mecklenburg\vfinal\meckv_final.p1"
  36. echo D:\Hammer\Mecklenburg\vfinal\meckv_final.p1 deleted.
  37. :nodelp1
  38. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.p2" goto nodelp2
  39. del "D:\Hammer\Mecklenburg\vfinal\meckv_final.p2"
  40. echo D:\Hammer\Mecklenburg\vfinal\meckv_final.p2 deleted.
  41. :nodelp2
  42. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.p3" goto nodelp3
  43. del "D:\Hammer\Mecklenburg\vfinal\meckv_final.p3"
  44. echo D:\Hammer\Mecklenburg\vfinal\meckv_final.p3 deleted.
  45. :nodelp3
  46. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.prt" goto nodelprt
  47. del "D:\Hammer\Mecklenburg\vfinal\meckv_final.prt"
  48. echo D:\Hammer\Mecklenburg\vfinal\meckv_final.prt deleted.
  49. :nodelprt
  50. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.err" goto nodelerr
  51. del "D:\Hammer\Mecklenburg\vfinal\meckv_final.err"
  52. echo D:\Hammer\Mecklenburg\vfinal\meckv_final.err deleted.
  53. :nodelerr
  54. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.ent.bak" goto nodelentbac
  55. del "D:\Hammer\Mecklenburg\vfinal\meckv_final.ent.bak"
  56. echo D:\Hammer\Mecklenburg\vfinal\meckv_final.ent.bak deleted.
  57. :nodelentbac
  58. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.bsp" goto nocopybsp
  59. copy "D:\Hammer\Mecklenburg\vfinal\meckv_final.bsp" "C:\Steam\SteamApps\_funjob_\half-life\ts\maps"
  60. echo meckv_final.bsp copied to C:\Steam\SteamApps\_funjob_\half-life\ts\maps.
  61. :nocopybsp
  62. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.res" goto nocopyres
  63. copy "D:\Hammer\Mecklenburg\vfinal\meckv_final.res" "C:\Steam\SteamApps\_funjob_\half-life\ts\maps"
  64. echo meckv_final.res copied to C:\Steam\SteamApps\_funjob_\half-life\ts\maps.
  65. :nocopyres
  66. if not exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.pts" goto nocopypts
  67. copy "D:\Hammer\Mecklenburg\vfinal\meckv_final.pts" "C:\Steam\SteamApps\_funjob_\half-life\ts\maps"
  68. echo meckv_final.pts copied to C:\Steam\SteamApps\_funjob_\half-life\ts\maps.
  69. :nocopypts
  70. goto succeeded
  71. :failed
  72. echo.
  73. echo There was a problem compiling your map, check your meckv_final.log file for errors.
  74. :succeeded
  75. echo.
  76. if exist "D:\Hammer\Mecklenburg\vfinal\meckv_final.log" "C:\WINDOWS\system32\notepad.exe" "D:\Hammer\Mecklenburg\vfinal\meckv_final.log"