43 lines
2.0 KiB
Bash
43 lines
2.0 KiB
Bash
#!/usr/bin/env bash
|
|
# =========================================================================
|
|
# ISSUE #125 -- peers' first destroyed-zone graphic (2-node, thor)
|
|
# A (master, thor) self-destroys dz_rarm with ONE 120-pt hit at t=25.
|
|
# B observes. PASS receipts on B (the peer):
|
|
# [zone-repl] zone 10 'dz_rarm' ... gstate 0->1 (arm Destroyed arrives)
|
|
# [zone-repl] zone 17 'dz_rgun' ... gstate 0->2 (pod GONE arrives -- the
|
|
# pre-fix master STOMPED this to 1 before the record shipped)
|
|
# [BTrender] seg 'jointrgun' slot 6 -> gstate 2 (peer hides the pod)
|
|
# [BTrender] RemakeEntity: ... entity=<A's mech> (the peer-side remake
|
|
# fired on the FIRST beat -- the pre-fix peer had no trigger at all
|
|
# when descriptors misfired, and could never see gstate 2)
|
|
# usage: mp_zone125.sh <tag>
|
|
# =========================================================================
|
|
set -x
|
|
cd /c/git/bt411/content || exit 1
|
|
taskkill //F //IM btl4.exe > /dev/null 2>&1
|
|
sleep 2
|
|
TAG=${1:-fix}
|
|
rm -f z125_a_${TAG}.log z125_b_${TAG}.log
|
|
sed 's/^experience=.*/experience=expert/' MP.EGG > Z125.EGG
|
|
sed -i "s/^map=.*/map=grass/; s/^time=.*/time=day/; 0,/^vehicle=.*/s//vehicle=thor/" Z125.EGG
|
|
|
|
BT_PLATFORM=glass BT_START_INSIDE=1 BT_DEV_GAUGES=1 \
|
|
BT_LOG=z125_b_${TAG}.log BT_AFFINITY=0x0C BT_MP_LOG=1 BT_DEATH_LOG=1 \
|
|
../build/Release/btl4.exe -egg Z125.EGG -net 1601 &
|
|
sleep 2
|
|
BT_PLATFORM=glass BT_START_INSIDE=1 BT_DEV_GAUGES=1 \
|
|
BT_LOG=z125_a_${TAG}.log BT_AFFINITY=0x03 BT_MP_LOG=1 BT_DEATH_LOG=1 BT_DMG_LOG=1 \
|
|
BT_SELF_DAMAGE=120 BT_SELF_DAMAGE_ZONE=dz_rarm BT_SELF_DAMAGE_DELAY=25 BT_SELF_DAMAGE_TICKS=1 \
|
|
../build/Release/btl4.exe -egg Z125.EGG -net 1501 &
|
|
sleep 4
|
|
python ../tools/btconsole.py Z125.EGG 127.0.0.1:1501 127.0.0.1:1601 &
|
|
PC=$!
|
|
|
|
sleep 75
|
|
kill $PC 2>/dev/null
|
|
taskkill //F //IM btl4.exe > /dev/null 2>&1
|
|
echo "=== A (master) ==="
|
|
grep -a "dmghit\|cascade\|RemakeEntity\|seg 'jointr" z125_a_${TAG}.log | head -12
|
|
echo "=== B (peer) ==="
|
|
grep -a "zone-repl\|RemakeEntity\|seg 'jointr\|deathfx\] zone 1[07] level" z125_b_${TAG}.log | head -16
|