Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初次加载插件 xxx_up_char 解析出错 | 碧蓝航线json为空 | 明日方舟抽卡出错 #93

Open
ab-Royo opened this issue Aug 1, 2023 · 0 comments

Comments

@ab-Royo
Copy link

ab-Royo commented Aug 1, 2023

初次加载插件时 xxx_up_char 解析出错

08-01 14:21:05 [SUCCESS] nonebot | Running NoneBot...
08-01 14:21:05 [INFO] uvicorn | Started server process [2772]
08-01 14:21:05 [INFO] uvicorn | Waiting for application startup.
08-01 14:21:05 [INFO] nonebot_plugin_apscheduler | Scheduler Started
08-01 14:21:05 [WARNING] nonebot_plugin_gamedraw | draw_card配置文件不存在已重新生成配置文件.....
08-01 14:21:05 [WARNING] nonebot_plugin_gamedraw | azur_up_char 解析出错
08-01 14:21:05 [WARNING] nonebot_plugin_gamedraw | genshin_up_char 解析出错
08-01 14:21:05 [WARNING] nonebot_plugin_gamedraw | guardian_up_char 解析出错
08-01 14:21:05 [WARNING] nonebot_plugin_gamedraw | pretty_up_char 解析出错
08-01 14:21:05 [WARNING] nonebot_plugin_gamedraw | 当前无UP池或 prts_up_char.json 文件不存在
08-01 14:21:06 [INFO] nonebot_plugin_gamedraw | 碧蓝档案 更新成功
08-01 14:21:07 [WARNING] nonebot_plugin_gamedraw | 命运-冠位指定 更新成功
08-01 14:21:07 [INFO] nonebot_plugin_gamedraw | 赛马娘 更新成功
08-01 14:21:07 [INFO] nonebot_plugin_gamedraw | 明日方舟 更新成功
08-01 14:21:07 [INFO] nonebot_plugin_gamedraw | 坎公骑冠剑 更新成功
08-01 14:21:07 [INFO] nonebot_plugin_gamedraw | 公主连结 更新成功
08-01 14:21:07 [INFO] nonebot_plugin_gamedraw | 碧蓝航线 更新成功
08-01 14:21:07 [INFO] nonebot_plugin_gamedraw | 坎公骑冠剑 武器更新成功
08-01 14:21:07 [INFO] nonebot_plugin_gamedraw | 赛马娘 卡牌更新成功
08-01 14:21:07 [INFO] nonebot_plugin_gamedraw | 坎公骑冠剑 盾牌更新成功
08-01 14:21:13 [INFO] nonebot_plugin_gamedraw | 成功获取坎公骑冠剑当前up信息...当前up池: 本次up从07月20日开始至08月03 日结束08-01 14:21:15 [INFO] nonebot_plugin_gamedraw | 阴阳师 更新成功
08-01 14:21:16 [WARNING] nonebot_plugin_gamedraw | 原神 获取额外信息错误 旅行者风
08-01 14:21:17 [WARNING] nonebot_plugin_gamedraw | 原神 获取额外信息错误 旅行者雷
08-01 14:21:17 [WARNING] nonebot_plugin_gamedraw | 当前无UP池或 prts_up_char.json 文件不存在
08-01 14:21:17 [WARNING] nonebot_plugin_gamedraw | 原神 获取额外信息错误 旅行者岩
08-01 14:21:18 [WARNING] nonebot_plugin_gamedraw | 原神 获取额外信息错误 旅行者草
08-01 14:21:21 [INFO] nonebot_plugin_gamedraw | 原神 更新成功
08-01 14:21:24 [INFO] nonebot_plugin_gamedraw | 原神 武器更新成功
08-01 14:21:26 [WARNING] nonebot_plugin_gamedraw | pretty_up_char 解析出错

碧蓝航线的C:\...\main06\data\draw_card\azur.json为空,不下载碧蓝航线资源(C:\...\main06\data\draw_card\draw_card\azur文件夹内只有5张图片),使用命令更新碧蓝航线信息成功


再之后明日方舟抽卡出错(C:\...\main06\data\draw_card\draw_card\prts有角色图片)

08-01 14:29:48 [SUCCESS] nonebot | OneBot V11 3292...7 | [message.group.normal]: Message 88406430 from 619...1@[:210...37] '方舟10抽'
08-01 14:29:48 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_gamedraw)
08-01 14:29:48 [WARNING] nonebot_plugin_gamedraw | Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\QBot\main06\.venv\lib\site-packages\nonebot_plugin_gamedraw\__init__.py", line 72, in handler
    res = game.handle.draw(num, pool_name=pool_name, user_id=event.user_id)
  File "C:\Users\Administrator\Desktop\QBot\main06\.venv\lib\site-packages\nonebot_plugin_gamedraw\handles\prts_handle.py", line 107, in draw
    index2card = self.get_cards(count)
  File "C:\Users\Administrator\Desktop\QBot\main06\.venv\lib\site-packages\nonebot_plugin_gamedraw\handles\prts_handle.py", line 82, in get_cards
    card = self.get_card(add)
  File "C:\Users\Administrator\Desktop\QBot\main06\.venv\lib\site-packages\nonebot_plugin_gamedraw\handles\prts_handle.py", line 73, in get_card
    acquire_operator = random.choice(all_operators)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\random.py", line 346, in choice
    return seq[self._randbelow(len(seq))]
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant