nonebot_plugin_gamedraw
nonebot_plugin_gamedraw copied to clipboard
碧蓝航线活动池抽卡错误?报错阈值在103和104之间
好像是抽到彩船就报错了
好像是抽到彩船就报错了
好像是的,我这儿的数组加了个彩,暂时能用了 https://github.com/HibiKier/nonebot_plugin_gamedraw/blob/aa30c6bf1caef9791071f72f4ec26aa68f43b105/draw_card/handles/azur_handle.py#L27
是抽到彩船就报错了
好像是的,我这里的菜加了个彩,暂时可以用
https://github.com/HibiKier/nonebot_plugin_gamedraw/blob/aa30c6bf1caef9791071f72f4ec26aa68f43b105/draw_card/handles/azur_handle.py#L27
好像是抽到彩船就报错了
好像是的,我这儿的数组加了个彩,暂时能用了
https://github.com/HibiKier/nonebot_plugin_gamedraw/blob/aa30c6bf1caef9791071f72f4ec26aa68f43b105/draw_card/handles/azur_handle.py#L27
41行改成5,改完后可以显示第多少抽抽到武藏了,但是只显示彩船武藏了
第83行数组加个5 self.config.AZUR_FIVE_P, 可以解决
上面的2个方法我都试了,还是出错
上面的2个方法我都试了,还是出错
在上面数组里加完彩 再在第83行数组 改为[5, 4, 3, 2, 1], [ self.config.AZUR_FIVE_P, self.config.AZUR_FOUR_P, self.config.AZUR_THREE_P, self.config.AZUR_TWO_P, self.config.AZUR_ONE_P, ],
我是这样设置的,依旧出错了
def star_str(self) -> str: return ["白", "蓝", "紫", "金","彩"][self.star - 1]
if not acquire_char: star = self.get_star( [5,4, 3, 2, 1], [ self.config.AZUR_FIVE_P, self.config.AZUR_FOUR_P, self.config.AZUR_THREE_P, self.config.AZUR_TWO_P, self.config.AZUR_ONE_P, ], )
我是这样设置的,依旧出错了
def star_str(self) -> str: return ["白", "蓝", "紫", "金","彩"][self.star - 1]
if not acquire_char: star = self.get_star( [5,4, 3, 2, 1], [ self.config.AZUR_FIVE_P, self.config.AZUR_FOUR_P, self.config.AZUR_THREE_P, self.config.AZUR_TWO_P, self.config.AZUR_ONE_P, ], )
我自己bot改完了倒是没报错过 看看报错
我是这样设置的,依旧出错了
def star_str(self) -> str: return ["白", "蓝", "紫", "金","彩"][self.star - 1] if not acquire_char: star = self.get_star( [5,4, 3, 2, 1], [ self.config.AZUR_FIVE_P, self.config.AZUR_FOUR_P, self.config.AZUR_THREE_P, self.config.AZUR_TWO_P, self.config.AZUR_ONE_P, ], )
我自己bot改完了倒是没报错过 看看报错
Event will be handled by <Matcher from nonebot_plugin_gamedraw, type=message, priority=5, temp=False>
10-13 16:27:23 [WARNING] nonebot_plugin_gamedraw | Traceback (most recent call last):
File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/init.py", line 97, in handler
res = game.handle.draw(num, pool_name=pool_name, user_id=event.user_id)
File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/azur_handle.py", line 102, in draw
index2card = self.get_cards(count, **kwargs)
File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in get_cards
return [(self.get_card(**kwargs), i) for i in range(count)]
File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in
File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in get_cards return [(self.get_card(**kwargs), i) for i in range(count)] File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in return [(self.get_card(**kwargs), i) for i in range(count)] File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/azur_handle.py", line 92, in get_card acquire_char = random.choice(
你27行彩船加了嘛
加了,刚刚上面回复的就是代码里的样子
加了,刚刚上面回复的就是代码里的样子
5,后面加空格
还是没用,报错好像是star往下传了个空值
还是没用,报错好像是star往下传了个空值
你“彩”前是不是也没加空格
加了的,我都加了
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月13日(星期四) 下午4:57 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [HibiKier/nonebot_plugin_gamedraw] 碧蓝航线活动池抽卡错误?报错阈值在103和104之间 (Issue #76)
还是没用,报错好像是star往下传了个空值
你“彩”前是不是也没加空格
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
还是没用,报错好像是star往下传了个空值
你“彩”前是不是也没加空格
Event will be handled by <Matcher from nonebot_plugin_gamedraw, type=message, priority=5, temp=False>
10-13 16:58:42 [WARNING] nonebot_plugin_gamedraw | Traceback (most recent call last):
File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/init.py", line 97, in handler
res = game.handle.draw(num, pool_name=pool_name, user_id=event.user_id)
File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/azur_handle.py", line 102, in draw
index2card = self.get_cards(count, **kwargs)
File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in get_cards
return [(self.get_card(**kwargs), i) for i in range(count)]
File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in
还是没用,报错好像是star往下传了个空值
你“彩”前是不是也没加空格
Event will be handled by <Matcher from nonebot_plugin_gamedraw, type=message, priority=5, temp=False> 10-13 16:58:42 [WARNING] nonebot_plugin_gamedraw | Traceback (most recent call last): File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/init.py", line 97, in handler res = game.handle.draw(num, pool_name=pool_name, user_id=event.user_id) File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/azur_handle.py", line 102, in draw index2card = self.get_cards(count, **kwargs) File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in get_cards return [(self.get_card(**kwargs), i) for i in range(count)] File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in return [(self.get_card(**kwargs), i) for i in range(count)] File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/azur_handle.py", line 92, in get_card acquire_char = random.choice( File "/usr/local/Python-3.9.12/lib/python3.9/random.py", line 346, in choice return seq[self._randbelow(len(seq))] IndexError: list index out of range
又去看了下代码第41行 maxstar要改成5
self.max_star = 5
改了以后依旧报错
Event will be handled by <Matcher from nonebot_plugin_gamedraw, type=message, priority=5, temp=False> 10-13 17:31:05 [WARNING] nonebot_plugin_gamedraw | Traceback (most recent call last): File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/init.py", line 97, in handler res = game.handle.draw(num, pool_name=pool_name, user_id=event.user_id) File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/azur_handle.py", line 102, in draw index2card = self.get_cards(count, **kwargs) File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in get_cards return [(self.get_card(**kwargs), i) for i in range(count)] File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in <listcomp> return [(self.get_card(**kwargs), i) for i in range(count)] File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/azur_handle.py", line 92, in get_card acquire_char = random.choice( File "/usr/local/Python-3.9.12/lib/python3.9/random.py", line 346, in choice return seq[self._randbelow(len(seq))] IndexError: list index out of range
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月13日(星期四) 下午5:14 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [HibiKier/nonebot_plugin_gamedraw] 碧蓝航线活动池抽卡错误?报错阈值在103和104之间 (Issue #76)
还是没用,报错好像是star往下传了个空值
你“彩”前是不是也没加空格
Event will be handled by <Matcher from nonebot_plugin_gamedraw, type=message, priority=5, temp=False> 10-13 16:58:42 [WARNING] nonebot_plugin_gamedraw | Traceback (most recent call last): File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/init.py", line 97, in handler res = game.handle.draw(num, pool_name=pool_name, user_id=event.user_id) File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/azur_handle.py", line 102, in draw index2card = self.get_cards(count, **kwargs) File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in get_cards return [(self.get_card(**kwargs), i) for i in range(count)] File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/base_handle.py", line 79, in return [(self.get_card(**kwargs), i) for i in range(count)] File "/usr/local/Python-3.9.12/lib/python3.9/site-packages/nonebot_plugin_gamedraw/handles/azur_handle.py", line 92, in get_card acquire_char = random.choice( File "/usr/local/Python-3.9.12/lib/python3.9/random.py", line 346, in choice return seq[self._randbelow(len(seq))] IndexError: list index out of range
又去看了下代码第41行 maxstar要改成5
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>