Files
metin2-client/tools/server/sbtest/rollback.sh
shenleiandClaude Opus 5.5 a1e7da68a4 Level 120 (L1-L5): AVA2 maps, drops, dungeons, dungeon timer UI
- tools/server/level-120: sbtest install of the 120 exp table and the
  unsigned exp column.
- tools/server/ava2-maps: the 10 AVA2 maps (pack, map data, regen, designed
  drops) for sbtest; Ava2MapsScript.inc, gr2 texture and mob_proto tests.
- tools/server/ava2-dungeons: snow / ship defence / Meley quests ported from
  AVA2 (make_quests.py + install.sh).
- mt_dungeon_timer (DungeonTimerScript.inc): AVA2 dungeon timer in place of
  the minimap (RefreshDungeonTimer) and the hydra mast HP bar (gethydrahp).
- Autohunt skips a target that is hit but takes no damage for 4 s (blocked
  Meley statues) and keeps it skipped for 60 s; FindCloseTarget now honours
  the skip list.

Meley full run passed on sbtest with the Mac client. Not deployed live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 08:13:32 +09:00

27 lines
1.2 KiB
Bash

#!/bin/sh
# Stops the sbtest cluster and puts channel5 back on the live db with the binary it had before setup.sh
# (README.md). The *_sb schemas and /usr/metin2/server/sbtest stay; setup.sh rebuilds them.
set -eu
R=/usr/metin2/server
T=$R/sbtest
C5=$R/channel5/first
[ -f $C5/CONFIG.livedb ] || { echo "no $C5/CONFIG.livedb; channel5 was never moved" >&2; exit 1; }
for d in $C5 $T/auth $T/db; do
[ -f $d/pid ] || continue
p=$(cat $d/pid)
kill -0 "$p" 2>/dev/null || continue
kill -1 "$p"
i=0; while kill -0 "$p" 2>/dev/null && [ $i -lt 40 ]; do sleep 1; i=$((i+1)); done
echo "$d stopped after ${i}s"
done
cp $C5/CONFIG.livedb $C5/CONFIG
[ -e $C5/game.livedb ] && { rm -f $C5/game; mv $C5/game.livedb $C5/game; }
# ../ava2-maps/sbtest_locale.sh points channel5 at the sbtest locale + data; the live db lacks their mobs
[ "$(readlink $C5/locale)" = ../../share/locale ] || { rm -f $C5/locale; ln -s ../../share/locale $C5/locale; }
[ "$(readlink $C5/data)" = ../../share/data ] || { rm -f $C5/data; ln -s ../../share/data $C5/data; }
daemon -f sh -c "cd $C5 && exec ./game > stdout 2>&1"; sleep 12
grep -E '^DB_PORT' $C5/CONFIG; ls -l $C5/game
sockstat -l | grep -E ':(13040) '