Guest User

Build_Papyrus.bat

a guest
Mar 10th, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.56 KB | None | 0 0
  1. @ECHO off
  2. VERIFY > nul
  3.  
  4. REM Directories
  5. SET skyrimDirectory=D:\Games\Steam\SteamApps\common\Skyrim\
  6. SET wryeDirectory=E:\Lab\Bethesda\TES5\Overlays\
  7. SET compilerApp=%skyrimDirectory%Papyrus Compiler\PapyrusCompiler.exe
  8.  
  9. REM Imports
  10. SET Output=%skyrimDirectory%Data\Scripts
  11. SET Import=%skyrimDirectory%Data\Scripts\Source\
  12.  
  13. SET import00=%wryeDirectory%Papyrus
  14. SET import01=%wryeDirectory%Papyrus\View
  15. SET import02=%wryeDirectory%Papyrus\Helmet
  16. SET import03=%wryeDirectory%Papyrus\Magic
  17. SET import04=%wryeDirectory%Papyrus\Sample
  18.  
  19. SET Imports=%Import%;%import00%;%import01%;%import02%;%import03%;%import04%
  20.  
  21. start "PapyrusCompiler" /B "%compilerApp%" "%import00%" -f="TESV_Papyrus_Flags.flg" -all -import="%Imports%" -output="%Output%"
  22. start "PapyrusCompiler" /B "%compilerApp%" "%import01%" -f="TESV_Papyrus_Flags.flg" -all -import="%Imports%" -output="%Output%"
  23. start "PapyrusCompiler" /B "%compilerApp%" "%import02%" -f="TESV_Papyrus_Flags.flg" -all -import="%Imports%" -output="%Output%"
  24. start "PapyrusCompiler" /B "%compilerApp%" "%import03%" -f="TESV_Papyrus_Flags.flg" -all -import="%Imports%" -output="%Output%"
  25. start "PapyrusCompiler" /B "%compilerApp%" "%import04%" -f="TESV_Papyrus_Flags.flg" -all -import="%Imports%" -output="%Output%"
  26.  
  27. :LOOP
  28. timeout /t 1 /nobreak > nul
  29. tasklist /fi "IMAGENAME eq PapyrusCompiler.exe" | find /i "PapyrusCompiler.exe" > nul
  30. if errorlevel 1 goto Finish
  31. if errorlevel 0 goto LOOP
  32. ECHO ________________________________________________________________________________
  33. :Finish
  34. ECHO Press any key to exit.
  35. PAUSE>NUL
  36. goto :EOF
Add Comment
Please, Sign In to add comment