Zoners Tools Advanced.bcs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // Specification: Zoners Tools Advanced
  2. // Written by: Ryan Gregg
  3. // Version: N/A
  4. // Created: August 4, 2004
  5. // Last updated: Febuary 25, 2005
  6. // Updated by: Ryan Gregg
  7. // Date: Febuary 25, 2005
  8. // Updated ZHLT link.
  9. // Updated by: Ryan Gregg
  10. // Date: September 13, 2004
  11. // Improved game execution.
  12. // Updated by: Ryan Gregg
  13. // Date: August 10, 2004
  14. // Fixed Opt_EntData's command line.
  15. // Updated by: Ryan Gregg
  16. // Date: August 9, 2004
  17. // Added Opt_EntData stage.
  18. Include "HLFix.bci"
  19. Include "Backup.bci"
  20. Include "Zoners Tools P Series.bci"
  21. Include "Opt_EntData.bci"
  22. Include "RESGen.bci"
  23. Include "Batch.bci"
  24. Include "Half-Life.bci"
  25. Include "Steam.bci"
  26. Include "Templates.bci"
  27. Batch
  28. {
  29. Name "Zoners Tools Advanced"
  30. Priority "3"
  31. Links "HLFix,http://extension.ws/hlfix/|"_
  32. "Backup,http://collective.valve-erc.com/index.php?go=mapbackup|"_
  33. "Zoners Tools,http://www.zhlt.info/|"_
  34. "Opt_EntData,http://www.chatbear.com/board.plm?a=viewthread&t=52%2c1080647136%2c18491&id=634830&b=590&v=flatold&s=0|"_
  35. "RESGen,http://www.unitedadmins.com/resgen.php|"_
  36. "Steam,http://www.steampowered.com/|"_
  37. "Valve,http://www.valvesoftware.com/"
  38. Filter "Supported Files|*.map;*.rmf;*.bsp|MAP Files (*.map)|*.map|RMF Files (*.rmf)|*.rmf|BSP Files (*.bsp)|*.bsp"
  39. Stages "HLFix|Backup|CSG|BSP|VIS|RAD|RAD2|RipEnt|Shared|Opt_EntData|RESGen|Batch|HL|Steam"
  40. LogFile "${FilePath}\\${FileName}.log"
  41. Template "@echo off\n"_
  42. "set WADROOT=${WADRoot}\n"_
  43. "${Splash}"_
  44. "\"${StagePath=HLFix}\" ${StageParam=HLFix} \"${FilePath}\\${FileName}\"\n"_
  45. "if ERRORLEVEL 1 goto failed\n"_
  46. "\"${StagePath=Backup}\" ${StageParam=Backup} \"${FilePath}\\${FileName}\"\n"_
  47. "if ERRORLEVEL 1 goto failed\n"_
  48. "\"${StagePath=CSG}\" ${StageParam=CSG} \"${FilePath}\\${FileName}\"\n"_
  49. "if ERRORLEVEL 1 goto failed\n"_
  50. "\"${StagePath=BSP}\" ${StageParam=BSP} \"${FilePath}\\${FileName}\"\n"_
  51. "if ERRORLEVEL 1 goto failed\n"_
  52. "\"${StagePath=VIS}\" ${StageParam=VIS} \"${FilePath}\\${FileName}\"\n"_
  53. "if ERRORLEVEL 1 goto failed\n"_
  54. "\"${StagePath=RAD}\" ${StageParam=RAD} ${StageParam=RAD2} \"${FilePath}\\${FileName}\"\n"_
  55. "if ERRORLEVEL 1 goto failed\n"_
  56. "\"${StagePath=RipEnt}\" ${StageParam=RipEnt} \"${FilePath}\\${FileName}\"\n"_
  57. "if ERRORLEVEL 1 goto failed\n"_
  58. "\"${StagePath=Opt_EntData}\" \"${FilePath}\\${FileName}\" ${StageParam=Opt_EntData}\n"_
  59. "if ERRORLEVEL 1 goto failed\n"_
  60. "\"${StagePath=RESGen}\" -k ${StageParam=RESGen} -f \"${FilePath}\\${FileName}\"\n"_
  61. "if ERRORLEVEL 1 goto failed\n"_
  62. "${StageCmd=Batch}\n"_
  63. "\"${StagePath=hl}\" ${StageParam=hl}\n"_
  64. "\"${StagePath=Steam}\" ${StageParam=Steam}\n"_
  65. "goto succeeded\n"_
  66. ":failed\n"_
  67. "echo.\n"_
  68. "echo There was a problem compiling your map, check your ${FileName}.log file for errors.\n"_
  69. ":succeeded\n"_
  70. "echo.\n"_
  71. "${LogViewerRun}\n"
  72. }