AzurLaneAutoScript icon indicating copy to clipboard operation
AzurLaneAutoScript copied to clipboard

商店购买项目识别有误

Open jinyu0 opened this issue 5 years ago • 2 comments

Describe the bug 在军火商处购买食物T6时,无法正确识别

To Reproduce 当军火商刷出食物T6时,脚本会将之识别为“'39_x1_Coins_x12000'”

Expected behavior 应正常识别FoodT6,然后购买

Screenshots 商店的截图 image

Log 2021-11-27 00:02:13.277 | INFO | +----------------------------------------------------+ 2021-11-27 00:02:13.278 | INFO | | SHOPFREQUENT | 2021-11-27 00:02:13.278 | INFO | +----------------------------------------------------+ 2021-11-27 00:02:13.349 | INFO | <<< UI ENSURE >>> 2021-11-27 00:02:13.353 | INFO | [UI] page_mission 2021-11-27 00:02:13.353 | INFO | Goto page_munitions 2021-11-27 00:02:13.353 | INFO | <<< UI GOTO PAGE_MUNITIONS >>> 2021-11-27 00:02:13.364 | INFO | Click (1246, 30) @ GOTO_MAIN 2021-11-27 00:02:14.759 | INFO | Click ( 535, 691) @ MAIN_GOTO_DORMMENU 2021-11-27 00:02:15.034 | INFO | Click ( 331, 308) @ DORMMENU_GOTO_ACADEMY 2021-11-27 00:02:16.361 | INFO | Click (1095, 204) @ ACADEMY_GOTO_MUNITIONS 2021-11-27 00:02:17.557 | INFO | Drag ( 460, 620) -> ( 940, 639) 2021-11-27 00:02:18.850 | INFO | ==================== GENERAL SHOP ==================== 2021-11-27 00:02:18.850 | INFO | SHOP_BOTTOM_NAVBAR set to left=5 2021-11-27 00:02:18.851 | INFO | -------------------- GENERAL SHOP BUY -------------------- 2021-11-27 00:02:18.852 | INFO | <<< BUY EXECUTE >>> 2021-11-27 00:02:19.534 | INFO | New template: 38 2021-11-27 00:02:19.538 | INFO | New template: 39 2021-11-27 00:02:19.649 | INFO | [Price_ocr 0.105s] [7000, 400, 3000, 80, 80, 3500, 400, 12000, 3000, 2400] 2021-11-27 00:02:19.682 | INFO | [Item detected] 10 2021-11-27 00:02:20.069 | INFO | [Price_ocr 0.102s] [7000, 400, 3000, 80, 80, 3500, 400, 12000, 3000, 2400] 2021-11-27 00:02:20.071 | INFO | [Item detected] 10 2021-11-27 00:02:20.072 | INFO | Shop row 1: ['38_x1_Coins_x7000', 'BoxT2_x1_Coins_x400', 'BoxT4_x1_Coins_x3000', 'BoxT1_x1_Coins_x80', 'BookRedT3_x1_Gems_x80'] 2021-11-27 00:02:20.072 | INFO | Shop row 2: ['BoxT4_x1_Coins_x3500', 'BoxT1_x1_Coins_x400', '39_x1_Coins_x12000', 'PlateAntiAirT3_x1_Coins_x3000', 'BookRedT3_x1_Coins_x2400'] 2021-11-27 00:02:20.092 | INFO | [SHOP_GOLD_COINS 0.020s] 40446 2021-11-27 00:02:20.111 | INFO | [SHOP_GEMS 0.020s] 1541 2021-11-27 00:02:20.111 | INFO | Gold coins: 40446, Gems: 1541 2021-11-27 00:02:20.119 | INFO | Click (1140, 405) @ BookRedT3_x1_Coins_x2400 2021-11-27 00:02:20.385 | INFO | Click ( 861, 512) @ SHOP_BUY_CONFIRM 2021-11-27 00:02:24.302 | INFO | <<< BUY EXECUTE >>> 2021-11-27 00:02:24.407 | INFO | [Price_ocr 0.099s] [7000, 400, 3000, 80, 80, 3500, 400, 12000, 3000] 2021-11-27 00:02:24.409 | INFO | [Item detected] 9 2021-11-27 00:02:24.801 | INFO | [Price_ocr 0.096s] [7000, 400, 3000, 80, 80, 3500, 400, 12000, 3000] 2021-11-27 00:02:24.803 | INFO | [Item detected] 9 2021-11-27 00:02:24.803 | INFO | Shop row 1: ['38_x1_Coins_x7000', 'BoxT2_x1_Coins_x400', 'BoxT4_x1_Coins_x3000', 'BoxT1_x1_Coins_x80', 'BookRedT3_x1_Gems_x80'] 2021-11-27 00:02:24.804 | INFO | Shop row 2: ['BoxT4_x1_Coins_x3500', 'BoxT1_x1_Coins_x400', '39_x1_Coins_x12000', 'PlateAntiAirT3_x1_Coins_x3000'] 2021-11-27 00:02:24.823 | INFO | [SHOP_GOLD_COINS 0.020s] 38046 2021-11-27 00:02:24.844 | INFO | [SHOP_GEMS 0.020s] 1541 2021-11-27 00:02:24.844 | INFO | Gold coins: 38046, Gems: 1541 2021-11-27 00:02:24.844 | INFO | Shop buy finished 2021-11-27 00:02:24.845 | INFO | Delay task ShopFrequent to 2021-11-27 12:00:00 (server_update='00:00, 12:00, 18:00') 2021-11-27 00:02:24.854 | INFO | Bind task {'ShopFrequent', 'Alas', 'General'} 2021-11-27 00:02:24.854 | INFO | Save config ./config\alas.json, ShopFrequent.Scheduler.NextRun=datetime.datetime(2021, 11, 27, 12, 0) 2021-11-27 00:02:24.865 | INFO | Scheduler: End task ShopFrequent

jinyu0 avatar Nov 27 '21 03:11 jinyu0

需要未购买的时候的截图

LmeSzinc avatar Nov 28 '21 07:11 LmeSzinc

Log 2021-12-03 18:00:20.682 | INFO | +----------------------------------------------------+ 2021-12-03 18:00:20.682 | INFO | | SHOPFREQUENT | 2021-12-03 18:00:20.682 | INFO | +----------------------------------------------------+ 2021-12-03 18:00:20.683 | INFO | <<< UI ENSURE >>> 2021-12-03 18:00:20.684 | INFO | [UI] page_main 2021-12-03 18:00:20.684 | INFO | Goto page_munitions 2021-12-03 18:00:20.685 | INFO | <<< UI GOTO PAGE_MUNITIONS >>> 2021-12-03 18:00:20.687 | INFO | Click ( 582, 679) @ MAIN_GOTO_DORMMENU 2021-12-03 18:00:20.993 | INFO | Click ( 311, 329) @ DORMMENU_GOTO_ACADEMY 2021-12-03 18:00:22.318 | INFO | Click (1091, 201) @ ACADEMY_GOTO_MUNITIONS 2021-12-03 18:00:23.239 | INFO | Drag ( 452, 626) -> ( 940, 640) 2021-12-03 18:00:24.535 | INFO | ==================== GENERAL SHOP ==================== 2021-12-03 18:00:24.535 | INFO | SHOP_BOTTOM_NAVBAR set to left=5 2021-12-03 18:00:24.536 | INFO | -------------------- GENERAL SHOP BUY -------------------- 2021-12-03 18:00:24.571 | INFO | New template: 38 2021-12-03 18:00:24.575 | INFO | New template: 39 2021-12-03 18:00:24.691 | INFO | [Price_ocr 0.112s] [7000, 10000, 20000, 80, 1920, 2000, 4500, 12000, 20, 2000] 2021-12-03 18:00:24.696 | INFO | [Item detected] 10 2021-12-03 18:00:25.131 | INFO | [Price_ocr 0.104s] [7000, 10000, 20000, 80, 1920, 2000, 4500, 12000, 20, 2000] 2021-12-03 18:00:25.135 | INFO | [Item detected] 10 2021-12-03 18:00:25.135 | INFO | Shop row 1: ['38_x1_Coins_x7000', 'BoxT3_x1_Coins_x10000', 'BoxT4_x1_Coins_x20000', 'BookRedT3_x1_Gems_x80', 'BookYellowT3_x1_Coins_x1920'] 2021-12-03 18:00:25.136 | INFO | Shop row 2: ['BoxT2_x1_Coins_x2000', 'BoxT4_x1_Coins_x4500', '39_x1_Coins_x12000', 'Drill_x1_Gems_x20', 'BoxT3_x1_Coins_x2000'] 2021-12-03 18:00:25.156 | INFO | [SHOP_GOLD_COINS 0.020s] 18234 2021-12-03 18:00:25.176 | INFO | [SHOP_GEMS 0.020s] 2142 2021-12-03 18:00:25.176 | INFO | Gold coins: 18234, Gems: 2142 2021-12-03 18:00:25.177 | INFO | Click (1124, 202) @ BookYellowT3_x1_Coins_x1920 2021-12-03 18:00:25.432 | INFO | Click ( 808, 529) @ SHOP_BUY_CONFIRM 2021-12-03 18:00:29.263 | INFO | [Price_ocr 0.104s] [7000, 10000, 20000, 80, 2000, 4500, 12000, 20, 2000] 2021-12-03 18:00:29.266 | INFO | [Item detected] 9 2021-12-03 18:00:29.704 | INFO | [Price_ocr 0.102s] [7000, 10000, 20000, 80, 2000, 4500, 12000, 20, 2000] 2021-12-03 18:00:29.706 | INFO | [Item detected] 9 2021-12-03 18:00:29.707 | INFO | Shop row 1: ['38_x1_Coins_x7000', 'BoxT3_x1_Coins_x10000', 'BoxT4_x1_Coins_x20000', 'BookRedT3_x1_Gems_x80'] 2021-12-03 18:00:29.707 | INFO | Shop row 2: ['BoxT2_x1_Coins_x2000', 'BoxT4_x1_Coins_x4500', '39_x1_Coins_x12000', 'Drill_x1_Gems_x20', 'BoxT3_x1_Coins_x2000'] 2021-12-03 18:00:29.728 | INFO | [SHOP_GOLD_COINS 0.021s] 16314 2021-12-03 18:00:29.747 | INFO | [SHOP_GEMS 0.019s] 2142 2021-12-03 18:00:29.747 | INFO | Gold coins: 16314, Gems: 2142 2021-12-03 18:00:29.748 | INFO | Shop buy finished 2021-12-03 18:00:29.748 | INFO | Delay task ShopFrequent to 2021-12-04 00:00:00 (server_update='00:00, 12:00, 18:00') 2021-12-03 18:00:29.759 | INFO | Bind task {'Alas', 'ShopFrequent', 'General'} 2021-12-03 18:00:29.760 | INFO | Save config ./config\alas.json, ShopFrequent.Scheduler.NextRun=datetime.datetime(2021, 12, 4, 0, 0) 2021-12-03 18:00:29.880 | INFO | Scheduler: End task ShopFrequent

截图 image

jinyu0 avatar Dec 03 '21 12:12 jinyu0