mirror of
https://github.com/SK8-ENGINE/skate-3-rust-engine.git
synced 2026-10-26 19:47:44 +00:00
Fix remote player irradiance and retail renderer updates.
Apply probe SH to online customiser characters after remote bind, restore received sun shadows, and ship Skyline driving, fullscreen, and renderer improvements on the branch. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
4a58b0b676
commit
e2b85b6489
62 files changed
+5385
-4876
No files matched your search
+31
-2
@@ -1,4 +1,4 @@
|
||||
param([string]$Map)
|
||||
param([string]$Map, [switch]$Trace, [string]$TraceFile)
|
||||
$ProjectRoot = Split-Path $PSScriptRoot -Parent
|
||||
$ErrorActionPreference = 'Stop'
|
||||
Push-Location $ProjectRoot
|
||||
@@ -38,16 +38,45 @@ Re-point assets to a valid installation, for example:
|
||||
"@
|
||||
}
|
||||
$argumentList = '--assets "' + $assetsPath + '"'
|
||||
if (-not $Map -and $env:SKATE_TRACE_MAP) { $Map = $env:SKATE_TRACE_MAP }
|
||||
if (-not $TraceFile -and $env:SKATE_TRACE_FILE) { $TraceFile = $env:SKATE_TRACE_FILE }
|
||||
if (-not $Map -and $Trace) {
|
||||
$installRoot = Split-Path (Resolve-Path -LiteralPath $assetsPath).Path -Parent
|
||||
foreach ($candidate in @(
|
||||
(Join-Path $installRoot 'maps\DownTown.skate'),
|
||||
(Join-Path $assetsPath 'private\native-backdrops\DownTown.skate')
|
||||
)) {
|
||||
if (Test-Path -LiteralPath $candidate) { $Map = $candidate; break }
|
||||
}
|
||||
}
|
||||
if ($Map) {
|
||||
$mapPath = (Resolve-Path -LiteralPath $Map).Path
|
||||
if ([System.IO.Path]::GetExtension($mapPath) -ine '.skate') { throw 'Select a .skate map file.' }
|
||||
if ([System.IO.Path]::GetExtension($mapPath) -ine '.skate') { throw "Not a .skate map file: $mapPath" }
|
||||
$argumentList += ' --map "' + $mapPath + '"'
|
||||
Write-Host "Map: $mapPath"
|
||||
}
|
||||
if ($Trace) {
|
||||
$tracePath = if ($TraceFile) {
|
||||
if ([System.IO.Path]::IsPathRooted($TraceFile)) { $TraceFile } else { Join-Path $ProjectRoot $TraceFile }
|
||||
} else {
|
||||
Join-Path $ProjectRoot 'trace-downtown-lag.json'
|
||||
}
|
||||
if (Test-Path -LiteralPath $tracePath) { Remove-Item -LiteralPath $tracePath -Force }
|
||||
$argumentList += ' --trace "' + $tracePath + '" --trace-wait --trace-gpu'
|
||||
Write-Host "Trace: $tracePath"
|
||||
Write-Host 'F9 = start recording at lag spot, F10 = stop and export (open in https://ui.perfetto.dev)'
|
||||
}
|
||||
# Dev packages live in repo mods/; the exe otherwise only looks beside bin/.
|
||||
$env:SKATE3_MODS = Join-Path $ProjectRoot 'mods'
|
||||
New-Item -ItemType Directory -Path $env:SKATE3_MODS -Force | Out-Null
|
||||
Write-Host "Mods: $env:SKATE3_MODS"
|
||||
if ($Trace) {
|
||||
# Use cmd start so the game gets a real window; PS Start-Process argument quoting is flaky.
|
||||
$cmd = 'start "Skate3 Rust" /D "' + $ProjectRoot + '" "' + $executable + '" ' + $argumentList
|
||||
Start-Process -FilePath 'cmd.exe' -ArgumentList '/c', $cmd -WorkingDirectory $ProjectRoot
|
||||
Write-Host 'Game launched in its own window. Close it when you are done.'
|
||||
return
|
||||
}
|
||||
$game = Start-Process -FilePath $executable -WorkingDirectory $ProjectRoot `
|
||||
-ArgumentList $argumentList -NoNewWindow -Wait -PassThru `
|
||||
-RedirectStandardOutput $log -RedirectStandardError $errorLog
|
||||
|
||||
Reference in new issue
Block a user