碧蓝航线活动池抽卡错误?报错阈值在103和104之间
lkfun opened this issue · 18 comments
好像是抽到彩船就报错了
好像是抽到彩船就报错了
好像是的,我这儿的数组加了个彩,暂时能用了
是抽到彩船就报错了
好像是的,我这里的菜加了个彩,暂时可以用
好像是抽到彩船就报错了
好像是的,我这儿的数组加了个彩,暂时能用了
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
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
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往下传了个空值
你“彩”前是不是也没加空格
还是没用,报错好像是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
还是没用,报错好像是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