Skip to content

Instantly share code, notes, and snippets.

@oorzkws
Created July 26, 2020 09:48
Show Gist options
  • Save oorzkws/d0f524cb25c12b39be8f93150480e11c to your computer and use it in GitHub Desktop.
Save oorzkws/d0f524cb25c12b39be8f93150480e11c to your computer and use it in GitHub Desktop.
$BASE = "$env:APPDATA\Factorio\"
$MODS = "mods.dev"
$DIRS = @(
".\omnilib",
".\omnimatter",
".\omnimatter_compression",
".\omnimatter_crystal",
".\omnimatter_permutation",
".\omnimatter_water",
".\omnimatter_wood"
)
$DIRS | %{
Copy-Item -Path $_ -Destination $BASE\$MODS -Recurse -Force
}
$PROG = (Get-Content $BASE\factorio-current.log -TotalCount 3)[2]
$PROG = ($PROG -split "`"")[1]
Start-Process -FilePath $PROG -ArgumentList "--mod-directory `"$BASE$MODS`" --load-game `"$BASE`saves\Test-2.zip" -WorkingDirectory (Split-Path $PROG -Parent) -Wait -NoNewWindow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment