diff --git a/messung/farm/pokerbench-duplikat.ps1 b/messung/farm/pokerbench-duplikat.ps1 index dfc06fd1..c457a855 100644 --- a/messung/farm/pokerbench-duplikat.ps1 +++ b/messung/farm/pokerbench-duplikat.ps1 @@ -10,9 +10,13 @@ # - Gleiche Saat je Tisch fuer alle Laeufe: jede Fassung tritt auf denselben Blaettern an. # Ausgabe D:\Projects\pf-batterie\messung\farm\duplikat\\: m-s.jsonl, ZWISCHENSTAND.txt (alle 10 min, angehaengt), ERGEBNIS.txt. # Abbruch je Aufstellung, sobald das 95-%-Intervall von X - Y die 0 ausschliesst oder die Halbbreite <= Ziel ist. +# -XBlueprint/-YBlueprint '|<--blueprint .. --buckets .. --sizing ..>': diese Seite bekommt ihren Blueprint-Dienst vorgestartet (eigene Tafel, +# z. B. Rake-Tafel); der Motor verbindet sich dann mit ihm statt einen eigenen zu starten. -OhneSuche: beide Seiten ohne SHARINGAN-Suche +# (MOTOR_SUCHE_* aus der B-Zeile entfernt): Tafel gegen Tafel. # Laeuft nur ohne laeufer.pid; prueft die Sperre vor jedem Tischstart selbst (der Farm-Waechter haelt im Spiel alles an). param([Parameter(Mandatory)][string]$Name, [Parameter(Mandatory)][string]$X, [Parameter(Mandatory)][string]$Y, [string]$XExe = '', [string]$YExe = '', - [int]$Blaetter = 2000, [int]$Tische = 32, [string]$Muster = '3,1,5', [int]$Saat = 2026120400, [double]$Ziel = 10) + [int]$Blaetter = 2000, [int]$Tische = 32, [string]$Muster = '3,1,5', [int]$Saat = 2026120400, [double]$Ziel = 10, + [string]$XBlueprint = '', [string]$YBlueprint = '', [switch]$OhneSuche) $f = 'D:\Projects\pf-batterie\messung\farm'; $o = "$f\duplikat\$Name"; New-Item -ItemType Directory -Force $o | Out-Null; $log = "$o\kette.log" Set-Content "$o\STARTER.pid" $PID function Log($t) { Add-Content -Path $log -Value ((Get-Date -Format 'HH:mm:ss') + ' ' + $t) -Encoding UTF8 } @@ -31,6 +35,7 @@ function Seite([string]$datei, [string]$exe, [int]$port0, [string]$seite) { if (-not $b -or -not $e) { throw "Schalterdatei ohne AB_SPOT_B/AB_SPOT_EXE: $datei" } if ($exe) { $e = $exe } $kv = [ordered]@{}; foreach ($p in $b.Split(';')) { if ($p -match '^([^=]+)=(.*)$') { $kv[$Matches[1]] = $Matches[2] } } + if ($OhneSuche) { foreach ($k in @($kv.Keys)) { if ($k -like 'MOTOR_SUCHE_*') { $kv.Remove($k) } } } $kv['MOTOR_SHARINGAN_ADRESSE'] = "127.0.0.1:$port0"; $kv['MOTOR_SUCHE_ADRESSE'] = "127.0.0.1:$($port0 + 2)" $kv['MOTOR_SHARINGAN_PROTOKOLL'] = "$o\seite-$seite.suche" $kv['MOTOR_SHARINGAN_WARTEN'] = '900'; $kv['MOTOR_FLACH'] = '1'; $kv['HYBRID_LEERLAUF_S'] = '7200'; $kv['RAYON_NUM_THREADS'] = '1' @@ -42,6 +47,15 @@ $D = 'D:/Projects/pokerfreak-daten/grundstrategie-flach' $motorArgs = "dienst sechs100 $D 2000-600-400 200 $D/sechs100-v2.bin genau hu=$D/hu100-v1.bin,$D/hu200-v2.bin" $sx = Seite $X $XExe 47181 'X'; $sy = Seite $Y $YExe 47191 'Y' $xs = "cmd:$($sx[0]) $motorArgs|$($sx[1])"; $ys = "cmd:$($sy[0]) $motorArgs|$($sy[1])" +# vorgestartete Blueprint-Dienste (eigene Tafel je Seite) +$vorDienste = @() +foreach ($vd in @(@($XBlueprint, 47181), @($YBlueprint, 47191))) { + if (-not $vd[0]) { continue } + $teile = $vd[0].Split('|', 2); $env:HYBRID_UEBERSETZUNG = 'phm'; $env:HYBRID_LEERLAUF_S = '7200' + $vorDienste += Start-Process $teile[0] -ArgumentList (($teile[1] -split ' ') + @('--port', "$($vd[1])")) -PassThru -WindowStyle Hidden + for ($i = 0; $i -lt 120; $i++) { if (Test-NetConnection 127.0.0.1 -Port $vd[1] -InformationLevel Quiet -WarningAction SilentlyContinue) { break }; Start-Sleep 5 } + Log "Blueprint-Dienst vorgestartet auf $($vd[1]): $($vd[0])" +} Log "Start ${Name}: X = $X (Schalter $($sx[2].Substring(0,16)), Exe $($sx[3].Substring(0,16))), Y = $Y (Schalter $($sy[2].Substring(0,16)), Exe $($sy[3].Substring(0,16)))" Log "X: $xs"; Log "Y: $ys" $nur = @($Muster -split ',' | % { [int]$_ }); $anteil = @{ 1 = 0.5; 3 = 0.25; 5 = 0.25 }