Created
October 5, 2022 21:57
-
-
Save lkd70/46da1547a9aa4e1706a2f9285c00bec4 to your computer and use it in GitHub Desktop.
Installer script for the Epic Games version of ARK using existing Steam files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add-Type -AssemblyName PresentationFramework | |
| Function Get-Folder($initialDirectory="C:\") | |
| { | |
| [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms")|Out-Null | |
| $foldername = New-Object System.Windows.Forms.FolderBrowserDialog | |
| $foldername.Description = "Select a folder" | |
| $foldername.rootfolder = "MyComputer" | |
| $foldername.SelectedPath = $initialDirectory | |
| if($foldername.ShowDialog() -eq "OK") | |
| { | |
| $folder += $foldername.SelectedPath | |
| } | |
| return $folder | |
| } | |
| Function MsgBox($message) { | |
| [System.Windows.MessageBox]::Show($message) | |
| } | |
| Write-Host Welcome to LKD70s Easy Epic Installer - This little script should help you install Epic ark using your steam Ark files for both! | |
| Write-Host If you have not done so already then please watch the youtube tutorial for this script: https://youtu.be/D_qRHQBH1z4 | |
| MsgBox("Yo, to get started please select the STEAM folder. This is usually C:\Program Files (x86)\Steam\steamapps\common\ARK") | |
| $steam = Get-Folder("C:\Program Files (x86)\Steam\steamapps\common\") | |
| $steam_parts = $steam.Split("\") | |
| if($steam_parts[-1] -ne "ARK") | |
| { | |
| MsgBox("That isn't an `ARK` folder. Please try again.") | |
| $steam = Get-Folder("C:\Program Files (x86)\Steam\steamapps\common\") | |
| } | |
| MsgBox("Nice, now let's do the same for the Epic Games directory. This is usually `C:\Program Files\Epic Games\``") | |
| $epic = Get-Folder("C:\Program Files\Epic Games") | |
| $epic_parts = $epic.Split("\") | |
| Write-Host $epic_parts[-1] | |
| if($epic_parts[-1] -ne "Epic Games") | |
| { | |
| MsgBox("That isn't an `Epic Games` folder. Please try again.") | |
| $steam = Get-Folder("C:\Program Files\Epic Games") | |
| } | |
| MsgBox("Nice, now start Epic Games and start downloading ARK (If you've already installed, uninstall first, then start again). Let it download to 2% and THEN click 'OK'") | |
| taskkill /f /t /im EpicGamesLauncher.exe | |
| MsgBox("Epic games should now have closed, if not, go to Task Manager and close it yourself and then click 'OK'") | |
| $Epic_Ark_Path = $epic + "\ArkSurvivalEvolved\" | |
| $egs = $Epic_Ark_Path + "\.egstore" | |
| Copy-Item -Path $egs -Destination $epic -Recurse | |
| Remove-Item $Epic_Ark_Path | |
| New-Item -ItemType Junction -Path $Epic_Ark_Path -Target $steam | |
| $tmpepic = $epic + "\.egstore" | |
| Copy-Item -Path $tmpepic -Destination $Epic_Ark_Path -Recurse | |
| Remove-Item $tmpepic | |
| MsgBox("All done! Start Epic games, let it verify and you're good to go. Be sure to disable auto updates in Epic!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment