Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(tools): ai-batch kills a wedged run while it waits for a slot
Olcay Seygan6db3fb8ac1c7
diff --git a/ai-batch.ps1 b/ai-batch.ps1index 8ab92a8e1..6265257d7 100644--- a/ai-batch.ps1+++ b/ai-batch.ps1@@ -140,6 +140,11 @@ for ($i = 0; $i -lt $Runs; $i++) {if ($ExtraArgs.Count) { $args += $ExtraArgs }while (@($started | Where-Object { -not $_.Proc.HasExited }).Count -ge $Parallel) {+ # a run that never reaches its match (a bad -side, a missing map) sits in the shell for good, and+ # the wait for a free slot would wait with it: the timeout applies here as well as below+ foreach ($r in $started) {+ if (-not $r.Proc.HasExited -and $r.Clock.Elapsed.TotalMinutes -gt $TimeoutMinutes) { $r.Proc.Kill() }+ }Start-Sleep -Milliseconds 200}$proc = Start-Process -FilePath $exePath -ArgumentList $args -WorkingDirectory $RunDir -PassThru