商店过滤器中添加关键词但仍无法购买的问题
Discussed in https://github.com/LmeSzinc/AzurLaneAutoScript/discussions/3063
Originally posted by shawnyuan-cn August 30, 2023
在按照#3016的方法在过滤器中添加BoxIrisT2关键词后,经过一段时间观察发现仍无法自动购买鸢尾的蓝装备箱。
军火商这几次没刷出鸢尾的蓝装备箱,待几天再反馈。
不过月初白票商店中的隐秘海域信息记录仪(HiddenZoneDataLogger)也会出现类似的情况,虽然按assets中的截图文件名添加到过滤器中,但并不能完成购买。
Originally posted by @shawnyuan-cn in https://github.com/LmeSzinc/AzurLaneAutoScript/discussions/3063#discussioncomment-6878286
- 隐秘海域信息记录仪即使在手动购买后,也不会像效能样本一样在仓库中自动使用。(未验证,之前观察时印象中是这样的)
- 希望这东西能够像效能样本一样在仓库中检测到便会自动使用。
- 理由是白票每月是溢出的,比起1000白票,希望能够始终开启隐秘海域的无视间隔(截图所示),节省开荒时间。
- 在上面回复中的新材料“破碎的结晶”,也希望能在白票商店中自动购买,求一个关键词。
Originally posted by @shawnyuan-cn in https://github.com/LmeSzinc/AzurLaneAutoScript/discussions/3063#discussioncomment-6878390
- 在上面回复中的新材料“破碎的结晶”,也希望能在白票商店中自动购买,求一个关键词。
观察到 .\assets\shop\voucher 中已经添加了Fragment关键词命名,已解决。
对于军火商的鸢尾蓝装备箱,目前暂未刷出。不过军需商店刷出来一个:
以此作为替代测试了一下,同样也是无法购买:
由于刷新的随机性,军火商的鸢尾蓝装备箱暂未遇到,但应该也是相同原因。
经测试仍无法完成购买。 @LmeSzinc
INFO 16:28:23.335 │ SHOP BUY
INFO 16:28:23.336 │ Loading template folder: ./assets/shop/general
INFO 16:28:23.657 │ [next_template_index] 50
INFO 16:28:23.770 │ Loading OCR model: ./bin/cnocr_models/azur_lane
INFO 16:28:24.055 │ [Price_ocr 0.303s] [5000, 2000, 9000, 810, 4500, 320,
10000, 1500, 2000]
INFO 16:28:24.058 │ [Item detected] 9
INFO 16:28:25.190 │ [Price_ocr 0.232s] [5000, 2000, 9000, 810, 4500, 320,
10000, 1500, 2000]
INFO 16:28:25.194 │ [Item detected] 9
INFO 16:28:25.196 │ Shop row 1: ['BoxT4_x1_Coins_x5000',
'BoxT3_x1_Coins_x2000', 'BoxT3_x1_Coins_x9000', 'BoxT2_x1_Coins_x810',
'BoxT4_x1_Coins_x4500']
INFO 16:28:25.198 │ Shop row 2: ['BoxT2_x1_Coins_x320',
'BoxT3_x1_Coins_x10000', 'PlatePlaneT2_x1_Coins_x1500',
'BoxT2_x1_Coins_x2000']
INFO 16:28:25.244 │ [SHOP_GOLD_COINS 0.045s] 97672
INFO 16:28:25.290 │ [SHOP_GEMS 0.043s] 2065
INFO 16:28:25.293 │ Gold coins: 97672, Gems: 2065
INFO 16:28:25.294 │ Shop buy finished
INFO 16:28:25.296 │ Delay task `ShopFrequent` to 2023-10-23 18:00:00
(server_update='00:00, 12:00, 18:00')
INFO 16:28:25.320 │ Bind task {'ShopFrequent', 'General', 'Alas'}
INFO 16:28:25.322 │ Save config ./config\alas.json,
ShopFrequent.Scheduler.NextRun=datetime.datetime(2023, 10, 23, 18, 0)
INFO 16:28:25.338 │ Scheduler: End task `ShopFrequent`
INFO 16:28:25.341 │ [Server] cn
INFO 16:28:25.376 │ Bind task {'General', 'Alas'}
INFO 16:28:25.382 │ Pending tasks: ['GemsFarming']
INFO 16:28:25.384 │ [Task] GemsFarming (Enable, 2023-10-23 10:49:57)
INFO 16:28:25.386 │ Bind task {'General', 'Alas', 'TaskBalancer',
'GemsFarming', 'EventGeneral'}
INFO 16:28:25.396 │ Scheduler: Start task `GemsFarming`
鸢尾的蓝装备箱被识别为 BoxT2_x1_Coins_x810 ,过滤器添加的是 BoxIrisT2 关键词
同样被识别为'BoxT2_x1_Coins_x540'
2023-10-24 18:28:39.367 | INFO | SHOP BUY
2023-10-24 18:28:39.368 | INFO | Loading template folder: ./assets/shop/general
2023-10-24 18:28:39.394 | INFO | [next_template_index] 50
2023-10-24 18:28:39.422 | INFO | Loading OCR model: ./bin/cnocr_models/azur_lane
2023-10-24 18:28:39.573 | INFO | [Price_ocr 0.161s] [1800, 2000, 1800, 1500, 540, 2000, 3000, 400, 32, 10000]
2023-10-24 18:28:39.574 | INFO | [Item detected] 10
2023-10-24 18:28:39.787 | INFO | [Price_ocr 0.113s] [1800, 2000, 1800, 1500, 540, 2000, 3000, 400, 32, 10000]
2023-10-24 18:28:39.789 | INFO | [Item detected] 10
2023-10-24 18:28:39.790 | INFO | Shop row 1: ['BoxT3_x1_Coins_x1800', 'BoxT2_x1_Coins_x2000', 'BoxT3_x1_Coins_x1800',
'PlateGunT2_x1_Coins_x1500', 'BoxT2_x1_Coins_x540']
2023-10-24 18:28:39.791 | INFO | Shop row 2: ['BoxT3_x1_Coins_x2000', 'PlatePlaneT3_x1_Coins_x3000',
'BoxT2_x1_Coins_x400', 'BookYellowT2_x1_Gems_x32', 'BoxT3_x1_Coins_x10000']
2023-10-24 18:28:39.814 | INFO | [SHOP_GOLD_COINS 0.021s] 327150
2023-10-24 18:28:39.836 | INFO | [SHOP_GEMS 0.019s] 970
2023-10-24 18:28:39.838 | INFO | Gold coins: 327150, Gems: 970
2023-10-24 18:28:39.839 | INFO | Shop buy finished
但也有过购买成功的例子:
2023-10-24 07:41:52.618 | INFO | SHOP BUY
2023-10-24 07:41:52.728 | INFO | [Price_ocr 0.103s] [400, 2000, 10000, 10000, 3000, 1600, 1400, 600, 720]
2023-10-24 07:41:52.729 | INFO | [Item detected] 9
2023-10-24 07:41:53.026 | INFO | [Price_ocr 0.096s] [400, 2000, 10000, 10000, 3000, 1600, 1400, 600, 720]
2023-10-24 07:41:53.028 | INFO | [Item detected] 9
2023-10-24 07:41:53.029 | INFO | Shop row 1: ['BoxT2_x1_Coins_x400', 'BoxT2_x1_Coins_x2000', 'BoxT3_x1_Coins_x10000',
'BoxT3_x1_Coins_x10000', 'PlateGunT3_x1_Coins_x3000']
2023-10-24 07:41:53.030 | INFO | Shop row 2: ['BoxT3_x1_Coins_x1600', 'BoxT2_x1_Coins_x1400',
'PlatePlaneT1_x1_Coins_x600', 'BoxIrisT2_x1_Coins_x720']
2023-10-24 07:41:53.049 | INFO | [SHOP_GOLD_COINS 0.018s] 317983
2023-10-24 07:41:53.068 | INFO | [SHOP_GEMS 0.018s] 970
2023-10-24 07:41:53.070 | INFO | Gold coins: 317983, Gems: 970
2023-10-24 07:41:53.071 | INFO | [Item_sort] BoxIrisT2_x1_Coins_x720
2023-10-24 07:41:53.072 | INFO | Click (1002, 538) @ BoxIrisT2_x1_Coins_x720
2023-10-24 07:41:53.223 | INFO | Click ( 774, 518) @ SHOP_BUY_CONFIRM
2023-10-24 07:41:56.845 | INFO | Shop obstruct: GET_ITEMS_1 -> SHOP_CLICK_SAFE_AREA
2023-10-24 07:41:56.846 | INFO | Click ( 116, 172) @ SHOP_CLICK_SAFE_AREA
应该是识别相似度的问题
目前出现了反过来的情况,即过滤器中只写BoxIris也会导致购买BoxT2。