119 lines
3.8 KiB
Plaintext
119 lines
3.8 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.25
|
|
+ cd /c/git/bt411/content
|
|
+ taskkill //F //IM btl4.exe
|
|
+ sleep 2
|
|
+ rm -f tr_a.log tr_b.log tr_relay.log
|
|
+ bt_expert_egg MP.EGG TR.EGG
|
|
+ sed 's/^experience=.*/experience=expert/' MP.EGG
|
|
+ sed -i 's/^map=.*/map=grass/; s/^time=.*/time=day/; s/^vehicle=.*/vehicle=madcat/' TR.EGG
|
|
+ export BT_AUTODRIVE=0.6
|
|
+ BT_AUTODRIVE=0.6
|
|
+ export BT_DEATH_LOG=1 BT_MP_LOG=1 BT_KEY_LOG=1
|
|
+ BT_DEATH_LOG=1
|
|
+ BT_MP_LOG=1
|
|
+ BT_KEY_LOG=1
|
|
+ bt_launch tr_b.log TR.EGG 0x0C -net 1601
|
|
+ local log=tr_b.log egg=TR.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=tr_b.log BT_AFFINITY=0x0C
|
|
+ BT_LOG=tr_b.log
|
|
+ BT_AFFINITY=0x0C
|
|
+ for _i in 1 2 3 4 5
|
|
+ '[' -f /proc/33/winpid ']'
|
|
+ /c/git/bt411/build/Release/btl4.exe -egg TR.EGG -net 1601
|
|
+ cat /proc/33/winpid
|
|
+ break
|
|
+ sleep 2
|
|
+ export BT_AUTODRIVE=0.8 BT_SELF_DAMAGE=8
|
|
+ BT_AUTODRIVE=0.8
|
|
+ BT_SELF_DAMAGE=8
|
|
+ export BT_DEATH_LOG=1 BT_MP_LOG=1 BT_KEY_LOG=1
|
|
+ BT_DEATH_LOG=1
|
|
+ BT_MP_LOG=1
|
|
+ BT_KEY_LOG=1
|
|
+ bt_launch tr_a.log TR.EGG 0x03 -net 1501
|
|
+ local log=tr_a.log egg=TR.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=tr_a.log BT_AFFINITY=0x03
|
|
+ BT_LOG=tr_a.log
|
|
+ BT_AFFINITY=0x03
|
|
+ for _i in 1 2 3 4 5
|
|
+ '[' -f /proc/38/winpid ']'
|
|
+ /c/git/bt411/build/Release/btl4.exe -egg TR.EGG -net 1501
|
|
+ cat /proc/38/winpid
|
|
+ break
|
|
+ sleep 5
|
|
+ RELAY=41
|
|
+ sleep 280
|
|
+ python ../tools/btconsole.py TR.EGG 127.0.0.1:1501 127.0.0.1:1601
|
|
+ kill 41
|
|
+ sleep 3
|
|
+ bt_kill_ours
|
|
+ '[' -f /tmp/bt_bench_pids.25 ']'
|
|
+ read -r pid
|
|
+ '[' -n 17232 ']'
|
|
+ taskkill //F //PID 17232
|
|
+ read -r pid
|
|
+ '[' -n 17632 ']'
|
|
+ taskkill //F //PID 17632
|
|
+ read -r pid
|
|
+ rm -f /tmp/bt_bench_pids.25
|
|
+ sleep 2
|
|
+ taskkill //F //IM btl4.exe
|
|
+ sleep 3
|
|
+ echo '=================== #146 THROTTLE RELEASE ON RESPAWN ==================='
|
|
=================== #146 THROTTLE RELEASE ON RESPAWN ===================
|
|
+ echo '--- A: how many respawns, how many releases? (must be 1:1) ---'
|
|
--- A: how many respawns, how many releases? (must be 1:1) ---
|
|
+ echo -n ' A Mech::Reset .......... '
|
|
A Mech::Reset .......... + grep -ac Mech::Reset tr_a.log
|
|
2
|
|
+ echo -n ' A throttle released .... '
|
|
A throttle released .... + grep -ac 'desktop throttle released' tr_a.log
|
|
2
|
|
+ echo
|
|
|
|
+ echo '--- B: the VIEWPOINT GATE. Must be 0 releases despite seeing A respawn. ---'
|
|
--- B: the VIEWPOINT GATE. Must be 0 releases despite seeing A respawn. ---
|
|
+ echo -n ' B Mech::Reset (incl. replicant) .... '
|
|
B Mech::Reset (incl. replicant) .... + grep -ac Mech::Reset tr_b.log
|
|
1
|
|
+ echo -n ' B throttle released (MUST BE 0) .... '
|
|
B throttle released (MUST BE 0) .... + grep -ac 'desktop throttle released' tr_b.log
|
|
1
|
|
+ echo
|
|
|
|
+ echo '--- A: the release must sit INSIDE the reset block ---'
|
|
--- A: the release must sit INSIDE the reset block ---
|
|
+ grep -aE 'Mech::Reset|desktop throttle released' tr_a.log
|
|
+ head -8
|
|
[respawn] desktop throttle released (all-stop queued)
|
|
[respawn] Mech::Reset 2:162 healed+moved to (-436.639,0,148.713) alive=1 zones=22 subsys=32
|
|
[respawn] desktop throttle released (all-stop queued)
|
|
[respawn] Mech::Reset 2:162 healed+moved to (342.148,0,-804.299) alive=1 zones=22 subsys=32
|
|
+ echo
|
|
|
|
+ echo '--- B: same window, to show B saw the respawn and still did not release ---'
|
|
--- B: same window, to show B saw the respawn and still did not release ---
|
|
+ grep -aE 'Mech::Reset|desktop throttle released' tr_b.log
|
|
+ head -8
|
|
[respawn] desktop throttle released (all-stop queued)
|
|
[respawn] Mech::Reset 3:161 healed+moved to (-429.819,0,-763.438) alive=1 zones=22 subsys=32
|