yxp_replays
收藏资源简介:
yxp_replays 是一个来自非对称自走棋卡牌游戏《弈仙牌》的录像文件数据集。在该游戏中,每位玩家拥有独立的卡池,通过调整己方卡牌布局来预判对手布局是取胜的关键,这与采用共享卡池、单局胜负受运气影响较大的传统自走棋游戏有所不同。数据集由游戏对局的录像文件(JSON 格式)构成,通过自动化脚本从指定的存储桶目录中收集并打包成 .tar.zst 压缩归档文件。数据归档过程遵循特定规则:通常要求一个存储桶内最新的文件修改时间至少为 4 天前,且其中至少包含一场特定模式(data.gameMode 为 3)的对局;或者当存储桶尚未被归档时,要求其最高编号的录像文件满足一定年龄条件。此外,每个被接受的录像编号必须包含完整的 8 个玩家视角数据(全部缺失、全部存在或混合存在但包含非模式 3 的对局)。该数据集主要用于分析与《弈仙牌》游戏对局相关的行为,可能适用于游戏 AI 训练、玩家策略分析、元游戏(metagame)研究等场景。README 文件还提供了用于本地运行归档、模拟运行以及启用自动化定时归档任务的脚本和系统服务配置说明。
yxp_replays is a replay dataset for the asymmetric auto-battler card game *Yixianpai* (《弈仙牌》). In this game, each player has an independent card pool, and adjusting one's own card layout to predict the opponent's layout is the key to victory, which differs significantly from traditional auto-battler games that utilize a shared card pool and have single-match outcomes heavily influenced by luck. The dataset comprises game replay files in JSON format, which are collected and packaged into .tar.zst compressed archives via automated scripts from a designated storage bucket directory. The data archiving process adheres to specific rules: generally, the latest file modification timestamp within a storage bucket must be at least 4 days old, and the bucket must contain at least one match of a specific mode (where data.gameMode equals 3); alternatively, if a storage bucket has not yet been archived, its highest-numbered replay file must meet a specified age criterion. Additionally, every accepted replay ID must include complete player perspective data for all 8 players, which can be either entirely missing, entirely present, or a mixed set but containing non-mode 3 matches. This dataset is primarily designed for analyzing behaviors related to *Yixianpai* game matches, and can be applied to scenarios including game AI training, player strategy analysis, metagame research, and other related fields. The README file also provides scripts and system service configuration guidelines for local archiving, simulated operation, and enabling automated scheduled archiving tasks.
数据集名称
yxp_replays
数据集来源
该数据集来自游戏《易仙》(Yi Xian),一款非对称自走棋卡牌游戏。游戏机制独特:每位玩家拥有独立的卡池,通过预判对手的卡牌排列来优化己方布局,从而在特定对战中几乎总能获胜,区别于《云顶之弈》等共享卡池且难以通过位置预判取胜的自走棋游戏。
数据集内容
- 数据类型:游戏回放文件(replay files)
- 数据格式:包含 JSON 文件,部分回放数据以
.tar.zst压缩档案形式存储
数据采集与管理
- 采集脚本:
archive_replay_buckets.py - 数据来源目录:
/home/sharpobject/repos/yisim/scrape/data/replays下的回放桶(bucket)目录 - 档案构建:脚本将回放桶目录打包为
.tar.zst档案 - 归档条件(满足任一即可归档):
- 桶内最新文件修改时间距今至少 4 天,且至少一个 JSON 文件的
data.gameMode为 3 - 不存在已有档案,桶内最高回放编号至少为桶编号 + 980,且该回放的
data.beginTs距今至少 4 小时
- 桶内最新文件修改时间距今至少 4 天,且至少一个 JSON 文件的
- 数据完整性要求:每个回放编号必须拥有全部 8 个视角(perspectives),视角可以是全部缺失、全部为 JSON 文件或混合存在且至少一个 JSON 的
data.gameMode不为 3
使用方式
-
本地归档运行: sh ./archive_replay_buckets.py
-
仅查看队列,不写入档案: sh ./archive_replay_buckets.py --dry-run
-
运行、提交变更并推送到 Hugging Face 远程仓库: sh ./archive_replay_buckets.py --push
自动化配置
- 自动化工具:提供 systemd 用户服务单元文件,位于
systemd/目录 - 启用定时任务: sh mkdir -p ~/.config/systemd/user cp systemd/yxp-replay-archives.service systemd/yxp-replay-archives.timer ~/.config/systemd/user/ systemctl --user daemon-reload systemctl --user enable --now yxp-replay-archives.timer
许可协议
- 许可证:WTFPL(Do What The Fuck You Want To Public License)




