Compile_MeckRain_LOW.bat 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. @echo off
  2. echo.
  3. echo Steven, modify the batch script to fit your settings. The original map name is Meckrainig1, so change it.
  4. echo.
  5. set WADROOT=F:\HLDev\Goldsource\Hammer\Mecklenburg\Rain\wads
  6. echo ###################################################
  7. echo # Batch Compiler -MeckVR- #
  8. echo ###################################################
  9. echo ###################################################
  10. echo # MecklenburgV_rain by FUNJOB Batch Compiler V5 #
  11. echo ###################################################
  12. echo # This toolset is ment for low quality builds #
  13. echo ###################################################
  14. echo.
  15. echo Written At: 6/8/2009 3:22 PM
  16. echo BC Version: 3.1.2.0
  17. echo.
  18. echo Hey steven, don't give this script away, it's very crucial for compiling the mecklenburg series
  19. echo Also, don't give out any of the files like the lights.rad. That's also modded by me.
  20. "hlcsg.exe" -wadautodetect -cliptype Precise -chart -estimate -texdata 15000 -lightdata 15000 "Meckraing1"
  21. if ERRORLEVEL 1 goto failed
  22. "hlbsp.exe" -maxnodesize 2048.0 -chart -estimate -texdata 15000 -lightdata 15000 "Meckraing1"
  23. if ERRORLEVEL 1 goto failed
  24. "hlvis.exe" -full -chart -estimate -texdata 15000 -lightdata 15000 "Meckraing1"
  25. if ERRORLEVEL 1 goto failed
  26. "hlrad.exe" -sparse -chart -estimate -texdata 15000 -lightdata 15000 "Meckraing1"
  27. if ERRORLEVEL 1 goto failed
  28. if ERRORLEVEL 1 goto failed
  29. if not exist "Meckraing1.wic" goto nodelwic
  30. del "Meckraing1.wic"
  31. echo Meckraing1.wic deleted.
  32. :nodelwic
  33. if not exist "Meckraing1.lin" goto nodellin
  34. del "Meckraing1.lin"
  35. echo Meckraing1.lin deleted.
  36. :nodellin
  37. if not exist "Meckraing1.p0" goto nodelp0
  38. del "Meckraing1.p0"
  39. echo Meckraing1.p0 deleted.
  40. :nodelp0
  41. if not exist "Meckraing1.p1" goto nodelp1
  42. del "Meckraing1.p1"
  43. echo Meckraing1.p1 deleted.
  44. :nodelp1
  45. if not exist "Meckraing1.p2" goto nodelp2
  46. del "Meckraing1.p2"
  47. echo Meckraing1.p2 deleted.
  48. :nodelp2
  49. if not exist "Meckraing1.p3" goto nodelp3
  50. del "Meckraing1.p3"
  51. echo Meckraing1.p3 deleted.
  52. :nodelp3
  53. if not exist "Meckraing1.prt" goto nodelprt
  54. del "Meckraing1.prt"
  55. echo Meckraing1.prt deleted.
  56. :nodelprt
  57. if not exist "Meckraing1.err" goto nodelerr
  58. del "Meckraing1.err"
  59. echo Meckraing1.err deleted.
  60. :nodelerr
  61. if not exist "Meckraing1.ent.bak" goto nodelentbac
  62. del "Meckraing1.ent.bak"
  63. echo Meckraing1.ent.bak deleted.
  64. :nodelentbac
  65. if not exist "Meckraing1.bsp" goto nocopybsp
  66. copy "Meckraing1.bsp" "C:\Steam\steamapps\_Funjob_\half-life\ts\maps"
  67. echo Meckraing1.bsp copied to C:\Steam\steamapps\_Funjob_\half-life\ts\maps.
  68. :nocopybsp
  69. if not exist "Meckraing1.res" goto nocopyres
  70. copy "Meckraing1.res" "C:\Steam\steamapps\_Funjob_\half-life\ts\maps"
  71. echo Meckraing1.res copied to C:\Steam\steamapps\_Funjob_\half-life\ts\maps.
  72. :nocopyres
  73. if not exist "Meckraing1.pts" goto nocopypts
  74. copy "Meckraing1.pts" "C:\Steam\steamapps\_Funjob_\half-life\ts\maps"
  75. echo Meckraing1.pts copied to C:\Steam\steamapps\_Funjob_\half-life\ts\maps.
  76. :nocopypts
  77. goto succeeded
  78. :failed
  79. echo.
  80. echo There was a problem compiling Mecklenburg, check your log file for errors.
  81. :succeeded
  82. echo.
  83. if exist "Meckraing1.log" "%windir%/NOTEPAD.EXE" "Meckraing1.log"
  84. echo Congrats, Mecklenburg Rain compiled with no fatal issues!