Last active
January 18, 2025 23:44
-
-
Save TheBlackPlague/87c38c86b91244b3e71f03c743931675 to your computer and use it in GitHub Desktop.
Copy EVE Online Settings across accounts and characters.
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
$main_user = "" | |
$main_char = "" | |
$settings = "$env:LOCALAPPDATA\CCP\EVE\g_ccp_eve_tq_tranquility\settings_Default" | |
$backup_settings = "$settings\backup_settings" | |
Set-Location -Path $settings | |
Robocopy $settings $backup_settings /XC /XN /XO | |
Copy-Item -Path "core_user_$main_user.dat" -Destination "main_user.dat" -Force | |
Copy-Item -Path "core_char_$main_char.dat" -Destination "main_char.dat" -Force | |
Get-ChildItem -Filter "core_user_*.dat" | ForEach-Object { | |
$userID = $_.Name -replace 'core_user_|\.dat', '' | |
if ($userID -ne $main_user) { | |
Remove-Item "core_user_$userID.dat" | |
New-Item -ItemType HardLink -Path "$settings\core_user_$userID.dat" -Target "$settings\main_user.dat" | |
} | |
} | |
Get-ChildItem -Filter "core_char_*.dat" | ForEach-Object { | |
$charID = $_.Name -replace 'core_char_|\.dat', '' | |
if ($charID -ne $main_char) { | |
Remove-Item "core_char_$charID.dat" | |
New-Item -ItemType HardLink -Path "$settings\core_char_$charID.dat" -Target "$settings\main_char.dat" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment