Skip to content

Instantly share code, notes, and snippets.

@sidewinder94
Created February 18, 2020 20:51
Show Gist options
  • Save sidewinder94/0b72fb75a881a1849e0268d1be472f8e to your computer and use it in GitHub Desktop.
Save sidewinder94/0b72fb75a881a1849e0268d1be472f8e to your computer and use it in GitHub Desktop.
Honkai Impact 3rd Locale Auto-Change
#Requires -RunAsAdministrator
#Create shortcut with target : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -File "K:\miHoYo\Honkai Impact 3rd\HonkaiLauncher.ps1"
$currentDir = (Split-Path $script:MyInvocation.MyCommand.Path)
$originalCulture = Get-Culture
Set-Culture 'en-GB'
& "$currentDir\falcon_glb.exe"
Start-Sleep -Seconds 3
Wait-Process -InputObject (Get-Process falcon_glb)
Set-Culture $originalCulture
@sidewinder94
Copy link
Author

sidewinder94 commented Feb 18, 2020

Create a PowerShell script in the game's install folder containing this gist's content.

Create a shortcut having as target :

powershell.exe -File "<Game install path>\<powershell script name>"

Don't forget to go into the Shortcut settings to always launch as admin, I had mixed results changing the locale when launching the script as non-admin

@sidewinder94
Copy link
Author

Removed the -WindowsStyle Hidden from the shortcut target because of inconsistent behaviour, on my shortcut, it works nicely, on a new one it doesn't.

I can't explain nor correct it, sot it went away, you can try it out if the command window really bothers you.

@sidewinder94
Copy link
Author

And, as asked on Reddit, here is a video detailing the necessary steps to use the script, in case the textual description of my first comment was not enough: https://youtu.be/BV4xAr37qos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment