23 lines
857 B
Bash
23 lines
857 B
Bash
#!/usr/bin/env bash
|
|
# retry gatesolo arms until each succeeds once (max 6 tries each), box-wedge tolerant
|
|
. /c/git/bt411/scratchpad/night6/bench_common.sh
|
|
cd /c/git/bt411/content || exit 1
|
|
try () { # $1 tag $2 sweep
|
|
for n in 1 2 3 4 5 6; do
|
|
taskkill //F //IM btl4.exe >/dev/null 2>&1; sleep 5
|
|
rm -f gr_${1}.log
|
|
bt_expert_egg MP.EGG GR.EGG
|
|
sed -i "s/^map=.*/map=grass/; s/^time=.*/time=day/; s/^vehicle=.*/vehicle=madcat/" GR.EGG
|
|
( export BT_GLASS_PANELS=1 BT_PLATFORM=glass BT_GLASS_SWEEP=${2}
|
|
export BT_AUTODRIVE=0.6 BT_KEY_NOFOCUS=1
|
|
bt_launch gr_${1}.log GR.EGG 0x03 )
|
|
sleep 140
|
|
bt_kill_ours; sleep 2; taskkill //F //IM btl4.exe >/dev/null 2>&1
|
|
if [ "$(grep -ac glassperf gr_${1}.log)" -gt 5 ]; then echo "$1 OK on try $n"; return; fi
|
|
echo "$1 wedged (try $n)"
|
|
done
|
|
}
|
|
try gated 0
|
|
try legacy 1
|
|
echo DONE
|