110 lines
3.3 KiB
Plaintext
110 lines
3.3 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.2145
|
|
+ cd /c/git/bt411/content
|
|
+ taskkill //F //IM btl4.exe
|
|
+ sleep 2
|
|
+ rm -f sg5_a.log sg5_b.log 'sg5B_*.png'
|
|
+ bt_novice_egg MP.EGG SG5.EGG
|
|
+ sed 's/^experience=.*/experience=novice/' MP.EGG
|
|
+ echo '[bench] NOTE: novice egg SG5.EGG -- crits/heat/jams are GATED OFF (harness requirement)'
|
|
[bench] NOTE: novice egg SG5.EGG -- crits/heat/jams are GATED OFF (harness requirement)
|
|
+ sed -i 's/^map=.*/map=grass/; s/^time=.*/time=day/; s/^vehicle=.*/vehicle=madcat/' SG5.EGG
|
|
+ export BT_AUTODRIVE=0.5 BT_SELF_DAMAGE=4 BT_SELF_DAMAGE_ZONE=dz_ldleg
|
|
+ BT_AUTODRIVE=0.5
|
|
+ BT_SELF_DAMAGE=4
|
|
+ BT_SELF_DAMAGE_ZONE=dz_ldleg
|
|
+ export BT_DMG_LOG=1 BT_DEATH_LOG=1 BT_MP_LOG=1 BT_MATCHLOG=1
|
|
+ BT_DMG_LOG=1
|
|
+ BT_DEATH_LOG=1
|
|
+ BT_MP_LOG=1
|
|
+ BT_MATCHLOG=1
|
|
+ bt_launch sg5_a.log SG5.EGG 0x0C -net 1601
|
|
+ local log=sg5_a.log egg=SG5.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=sg5_a.log BT_AFFINITY=0x0C
|
|
+ BT_LOG=sg5_a.log
|
|
+ BT_AFFINITY=0x0C
|
|
+ for _i in 1 2 3 4 5
|
|
+ '[' -f /proc/2153/winpid ']'
|
|
+ /c/git/bt411/build/Release/btl4.exe -egg SG5.EGG -net 1601
|
|
+ cat /proc/2153/winpid
|
|
+ break
|
|
+ sleep 2
|
|
+ export BT_REPL_LOG=1 BT_JIT=1 BT_SHOT_EVERY=90 BT_SHOT_PREFIX=sg5B
|
|
+ BT_REPL_LOG=1
|
|
+ BT_JIT=1
|
|
+ BT_SHOT_EVERY=90
|
|
+ BT_SHOT_PREFIX=sg5B
|
|
+ export BT_DEATH_LOG=1 BT_MP_LOG=1 BT_MATCHLOG=1
|
|
+ BT_DEATH_LOG=1
|
|
+ BT_MP_LOG=1
|
|
+ BT_MATCHLOG=1
|
|
+ bt_launch sg5_b.log SG5.EGG 0x03 -net 1501
|
|
+ local log=sg5_b.log egg=SG5.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=sg5_b.log BT_AFFINITY=0x03
|
|
+ BT_LOG=sg5_b.log
|
|
+ BT_AFFINITY=0x03
|
|
+ for _i in 1 2 3 4 5
|
|
+ '[' -f /proc/2158/winpid ']'
|
|
+ /c/git/bt411/build/Release/btl4.exe -egg SG5.EGG -net 1501
|
|
+ cat /proc/2158/winpid
|
|
+ break
|
|
+ sleep 5
|
|
+ RELAY=2161
|
|
+ sleep 200
|
|
+ python ../tools/btconsole.py SG5.EGG 127.0.0.1:1501 127.0.0.1:1601
|
|
+ kill 2161
|
|
+ taskkill //F //IM btl4.exe
|
|
+ sleep 3
|
|
+ echo '=== A gimp window (master):'
|
|
=== A gimp window (master):
|
|
+ grep -a gaitSM sg5_a.log
|
|
+ grep -oaE 'state=[0-9]+'
|
|
+ sort
|
|
+ uniq -c
|
|
5 state=0
|
|
1 state=11
|
|
83 state=12
|
|
83 state=13
|
|
21 state=24
|
|
1 state=5
|
|
2 state=6
|
|
+ echo '=== B peer gimp view (replgimp gl values):'
|
|
=== B peer gimp view (replgimp gl values):
|
|
+ grep -a replgimp sg5_b.log
|
|
+ grep -oaE 'gl=[0-9]+'
|
|
+ sort
|
|
+ uniq -c
|
|
138 gl=0
|
|
21 gl=3
|
|
+ grep -a replgimp sg5_b.log
|
|
+ grep -v gl=0
|
|
+ head -6
|
|
[replgimp] ent=161 gl=3 bts=28.0231 standSpeed=5.23428 bodyState=12 sim=3 hasClips=1 zones: 3=0.4
|
|
[replgimp] ent=161 gl=3 bts=28.0231 standSpeed=5.23428 bodyState=15 sim=3 hasClips=1 zones: 3=0.4
|
|
[replgimp] ent=161 gl=3 bts=28.0231 standSpeed=5.23428 bodyState=10 sim=3 hasClips=1 zones: 3=0.4
|
|
[replgimp] ent=161 gl=3 bts=28.0231 standSpeed=5.23428 bodyState=13 sim=3 hasClips=1 zones: 3=0.4
|
|
[replgimp] ent=161 gl=3 bts=28.0231 standSpeed=5.23428 bodyState=11 sim=3 hasClips=1 zones: 3=0.4
|
|
[replgimp] ent=161 gl=3 bts=28.0231 standSpeed=5.23428 bodyState=12 sim=3 hasClips=1 zones: 3=0.6
|
|
+ echo '=== SKATE:'
|
|
=== SKATE:
|
|
+ grep -ac '\[skate\]' sg5_b.log
|
|
0
|