88 lines
3.2 KiB
Plaintext
88 lines
3.2 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.1554
|
|
+ cd /c/git/bt411/content
|
|
+ taskkill //F //IM btl4.exe
|
|
+ sleep 2
|
|
+ rm -f sk_a.log sk_b.log
|
|
+ bt_expert_egg MP.EGG SK.EGG
|
|
+ sed 's/^experience=.*/experience=expert/' MP.EGG
|
|
+ sed -i 's/^map=.*/map=grass/; s/^time=.*/time=day/; s/^vehicle=.*/vehicle=madcat/' SK.EGG
|
|
+ BT_MP_FORCE_DMG=1
|
|
+ BT_DEATH_LOG=1
|
|
+ BT_MP_LOG=1
|
|
+ BT_MATCHLOG=1
|
|
+ bt_launch sk_b.log SK.EGG 0x0C -net 1601
|
|
+ local log=sk_b.log egg=SK.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=sk_b.log BT_AFFINITY=0x0C
|
|
+ BT_LOG=sk_b.log
|
|
+ BT_AFFINITY=0x0C
|
|
+ for _i in 1 2 3 4 5
|
|
+ '[' -f /proc/1561/winpid ']'
|
|
+ /c/git/bt411/build/Release/btl4.exe -egg SK.EGG -net 1601
|
|
+ cat /proc/1561/winpid
|
|
+ break
|
|
+ sleep 2
|
|
+ BT_AUTODRIVE=0.8
|
|
+ BT_DEATH_LOG=1
|
|
+ BT_MP_LOG=1
|
|
+ BT_MATCHLOG=1
|
|
+ bt_launch sk_a.log SK.EGG 0x03 -net 1501
|
|
+ local log=sk_a.log egg=SK.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=sk_a.log BT_AFFINITY=0x03
|
|
+ BT_LOG=sk_a.log
|
|
+ BT_AFFINITY=0x03
|
|
+ for _i in 1 2 3 4 5
|
|
+ '[' -f /proc/1565/winpid ']'
|
|
+ cat /proc/1565/winpid
|
|
+ /c/git/bt411/build/Release/btl4.exe -egg SK.EGG -net 1501
|
|
+ break
|
|
+ sleep 5
|
|
+ RELAY=1568
|
|
+ sleep 260
|
|
+ python ../tools/btconsole.py SK.EGG 127.0.0.1:1501 127.0.0.1:1601
|
|
+ kill 1568
|
|
+ taskkill //F //IM btl4.exe
|
|
+ sleep 3
|
|
+ echo '=== deaths/respawns on A:'
|
|
=== deaths/respawns on A:
|
|
+ grep -cE 'death cycle START' sk_a.log
|
|
7
|
|
+ echo '=== SKATE hits on B (A'\''s replicant):'
|
|
=== SKATE hits on B (A's replicant):
|
|
+ grep -a '\[skate\]' sk_b.log
|
|
+ head -12
|
|
[skate] replicant 2:162 SKATING: 91 frames moving (0.761363 u/frame) with legCycleSpeed=0 bodyTargetSpeed=44.837 destroyed=0 mode=1 at (-369.793,-659.471)
|
|
[skate] replicant 2:162 recovered after 671 frames
|
|
[skate] replicant 2:162 SKATING: 91 frames moving (0.563178 u/frame) with legCycleSpeed=0 bodyTargetSpeed=44.837 destroyed=0 mode=1 at (493.835,-45.9634)
|
|
[skate] replicant 2:162 recovered after 205 frames
|
|
[skate] replicant 2:162 SKATING: 91 frames moving (1.22538 u/frame) with legCycleSpeed=0 bodyTargetSpeed=44.837 destroyed=0 mode=1 at (363.296,-201.536)
|
|
[skate] replicant 2:162 recovered after 193 frames
|
|
[skate] replicant 2:162 SKATING: 91 frames moving (0.974232 u/frame) with legCycleSpeed=0 bodyTargetSpeed=44.837 destroyed=0 mode=1 at (228.972,-361.618)
|
|
[skate] replicant 2:162 recovered after 138 frames
|
|
[skate] replicant 2:162 SKATING: 91 frames moving (0.371205 u/frame) with legCycleSpeed=0 bodyTargetSpeed=44.837 destroyed=0 mode=4 at (118.835,-492.875)
|
|
[skate] replicant 2:162 recovered after 161 frames
|
|
[skate] replicant 2:162 SKATING: 91 frames moving (0.463005 u/frame) with legCycleSpeed=0 bodyTargetSpeed=44.837 destroyed=0 mode=4 at (59.0707,-564.101)
|
|
[skate] replicant 2:162 recovered after 141 frames
|
|
+ echo '=== SKATE hits on A (B'\''s replicant -- should be none, B stands still):'
|
|
=== SKATE hits on A (B's replicant -- should be none, B stands still):
|
|
+ grep -ac '\[skate\]' sk_a.log
|
|
0
|