Files
BT411/scratchpad/night11/zonewalk_loki.sh
T

38 lines
1.5 KiB
Bash

#!/usr/bin/env bash
# #92 check: is the Loki foot un-hittable report (night 7, build 659) already
# cured by the #124 triangle-pick work? The zone-walk matrix vs a LOKI target:
# shooter servo-aims every zone (feet included) through the real reticle path,
# 3 laser pulses each; read A's [walk] FIRE lines vs B's [dmghit] zone= lines.
# Same rig as scratchpad/night10/zonewalk.sh, target vehicle=loki, ~7 min tail.
set -x
. /c/git/bt411/scratchpad/night6/bench_common.sh
cd /c/git/bt411/content || exit 1
bt_assert_player_env
taskkill //F //IM btl4.exe > /dev/null 2>&1
sleep 2
rm -f zwl_a.log zwl_b.log
bt_expert_egg MP.EGG ZWL.EGG
sed -i "s/^map=.*/map=grass/; s/^time=.*/time=day/" ZWL.EGG
# pilot 1 (node A, shooter) = madcat (proven servo constraints);
# pilot 2 (node B, target) = LOKI (the #92 chassis)
python - << 'EOF'
lines = open('ZWL.EGG').read().splitlines(True)
n = 0
for i, l in enumerate(lines):
if l.startswith('vehicle='):
n += 1
lines[i] = 'vehicle=madcat\n' if n == 1 else 'vehicle=loki\n'
open('ZWL.EGG', 'w').writelines(lines)
print('vehicles set:', n)
EOF
BT_SPIN_SELF=15 BT_DMG_LOG=1 BT_DEATH_LOG=1 BT_MP_LOG=1 \
bt_launch zwl_b.log ZWL.EGG 0x0C -net 1601
sleep 2
BT_ZONE_WALK=6 BT_PICK_LOG=1 BT_GOTO=enemy BT_GOTO_STOP=90 BT_KEY_NOFOCUS=1 \
BT_DMG_LOG=1 BT_RANGE_LOG=1 BT_MP_LOG=1 \
bt_launch zwl_a.log ZWL.EGG 0x03 -net 1501
sleep 5
python ../tools/btconsole.py ZWL.EGG 127.0.0.1:1501 127.0.0.1:1601 > zwl_relay.log 2>&1 &
sleep 420 # ~7 min: enough for a full zone walk incl. both feet