Last active
July 10, 2023 18:39
-
-
Save Brianetta/1dabd2d2106e6d5c7524c0fa744f9d69 to your computer and use it in GitHub Desktop.
Fix drop pods not showing up in Space Engineers
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
$ErrorActionPreference = "Stop" | |
try { | |
$SaveFolder = ((Get-ChildItem $ENV:APPDATA\SpaceEngineers\Saves | Where-Object -Property Name -NE 1234567891011 | Get-ChildItem -Directory | Out-GridView -PassThru -Title "Please select a save game")[0]).FullName | |
[xml]$Sandbox = Get-Content "$SaveFolder\Sandbox.sbc" -Encoding UTF8 | |
$BackupName="Sandbox_Backup_$(Get-Date -Format "yyyy-MM-dd_hh-mm-ss").sbc" | |
Write-Host "Fixing container in saved game: $($Sandbox.MyObjectBuilder_Checkpoint.SessionName)" | |
Write-Host "Renaming current Sandbox.sbc file to Sandbox_Backup_$(Get-Date -Format "yyyy-MM-dd_hh:mm:ss").sbc" | |
Rename-Item "$SaveFolder\Sandbox.sbc" "$SaveFolder\$BackupName" | |
$Sandbox.MyObjectBuilder_Checkpoint.SessionComponents.MyObjectBuilder_SessionComponent.PlayerData.PlayerContainerData | ForEach-Object -Process {$_.Active="true"} | |
$Sandbox.Save("$SaveFolder\Sandbox.sbc") | |
} | |
catch { | |
$_.Exception | |
Break | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Powershell script. Download it, double-click it. Highlight the saved game folder you want to fix up, and click OK.