Explorar o código

fix(AreaBoss): Template mismatch in game version 66

runhey %!s(int64=3) %!d(string=hai) anos
pai
achega
af4bfa895e

+ 1 - 1
tasks/GameUi/assets.py

@@ -71,7 +71,7 @@ class GameUiAssets:
 	# description 
 	I_CHECK_SECRET_ZONES = RuleImage(roi_front=(1145,592,110,119), roi_back=(1145,592,110,119), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_secret_zones.png")
 	# description 
-	I_CHECK_AREA_BOSS = RuleImage(roi_front=(41,637,65,62), roi_back=(41,637,65,62), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_area_boss.png")
+	I_CHECK_AREA_BOSS = RuleImage(roi_front=(1176,505,65,62), roi_back=(1159,487,101,106), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_area_boss.png")
 	# description 
 	I_CHECK_HEIAN_KITAN = RuleImage(roi_front=(27,48,47,39), roi_back=(27,48,47,39), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_heian_kitan.png")
 	# description 

BIN=BIN
tasks/GameUi/page/page_check_area_boss.png


+ 2 - 2
tasks/GameUi/page/page_img.json

@@ -182,8 +182,8 @@
   {
     "itemName": "check_area_boss",
     "imageName": "page_check_area_boss.png",
-    "roiFront": "41,637,65,62",
-    "roiBack": "41,637,65,62",
+    "roiFront": "1176,505,65,62",
+    "roiBack": "1159,487,101,106",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"

+ 1 - 1
tasks/Pets/assets.py

@@ -24,7 +24,7 @@ class PetsAssets:
 	# 投喂 
 	I_PET_FEED = RuleImage(roi_front=(798,497,77,81), roi_back=(798,497,77,81), threshold=0.8, method="Template matching", file="./tasks/Pets/pet/pet_pet_feed.png")
 	# 跳过 
-	I_PET_SKIP = RuleImage(roi_front=(1104,91,72,41), roi_back=(1104,91,72,41), threshold=0.8, method="Template matching", file="./tasks/Pets/pet/pet_pet_skip.png")
+	I_PET_SKIP = RuleImage(roi_front=(1089,119,72,41), roi_back=(999,42,242,147), threshold=0.65, method="Template matching", file="./tasks/Pets/pet/pet_pet_skip.png")
 	# 退出 
 	I_PET_EXIT = RuleImage(roi_front=(30,25,39,33), roi_back=(30,25,39,33), threshold=0.8, method="Template matching", file="./tasks/Pets/pet/pet_pet_exit.png")
 

+ 3 - 3
tasks/Pets/pet/image.json

@@ -56,10 +56,10 @@
   {
     "itemName": "pet_skip",
     "imageName": "pet_pet_skip.png",
-    "roiFront": "1104,91,72,41",
-    "roiBack": "1104,91,72,41",
+    "roiFront": "1089,119,72,41",
+    "roiBack": "999,42,242,147",
     "method": "Template matching",
-    "threshold": 0.8,
+    "threshold": 0.65,
     "description": "跳过"
   },
   {