#!/usr/bin/env bash
cd /c/git/bt411/content || exit 1
rm -f gtrace_a.log gtrace_b.log
BT_LOG=gtrace_a.log BT_AFFINITY=0x1 BT_GYRO_LOG=1 BT_GYRO_TRACE=1 BT_START_INSIDE=1 ../build/Debug/btl4.exe -egg MP.EGG -net 1501 &
sleep 2
BT_LOG=gtrace_b.log BT_AFFINITY=0x2 BT_AUTOFIRE=1 ../build/Debug/btl4.exe -egg MP.EGG -net 1601 &
sleep 8
exec python ../tools/btconsole.py MP.EGG 127.0.0.1:1501 127.0.0.1:1601
