Quake Tools Legacy.bcs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Specification: Quake Tools Legacy
  2. // Written by: Ryan Gregg
  3. // Version: N/A
  4. // Created: August 4, 2004
  5. // Last updated: September 13, 2004
  6. // Updated by: Ryan Gregg
  7. // Date: September 13, 2004
  8. // Improved game execution.
  9. Include "Quake Tools.bci"
  10. Include "Batch.bci"
  11. Include "Half-Life.bci"
  12. Include "Steam.bci"
  13. Include "Templates.bci"
  14. Batch
  15. {
  16. Name "Quake Tools Legacy"
  17. Priority "3"
  18. Links "Steam,http://www.steampowered.com/|"_
  19. "Valve,http://www.valvesoftware.com/"
  20. Filter "Supported Files|*.map;*.bsp|MAP Files (*.map)|*.map|BSP Files (*.bsp)|*.bsp"
  21. Stages "CSG|BSP|VIS|RAD|Shared|Batch|HL|Steam"
  22. LogFile "${FilePath}\\${FileName}.log"
  23. Template "@echo off\n"_
  24. "${Splash}"_
  25. "\"${StagePath=CSG}\" ${StageParam=CSG} \"${FilePath}\\${FileName}\"\n"_
  26. "if ERRORLEVEL 1 goto failed\n"_
  27. "\"${StagePath=BSP}\" ${StageParam=BSP} \"${FilePath}\\${FileName}\"\n"_
  28. "if ERRORLEVEL 1 goto failed\n"_
  29. "\"${StagePath=VIS}\" ${StageParam=VIS} \"${FilePath}\\${FileName}\"\n"_
  30. "if ERRORLEVEL 1 goto failed\n"_
  31. "\"${StagePath=RAD}\" ${StageParam=RAD} \"${FilePath}\\${FileName}\"\n"_
  32. "if ERRORLEVEL 1 goto failed\n"_
  33. "${StageCmd=Batch}\n"_
  34. "\"${StagePath=hl}\" ${StageParam=hl}\n"_
  35. "\"${StagePath=Steam}\" ${StageParam=Steam}\n"_
  36. "goto succeeded\n"_
  37. ":failed\n"_
  38. "echo.\n"_
  39. "echo There was a problem compiling your map, check your ${FileName}.log file for errors.\n"_
  40. ":succeeded\n"_
  41. "echo.\n"_
  42. "${LogViewerRun}\n"
  43. }