Skip to content

Instantly share code, notes, and snippets.

@Brianetta
Last active July 10, 2023 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Brianetta/1dabd2d2106e6d5c7524c0fa744f9d69 to your computer and use it in GitHub Desktop.
Save Brianetta/1dabd2d2106e6d5c7524c0fa744f9d69 to your computer and use it in GitHub Desktop.
Fix drop pods not showing up in Space Engineers
$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
}
@Brianetta
Copy link
Author

Powershell script. Download it, double-click it. Highlight the saved game folder you want to fix up, and click OK.

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