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

OCR recognize error of the WAR ARCHIVES stage #4537

Open
4 tasks done
Danielliu2008 opened this issue Jan 25, 2025 · 0 comments
Open
4 tasks done

OCR recognize error of the WAR ARCHIVES stage #4537

Danielliu2008 opened this issue Jan 25, 2025 · 0 comments
Labels
bug / 缺陷 Something isn't working

Comments

@Danielliu2008
Copy link

Before you asking

  • I have searched the existing issues
  • I spend at least 5 minutes for thinking and preparing
  • I checked Frequently Asked Questions (FAQ) in Wiki page
  • I am using the latest version of Alas

Describe the bug

when using alas to finish war archives abyssal refrain , it had a problem when ocr the ui page after finishing a stage and getting ready for the next one. the OCR progress recognize the stage select page as the @BATTLE_STATUS_B page and keep touch the bottom right corner (the 0/60 sorties of the D3 boss stage to obtain the shipgirl) and got into the cycle.heres a video

default.mp4

By the way, theres an error ocr the enemy at stage A2 so it cant finish it as 3stars

Image

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

When using alas to finish the A* stage in abyssal refrain (@ war_archives_20220224_cn ), config like this
(json) "WarArchives": { "Scheduler": { "Enable": false, "NextRun": "2024-12-07 03:36:00", "Command": "WarArchives", "SuccessInterval": 30, "FailureInterval": 30, "ServerUpdate": "00:00" }, "Campaign": { "Name": "A2", "Event": "war_archives_20220224_cn", "Mode": "normal", "UseClearMode": true, "UseFleetLock": true, "UseAutoSearch": true, "Use2xBook": false, "AmbushEvade": true }, "StopCondition": { "OilLimit": 1000, "RunCount": 0, "MapAchievement": "map_3_stars", "StageIncrease": true, "GetNewShip": false, "ReachLevel": 0 }, "Fleet": { "Fleet1": 3, "Fleet1Formation": "double_line", "Fleet1Mode": "combat_auto", "Fleet1Step": 3, "Fleet2": 2, "Fleet2Formation": "double_line", "Fleet2Mode": "combat_auto", "Fleet2Step": 2, "FleetOrder": "fleet1_boss_fleet2_mob" }, "Submarine": { "Fleet": 1, "Mode": "every_combat", "AutoSearchMode": "sub_standby", "DistanceToBoss": "use_open_ocean_support" }, "Emotion": { "Mode": "calculate", "Fleet1Value": 117, "Fleet1Record": "2025-01-25 20:27:35", "Fleet1Control": "prevent_yellow_face", "Fleet1Recover": "not_in_dormitory", "Fleet1Oath": false, "Fleet2Value": 79, "Fleet2Record": "2025-01-25 20:27:35", "Fleet2Control": "prevent_yellow_face", "Fleet2Recover": "not_in_dormitory", "Fleet2Oath": false }, "HpControl": { "UseHpBalance": true, "UseEmergencyRepair": true, "UseLowHpRetreat": false, "HpBalanceThreshold": 0.2, "HpBalanceWeight": "1000, 1000, 1000", "RepairUseSingleThreshold": 0.3, "RepairUseMultiThreshold": 0.6, "LowHpRetreatThreshold": 0.3 }, "EnemyPriority": { "EnemyScaleBalanceWeight": "default_mode" }, "Storage": { "Storage": {} } },
after the stage, alas will recgonize the stage select page as the @BATTLE_STATUS_B then click and wait (forever

Relevant log output

──────────────────────────────────── BATTLE_6 ─────────────────────────────────────
INFO     20:27:16.233 │ BATTLE_6                                                   
INFO     20:27:16.235 │ Using function: clear_all                                  
INFO     20:27:16.237 │ Map has no ammo.                                           
INFO     20:27:16.238 │ Enemy remain: []                                           
INFO     20:27:16.239 │ Brute clear BOSS                                           
INFO     20:27:16.257 │ Fleet set to 2                                             
INFO     20:27:16.270 │ Fleet: 2, fleet_current_index: 1                           
INFO     20:27:16.272 │ Click (1040,  659) @ SWITCH_OVER                           
INFO     20:27:17.544 │ Fleet: 1, fleet_current_index: 2                           
INFO     20:27:17.683 │            tile_center: 0.920 (good match)                 
INFO     20:27:17.695 │ 0.075s      edge_lines: 1 hori, 1 vert                     
INFO     20:27:17.697 │ Edges: /     homo_loca: ( 31,  60)                         
INFO     20:27:17.704 │            center_loca: (2, 3)                             
INFO     20:27:17.706 │ [view.center_offset] [0.496409   0.50961541]               
INFO     20:27:17.709 │                 Camera: C1                                 
INFO     20:27:17.794 │ 0.083s         predict: 42                                 
INFO     20:27:17.796 │ -- -- -- -- -- -- -- --                                    
INFO     20:27:17.799 │ -- -- -- -- -- -- -- ..                                    
INFO     20:27:17.800 │ -- -- -- -- -- -- -- ..                                    
INFO     20:27:17.802 │ -- -- FL -- -- -- -- ..                                    
INFO     20:27:17.803 │ -- -- -- -- -- -- -- ..                                    
INFO     20:27:17.804 │ -- -- -- -- -- -- .. ..                                    
INFO     20:27:17.812 │       A    B    C    D    E    F    G    H                 
INFO     20:27:17.814 │  1 9999    1    0    1    2    3 9999 9999                 
INFO     20:27:17.816 │  2    3    2    1    2    3    4 9999 9999                 
INFO     20:27:17.818 │  3    4    3    2    3    4    5    6    7                 
INFO     20:27:17.820 │  4 9999 9999    3    4    5    6    7    8                 
INFO     20:27:17.821 │  5    8 9999    4    5    6 9999 9999 9999                 
INFO     20:27:17.823 │  6    7    6    5    6    7    8    9   10                 
INFO     20:27:17.824 │  7 9999    7    6    7    8    9   10   11                 
INFO     20:27:17.825 │  8    9    8    7    8    9   10   11   12                 
INFO     20:27:17.827 │  9   10 9999    8    9   10   11 9999 9999                 
INFO     20:27:17.829 │ 10   11   10    9   10   11   12   13 9999                 
INFO     20:27:17.831 │ Fleet_1: G6 [Fleet_2: C1]                                  
INFO     20:27:17.836 │ [HP]  98%  98%  98%  98%  98%  98%                         
INFO     20:27:17.839 │ Is boss: [H7]                                              
INFO     20:27:17.840 │ <<< CLEAR BOSS >>>                                         
INFO     20:27:17.842 │ Grids: [H7]                                                
INFO     20:27:17.842 │ targetEnemyScale:default_mode                              
INFO     20:27:17.843 │ Clear enemy: H7                                            
INFO     20:27:17.845 │ Fleet_1: G6 [Fleet_2: C1]                                  
INFO     20:27:17.863 │ Bind task ['General', 'Alas', 'WarArchives']               
INFO     20:27:17.866 │ Save config ./config\alas.json,                            
         WarArchives.Emotion.Fleet1Value=119,                                      
         WarArchives.Emotion.Fleet1Record=datetime.datetime(2025, 1, 25, 20, 27,   
         17), WarArchives.Emotion.Fleet2Value=79,                                  
         WarArchives.Emotion.Fleet2Record=datetime.datetime(2025, 1, 25, 20, 27,   
         17)                                                                       
INFO     20:27:17.876 │ [Emotion fleet_1] 119                                      
INFO     20:27:17.877 │ [Emotion fleet_2] 79                                       
INFO     20:27:17.879 │ Fleet set to 2                                             
INFO     20:27:17.889 │ Fleet: 1, fleet_current_index: 2                           
INFO     20:27:17.891 │ In sight: H7                                               
INFO     20:27:17.892 │ Focus to: E5                                               
INFO     20:27:17.893 │ Map swipe: (2, 3)                                          
INFO     20:27:17.897 │ Swipe (1148,  500) -> ( 859,  197)                         
INFO     20:27:18.474 │ [prev.center_offset] [0.496409   0.50961541]               
INFO     20:27:18.621 │            tile_center: 0.922 (good match)                 
INFO     20:27:18.636 │ 0.078s      edge_lines: 0 hori, 1 vert                     
INFO     20:27:18.637 │ Edges:   \   homo_loca: ( 48,  89)                         
INFO     20:27:18.642 │            center_loca: (4, 3)                             
INFO     20:27:18.644 │ [view.center_offset] [0.37498037 0.30247258]               
INFO     20:27:18.672 │ Map swipe predict: None (0.026s, no match)                 
INFO     20:27:18.675 │                 Camera: E4                                 
INFO     20:27:18.676 │                 Camera: E4                                 
INFO     20:27:18.743 │ 0.066s         predict: 43                                 
INFO     20:27:18.745 │ -- -- -- -- -- -- -- --                                    
INFO     20:27:18.746 │ .. -- -- -- -- -- -- --                                    
INFO     20:27:18.749 │ .. -- -- -- -- -- -- --                                    
INFO     20:27:18.750 │ .. -- -- ss -- -- -- --                                    
INFO     20:27:18.752 │ .. -- -- -- -- -- -- --                                    
INFO     20:27:18.753 │ .. -- -- -- -- -- Fl --                                    
INFO     20:27:18.755 │ Map swipe: (0, 1)                                          
INFO     20:27:18.759 │ Swipe ( 786,  491) -> ( 768,  367)                         
INFO     20:27:19.074 │ [prev.center_offset] [0.37498037 0.30247258]               
INFO     20:27:19.234 │            tile_center: 0.905 (good match)                 
INFO     20:27:19.255 │ 0.088s      edge_lines: 0 hori, 1 vert                     
INFO     20:27:19.257 │ Edges:   \   homo_loca: ( 31,  69)                         
INFO     20:27:19.263 │           grids_offset: (1, 0)                             
INFO     20:27:19.266 │            center_loca: (3, 3)                             
INFO     20:27:19.268 │ [view.center_offset] [0.49640892 0.44532973]               
INFO     20:27:19.298 │ Map swipe predict: None (0.029s, no match)                 
INFO     20:27:19.301 │                 Camera: E5                                 
INFO     20:27:19.303 │                 Camera: E5                                 
INFO     20:27:19.373 │ 0.069s         predict: 42                                 
INFO     20:27:19.375 │ -- -- -- -- -- -- --                                       
INFO     20:27:19.377 │ -- -- -- -- -- -- --                                       
INFO     20:27:19.378 │ -- -- -- -- -- -- --                                       
INFO     20:27:19.379 │ -- -- -- -- -- -- --                                       
INFO     20:27:19.382 │ -- -- -- -- -- -- --                                       
INFO     20:27:19.383 │ -- -- -- -- -- -- BO                                       
INFO     20:27:19.385 │ Map swipe: (0, 0)                                          
INFO     20:27:19.386 │ Global H7 (camera=E5) -> Local G6 (center=D4)              
INFO     20:27:19.388 │ Click (1060,  565) @ G6                                    
INFO     20:27:27.088 │ [Loading] 4%                                               
INFO     20:27:27.090 │ Combat preparation.                                        
INFO     20:27:27.117 │ Bind task ['General', 'Alas', 'WarArchives']               
INFO     20:27:27.121 │ Save config ./config\alas.json,                            
         WarArchives.Emotion.Fleet1Value=119,                                      
         WarArchives.Emotion.Fleet1Record=datetime.datetime(2025, 1, 25, 20, 27,   
         27), WarArchives.Emotion.Fleet2Value=79,                                  
         WarArchives.Emotion.Fleet2Record=datetime.datetime(2025, 1, 25, 20, 27,   
         27)                                                                       
INFO     20:27:27.133 │ [Emotion fleet_1] 119                                      
INFO     20:27:27.135 │ [Emotion fleet_2] 79                                       
INFO     20:27:27.162 │ [Loading] 4%                                               
INFO     20:27:27.166 │ Screenshot interval set to 1.0s                            
INFO     20:27:35.069 │ [BattleUI] PAUSE                                           
INFO     20:27:35.070 │ <<< EMOTION REDUCE >>>                                     
INFO     20:27:35.086 │ Bind task ['General', 'Alas', 'WarArchives']               
INFO     20:27:35.088 │ Save config ./config\alas.json,                            
         WarArchives.Emotion.Fleet1Value=117,                                      
         WarArchives.Emotion.Fleet1Record=datetime.datetime(2025, 1, 25, 20, 27,   
         35), WarArchives.Emotion.Fleet2Value=79,                                  
         WarArchives.Emotion.Fleet2Record=datetime.datetime(2025, 1, 25, 20, 27,   
         35)                                                                       
INFO     20:27:35.102 │ [Emotion fleet_1] 117                                      
INFO     20:27:35.103 │ [Emotion fleet_2] 79                                       
INFO     20:27:35.104 │ Combat execute                                             
INFO     20:27:41.115 │ Combat auto check timer reached                            
INFO     20:27:41.119 │ Submarine call timer reached                               
INFO     20:27:46.382 │ Click (1012,  673) @ BATTLE_STATUS_S                       
INFO     20:27:46.448 │ Combat status                                              
INFO     20:27:46.449 │ [expected_end] in_stage                                    
INFO     20:27:46.451 │ Screenshot interval set to 0.3s                            
INFO     20:27:46.925 │ Click (1023,  639) @ BATTLE_STATUS_S                       
INFO     20:27:47.103 │ Click (1013,  670) @ GET_ITEMS_1                           
INFO     20:27:47.718 │ Click (1006,  675) @ GET_SHIP                              
INFO     20:27:48.896 │ Click (1023,  645) @ GET_SHIP                              
INFO     20:27:51.608 │ Click (1239,  646) @ EXP_INFO_S                            
INFO     20:27:52.156 │ Click (1201,  639) @ EXP_INFO_S                            
INFO     20:27:52.717 │ Click (1198,  639) @ EXP_INFO_S                            
INFO     20:27:53.279 │ Click (1184,  640) @ EXP_INFO_S                            
INFO     20:27:54.429 │ Click (1194,  641) @ EXP_INFO_B                            
INFO     20:27:56.214 │ Click (1210,  638) @ EXP_INFO_B

Screenshots

No response

Anything else?

No response

@Danielliu2008 Danielliu2008 added the bug / 缺陷 Something isn't working label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / 缺陷 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant