18 lines
986 B
Bash
Executable File
18 lines
986 B
Bash
Executable File
#!/bin/bash
|
|
# gobisect.sh <entry:label>... : spawn GO entries one by one (tmpadd) on GM Island; report the first after which the client freezes
|
|
cd "$(dirname "$0")"
|
|
(setsid nohup bash ahlaunch.sh > ahlaunch.out 2>&1 < /dev/null &)
|
|
timeout 240 bash -c 'until [ c0.png -nt ahlaunch.out ]; do sleep 5; done'
|
|
pgrep -x WowB.exe >/dev/null || { echo "no client"; exit 1; }
|
|
err0=$(ls -t /mnt/Games/OctoWoW-LOCAL-Client/_classic_beta_/Errors | head -1)
|
|
./cmds.sh x.png 'key Escape' 'chat .gm on' >/dev/null 2>&1
|
|
for e in "$@"; do
|
|
./cmds.sh x.png "chat .gobject tmpadd ${e%%:*}" >/dev/null 2>&1; sleep 20
|
|
./cmds.sh x.png 'key Shift_L' >/dev/null 2>&1
|
|
n=$(cat p-wait); new=$(ls -t /mnt/Games/OctoWoW-LOCAL-Client/_classic_beta_/Errors | head -1)
|
|
{ [ "$n" = closed ] || [ "$new" != "$err0" ]; } && { echo "FROZE after ${e} ($new)"; exit 0; }
|
|
cp t-$n.png bis-${e##*:}.png; echo "ok ${e}"
|
|
./cmds.sh x.png 'chat .go xyz 16222.1 16252.1 12.6 1' >/dev/null 2>&1; sleep 3
|
|
done
|
|
echo "all ok"
|