CompileB1.bat 3.6 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: 12/30/2007 5:58 PM
  11. echo BC Version: 3.1.2.0
  12. echo.
  13. hlcsg.exe -wadautodetect -cliptype Simple -wadinclude Megawad2.wad -wadinclude XFRP.wad -wadinclude embeded.wad -wadinclude cerb.wad -chart -estimate -texdata 15000 -lightdata 15000 "D:\Hammer\Cerb\b1SRC\hrp_cerb_b1"
  14. if ERRORLEVEL 1 goto failed
  15. hlbsp.exe -maxnodesize 8192.0 -chart -estimate -texdata 15000 -lightdata 15000 "D:\Hammer\Cerb\b1SRC\hrp_cerb_b1"
  16. if ERRORLEVEL 1 goto failed
  17. hlvis.exe -chart -estimate -texdata 15000 -lightdata 15000 "D:\Hammer\Cerb\b1SRC\hrp_cerb_b1"
  18. if ERRORLEVEL 1 goto failed
  19. hlrad.exe -nomatrix -chart -estimate -texdata 15000 -lightdata 15000 "D:\Hammer\Cerb\b1SRC\hrp_cerb_b1"
  20. if ERRORLEVEL 1 goto failed
  21. if ERRORLEVEL 1 goto failed
  22. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.wic" goto nodelwic
  23. del "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.wic"
  24. echo D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.wic deleted.
  25. :nodelwic
  26. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.lin" goto nodellin
  27. del "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.lin"
  28. echo D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.lin deleted.
  29. :nodellin
  30. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p0" goto nodelp0
  31. del "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p0"
  32. echo D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p0 deleted.
  33. :nodelp0
  34. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p1" goto nodelp1
  35. del "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p1"
  36. echo D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p1 deleted.
  37. :nodelp1
  38. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p2" goto nodelp2
  39. del "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p2"
  40. echo D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p2 deleted.
  41. :nodelp2
  42. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p3" goto nodelp3
  43. del "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p3"
  44. echo D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.p3 deleted.
  45. :nodelp3
  46. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.prt" goto nodelprt
  47. del "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.prt"
  48. echo D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.prt deleted.
  49. :nodelprt
  50. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.err" goto nodelerr
  51. del "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.err"
  52. echo D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.err deleted.
  53. :nodelerr
  54. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.ent.bak" goto nodelentbac
  55. del "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.ent.bak"
  56. echo D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.ent.bak deleted.
  57. :nodelentbac
  58. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.bsp" goto nocopybsp
  59. copy "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.bsp" "C:\Steam\SteamApps\_Funjob_\half-life\ts\maps"
  60. echo hrp_cerb_b1.bsp copied to C:\Steam\SteamApps\_Funjob_\half-life\ts\maps.
  61. :nocopybsp
  62. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.res" goto nocopyres
  63. copy "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.res" "C:\Steam\SteamApps\_Funjob_\half-life\ts\maps"
  64. echo hrp_cerb_b1.res copied to C:\Steam\SteamApps\_Funjob_\half-life\ts\maps.
  65. :nocopyres
  66. if not exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.pts" goto nocopypts
  67. copy "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.pts" "C:\Steam\SteamApps\_Funjob_\half-life\ts\maps"
  68. echo hrp_cerb_b1.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 hrp_cerb_b1.log file for errors.
  74. :succeeded
  75. echo.
  76. if exist "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.log" "D:\WINDOWS\system32\notepad.exe" "D:\Hammer\Cerb\B1SRC\hrp_cerb_b1.log"