#!/usr/bin/env bash
cd /c/git/bt411/content || exit 1
rm -f mp_a.log mp_b.log
BT_LOG=mp_a.log BT_AFFINITY=0x1 ../build/Debug/btl4.exe -egg MP.EGG -net 1501 &
sleep 2
BT_LOG=mp_b.log BT_AFFINITY=0x2 ../build/Debug/btl4.exe -egg MP.EGG -net 1601 &
sleep 8
# the console must STAY connected (disconnect trips the pod's console-loss
# path) -- it holds this script alive for the whole play session
exec python ../tools/btconsole.py MP.EGG 127.0.0.1:1501 127.0.0.1:1601
