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>
This commit is contained in:
shenlei
2026-10-17 08:13:32 +09:00
co-authored by Claude Opus 5.5
parent 657e49e52a
commit a1e7da68a4
28 changed files with 1671 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
-- 105-119 now need up to 4.2e9 exp (game/src/constants.cpp exp_table_common), above the signed INT limit
-- of 2147483647. The db writes "exp = %u" and MySQL (sql_mode without STRICT) silently clamps, so make the
-- columns unsigned. Run against the player schema (player on live, player_sb on the sbtest cluster).
ALTER TABLE player MODIFY exp INT UNSIGNED NOT NULL DEFAULT 0;
ALTER TABLE player_deleted MODIFY exp INT UNSIGNED NOT NULL DEFAULT 0;
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
# Level cap 120 on the sbtest cluster (../sbtest/README.md): unsigned exp columns in player_sb and
# MAX_LEVEL 120 in channel5's CONFIG (CONFIG.livedb stays at 105, so rollback.sh brings back 105).
# The game binary must already carry the new exp table (constants.cpp).
# Usage (on the server): sh install_sbtest.sh <dir holding exp_unsigned.sql>
set -eu
STAGE=$(cd "$1" && pwd)
C5=/usr/metin2/server/channel5/first
grep -q '^DB_PORT: 15040' $C5/CONFIG || { echo "channel5 is not on the sbtest db" >&2; exit 1; }
mysql -uroot player_sb < $STAGE/exp_unsigned.sql
mysql -uroot -N -e "select table_name,column_type from information_schema.columns where table_schema='player_sb' and column_name='exp' and table_name like 'player%'"
sed -i '' 's/^MAX_LEVEL: .*/MAX_LEVEL: 120/' $C5/CONFIG
grep '^MAX_LEVEL' $C5/CONFIG