FatalBulletHit

Tom Clancy's Rainbow Six Siege - Audio Extractor (Launcher)

May 15th, 2018 (edited)
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 9.39 KB | None | 0 0
  1. @ECHO OFF
  2.  
  3. :: # https://pastebin.com/iC6YuYPj | https://forum.xentax.com/viewtopic.php?p=140570#p140570
  4.  
  5. :: Note:
  6. ::
  7. :: This is only the Batch wrapper which downloads the main PowerShell script in order to bypass the
  8. :: normally restricted script execution policy.
  9. ::
  10. :: To adjust paths or options, open the main PowerShell script ('tc_r6s_audio_extractor.ps1') with
  11. :: notepad or a source code editing software of your choice and adjust the values beneath the
  12. :: READ ME section.
  13. ::
  14. :: For more information check the documentation (see below).
  15.  
  16. :: ####################################################################################################
  17. :: # <><><><><><><><><> [READ ME] Tom Clancy's Rainbow Six Siege - Audio Extractor <><><><><><><><><> #
  18. :: #                                                                                                  #
  19. :: #                                                                                                  #
  20. :: # The Tom Clancy's Rainbow Six Siege - Audio Extractor will download multiple resources in order   #
  21. :: # to extract, convert and sort most of the audio files from the Ubisoft game Tom Clancy's Rainbow  #
  22. :: # Six Siege.                                                                                       #
  23. :: #                                                                                                  #
  24. :: # Be aware that the entire process may take several hours. For information on how to increase      #
  25. :: # performance, check the documentation (see below).                                                #
  26. :: #                                                                                                  #
  27. :: #                                                                                                  #
  28. :: # Note that from now on sorting is no longer directly possible as the proper names have been       #
  29. :: # removed from the end of the '.bnk' files when the audio source files were changed and is now     #
  30. :: # done based on file names and OasisIDs from old source files.                                     #
  31. :: #                                                                                                  #
  32. :: # Additionally all the '.lwav' files have been altered in a way that they are now extracted as     #
  33. :: # '.wav_unknown' files and cannot be converted at the moment.                                      #
  34. :: #                                                                                                  #
  35. :: #                                                                                                  #
  36. :: # Disclaimer:                                                                                      #
  37. :: #                                                                                                  #
  38. :: # I did not write any of the programs or scripts that are needed for extraction and conversion.    #
  39. :: # All credits belong to their authors, you may check out the links to the forum entries and        #
  40. :: # websites below.                                                                                  #
  41. :: #                                                                                                  #
  42. :: #                                                                                                  #
  43. :: # Sources:                                                                                         #
  44. :: #                                                                                                  #
  45. :: #     QuickBMS                                                                                     #
  46. :: #         http://aluigi.altervista.org/quickbms.htm                                                #
  47. :: #                                                                                                  #
  48. :: #     pck_AKPK_extractor.bms                                                                       #
  49. :: #         http://forum.xentax.com/viewtopic.php?p=80192#p80192                                     #
  50. :: #                                                                                                  #
  51. :: #     func_getTYPE.bms                                                                             #
  52. :: #         http://forum.xentax.com/viewtopic.php?f=13&p=69577#p69577                                #
  53. :: #                                                                                                  #
  54. :: #     bnk_extractor.bms                                                                            #
  55. :: #         http://forum.xentax.com/viewtopic.php?f=13&t=4450&p=89662#p89662                         #
  56. :: #                                                                                                  #
  57. :: #     ww2ogg (includes packed_codebooks_aoTuV_603.bin)                                             #
  58. :: #         https://www.hcs64.com/vgm_ripping.html                                                   #
  59. :: #         https://github.com/hcs64/ww2ogg                                                          #
  60. :: #                                                                                                  #
  61. :: #     revorb                                                                                       #
  62. :: #         https://hydrogenaud.io/index.php/topic,64328.msg574110.html#msg574110                    #
  63. :: #                                                                                                  #
  64. :: #     wwise_ima_adpcm (sound_conveter_v1.15.zip)                                                   #
  65. :: #         https://bitbucket.org/zabb65/payday-2-modding-information/downloads                      #
  66. :: #                                                                                                  #
  67. :: #     wwise_pcm_decoder.bms                                                                        #
  68. :: #         http://forum.xentax.com/viewtopic.php?p=110795#p110795                                   #
  69. :: #                                                                                                  #
  70. :: #                                                                                                  #
  71. :: # Documentation:                                                                                   #
  72. :: #                                                                                                  #
  73. :: #     XeNTaX post                                                                                  #
  74. :: #         http://forum.xentax.com/viewtopic.php?p=140570#p140570                                   #
  75. :: #                                                                                                  #
  76. :: #     Name overview                                                                                #
  77. :: #         https://goo.gl/PxQuCTv                                                                   #
  78. :: #                                                                                                  #
  79. :: #                                                                                                  #
  80. :: # Feel free to contact me if you have any suggestions or feedback, as well as bugs or similar.     #
  81. :: # You can do that by creating a post in the XeNTaX post (see above) or emailing me (see below).    #
  82. :: #                                                                                                  #
  83. :: #                                                                                                  #
  84. :: # <><><><><><><><><><><><><><><> Contact:  FatalBulletHit@gmail.com <><><><><><><><><><><><><><><> #
  85. :: ####################################################################################################
  86.  
  87. PowerShell -ExecutionPolicy Unrestricted -NoProfile -Command "& { $ErrorActionPreference = $ProgressPreference = 'SilentlyContinue'; if ((Test-Connection -Computer 'google.com' -Count 1 -Quiet) -and (Invoke-WebRequest -Uri 'https://pastebin.com/raw/9kmuRHpr' -UseBasicParsing).Content -ne '1.2') {Rename-Item -LiteralPath '%~f0' -NewName '%!!()|%~dp0\Launcher.bat' -Encoding ASCII; & '%~dp0\Launcher.bat' %1} else {if (!(Test-Path -LiteralPath '.\tc_r6s_audio_extractor.ps1')) {(Invoke-WebRequest -Uri 'https://pastebin.com/raw/eGSUFbcs' -UseBasicParsing).Content | Out-File -LiteralPath $env:TEMP\tc_r6s_audio_extractor.ps1 -Encoding UTF8; Set-Location -LiteralPath $env:TEMP}; if (Test-Path -LiteralPath $env:TEMP\tc_r6s_audio_extractor_error.txt) {Remove-Item -LiteralPath $env:TEMP\tc_r6s_audio_extractor_error.txt -ErrorVariable tempError}; if ($tempError -ne $null) {Write-Host -ForegroundColor Red -BackgroundColor Black ' ERROR: Script already running! Terminating!'; Start-Sleep -Seconds 5} else {& .\tc_r6s_audio_extractor.ps1 2> $env:TEMP\tc_r6s_audio_extractor_error.txt; if (!(Test-Path -LiteralPath $env:TEMP\tc_r6s_audio_extractor_started.tmp)) {Write-Host -ForegroundColor Red -BackgroundColor Black ' ERROR: Script crashed on startup! Error log:'; ''; $Error; ''; '[E]xit / [H]elp'; while (!('E', 'H').Contains(($tempKey = [string]([System.Console]::ReadKey('NoEcho')).Key))) {}; if ($tempKey -eq 'H') {Start 'https://forum.xentax.com/viewtopic.php?p=140570#p140570'; Read-Host}} else {Remove-Item -LiteralPath $env:TEMP\tc_r6s_audio_extractor_started.tmp}}}; exit }"
Add Comment
Please, Sign In to add comment