Advertisement
t3h_m00kz

HALO MCC - LAUNCHER

Jan 9th, 2025
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ##########################
  2. # STEAM MCC FORCE CONFIG #
  3. ##########################
  4. # We want to disable non-user-facing settings in the config file before launching the game
  5. # Init file is located %LOCALAPPDATA%low\mcc\saved\Config\WindowsNoEditor\GameUserSettings.ini
  6.  
  7. Clear-Host
  8.  
  9. Write-Host Pushing to User Profile directory...
  10. Push-Location $($env:USERPROFILE)
  11. Write-Host Running from $($env:USERPROFILE).
  12. Write-Host Pushing to User Profile directory - COMPLETE
  13.  
  14. Write-Host Variables - Setting...
  15. [string]$ConfigDir   =("AppData\LocalLow\mcc\saved\Config\WindowsNoEditor\GameUserSettings.ini")
  16. Write-Host Variables - Printing...
  17. Write-Host ConfigDir:   $ConfigDir
  18. Write-Host Variables - COMPLETE
  19.  
  20. Write-Host Config File - Graphics Quality settings...
  21. (Get-Content $ConfigDir) -replace 'TextureResolution=.',        'TextureResolution=1'        | Set-Content $ConfigDir   #Texture Resolution
  22. (Get-Content $ConfigDir) -replace 'TextureFilteringQuality=.',  'TextureFilteringQuality=0'  | Set-Content $ConfigDir   #Texture Filtering
  23. (Get-Content $ConfigDir) -replace 'LightingQuality=.',          'LightingQuality=0'          | Set-Content $ConfigDir   #Lighting
  24. (Get-Content $ConfigDir) -replace 'EffectsQuality=.',           'EffectsQuality=0'           | Set-Content $ConfigDir   #Effects
  25. (Get-Content $ConfigDir) -replace 'ShadowQuality=.',            'ShadowQuality=0'            | Set-Content $ConfigDir   #Shadows
  26. (Get-Content $ConfigDir) -replace 'DetailsQuality=.',           'DetailsQuality=3'           | Set-Content $ConfigDir   #Details
  27. (Get-Content $ConfigDir) -replace 'PostProcessingQuality=.',    'PostProcessingQuality=0'    | Set-Content $ConfigDir   #Post Processing
  28. (Get-Content $ConfigDir) -replace 'WaterQuality=.',             'WaterQuality=0'             | Set-Content $ConfigDir   #Water
  29. Write-Host Config File - Booleans Toggles...
  30. (Get-Content $ConfigDir) -replace 'DisableDynamicLightingShadows=True',     'DisableDynamicLightingShadows=False'    | Set-Content $ConfigDir   #Dynamic Light Shadows
  31. (Get-Content $ConfigDir) -replace 'DisableFirstPersonShadow=True',          'DisableFirstPersonShadow=False'         | Set-Content $ConfigDir   #First Person Shadows
  32. (Get-Content $ConfigDir) -replace 'DisableCheapParticles=True',             'DisableCheapParticles=False'            | Set-Content $ConfigDir   #Cheap Particles
  33. (Get-Content $ConfigDir) -replace 'DisablePatchyFog=True',                  'DisablePatchyFog=False'                 | Set-Content $ConfigDir   #Patchy Fog
  34. (Get-Content $ConfigDir) -replace 'AntiAliasing=True',                      'AntiAliasing=False'                     | Set-Content $ConfigDir   #Anti Aliasing
  35. (Get-Content $ConfigDir) -replace 'MotionBlur=True',                        'MotionBlur=False'                       | Set-Content $ConfigDir   #Motion Blur
  36. (Get-Content $ConfigDir) -replace 'Blood=False',                            'Blood=True'                             | Set-Content $ConfigDir   #Blood
  37. (Get-Content $ConfigDir) -replace 'PushToTalkEnabled=True',                 'PushToTalkEnabled=False'                | Set-Content $ConfigDir   #Push to Talk
  38. (Get-Content $ConfigDir) -replace 'bUseVSync=True',                         'bUseVSync=False'                        | Set-Content $ConfigDir   #VSync
  39. (Get-Content $ConfigDir) -replace 'bUseDynamicResolution=True',             'bUseDynamicResolution=False'            | Set-Content $ConfigDir   #Dynamic Resolution
  40. (Get-Content $ConfigDir) -replace 'bUseHDRDisplayOutput=True',              'bUseHDRDisplayOutput=False'             | Set-Content $ConfigDir   #HDR
  41. (Get-Content $ConfigDir) -replace 'InputBasedMatchmakingEnabled=True',      'InputBasedMatchmakingEnabled=False'     | Set-Content $ConfigDir   #Input Based Matchmaking
  42. (Get-Content $ConfigDir) -replace 'PlatformBasedMatchmakingEnabled=True',   'PlatformBasedMatchmakingEnabled=False'  | Set-Content $ConfigDir   #Platform Based Matchmaking
  43. Write-Host Config File - Mouse settings...
  44. if (!(Select-String -Path $ConfigDir -Pattern "/Script/Engine.InputSettings" -Quiet)) {
  45.    Write-Host Config File - Mouse Settings - Field does not exist. Adding...
  46.    Add-Content -Path $ConfigDir -Value "`n[/Script/Engine.InputSettings]`nbEnableMouseSmoothing=False`nbViewAccelerationEnabled=False"
  47. } else {
  48.    Write-Host Config File - Mouse Settings - Field exists. Tweaking...
  49.    (Get-Content $ConfigDir) -replace 'bEnableMouseSmoothing=True',      'bEnableMouseSmoothing=False'    | Set-Content $ConfigDir   #Smoothing
  50.    (Get-Content $ConfigDir) -replace 'bViewAccelerationEnabled=True',   'bViewAccelerationEnabled=False' | Set-Content $ConfigDir   #Acceleration
  51. }
  52. Write-Host Config File - COMPLETE
  53.  
  54. Write-Host Launching MCC - In progress...
  55. & '.\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Steam\Halo The Master Chief Collection.url'
  56. Write-Host Launching MCC - COMPLETE
  57.  
  58. Write-Host `nSETUP COMPLETED. Window will close in 5 seconds.
  59. Start-Sleep -Seconds 4
  60. write-Host Exiting.
  61. Start-Sleep -Seconds 1
  62.  
  63. exit
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement