Operation Siren Zone Name OCR Error
Before you asking
- [x] I have searched the existing issues
- [x] I spend at least 5 minutes for thinking and preparing
- [x] I checked Frequently Asked Questions (FAQ) in Wiki page
- [x] I am using the latest version of Alas
Describe the bug
When running the opsi_hazard1_leveling task in Operation Siren, the OCR module misreads the zone name of "NA Ocean SW Sector B" (zone ID 22) as "naoceanswsectorb/鑫". This causes a MapDetectionError because the processed name does not match any known zone in the game data. The error occurs repeatedly after completing an auto‑search and collecting rewards, suggesting that a UI overlay (possibly a reward popup or a persistent shop icon) is being captured along with the zone name.
To Reproduce
- Start the opsi_hazard1_leveling task while in zone 22 (NA Ocean SW Sector B).
- Let the task complete several auto‑search cycles and clear map events (e.g., scanning device, merchant).
- Observe that after the auto‑search finishes and the script attempts to collect rewards or handle post‑battle screens, the next zone name check fails with the error.
- The error is consistently reproducible in the same zone after event resolution.
Expected behavior
The OCR should correctly read the zone name as "NA Ocean SW Sector B" (or a variation that maps to zone 22) and allow the task to continue without crashing.
Relevant log output
─────────────────────────────────────────────────── MAP RESCAN FULL ───────────────────────────────────────────────────
2026-03-18 11:33:43.997 | INFO | MAP RESCAN FULL
2026-03-18 11:33:43.998 | INFO | <<< MAP INIT >>>
2026-03-18 11:33:44.004 | INFO | Load map_data, has_loop=False, use_loop=False
2026-03-18 11:33:44.007 | INFO | Load spawn_data, has_loop=False, use_loop=False
2026-03-18 11:33:44.009 | INFO | grid_connection: wall=False, portal=False
2026-03-18 11:33:44.016 | INFO | Load mechanism, land_base=False, maze=False, fortress=False, bouncing_enemy=False
2026-03-18 11:33:44.290 | INFO | tile_center: 0.942 (good match)
2026-03-18 11:33:44.307 | INFO | 0.135s edge_lines: 0 hori, 1 vert
2026-03-18 11:33:44.309 | INFO | Edges: / homo_loca: ( 52, 58)
2026-03-18 11:33:44.317 | INFO | center_loca: (0, 4)
2026-03-18 11:33:44.319 | INFO | [view.center_offset] [0.51604315 0.50640643]
2026-03-18 11:33:44.321 | INFO | Camera: A7
2026-03-18 11:33:44.385 | INFO | 0.063s predict: 51
2026-03-18 11:33:44.388 | INFO | -- -- -- -- -- -- --
2026-03-18 11:33:44.390 | INFO | -- -- -- -- -- -- --
2026-03-18 11:33:44.391 | INFO | -- -- -- -- -- -- --
2026-03-18 11:33:44.392 | INFO | -- -- -- -- -- -- ..
2026-03-18 11:33:44.394 | INFO | FL -- -- -- -- -- ..
2026-03-18 11:33:44.396 | INFO | -- -- -- -- -- -- ..
2026-03-18 11:33:44.398 | INFO | -- -- -- -- -- -- ..
2026-03-18 11:33:44.401 | INFO | -- -- -- -- -- -- ..
2026-03-18 11:33:44.407 | INFO | [HP] 98% 98% 98% 98% 98% 98%
2026-03-18 11:33:44.412 | INFO | [Repair icon] [False, False, False, False, False, False]
2026-03-18 11:33:44.415 | INFO | Ensure edge in sight.
2026-03-18 11:33:44.417 | INFO | Map swipe: (0, -5)
2026-03-18 11:33:44.422 | INFO | Swipe ( 569, 191) -> ( 571, 586)
2026-03-18 11:33:44.866 | INFO | [prev.center_offset] [0.51604315 0.50640643]
2026-03-18 11:33:45.163 | INFO | tile_center: 0.942 (good match)
2026-03-18 11:33:45.181 | INFO | 0.141s _ edge_lines: 1 hori, 1 vert
2026-03-18 11:33:45.183 | INFO | Edges: / homo_loca: ( 54, 27)
2026-03-18 11:33:45.191 | INFO | center_loca: (0, 1)
2026-03-18 11:33:45.193 | INFO | [view.center_offset] [0.50175733 0.72783509]
2026-03-18 11:33:45.196 | INFO | Camera: A2
2026-03-18 11:33:45.197 | INFO | Camera: A2
2026-03-18 11:33:45.233 | INFO | 0.035s predict: 30
2026-03-18 11:33:45.235 | INFO | -- -- -- -- -- --
2026-03-18 11:33:45.237 | INFO | -- -- -- -- -- --
2026-03-18 11:33:45.237 | INFO | -- -- -- -- -- --
2026-03-18 11:33:45.239 | INFO | -- -- -- -- -- --
2026-03-18 11:33:45.240 | INFO | -- -- -- -- -- --
2026-03-18 11:33:45.242 | INFO | Map swipe: (0, 0)
2026-03-18 11:33:45.243 | INFO | <<< MAP RESCAN E2 >>>
2026-03-18 11:33:45.245 | INFO | Focus to: E2
2026-03-18 11:33:45.247 | INFO | Map swipe: (4, 0)
2026-03-18 11:33:45.249 | INFO | Swipe ( 940, 285) -> ( 498, 303)
2026-03-18 11:33:45.698 | INFO | [prev.center_offset] [0.50175733 0.72783509]
2026-03-18 11:33:45.962 | INFO | tile_center: 0.939 (good match)
2026-03-18 11:33:45.982 | INFO | 0.122s _ edge_lines: 1 hori, 2 vert
2026-03-18 11:33:45.984 | INFO | Edges: / \ homo_loca: ( 75, 57)
2026-03-18 11:33:45.991 | INFO | center_loca: (4, 1)
2026-03-18 11:33:45.993 | INFO | [view.center_offset] [0.35175737 0.51354907]
2026-03-18 11:33:45.995 | INFO | Camera: E2
2026-03-18 11:33:45.996 | INFO | Camera: E2
2026-03-18 11:33:46.056 | INFO | 0.058s predict: 40
2026-03-18 11:33:46.058 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.061 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.064 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.065 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.068 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.071 | INFO | Map swipe: (0, 0)
2026-03-18 11:33:46.073 | INFO | No map event
2026-03-18 11:33:46.075 | INFO | <<< MAP RESCAN E7 >>>
2026-03-18 11:33:46.077 | INFO | Focus to: E7
2026-03-18 11:33:46.078 | INFO | Map swipe: (0, 5)
2026-03-18 11:33:46.080 | INFO | Swipe ( 592, 590) -> ( 576, 197)
2026-03-18 11:33:46.515 | INFO | [prev.center_offset] [0.35175737 0.51354907]
2026-03-18 11:33:46.788 | INFO | tile_center: 0.942 (good match)
2026-03-18 11:33:46.808 | INFO | 0.129s edge_lines: 0 hori, 2 vert
2026-03-18 11:33:46.810 | INFO | Edges: / \ homo_loca: ( 54, 86)
2026-03-18 11:33:46.821 | INFO | center_loca: (4, 4)
2026-03-18 11:33:46.823 | INFO | [view.center_offset] [0.5017574 0.30640646]
2026-03-18 11:33:46.826 | INFO | Camera: E7
2026-03-18 11:33:46.828 | INFO | Camera: E7
2026-03-18 11:33:46.923 | INFO | 0.093s predict: 63
2026-03-18 11:33:46.925 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.927 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.928 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.930 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.930 | INFO | FL -- -- -- -- -- -- --
2026-03-18 11:33:46.932 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.934 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:46.936 | INFO | .. -- -- -- -- -- -- --
2026-03-18 11:33:46.938 | INFO | Map swipe: (0, 0)
2026-03-18 11:33:46.940 | INFO | No map event
2026-03-18 11:33:46.942 | INFO | <<< MAP RESCAN E10 >>>
2026-03-18 11:33:46.944 | INFO | Focus to: E10
2026-03-18 11:33:46.946 | INFO | Map swipe: (0, 3)
2026-03-18 11:33:46.948 | INFO | Swipe ( 739, 492) -> ( 739, 236)
2026-03-18 11:33:47.304 | INFO | [prev.center_offset] [0.5017574 0.30640646]
2026-03-18 11:33:47.560 | INFO | tile_center: 0.955 (good match)
2026-03-18 11:33:47.591 | INFO | 0.143s edge_lines: 0 hori, 2 vert
2026-03-18 11:33:47.594 | INFO | Edges: / \ homo_loca: ( 54, 65)
2026-03-18 11:33:47.607 | INFO | center_loca: (4, 4)
2026-03-18 11:33:47.610 | INFO | [view.center_offset] [0.50175742 0.45640643]
2026-03-18 11:33:47.612 | INFO | Camera: E10
2026-03-18 11:33:47.614 | INFO | Camera: E10
2026-03-18 11:33:47.690 | INFO | 0.074s predict: 63
2026-03-18 11:33:47.692 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:47.693 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:47.695 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:47.697 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:47.698 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:47.701 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:47.703 | INFO | -- -- -- -- -- -- -- --
2026-03-18 11:33:47.705 | INFO | .. -- -- -- -- -- -- --
2026-03-18 11:33:47.706 | INFO | Map swipe: (0, 0)
2026-03-18 11:33:47.709 | INFO | No map event
2026-03-18 11:33:47.711 | INFO | Map rescan once end, result=False
2026-03-18 11:33:47.712 | INFO | [Solved_map_event] set()
2026-03-18 11:33:47.714 | INFO | <<< FLEET SET TO 1 >>>
2026-03-18 11:33:47.726 | INFO | It is fleet 1 already
────────────────────────────────────────────────── AFTER AUTO SEARCH ──────────────────────────────────────────────────
2026-03-18 11:33:47.729 | INFO | AFTER AUTO SEARCH
2026-03-18 11:33:47.732 | INFO | No EMP debuff on current fleet
2026-03-18 11:33:47.740 | INFO | [HP] 98% 98% 98% 98% 98% 98%
2026-03-18 11:33:47.746 | INFO | [Repair icon] [False, False, False, False, False, False]
2026-03-18 11:33:47.748 | INFO | No ship found to be below threshold 40%, continue OS exploration
2026-03-18 11:33:47.749 | INFO | Handle after auto search finished, solved=False
2026-03-18 11:33:47.766 | INFO | Pending tasks: ['OpsiHazard1Leveling']
2026-03-18 11:33:47.768 | INFO | [Task] OpsiHazard1Leveling (Enable, 2026-03-17 19:59:24)
2026-03-18 11:33:47.770 | INFO | Continue task `OpsiHazard1Leveling (Enable, 2026-03-17 19:59:24)`
2026-03-18 11:33:47.771 | INFO | [OS_ACTION_POINT_PRESERVE] 200
2026-03-18 11:33:47.817 | INFO | [SHOP_YELLOW_COINS 0.045s] 271965
2026-03-18 11:33:47.951 | INFO | [MAP_NAME 0.132s] NA OceanswsectorB/鑫
2026-03-18 11:33:47.957 | INFO | Map name processed: naoceanswsectorb/鑫
2026-03-18 11:33:47.959 | ERROR | MapDetectionError: Unable to find OS globe zone: naoceanswsectorb/鑫
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ │
│ C:\Users\Shimakaze\Desktop\AzurLaneAutoScript\module\os\map_operation.py:146 in get_current_zone │
│ │
│ 143 │ │ name = self.get_zone_name() │
│ 144 │ │ logger.info(f'Map name processed: {name}') │
│ 145 │ │ try: │
│ > 146 │ │ │ self.zone = self.name_to_zone(name) │
│ 147 │ │ except ScriptError as e: │
│ 148 │ │ │ raise MapDetectionError(*e.args) │
│ 149 │ │ logger.attr('Zone', self.zone) │
│ │
│ ┌──────────────────────────────────── locals ────────────────────────────────────┐ │
│ │ name = 'naoceanswsectorb/鑫' │ │
│ │ self = <module.os.operation_siren.OperationSiren object at 0x0000021649A28808> │ │
│ └────────────────────────────────────────────────────────────────────────────────┘ │
│ C:\Users\Shimakaze\Desktop\AzurLaneAutoScript\module\os\globe_zone.py:146 in name_to_zone │
│ │
│ 143 │ │ │ for keyword in ['普通', '困難', '仲裁']: │
│ 144 │ │ │ │ if keyword in name: │
│ 145 │ │ │ │ │ return self.name_to_zone(154) │
│ > 146 │ │ │ raise ScriptError(f'Unable to find OS globe zone: {name}') │
│ 147 │ │
│ 148 │ def zone_nearest_azur_port(self, zone): │
│ 149 │ │ """ │
│ │
│ ┌────────────────────────────────────────── locals ──────────────────────────────────────────┐ │
│ │ keyword = '仲裁' │ │
│ │ name = 'naoceanswsectorb/鑫' │ │
│ │ parse_name = <function ZoneManager.name_to_zone.<locals>.parse_name at 0x00000216781EDB88> │ │
│ │ self = <module.os.operation_siren.OperationSiren object at 0x0000021649A28808> │ │
│ │ zone = [159|NA Ocean Depths H] │ │
│ └────────────────────────────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ScriptError: Unable to find OS globe zone: naoceanswsectorb/鑫
During handling of the above exception, another exception occurred:
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ │
│ C:\Users\Shimakaze\Desktop\AzurLaneAutoScript\alas.py:69 in run │
│ │
│ 66 │ │ try: │
│ 67 │ │ │ if not skip_first_screenshot: │
│ 68 │ │ │ │ self.device.screenshot() │
│ > 69 │ │ │ self.__getattribute__(command)() │
│ 70 │ │ │ return True │
│ 71 │ │ except TaskEnd: │
│ 72 │ │ │ return True │
│ │
│ ┌──────────────────────────────────────────── locals ────────────────────────────────────────────┐ │
│ │ command = 'opsi_hazard1_leveling' │ │
│ │ e = MapDetectionError('Unable to find OS globe zone: naoceanswsectorb/鑫') │ │
│ │ self = <alas.AzurLaneAutoScript object at 0x0000021647FB4108> │ │
│ │ skip_first_screenshot = False │ │
│ └────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ C:\Users\Shimakaze\Desktop\AzurLaneAutoScript\alas.py:343 in opsi_hazard1_leveling │
│ │
│ 340 │ │
│ 341 │ def opsi_hazard1_leveling(self): │
│ 342 │ │ from module.campaign.os_run import OSCampaignRun │
│ > 343 │ │ OSCampaignRun(config=self.config, device=self.device).opsi_hazard1_leveling() │
│ 344 │ │
│ 345 │ def opsi_cross_month(self): │
│ 346 │ │ from module.campaign.os_run import OSCampaignRun │
│ │
│ ┌──────────────────────────────── locals ────────────────────────────────┐ │
│ │ OSCampaignRun = <class 'module.campaign.os_run.OSCampaignRun'> │ │
│ │ self = <alas.AzurLaneAutoScript object at 0x0000021647FB4108> │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\Shimakaze\Desktop\AzurLaneAutoScript\module\campaign\os_run.py:62 in opsi_hazard1_leveling │
│ │
│ 59 │ def opsi_hazard1_leveling(self): │
│ 60 │ │ try: │
│ 61 │ │ │ campaign = self.load_campaign() │
│ > 62 │ │ │ campaign.os_hazard1_leveling() │
│ 63 │ │ except ActionPointLimit: │
│ 64 │ │ │ self.config.task_delay(server_update=True) │
│ 65 │
│ │
│ ┌────────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ campaign = <module.os.operation_siren.OperationSiren object at 0x0000021649A28808> │ │
│ │ self = <module.campaign.os_run.OSCampaignRun object at 0x0000021600393148> │ │
│ └────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\Shimakaze\Desktop\AzurLaneAutoScript\module\os\tasks\hazard_leveling.py:33 in os_hazard1_leveling │
│ │
│ 30 │ │ │ │ │ │ self.config.task_call('OpsiMeowfficerFarming') │
│ 31 │ │ │ │ self.config.task_stop() │
│ 32 │ │ │ │
│ > 33 │ │ │ self.get_current_zone() │
│ 34 │ │ │ │
│ 35 │ │ │ # Preset action point to 70 │
│ 36 │ │ │ # When running CL1 oil is for running CL1, not meowfficer farming │
│ │
│ ┌───────────────────────────────────────── locals ──────────────────────────────────────────┐ │
│ │ keep_current_ap = True │ │
│ │ self = <module.os.operation_siren.OperationSiren object at 0x0000021649A28808> │ │
│ │ zone = 22 │ │
│ └───────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\Shimakaze\Desktop\AzurLaneAutoScript\module\os\map_operation.py:148 in get_current_zone │
│ │
│ 145 │ │ try: │
│ 146 │ │ │ self.zone = self.name_to_zone(name) │
│ 147 │ │ except ScriptError as e: │
│ > 148 │ │ │ raise MapDetectionError(*e.args) │
│ 149 │ │ logger.attr('Zone', self.zone) │
│ 150 │ │ self.zone_config_set() │
│ 151 │ │ return self.zone │
│ │
│ ┌──────────────────────────────────── locals ────────────────────────────────────┐ │
│ │ name = 'naoceanswsectorb/鑫' │ │
│ │ self = <module.os.operation_siren.OperationSiren object at 0x0000021649A28808> │ │
│ └────────────────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
MapDetectionError: Unable to find OS globe zone: naoceanswsectorb/鑫
2026-03-18 11:33:48.655 | WARNING | Saving error: ./log/error/1773786828655
Screenshots
Anything else?
No response
post screenshot in ./log/error/1773786828655