Files
metin2-server/tools/material-stack/README.md
T
shenlei bb0963210e feat: support Linux/ARM cross-platform build and AVA2 feature updates
- Port server core and libraries to Linux and 32-bit ARM (armhf):
  * Replace FreeBSD kqueue with Linux epoll in libthecore fdwatch
  * Fix unaligned float and 64-bit int memory stores in utils.h str_to_number to avoid ARM VFP alignment fault (SIGBUS)
  * Fix getopt loop variable type in main.cpp (char -> int) to eliminate infinite loop caused by default unsigned char on ARM
  * Add -fsigned-char and multi-architecture flags to Makefiles (x86_64 -m32, i386, and ARM armhf)
  * Update libsql for modern MariaDB client library (removed reconnect field) and C++20 concept/syntax compatibility
  * Replace Win32 xdirent with standard POSIX dirent on Unix/Linux
  * Include xmd5 in libthecore on non-FreeBSD platforms
- AVA2 unlock features and tools:
  * Material stacking up to 2000 count, refine material resolution and test suites
  * AVA2 ticket shop and point drop configuration updates
2026-11-11 00:59:49 -08:00

17 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 材料与消耗品 2000 叠放工具
协议修订为 mt20261030,旧客户端必须升级。材料分类与正式清单由 catalogue.py 生成,所有不可合堆标记继续生效。实际数量协议为 uint16,内部及存档为32位。
- migrate.py --schema NAME 默认检查;--apply 扩展数量列并对比行数、数量总和,不支持缩窄。
- cluster.py inventory --scope test|production 按实际 DB_PORT 分组;CH5 当前使用隔离库。deploy 需要候选路径、备份目录和 QA 登录白名单(逗号分隔),执行正常停服、备份、迁移、双端替换和健康检查;open 正常重启并取消白名单。
- fallback 保留宽协议和宽存档,以环境变量停止超过200的新增长;已有大堆叠可整组移动和扣除,不能换回旧二进制。
- provision_fixture.py 只创建全新的验收账号和角色;warehouse_fixture.py 仅用于 CH5 临时验收入口,验收后 remove 清理。私密文件只存于 build 或远端受限目录,不提交Git。
构建候选必须同时重建配套 libsql,再链接 game 与 db。仓库内预编译 libsql.a 可能与当前 AsyncSQL.h 不一致,不能直接链接后上线。使用候选目录并显式覆盖 Makefile 的 GAMEDIR/DBDIR;原始 Makefile 默认会将构建产物移动到正式服务目录。
上线前必须验证候选SHA、包长断言、真实客户端数量往返、普通仓库、洗练扣除、重启存档和旧版拒绝。部署失败期间保留维护状态与备份,不盲目恢复旧版读取大堆叠。
2026-10-27 已完成203正式上线:14个正式game/auth+db,CH5独立db与两个活动核心;19个配置二进制路径SHA一致,旧协议被拒绝。详见 docs/FEATURE-MATERIAL-STACK-2000.md。新增 port_refine_materials.h 保证强化能使用专用背包材料且全量预检后扣除。stress_fixture.py 仅在停止隔离集群后安装/清理满背包和确定性宝箱测试数据;warehouse_fixture.py 的 production scope 只允许新验收角色的普通仓库入口,禁止扩展发奖菜单,必须验收后移除并重启。所有临时夹具均已清理。
迁移报告额外保存数据完整指纹,比较物品身份和所有存档字段。源码工作区的原有未提交内容已保留,发布二进制以SHA256标识,不能仅用有dirty修改的Git HEAD判断版本。