Skip to content

New character in the character planer has some problem #997

@chiraitori

Description

@chiraitori

Before you asking

  • I have searched the existing issues
  • I spend at least 5 minutes for thinking and preparing
  • I am using the latest version of SRC

Describe the bug

When i use character planer for yao guang it when synthisize new items it just crash

To Reproduce

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

Expected behavior

No response

Relevant log output

INFO     14:44:45.379 │ <<< OBTAINED RESULT >>>                                    
INFO     14:44:45.381 │ Obtained item: The_Fluffy_Collector_Edition, 34            
INFO     14:44:45.383 │ Obtained item: The_Fluffy_Serialization_Memorial_Issue, 239
INFO     14:44:45.384 │ Obtained item: The_Fluffy_Hand_drawn_Storyboards, 299      
INFO     14:44:45.393 │ Bind task ['Alas', 'Dungeon']                              
INFO     14:44:45.394 │ Save config ./config\src2.json,                            
         Dungeon.Planner.PlannerOverall={'time': datetime.datetime(2026, 3, 2, 14, 
         44, 45), 'comment': '<1.9d', 'value': '83.88%'}                           
INFO     14:44:45.400 │ <<< PLANNER >>>                                            
INFO     14:44:45.403 │ item=ItemExp(Traveler_Guide) value=MultiValue(purple=50,   
         blue=0, green=0) total=MultiValue(purple=290, blue=0, green=0)            
         synthesize=MultiValue(purple=0, blue=0, green=0)                          
         time=datetime.datetime(2020, 1, 1, 0, 0) progress=17.24 eta=1.9           
INFO     14:44:45.405 │ item=ItemTrace(The_Fluffy_Collector_Edition)               
         value=MultiValue(purple=34, blue=239, green=299)                          
         total=MultiValue(purple=139, blue=0, green=18)                            
         synthesize=MultiValue(purple=105, blue=0, green=0)                        
         time=datetime.datetime(2020, 1, 1, 0, 0) progress=100.0 eta=0.0           
INFO     14:44:45.406 │ item=ItemWeekly(Vanquished_Flow_Reticence) value=0 total=12
         synthesize=0 time=datetime.datetime(2020, 1, 1, 0, 0) progress=0.0 eta=0.0
INFO     14:44:45.408 │ item=ItemCalyx(Lucid_Awl) value=MultiValue(purple=0,       
         blue=0, green=0) total=MultiValue(purple=0, blue=71, green=56)            
         synthesize=MultiValue(purple=0, blue=0, green=0)                          
         time=datetime.datetime(2020, 1, 1, 0, 0) progress=0.0 eta=0.0             
INFO     14:44:45.598 │ [ITEM_NAME 0.188s] he Fluffy Serialization Memorial Iss    
INFO     14:44:45.600 │ [ITEM_NAME matched] None                                   
WARNING  14:44:45.601 │ synthesize_get_item: Unknown item name                     
INFO     14:44:45.684 │ [ITEM_NAME 0.074s] he Fluffy Serialization Memorial Iss    
INFO     14:44:45.686 │ [ITEM_NAME matched] None                                   
WARNING  14:44:45.688 │ synthesize_get_item: Unknown item name                     
INFO     14:44:46.027 │ [ITEM_NAME 0.214s] he Fluffy Serialization Memorial Iss    
INFO     14:44:46.028 │ [ITEM_NAME matched] None                                   
WARNING  14:44:46.031 │ synthesize_get_item: Unknown item name                     
INFO     14:44:46.239 │ [ITEM_NAME 0.196s] he Fluffy Serialization Memorial Iss    
INFO     14:44:46.241 │ [ITEM_NAME matched] None                                   
WARNING  14:44:46.242 │ synthesize_get_item: Unknown item name                     
INFO     14:44:46.396 │ [ITEM_NAME 0.139s] he Fluffy Serialization Memorial Iss    
INFO     14:44:46.398 │ [ITEM_NAME matched] None                                   
WARNING  14:44:46.400 │ synthesize_get_item: Unknown item name                     
INFO     14:44:46.651 │ [ITEM_NAME 0.199s] he Fluffy Serialization Memorial Iss    
INFO     14:44:46.653 │ [ITEM_NAME matched] None                                   
WARNING  14:44:46.655 │ synthesize_get_item: Unknown item name                     
ERROR    14:44:46.656 │ synthesize_get_item: get item name timeout                 
ERROR    14:44:46.657 │ AttributeError: 'NoneType' object has no attribute         
         'item_group'                                                              
         ╭────────────────── Traceback (most recent call last) ───────────────────╮
         │ D:\StarRailCopilot_0.5.7_full\StarRailCopilot\module\alas.py:79 in run │
         │                                                                        │
         │    77 │   │   │   self.device.screenshot()                             │
         │    78 │   │   │   self.device.screenshot_tracking.clear()              │
         │ ❱  79 │   │   │   self.__getattribute__(command)()                     │
         │    80 │   │   │   return True                                          │
         │    81 │   │   except TaskEnd:                                          │
         │                                                                        │
         │ ╭────────────────────────────── locals ──────────────────────────────╮ │
         │ │ command = 'dungeon'                                                │ │
         │ │       e = AttributeError("'NoneType' object has no attribute       │ │
         │ │           'item_group'")                                           │ │
         │ │    self = <src.StarRailCopilot object at 0x000001EF390C7B20>       │ │
         │ ╰────────────────────────────────────────────────────────────────────╯ │
         │                                                                        │
         │ D:\StarRailCopilot_0.5.7_full\StarRailCopilot\src.py:37 in dungeon     │
         │                                                                        │
         │   35 │   def dungeon(self):                                            │
         │   36 │   │   from tasks.dungeon.dungeon import Dungeon                 │
         │ ❱ 37 │   │   Dungeon(config=self.config, device=self.device).run()     │
         │   38 │                                                                 │
         │   39 │   def weekly(self):                                             │
         │                                                                        │
         │ ╭─────────────────────────── locals ───────────────────────────╮       │
         │ │ Dungeon = <class 'tasks.dungeon.dungeon.Dungeon'>            │       │
         │ │    self = <src.StarRailCopilot object at 0x000001EF390C7B20> │       │
         │ ╰──────────────────────────────────────────────────────────────╯       │
         │                                                                        │
         │ D:\StarRailCopilot_0.5.7_full\StarRailCopilot\tasks\dungeon\dungeon.py │
         │ :296 in run                                                            │
         │                                                                        │
         │   294 │   │   self.config.update_battle_pass_quests()                  │
         │   295 │   │   self.config.update_daily_quests()                        │
         │ ❱ 296 │   │   self.check_synthesize()                                  │
         │   297 │   │   self.called_daily_support = False                        │
         │   298 │   │   self.achieved_daily_quest = False                        │
         │                                                                        │
         │ ╭────────────────────────────── locals ──────────────────────────────╮ │
         │ │ self = <tasks.dungeon.dungeon.Dungeon object at                    │ │
         │ │        0x000001EF779581F0>                                         │ │
         │ ╰────────────────────────────────────────────────────────────────────╯ │
         │                                                                        │
         │ D:\StarRailCopilot_0.5.7_full\StarRailCopilot\tasks\dungeon\dungeon.py │
         │ :385 in check_synthesize                                               │
         │                                                                        │
         │   383 │   │   set_cached_property(synthesize, 'planner', self.planner) │
         │   384 │   │   if synthesize.synthesize_needed():                       │
         │ ❱ 385 │   │   │   synthesize.synthesize_planner()                      │
         │   386 │                                                                │
         │   387 │   def delay_dungeon_task(self, dungeon: DungeonList):          │
         │                                                                        │
         │ ╭────────────────────────────── locals ──────────────────────────────╮ │
         │ │       self = <tasks.dungeon.dungeon.Dungeon object at              │ │
         │ │              0x000001EF779581F0>                                   │ │
         │ │ synthesize = <tasks.item.synthesize.Synthesize object at           │ │
         │ │              0x000001EF7B2DCA90>                                   │ │
         │ ╰────────────────────────────────────────────────────────────────────╯ │
         │                                                                        │
         │ D:\StarRailCopilot_0.5.7_full\StarRailCopilot\tasks\item\synthesize.py │
         │ :650 in synthesize_planner                                             │
         │                                                                        │
         │   648 │   │   │   │   continue                                         │
         │   649 │   │   │                                                        │
         │ ❱ 650 │   │   │   row = self.synthesize_planner_row_select(row)        │
         │   651 │   │   │   if row is None:                                      │
         │   652 │   │   │   │   continue                                         │
         │                                                                        │
         │ ╭────────────────────────────── locals ──────────────────────────────╮ │
         │ │  row = StoredPlannerProxy(                                         │ │
         │ │        │   item=ItemTrace(The_Fluffy_Collector_Edition),           │ │
         │ │        │   value=MultiValue(purple=34, blue=239, green=299),       │ │
         │ │        │   total=MultiValue(purple=139, blue=0, green=18),         │ │
         │ │        │   synthesize=MultiValue(purple=105, blue=0, green=0),     │ │
         │ │        │   time=datetime.datetime(2020, 1, 1, 0, 0),               │ │
         │ │        │   progress=100.0,                                         │ │
         │ │        │   eta=0.0                                                 │ │
         │ │        )                                                           │ │
         │ │ rows = [                                                           │ │
         │ │        │   StoredPlannerProxy(                                     │ │
         │ │        │   │   item=ItemExp(Traveler_Guide),                       │ │
         │ │        │   │   value=MultiValue(purple=50, blue=0, green=0),       │ │
         │ │        │   │   total=MultiValue(purple=290, blue=0, green=0),      │ │
         │ │        │   │   synthesize=MultiValue(purple=0, blue=0, green=0),   │ │
         │ │        │   │   time=datetime.datetime(2020, 1, 1, 0, 0),           │ │
         │ │        │   │   progress=17.24,                                     │ │
         │ │        │   │   eta=1.9                                             │ │
         │ │        │   ),                                                      │ │
         │ │        │   StoredPlannerProxy(                                     │ │
         │ │        │   │   item=ItemTrace(The_Fluffy_Collector_Edition),       │ │
         │ │        │   │   value=MultiValue(purple=34, blue=239, green=299),   │ │
         │ │        │   │   total=MultiValue(purple=139, blue=0, green=18),     │ │
         │ │        │   │   synthesize=MultiValue(                              │ │
         │ │        │   │   │   purple=105,                                     │ │
         │ │        │   │   │   blue=0,                                         │ │
         │ │        │   │   │   green=0                                         │ │
         │ │        │   │   ),                                                  │ │
         │ │        │   │   time=datetime.datetime(2020, 1, 1, 0, 0),           │ │
         │ │        │   │   progress=100.0,                                     │ │
         │ │        │   │   eta=0.0                                             │ │
         │ │        │   ),                                                      │ │
         │ │        │   StoredPlannerProxy(                                     │ │
         │ │        │   │   item=ItemWeekly(Vanquished_Flow_Reticence),         │ │
         │ │        │   │   value=0,                                            │ │
         │ │        │   │   total=12,                                           │ │
         │ │        │   │   synthesize=0,                                       │ │
         │ │        │   │   time=datetime.datetime(2020, 1, 1, 0, 0),           │ │
         │ │        │   │   progress=0.0,                                       │ │
         │ │        │   │   eta=0.0                                             │ │
         │ │        │   ),                                                      │ │
         │ │        │   StoredPlannerProxy(                                     │ │
         │ │        │   │   item=ItemCalyx(Lucid_Awl),                          │ │
         │ │        │   │   value=MultiValue(purple=0, blue=0, green=0),        │ │
         │ │        │   │   total=MultiValue(purple=0, blue=71, green=56),      │ │
         │ │        │   │   synthesize=MultiValue(purple=0, blue=0, green=0),   │ │
         │ │        │   │   time=datetime.datetime(2020, 1, 1, 0, 0),           │ │
         │ │        │   │   progress=0.0,                                       │ │
         │ │        │   │   eta=0.0                                             │ │
         │ │        │   )                                                       │ │
         │ │        ]                                                           │ │
         │ │ self = <tasks.item.synthesize.Synthesize object at                 │ │
         │ │        0x000001EF7B2DCA90>                                         │ │
         │ ╰────────────────────────────────────────────────────────────────────╯ │
         │                                                                        │
         │ D:\StarRailCopilot_0.5.7_full\StarRailCopilot\tasks\item\synthesize.py │
         │ :618 in synthesize_planner_row_select                                  │
         │                                                                        │
         │   616 │   │   │   # Check current item again                           │
         │   617 │   │   │   current = self.synthesize_get_item()                 │
         │ ❱ 618 │   │   │   if current.item_group == row.item.item_group:        │
         │   619 │   │   │   │   logger.info('Selected at target item')           │
         │   620 │   │   │   │   try:                                             │
         │                                                                        │
         │ ╭────────────────────────────── locals ──────────────────────────────╮ │
         │ │        _ = 0                                                       │ │
         │ │  current = None                                                    │ │
         │ │ obtained = [                                                       │ │
         │ │            │   ObtainedAmmount(                                    │ │
         │ │            │   │   item=ItemTrace(The_Fluffy_Collector_Edition),   │ │
         │ │            │   │   value=34                                        │ │
         │ │            │   ),                                                  │ │
         │ │            │   ObtainedAmmount(                                    │ │
         │ │            │   │                                                   │ │
         │ │            item=ItemTrace(The_Fluffy_Serialization_Memorial_Issue… │ │
         │ │            │   │   value=239                                       │ │
         │ │            │   ),                                                  │ │
         │ │            │   ObtainedAmmount(                                    │ │
         │ │            │   │                                                   │ │
         │ │            item=ItemTrace(The_Fluffy_Hand_drawn_Storyboards),      │ │
         │ │            │   │   value=299                                       │ │
         │ │            │   )                                                   │ │
         │ │            ]                                                       │ │
         │ │      row = StoredPlannerProxy(                                     │ │
         │ │            │   item=ItemTrace(The_Fluffy_Collector_Edition),       │ │
         │ │            │   value=MultiValue(purple=34, blue=239, green=299),   │ │
         │ │            │   total=MultiValue(purple=139, blue=0, green=18),     │ │
         │ │            │   synthesize=MultiValue(                              │ │
         │ │            │   │   purple=105,                                     │ │
         │ │            │   │   blue=0,                                         │ │
         │ │            │   │   green=0                                         │ │
         │ │            │   ),                                                  │ │
         │ │            │   time=datetime.datetime(2020, 1, 1, 0, 0),           │ │
         │ │            │   progress=100.0,                                     │ │
         │ │            │   eta=0.0                                             │ │
         │ │            )                                                       │ │
         │ │     self = <tasks.item.synthesize.Synthesize object at             │ │
         │ │            0x000001EF7B2DCA90>                                     │ │
         │ │  success = True                                                    │ │
         │ ╰────────────────────────────────────────────────────────────────────╯ │
         ╰────────────────────────────────────────────────────────────────────────╯
         AttributeError: 'NoneType' object has no attribute 'item_group'           
WARNING  14:44:47.107 │ Saving error: ./log/error/1772437487107                    
INFO     14:44:48.540 │ No provider specified, skip sending

Screenshots

Image

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions