AzurLaneAutoScript icon indicating copy to clipboard operation
AzurLaneAutoScript copied to clipboard

manual install questions and other random questions regarding code and bugs in EN

Open dragonheart107 opened this issue 1 year ago • 6 comments

1. Since my emulator came already with ATX preinstalled i can skip this step, right? grafik

Following Manual Installation Tutorial I get everything up to the point where I run gui.py, which is succesfull?


════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                                                                                                                   START
════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                                                                                                                   START
════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
INFO     2024-12-25 18:09:38.386 │ <<< LAUNCHER CONFIG >>>
INFO     2024-12-25 18:09:38.387 │ [Host] 0.0.0.0
INFO     2024-12-25 18:09:38.388 │ [Port] 22267
INFO     2024-12-25 18:09:38.390 │ [Electron] False
INFO     2024-12-25 18:09:38.390 │ [Reload] True
INFO     2024-12-25 18:09:38.623 │ Patched ThreadPoolExecutor created
INFO     2024-12-25 18:09:38.628 │ <<< WEBUI CONFIGS >>>
INFO     2024-12-25 18:09:38.629 │ [Theme] default
INFO     2024-12-25 18:09:38.630 │ [Language] en-US
INFO     2024-12-25 18:09:38.632 │ [Password] False
INFO     2024-12-25 18:09:38.633 │ [CDN] False
INFO     2024-12-25 18:09:38.634 │ [IS_ON_PHONE_CLOUD] False
INFO:     Started server process [21296]
INFO:     Waiting for application startup.
════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                                                                                                                   START
════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
read: ./submodule\AlasMaaBridge\./module/config/i18n\zh-CN.json
read: ./submodule\AlasFpyBridge\./module/config/i18n\zh-CN.json
read: ./module/config/i18n\zh-CN.json
read: ./submodule\AlasMaaBridge\./module/config/i18n\en-US.json
read: ./submodule\AlasFpyBridge\./module/config/i18n\en-US.json
read: ./module/config/i18n\en-US.json
read: ./submodule\AlasMaaBridge\./module/config/i18n\ja-JP.json
read: ./submodule\AlasFpyBridge\./module/config/i18n\ja-JP.json
read: ./module/config/i18n\ja-JP.json
read: ./submodule\AlasMaaBridge\./module/config/i18n\zh-TW.json
read: ./submodule\AlasFpyBridge\./module/config/i18n\zh-TW.json
read: ./module/config/i18n\zh-TW.json
INFO     2024-12-25 18:09:38.766 │ Add task <check_update (delay=300)>
INFO     2024-12-25 18:09:38.767 │ Add task <schedule_update (delay=86400)>
INFO     2024-12-25 18:09:38.769 │ Start task handler
INFO     2024-12-25 18:09:38.769 │ <<< RESTART ALAS >>>
WARNING  2024-12-25 18:09:38.770 │ GitExecutable: c:/Users/Alex/Desktop/GachaAutoTools/contribution/AzurLaneAutoScript/toolkit/Git/mingw64/bin/git.exe does not exist, use `git` instead
INFO     2024-12-25 18:09:38.773 │ "git" fetch origin master
INFO     2024-12-25 18:09:38.773 │ Start alas complete
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:22267 (Press CTRL+C to quit)
From https://github.com/LmeSzinc/AzurLaneAutoScript
 * branch                master     -> FETCH_HEAD
INFO     2024-12-25 18:09:39.211 │ [ success ]
INFO     2024-12-25 18:09:39.261 │ New update available
INFO     2024-12-25 18:09:39.262 │ 63bd1fc3 - Merge pull request #4450 from LmeSzinc/dev

~~The wiki then refers me to go back to 'Configure Alas, referring to "Start Using Alas" part.' What do I have to run then though? config.py?~~ Edit: Well figured out how to run ALAS

Also I assume since I failed at this point it would cause the issue: ModuleNotFoundError: No module named 'module' when trying button_extract.py

2. Where do i find the complete explanation/definition for the abbreviations of this:


MAP.map_data = """
    MB MB ++ -- ME -- ME ++ ++
    -- ME ++ ME -- Me -- SP SP
    -- -- Me Me Me -- -- ME ME
    ME  -- Me -- ME -- -- ME
    MM ME -- -- Me -- -- ME ++
    ++ ++ ++ -- ++ -- ME ME ME
    Me MB ME  -- -- Me MM ME
    ME -- -- -- ME ME ++ ++ ME
"""

I managed to understand this so far:

SP = fleet spawns MB = possible boss spawns ME = possible enemy spawns (including special spawns that get removed in clearing mode) MM = chapter 14 flares MA = ammo resupply __ = submarine spawns -- = no spawns ++ = non traversable terrain

How to add a definition for the lighthouse locations in Chapter 14 or is that not needed?

I wanted to optimize chapter 14-4 so that ALAS always goes to pick up flares before any battle, then moves to B8 (when it is non clear mode) to clear the way to the lighthouse, take lighthouse at A9 and then do 1 (in clear mode 2 more) fight, go pick up ammo, fight once, then ammo again to exploit the bonus damage you get when you are at 5/5 and 4/5 ammo for 5 fights in total (5ammo-fight1-4a-f2-3a-ammorefill 2/3-5a-f3-4a-f4-3a-ar 3/3-4a-f5). I got the result I wanted with this:

class Campaign(CampaignBase):
    MAP = MAP

    def map_data_init(self, map_):
        super().map_data_init(map_)
        for override_grid in OVERRIDE:
            # Set may_enemy, but keep may_ambush
            self.map[override_grid.location].may_enemy = override_grid.may_enemy
        self.pick_up_light_house(A9)
        self.pick_up_flare(A5)
        self.pick_up_flare(H9)

    def battle_0(self):
        self.pick_up_light_house(A9)
        self.pick_up_flare(A5)
        self.pick_up_flare(H9)

        if self.clear_roadblocks([road_A8, road_H9], weakest=False):
            return True
        if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=1):
            return True

        return self.battle_default()

    def battle_1(self):
        self.pick_up_light_house(A9)
        self.pick_up_ammo(H5)
        self.pick_up_flare(A5)
        self.pick_up_flare(H9)

        return self.battle_default()

    def battle_3(self):
        self.pick_up_ammo(H5)

        return self.battle_default()

    def battle_7(self):

        return self.fleet_boss.clear_boss()

Though sometimes this seems to have start-up issues as I sometimes get the following error, which is fixed by trying again:

2024-12-25 19:51:10.381 | INFO | 14-4                                                                                  
2024-12-25 19:51:10.382 | INFO | Expect emotion reduce: (14, 2)                                                        
2024-12-25 19:51:10.391 | INFO | Bind task ['General', 'Alas', 'Main']                                                 
2024-12-25 19:51:10.391 | INFO | Save config ./config\alas.json, Main.Emotion.Fleet1Value=145,                         
Main.Emotion.Fleet1Record=datetime.datetime(2024, 12, 25, 19, 51, 10), Main.Emotion.Fleet2Value=117,                   
Main.Emotion.Fleet2Record=datetime.datetime(2024, 12, 25, 19, 51, 10)                                                  
2024-12-25 19:51:10.396 | INFO | [Emotion fleet_1] 145                                                                 
2024-12-25 19:51:10.397 | INFO | [Emotion fleet_2] 117                                                                 
2024-12-25 19:51:10.398 | INFO | <<< ENTER MAP >>>                                                                     
2024-12-25 19:51:10.424 | INFO | Click ( 657,  259) @ 14-4                                                             
2024-12-25 19:51:10.875 | INFO | [Map_clear_percentage] 18%                                                            
2024-12-25 19:51:11.289 | INFO | [Map_clear_percentage] 79%                                                            
2024-12-25 19:51:11.568 | INFO | [Map_clear_percentage] 99%                                                            
2024-12-25 19:51:11.568 | INFO | [MAP_CLEAR_ALL_THIS_TIME] False                                                       
2024-12-25 19:51:11.569 | INFO | [Map_info] 99%, star_1, star_2, star_3, 100_percent_clear, 3_stars, threat_safe,      
clear_mode                                                                                                             
2024-12-25 19:51:11.570 | INFO | [StopCondition_MapAchievement] non_stop                                               
2024-12-25 19:51:11.570 | INFO | Fast_Forward set to on                                                                
2024-12-25 19:51:11.572 | INFO | [Fast_Forward] off                                                                    
2024-12-25 19:51:11.572 | INFO | Click (1004,  592) @ FAST_FORWARD_OFF                                                 
2024-12-25 19:51:11.855 | INFO | [Fast_Forward] on                                                                     
2024-12-25 19:51:11.866 | INFO | No auto search option.                                                                
2024-12-25 19:51:11.867 | INFO | Click ( 920,  535) @ MAP_PREPARATION                                                  
2024-12-25 19:51:12.464 | INFO | Handling 2x book setting, mode=prep.                                                  
2024-12-25 19:51:12.471 | INFO | Click ( 706,  586) @ BOOK_BOX_PREP                                                    
2024-12-25 19:51:15.475 | INFO | Using fleet: [1, 2, 0]                                                                
2024-12-25 19:51:15.517 | INFO | Hard satisfied: Fleet_1: None, Fleet_2: None, Submarine: None                         
2024-12-25 19:51:15.520 | INFO | Click (1120,  479) @ SUBMARINE_CLEAR                                                  
2024-12-25 19:51:15.788 | INFO | Click (1133,  318) @ FLEET_2_CLEAR                                                    
2024-12-25 19:51:16.056 | INFO | Click (1045,  233) @ FLEET_1_CHOOSE                                                   
2024-12-25 19:51:16.382 | INFO | Current selected: [1]                                                                 
2024-12-25 19:51:16.383 | INFO | Click (1057,  240) @ FLEET_1_CHOOSE                                                   
2024-12-25 19:51:16.648 | INFO | Click (1018,  327) @ FLEET_2_CHOOSE                                                   
2024-12-25 19:51:17.027 | INFO | Current selected: [1]                                                                 
2024-12-25 19:51:17.028 | INFO | Click (1089,  444) @ FLEET_2_BAR_INDEX_2                                              
2024-12-25 19:51:17.242 | INFO | Click (1048,  581) @ FLEET_PREPARATION                                                
2024-12-25 19:51:22.426 | INFO | Enemy searching appeared.                                                             
2024-12-25 19:51:22.605 | INFO | Fleet_Lock set to on                                                                  
2024-12-25 19:51:22.606 | INFO | [Fleet_Lock] on                                                                       
2024-12-25 19:51:22.607 | INFO | <<< MAP INIT >>>                                                                      
2024-12-25 19:51:22.608 | INFO | Load map_data, has_loop=False, use_loop=True                                          
2024-12-25 19:51:22.608 | INFO | Load spawn_data, has_loop=True, use_loop=True                                         
2024-12-25 19:51:22.609 | INFO | grid_connection: wall=False, portal=False                                             
2024-12-25 19:51:22.611 | INFO | Load mechanism, land_base=False, maze=False, fortress=False, bouncing_enemy=False     
2024-12-25 19:51:22.611 | INFO | Pick up light house on A9                                                             
2024-12-25 19:51:22.612 | INFO | Fleet set to 1                                                                        
2024-12-25 19:51:22.618 | INFO | Fleet: 1, fleet_current_index: 1                                                      
2024-12-25 19:51:22.620 | INFO | In sight: A9                                                                          
2024-12-25 19:51:22.620 | INFO | Focus to: A7                                                                          
2024-12-25 19:51:22.621 | INFO | Map swipe: (0, 3)                                                                     
2024-12-25 19:51:22.622 | ERROR | AttributeError: 'Campaign' object has no attribute 'view'                            
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\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 = 'main'                                                      │                             │
│ │                     e = AttributeError("'Campaign' object has no attribute 'view'") │                             │
│ │                  self = <alas.AzurLaneAutoScript object at 0x000001DE42F46D48>      │                             │
│ │ skip_first_screenshot = False                                                       │                             │
│ └─────────────────────────────────────────────────────────────────────────────────────┘                             │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\alas.py:344 in main                                │
│                                                                                                                     │
│   341 │   def main(self):                                                                                           │
│   342 │   │   from module.campaign.run import CampaignRun                                                           │
│   343 │   │   CampaignRun(config=self.config, device=self.device).run(                                              │
│ > 344 │   │   │   name=self.config.Campaign_Name, folder=self.config.Campaign_Event,                                │
│       mode=self.config.Campaign_Mode)                                                                               │
│   345 │                                                                                                             │
│   346 │   def main2(self):                                                                                          │
│   347 │   │   from module.campaign.run import CampaignRun                                                           │
│                                                                                                                     │
│ ┌─────────────────────────────── locals ───────────────────────────────┐                                            │
│ │ CampaignRun = <class 'module.campaign.run.CampaignRun'>              │                                            │
│ │        self = <alas.AzurLaneAutoScript object at 0x000001DE42F46D48> │                                            │
│ └──────────────────────────────────────────────────────────────────────┘                                            │
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\module\campaign\run.py:394 in run                  │
│                                                                                                                     │
│   391 │   │   │   self.device.stuck_record_clear()                                                                  │
│   392 │   │   │   self.device.click_record_clear()                                                                  │
│   393 │   │   │   try:                                                                                              │
│ > 394 │   │   │   │   self.campaign.run()                                                                           │
│   395 │   │   │   except ScriptEnd as e:                                                                            │
│   396 │   │   │   │   logger.hr('Script end')                                                                       │
│   397 │   │   │   │   logger.info(str(e))                                                                           │
│                                                                                                                     │
│ ┌──────────────────────────────── locals ─────────────────────────────────┐                                         │
│ │ folder = 'campaign_main'                                                │                                         │
│ │   mode = 'normal'                                                       │                                         │
│ │   name = 'campaign_14_4'                                                │                                         │
│ │   self = <module.campaign.run.CampaignRun object at 0x000001DE03D719C8> │                                         │
│ │  total = 0                                                              │                                         │
│ └─────────────────────────────────────────────────────────────────────────┘                                         │
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\module\campaign\campaign_base.py:130 in run        │
│                                                                                                                     │
│   127 │   │   # Map init                                                                                            │
│   128 │   │   if not self.map_is_auto_search:                                                                       │
│   129 │   │   │   self.handle_map_fleet_lock()                                                                      │
│ > 130 │   │   │   self.map_init(self.MAP)                                                                           │
│   131 │   │   else:                                                                                                 │
│   132 │   │   │   self.map = self.MAP                                                                               │
│   133 │   │   │   self.battle_count = 0                                                                             │
│                                                                                                                     │
│ ┌────────────────────────────────────── locals ───────────────────────────────────────┐                             │
│ │ self = <campaign.campaign_main.campaign_14_4.Campaign object at 0x000001DE220B2F08> │                             │
│ └─────────────────────────────────────────────────────────────────────────────────────┘                             │
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\module\map\fleet.py:839 in map_init                │
│                                                                                                                     │
│    836 │   │   │   map_ (CampaignMap):                                                                              │
│    837 │   │   """                                                                                                  │
│    838 │   │   logger.hr('Map init')                                                                                │
│ >  839 │   │   self.map_data_init(map_)                                                                             │
│    840 │   │   self.map_control_init()                                                                              │
│    841 │                                                                                                            │
│    842 │   def map_data_init(self, map_):                                                                           │
│                                                                                                                     │
│ ┌────────────────────────────────────── locals ───────────────────────────────────────┐                             │
│ │ map_ = <module.map.map_base.CampaignMap object at 0x000001DE03E2A748>               │                             │
│ │ self = <campaign.campaign_main.campaign_14_4.Campaign object at 0x000001DE220B2F08> │                             │
│ └─────────────────────────────────────────────────────────────────────────────────────┘                             │
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\campaign\campaign_main\campaign_14_4.py:113 in     │
│ map_data_init                                                                                                       │
│                                                                                                                     │
│   110 │   │   for override_grid in OVERRIDE:                                                                        │
│   111 │   │   │   # Set may_enemy, but keep may_ambush                                                              │
│   112 │   │   │   self.map[override_grid.location].may_enemy = override_grid.may_enemy                              │
│ > 113 │   │   self.pick_up_light_house(A9)                                                                          │
│   114 │   │   self.pick_up_flare(A5)                                                                                │
│   115 │   │   self.pick_up_flare(H9)                                                                                │
│   116                                                                                                               │
│                                                                                                                     │
│ ┌─────────────────────────────────────────── locals ───────────────────────────────────────────┐                    │
│ │     __class__ = <class 'campaign.campaign_main.campaign_14_4.Campaign'>                      │                    │
│ │          map_ = <module.map.map_base.CampaignMap object at 0x000001DE03E2A748>               │                    │
│ │ override_grid = K9                                                                           │                    │
│ │          self = <campaign.campaign_main.campaign_14_4.Campaign object at 0x000001DE220B2F08> │                    │
│ └──────────────────────────────────────────────────────────────────────────────────────────────┘                    │
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\campaign\campaign_main\campaign_14_base.py:68 in   │
│ pick_up_light_house                                                                                                 │
│                                                                                                                     │
│   65 │   │   │   logger.info(f'Light house {grid} already picked up')                                               │
│   66 │   │   elif grid.is_accessible:                                                                               │
│   67 │   │   │   logger.info(f'Pick up light house on {grid}')                                                      │
│ > 68 │   │   │   self.goto(grid)                                                                                    │
│   69 │   │   │   self.picked_light_house.append(grid)                                                               │
│   70 │   │   │   self.ensure_no_info_bar()                                                                          │
│   71 │   │   else:                                                                                                  │
│                                                                                                                     │
│ ┌────────────────────────────────────── locals ───────────────────────────────────────┐                             │
│ │ grid = A9                                                                           │                             │
│ │ self = <campaign.campaign_main.campaign_14_4.Campaign object at 0x000001DE220B2F08> │                             │
│ └─────────────────────────────────────────────────────────────────────────────────────┘                             │
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\module\map\fleet.py:510 in goto                    │
│                                                                                                                     │
│    507 │   │   │   │   │   for node_ in nodes_:                                                                     │
│    508 │   │   │   │   │   │   self._goto(node_, expected=expected if node == nodes[-1] else                        │
│        '')                                                                                                          │
│    509 │   │   else:                                                                                                │
│ >  510 │   │   │   self._goto(location, expected=expected)                                                          │
│    511 │                                                                                                            │
│    512 │   def find_path_initial(self):                                                                             │
│    513 │   │   """                                                                                                  │
│                                                                                                                     │
│ ┌──────────────────────────────────────────── locals ─────────────────────────────────────────────┐                 │
│ │         expected = ''                                                                           │                 │
│ │         location = (0, 8)                                                                       │                 │
│ │             self = <campaign.campaign_main.campaign_14_4.Campaign object at 0x000001DE220B2F08> │                 │
│ │    step_optimize = False                                                                        │                 │
│ │ turning_optimize = False                                                                        │                 │
│ └─────────────────────────────────────────────────────────────────────────────────────────────────┘                 │
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\module\map\fleet.py:277 in _goto                   │
│                                                                                                                     │
│    274 │   │                                                                                                        │
│    275 │   │   while 1:                                                                                             │
│    276 │   │   │   self.fleet_ensure(self.fleet_current_index)                                                      │
│ >  277 │   │   │   self.in_sight(location, sight=self._walk_sight)                                                  │
│    278 │   │   │   self.focus_to_grid_center()                                                                      │
│    279 │   │   │   grid = self.convert_global_to_local(location)                                                    │
│    280                                                                                                              │
│                                                                                                                     │
│ ┌───────────────────────────────────────────── locals ──────────────────────────────────────────────┐               │
│ │           expected = ''                                                                           │               │
│ │          is_portal = False                                                                        │               │
│ │           location = (0, 8)                                                                       │               │
│ │ may_submarine_icon = False                                                                        │               │
│ │     result_mystery = ''                                                                           │               │
│ │               self = <campaign.campaign_main.campaign_14_4.Campaign object at 0x000001DE220B2F08> │               │
│ └───────────────────────────────────────────────────────────────────────────────────────────────────┘               │
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\module\map\camera.py:476 in in_sight               │
│                                                                                                                     │
│   473 │   │   │   x = diff[0] - sight[0]                                                                            │
│   474 │   │   else:                                                                                                 │
│   475 │   │   │   x = 0                                                                                             │
│ > 476 │   │   self.focus_to((self.camera[0] + x, self.camera[1] + y))                                               │
│   477 │                                                                                                             │
│   478 │   def convert_global_to_local(self, location):                                                              │
│   479 │   │   """                                                                                                   │
│                                                                                                                     │
│ ┌──────────────────────────────────────── locals ─────────────────────────────────────────┐                         │
│ │     diff = array([0, 8])                                                                │                         │
│ │ location = (0, 8)                                                                       │                         │
│ │     self = <campaign.campaign_main.campaign_14_4.Campaign object at 0x000001DE220B2F08> │                         │
│ │    sight = (-3, 0, 3, 2)                                                                │                         │
│ │        x = 0                                                                            │                         │
│ │        y = 6                                                                            │                         │
│ └─────────────────────────────────────────────────────────────────────────────────────────┘                         │
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\module\map\camera.py:403 in focus_to               │
│                                                                                                                     │
│   400 │   │   while 1:                                                                                              │
│   401 │   │   │   vector = np.array(location) - self.camera                                                         │
│   402 │   │   │   swipe = tuple(np.min([np.abs(vector), swipe_limit], axis=0) *                                     │
│       np.sign(vector))                                                                                              │
│ > 403 │   │   │   has_swiped = self.map_swipe(swipe)                                                                │
│   404 │   │   │                                                                                                     │
│   405 │   │   │   if not has_swiped:                                                                                │
│   406 │   │   │   │   break                                                                                         │
│                                                                                                                     │
│ ┌────────────────────────────────────────── locals ──────────────────────────────────────────┐                      │
│ │    location = (0, 6)                                                                       │                      │
│ │        self = <campaign.campaign_main.campaign_14_4.Campaign object at 0x000001DE220B2F08> │                      │
│ │       swipe = (0, 3)                                                                       │                      │
│ │ swipe_limit = (4, 3)                                                                       │                      │
│ │      vector = array([0, 6])                                                                │                      │
│ └────────────────────────────────────────────────────────────────────────────────────────────┘                      │
│                                                                                                                     │
│ C:\Users\Alex\Desktop\GachaAutoTools\ALAS+MAA\AzurLaneAutoScript\module\map\camera.py:81 in map_swipe               │
│                                                                                                                     │
│    78 │   │   │   bool: if camera moved.                                                                            │
│    79 │   │   """                                                                                                   │
│    80 │   │   logger.info('Map swipe: %s' % str(vector))                                                            │
│ >  81 │   │   self._prev_view = copy.copy(self.view)                                                                │
│    82 │   │   self._prev_swipe = vector                                                                             │
│    83 │   │   vector = np.array(vector)                                                                             │
│    84 │   │   vector = np.array([0.5, 0.5]) - self.view.center_offset + vector                                      │
│                                                                                                                     │
│ ┌─────────────────────────────────────── locals ────────────────────────────────────────┐                           │
│ │   self = <campaign.campaign_main.campaign_14_4.Campaign object at 0x000001DE220B2F08> │                           │
│ │ vector = (0, 3)                                                                       │                           │
│ └───────────────────────────────────────────────────────────────────────────────────────┘                           │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
AttributeError: 'Campaign' object has no attribute 'view'                                                              
2024-12-25 19:51:22.883 | WARNING | Saving error: ./log/error/1735152682883                                            
2024-12-25 19:51:23.015 | INFO | No provider specified, skip sending                                                   
2024-12-25 19:51:42.430 | INFO | Electron detected, remove log output to stdout

What could be the issue here?

Sorry for the long post, but if you've read until here, thank you very much; any input/help is appreciated. Hope I managed to get my points across

dragonheart107 avatar Dec 25 '24 19:12 dragonheart107

Also I assume since I failed at this point it would cause the issue: ModuleNotFoundError: No module named 'module' when trying button_extract.py

This can be solved by configuring the PYTHONPATH environment variable for the current project

foglantern avatar Dec 26 '24 11:12 foglantern

Since my emulator came already with ATX preinstalled i can skip this step, right?

yes

ModuleNotFoundError: No module named 'module' when trying button_extract.py

Run directory needs be <your_folder>\AzurLaneAutoScript, most IDEs should have guarenteed this. If you just run python xxx.py, do a cd before it

How to add a definition for the lighthouse locations in Chapter 14 or is that not needed?

self.pick_up_light_house(A9)

Though sometimes this seems to have start-up issues as I sometimes get the following error

Map operations like pick_up_light_house shouldn't be called at data inits like map_data_init where properties aren't fully prepared

LmeSzinc avatar Dec 26 '24 14:12 LmeSzinc

Run directory needs be <your_folder>\AzurLaneAutoScript, most IDEs should have guarenteed this. If you just run python xxx.py, do a cd before it

grafik I assumed it was already in the correct directory (using vscode with python extension) and doing the second part didn't change anything either, so I'm unsure how to go from here.

Map operations like pick_up_light_house shouldn't be called at data inits like map_data_init where properties aren't fully prepared

I see, I'll try again

dragonheart107 avatar Dec 26 '24 15:12 dragonheart107

Also I assume since I failed at this point it would cause the issue: ModuleNotFoundError: No module named 'module' when trying button_extract.py

This can be solved by configuring the PYTHONPATH environment variable for the current project

Would that be within the windows environment path settings or the IDE?

dragonheart107 avatar Dec 26 '24 15:12 dragonheart107

run

python -m dev_tools.button_extract

LmeSzinc avatar Dec 27 '24 16:12 LmeSzinc

run

python -m dev_tools.button_extract

I'm stupid, that was the issue thank you.

Regarding button extract: I placed the new (en only) asset into cn asset folder and ran button_extract and it modified the asset file correctly in module, but I also see some outdated assets still in there, are they kept on purpose?

dragonheart107 avatar Dec 27 '24 22:12 dragonheart107