league-of-legends-decoded-replay-packets
收藏League of Legends Replays Dataset 概述
数据集基本信息
- 许可证:Apache 2.0
- 任务类别:强化学习、时间序列预测、其他
- 语言:英语
- 标签:游戏、电子竞技、英雄联盟、行为数据、游戏分析、时间序列、LOL、回放
- 规模:10M到100M之间
数据集内容
- 数据量:超过1TB(包含10万+游戏回放)
- 数据格式:JSONL文件,包含按时间顺序排列的游戏事件包
- 数据组织:按游戏补丁版本组织(12_22、12_23、13_01、13_02、13_03)
数据包类型
包含20种数据包类型,涵盖所有游戏事件:
CreateHero:英雄生成和初始化HeroDie:英雄死亡事件WaypointGroup:移动指令和路径查找WaypointGroupWithSpeed:带速度数据的移动指令EnterFog:实体进入战争迷雾LeaveFog:实体离开战争迷雾UnitApplyDamage:单位间伤害处理DoSetCooldown:技能冷却更新BasicAttackPos:带位置数据的基础攻击CastSpellAns:技能/法术施放事件BarrackSpawnUnit:兵营生成小兵SpawnMinion:普通小兵生成事件CreateNeutral:中立野怪生成CreateTurret:防御塔初始化NPCDieMapView:NPC死亡(地图视图)NPCDieMapViewBroadcast:NPC死亡广播BuyItem:物品购买事件RemoveItem:物品移除/出售SwapItem:物品栏位交换UseItem:物品激活/使用Replication:游戏状态同步
应用领域
- 强化学习
- 游戏分析
- 行为研究
使用方式
推荐方式:使用Gym环境
python pip install league-of-legends-decoded-replay-packets-gym
import league_of_legends_decoded_replay_packets_gym as lol_gym
dataset = lol_gym.ReplayDataset([ "12_22/batch_001.jsonl.gz", ], repo_id="maknee/league-of-legends-decoded-replay-packets")
dataset.load(max_games=1)
手动下载和处理
python from huggingface_hub import hf_hub_download import json import gzip
local_file = hf_hub_download( repo_id="maknee/league-of-legends-decoded-replay-packets", filename="12_22/batch_001.jsonl.gz", repo_type="dataset" )
with gzip.open(local_file, rt, encoding=utf-8) as f: for line_num, line in enumerate(f): match_data = json.loads(line) packets = match_data["events"]
引用信息
bibtex @dataset{league_of_legends_decoded_replay_packets_2025, title={League of Legends Decoded Replay Packets Dataset}, author={maknee}, year={2025}, url={https://huggingface.co/datasets/maknee/league-of-legends-decoded-replay-packets} }




