98 lines
2.7 KiB
Plaintext
98 lines
2.7 KiB
Plaintext
+ . /c/git/bt411/scratchpad/night6/bench_common.sh
|
|
++ BT_ROOT=/c/git/bt411
|
|
++ BT_EXE=/c/git/bt411/build/Release/btl4.exe
|
|
++ BT_PIDFILE=/tmp/bt_bench_pids.1870
|
|
+ cd /c/git/bt411/content
|
|
+ taskkill //F //IM btl4.exe
|
|
+ sleep 2
|
|
+ rm -f sg_a.log sg_b.log
|
|
+ bt_novice_egg MP.EGG SG.EGG
|
|
+ sed 's/^experience=.*/experience=novice/' MP.EGG
|
|
+ echo '[bench] NOTE: novice egg SG.EGG -- crits/heat/jams are GATED OFF (harness requirement)'
|
|
[bench] NOTE: novice egg SG.EGG -- crits/heat/jams are GATED OFF (harness requirement)
|
|
+ sed -i 's/^map=.*/map=grass/; s/^time=.*/time=day/; s/^vehicle=.*/vehicle=madcat/' SG.EGG
|
|
+ BT_AUTODRIVE=0.6
|
|
+ BT_DEATH_LOG=1
|
|
+ BT_MP_LOG=1
|
|
+ BT_MATCHLOG=1
|
|
+ bt_launch sg_a.log SG.EGG 0x0C -net 1601
|
|
+ local log=sg_a.log egg=SG.EGG aff=0x0C
|
|
+ shift 3
|
|
+ bt_player_env
|
|
+ export BT_PLATFORM=glass
|
|
+ BT_PLATFORM=glass
|
|
+ export BT_START_INSIDE=1
|
|
+ BT_START_INSIDE=1
|
|
+ export BT_DEV_GAUGES=1
|
|
+ BT_DEV_GAUGES=1
|
|
+ export BT_LOG=sg_a.log BT_AFFINITY=0x0C
|
|
+ BT_LOG=sg_a.log
|
|
+ BT_AFFINITY=0x0C
|
|
+ for _i in 1 2 3 4 5
|
|
+ '[' -f /proc/1877/winpid ']'
|
|
+ /c/git/bt411/build/Release/btl4.exe -egg SG.EGG -net 1601
|
|
+ cat /proc/1877/winpid
|
|
+ break
|
|
+ sleep 2
|
|
+ BT_GOTO=enemy
|
|
+ BT_GOTO_STOP=60
|
|
+ BT_ZONE_WALK=5
|
|
+ BT_WALK_ZONES=uleg,dleg,foot
|
|
+ BT_GIMPFEED=1
|
|
+ BT_PICK_LOG=1
|
|
+ BT_KEY_NOFOCUS=1
|
|
+ BT_DEATH_LOG=1
|
|
+ BT_MP_LOG=1
|
|
+ BT_MATCHLOG=1
|
|
+ bt_launch sg_b.log SG.EGG 0x03 -net 1501
|
|
+ local log=sg_b.log egg=SG.EGG aff=0x03
|
|
+ shift 3
|
|
+ bt_player_env
|
|
+ export BT_PLATFORM=glass
|
|
+ BT_PLATFORM=glass
|
|
+ export BT_START_INSIDE=1
|
|
+ BT_START_INSIDE=1
|
|
+ export BT_DEV_GAUGES=1
|
|
+ BT_DEV_GAUGES=1
|
|
+ export BT_LOG=sg_b.log BT_AFFINITY=0x03
|
|
+ BT_LOG=sg_b.log
|
|
+ BT_AFFINITY=0x03
|
|
+ for _i in 1 2 3 4 5
|
|
+ '[' -f /proc/1881/winpid ']'
|
|
+ cat /proc/1881/winpid
|
|
+ /c/git/bt411/build/Release/btl4.exe -egg SG.EGG -net 1501
|
|
+ break
|
|
+ sleep 5
|
|
+ RELAY=1884
|
|
+ sleep 360
|
|
+ python ../tools/btconsole.py SG.EGG 127.0.0.1:1501 127.0.0.1:1601
|
|
+ kill 1884
|
|
+ taskkill //F //IM btl4.exe
|
|
+ sleep 3
|
|
+ echo '=== A leg damage (its own master view):'
|
|
=== A leg damage (its own master view):
|
|
+ grep -a dmghit sg_a.log
|
|
+ grep -coE 'zone=(2|3|7|9|10|18)'
|
|
0
|
|
+ true
|
|
+ echo '=== A gimp state changes:'
|
|
=== A gimp state changes:
|
|
+ grep -aiE gimp sg_a.log
|
|
+ grep -va gimpfeed
|
|
+ head -8
|
|
[loadclips] INTERIOR ('i') set: fScale=0.8 walkStride=18.5085 hasGimpClips=1
|
|
[loadclips] INTERIOR ('i') set: fScale=0.8 walkStride=18.5085 hasGimpClips=1
|
|
[loadclips] end: fScale=0.8 ggCapL=14.7717 ggCapR=14.7717 hasGimpClips=1
|
|
+ echo '=== B replicant gimp feed (last 6):'
|
|
=== B replicant gimp feed (last 6):
|
|
+ grep -a replgimp sg_b.log
|
|
+ tail -6
|
|
+ echo '=== SKATE hits (B watching A):'
|
|
=== SKATE hits (B watching A):
|
|
+ grep -a '\[skate\]' sg_b.log
|
|
+ head -10
|
|
+ echo '=== SKATE count A-side:'
|
|
=== SKATE count A-side:
|
|
+ grep -ac '\[skate\]' sg_a.log
|
|
0
|