Source Tools Advanced.bcs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Specification: Source Tools Advanced
  2. // Written by: Ryan Gregg
  3. // Version: N/A
  4. // Created: December 3, 2004
  5. // Last updated: N/A
  6. Include "Source Tools.bci"
  7. Include "Source Batch.bci"
  8. Include "Source GLView.bci"
  9. Include "Steam.bci"
  10. Include "Templates.bci"
  11. Batch
  12. {
  13. Name "Source Tools Normal"
  14. Priority "3"
  15. Links "Source SDK,http://www.valve-erc.com/srcsdk/|"_
  16. "Steam,http://www.steampowered.com/|"_
  17. "Valve,http://www.valvesoftware.com/"
  18. Filter "Supported Files|*.vmf;*.bsp;*.gl|VMF Files (*.vmf)|*.vmf|BSP Files (*.bsp)|*.bsp|GL Files (*.gl)|*.gl"
  19. Stages "BSP|VIS|RAD|Shared|ZIP|Batch|GLView|Steam"
  20. LogFile "${FilePath}\\${FileName}.log"
  21. Template "@echo off\n"_
  22. "set VPROJECT=${ValveProject}\n"_
  23. "cd ${BinRoot}\n"_
  24. "${Splash}"_
  25. "\"${StagePath=BSP}\" ${StageParam=BSP} \"${FilePath}\\${FileName}\"\n"_
  26. "if ERRORLEVEL 1 goto failed\n"_
  27. "\"${StagePath=VIS}\" ${StageParam=VIS} \"${FilePath}\\${FileName}\"\n"_
  28. "if ERRORLEVEL 1 goto failed\n"_
  29. "\"${StagePath=RAD}\" ${StageParam=RAD} \"${FilePath}\\${FileName}\"\n"_
  30. "if ERRORLEVEL 1 goto failed\n"_
  31. "\"${StagePath=ZIP}\" ${StageParam=ZIP}\n"_
  32. "if ERRORLEVEL 1 goto failed\n"_
  33. "\"${StagePath=GLView}\" ${StageParam=GLView} \"${FilePath}\\${FileName}.gl\"\n"_
  34. "${StageCmd=Batch}\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. }