Source Tools Normal.bcs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Specification: Source Tools Normal
  2. // Written by: Ryan Gregg
  3. // Version: N/A
  4. // Created: November 5, 2004
  5. // Last updated: N/A
  6. Include "Source Tools.bci"
  7. Include "Source Batch.bci"
  8. Include "Steam.bci"
  9. Include "Templates.bci"
  10. Batch
  11. {
  12. Name "Source Tools Normal"
  13. Priority "3"
  14. Links "Source SDK,http://www.valve-erc.com/srcsdk/|"_
  15. "Steam,http://www.steampowered.com/|"_
  16. "Valve,http://www.valvesoftware.com/"
  17. Filter "Supported Files|*.vmf;*.bsp|VMF Files (*.vmf)|*.vmf|BSP Files (*.bsp)|*.bsp"
  18. Stages "BSP|VIS|RAD|Shared|Batch|Steam"
  19. LogFile "${FilePath}\\${FileName}.log"
  20. Template "@echo off\n"_
  21. "set VPROJECT=${ValveProject}\n"_
  22. "cd ${BinRoot}\n"_
  23. "${Splash}"_
  24. "\"${StagePath=BSP}\" ${StageParam=BSP} \"${FilePath}\\${FileName}\"\n"_
  25. "if ERRORLEVEL 1 goto failed\n"_
  26. "\"${StagePath=VIS}\" ${StageParam=VIS} \"${FilePath}\\${FileName}\"\n"_
  27. "if ERRORLEVEL 1 goto failed\n"_
  28. "\"${StagePath=RAD}\" ${StageParam=RAD} \"${FilePath}\\${FileName}\"\n"_
  29. "if ERRORLEVEL 1 goto failed\n"_
  30. "${StageCmd=Batch}\n"_
  31. "\"${StagePath=Steam}\" ${StageParam=Steam}\n"_
  32. "goto succeeded\n"_
  33. ":failed\n"_
  34. "echo.\n"_
  35. "echo There was a problem compiling your map, check your ${FileName}.log file for errors.\n"_
  36. ":succeeded\n"_
  37. "echo.\n"_
  38. "${LogViewerRun}\n"
  39. }