diff --git a/alas_jp.pyw b/alas_jp.pyw new file mode 100644 index 000000000..cfada79b8 --- /dev/null +++ b/alas_jp.pyw @@ -0,0 +1,8 @@ +import module.config.server as server + +server.server = 'jp' + +from module.config.argparser_jp import main + +if __name__ == '__main__': + main() diff --git a/assets/jp/campaign/CHAPTER_NEXT.png b/assets/jp/campaign/CHAPTER_NEXT.png new file mode 100644 index 000000000..0e6098bf1 Binary files /dev/null and b/assets/jp/campaign/CHAPTER_NEXT.png differ diff --git a/assets/jp/campaign/CHAPTER_PREV.png b/assets/jp/campaign/CHAPTER_PREV.png new file mode 100644 index 000000000..2939d8210 Binary files /dev/null and b/assets/jp/campaign/CHAPTER_PREV.png differ diff --git a/assets/jp/campaign/OCR_OIL.png b/assets/jp/campaign/OCR_OIL.png new file mode 100644 index 000000000..eb88b90d9 Binary files /dev/null and b/assets/jp/campaign/OCR_OIL.png differ diff --git a/assets/jp/combat/AUTOMATION_CONFIRM_CHECK.png b/assets/jp/combat/AUTOMATION_CONFIRM_CHECK.png new file mode 100644 index 000000000..a039d40a4 Binary files /dev/null and b/assets/jp/combat/AUTOMATION_CONFIRM_CHECK.png differ diff --git a/assets/jp/combat/AUTOMATION_OFF.png b/assets/jp/combat/AUTOMATION_OFF.png new file mode 100644 index 000000000..e79f6a018 Binary files /dev/null and b/assets/jp/combat/AUTOMATION_OFF.png differ diff --git a/assets/jp/combat/AUTOMATION_ON.png b/assets/jp/combat/AUTOMATION_ON.png new file mode 100644 index 000000000..4a254abb1 Binary files /dev/null and b/assets/jp/combat/AUTOMATION_ON.png differ diff --git a/assets/jp/combat/BATTLE_PREPARATION_WITH_OVERLAY.png b/assets/jp/combat/BATTLE_PREPARATION_WITH_OVERLAY.png new file mode 100644 index 000000000..fc7399d76 Binary files /dev/null and b/assets/jp/combat/BATTLE_PREPARATION_WITH_OVERLAY.png differ diff --git a/assets/jp/combat/BATTLE_STATUS_A.BUTTON.png b/assets/jp/combat/BATTLE_STATUS_A.BUTTON.png new file mode 100644 index 000000000..882e8a8f0 Binary files /dev/null and b/assets/jp/combat/BATTLE_STATUS_A.BUTTON.png differ diff --git a/assets/jp/combat/BATTLE_STATUS_C.png b/assets/jp/combat/BATTLE_STATUS_C.png new file mode 100644 index 000000000..3b0066efc Binary files /dev/null and b/assets/jp/combat/BATTLE_STATUS_C.png differ diff --git a/assets/jp/combat/BATTLE_STATUS_D.png b/assets/jp/combat/BATTLE_STATUS_D.png new file mode 100644 index 000000000..3b0066efc Binary files /dev/null and b/assets/jp/combat/BATTLE_STATUS_D.png differ diff --git a/assets/jp/combat/BATTLE_STATUS_S.BUTTON.png b/assets/jp/combat/BATTLE_STATUS_S.BUTTON.png new file mode 100644 index 000000000..882e8a8f0 Binary files /dev/null and b/assets/jp/combat/BATTLE_STATUS_S.BUTTON.png differ diff --git a/assets/jp/combat/COMBAT_AUTO.png b/assets/jp/combat/COMBAT_AUTO.png new file mode 100644 index 000000000..80a7d2601 Binary files /dev/null and b/assets/jp/combat/COMBAT_AUTO.png differ diff --git a/assets/jp/combat/EMERGENCY_REPAIR_AVAILABLE.BUTTON.png b/assets/jp/combat/EMERGENCY_REPAIR_AVAILABLE.BUTTON.png new file mode 100644 index 000000000..92aef3a5a Binary files /dev/null and b/assets/jp/combat/EMERGENCY_REPAIR_AVAILABLE.BUTTON.png differ diff --git a/assets/jp/combat/EMERGENCY_REPAIR_AVAILABLE.png b/assets/jp/combat/EMERGENCY_REPAIR_AVAILABLE.png new file mode 100644 index 000000000..9ee30b209 Binary files /dev/null and b/assets/jp/combat/EMERGENCY_REPAIR_AVAILABLE.png differ diff --git a/assets/jp/combat/EMERGENCY_REPAIR_CONFIRM.png b/assets/jp/combat/EMERGENCY_REPAIR_CONFIRM.png new file mode 100644 index 000000000..47f7cc6f8 Binary files /dev/null and b/assets/jp/combat/EMERGENCY_REPAIR_CONFIRM.png differ diff --git a/assets/jp/combat/EXP_INFO_A.BUTTON.png b/assets/jp/combat/EXP_INFO_A.BUTTON.png new file mode 100644 index 000000000..882e8a8f0 Binary files /dev/null and b/assets/jp/combat/EXP_INFO_A.BUTTON.png differ diff --git a/assets/jp/combat/EXP_INFO_S.BUTTON.png b/assets/jp/combat/EXP_INFO_S.BUTTON.png new file mode 100644 index 000000000..882e8a8f0 Binary files /dev/null and b/assets/jp/combat/EXP_INFO_S.BUTTON.png differ diff --git a/assets/jp/combat/GET_ITEMS_1.BUTTON.png b/assets/jp/combat/GET_ITEMS_1.BUTTON.png new file mode 100644 index 000000000..882e8a8f0 Binary files /dev/null and b/assets/jp/combat/GET_ITEMS_1.BUTTON.png differ diff --git a/assets/jp/combat/GET_ITEMS_2.BUTTON.png b/assets/jp/combat/GET_ITEMS_2.BUTTON.png new file mode 100644 index 000000000..882e8a8f0 Binary files /dev/null and b/assets/jp/combat/GET_ITEMS_2.BUTTON.png differ diff --git a/assets/jp/combat/GET_SHIP.BUTTON.png b/assets/jp/combat/GET_SHIP.BUTTON.png new file mode 100644 index 000000000..882e8a8f0 Binary files /dev/null and b/assets/jp/combat/GET_SHIP.BUTTON.png differ diff --git a/assets/jp/combat/GET_SHIP.png b/assets/jp/combat/GET_SHIP.png new file mode 100644 index 000000000..84c6baa15 Binary files /dev/null and b/assets/jp/combat/GET_SHIP.png differ diff --git a/assets/jp/combat/LOADING_BAR.png b/assets/jp/combat/LOADING_BAR.png new file mode 100644 index 000000000..a06fdb614 Binary files /dev/null and b/assets/jp/combat/LOADING_BAR.png differ diff --git a/assets/jp/combat/MOVE_DOWN.png b/assets/jp/combat/MOVE_DOWN.png new file mode 100644 index 000000000..f93750dab Binary files /dev/null and b/assets/jp/combat/MOVE_DOWN.png differ diff --git a/assets/jp/combat/PAUSE.png b/assets/jp/combat/PAUSE.png new file mode 100644 index 000000000..1cad0e513 Binary files /dev/null and b/assets/jp/combat/PAUSE.png differ diff --git a/assets/jp/combat/READY_AIR_RAID.png b/assets/jp/combat/READY_AIR_RAID.png new file mode 100644 index 000000000..33c51121b Binary files /dev/null and b/assets/jp/combat/READY_AIR_RAID.png differ diff --git a/assets/jp/combat/READY_TORPEDO.png b/assets/jp/combat/READY_TORPEDO.png new file mode 100644 index 000000000..99d5f326c Binary files /dev/null and b/assets/jp/combat/READY_TORPEDO.png differ diff --git a/assets/jp/combat/SUBMARINE_AVAILABLE_CHECK_1.png b/assets/jp/combat/SUBMARINE_AVAILABLE_CHECK_1.png new file mode 100644 index 000000000..0d42098a9 Binary files /dev/null and b/assets/jp/combat/SUBMARINE_AVAILABLE_CHECK_1.png differ diff --git a/assets/jp/combat/SUBMARINE_AVAILABLE_CHECK_2.png b/assets/jp/combat/SUBMARINE_AVAILABLE_CHECK_2.png new file mode 100644 index 000000000..1eb0a4dca Binary files /dev/null and b/assets/jp/combat/SUBMARINE_AVAILABLE_CHECK_2.png differ diff --git a/assets/jp/combat/SUBMARINE_CALLED.png b/assets/jp/combat/SUBMARINE_CALLED.png new file mode 100644 index 000000000..a9e4626f1 Binary files /dev/null and b/assets/jp/combat/SUBMARINE_CALLED.png differ diff --git a/assets/jp/combat/SUBMARINE_READY.png b/assets/jp/combat/SUBMARINE_READY.png new file mode 100644 index 000000000..cc0cb870b Binary files /dev/null and b/assets/jp/combat/SUBMARINE_READY.png differ diff --git a/assets/jp/daemon/AMBUSH_AVOID.BUTTON.png b/assets/jp/daemon/AMBUSH_AVOID.BUTTON.png new file mode 100644 index 000000000..5f361911c Binary files /dev/null and b/assets/jp/daemon/AMBUSH_AVOID.BUTTON.png differ diff --git a/assets/jp/daemon/AMBUSH_AVOID.png b/assets/jp/daemon/AMBUSH_AVOID.png new file mode 100644 index 000000000..8971c282f Binary files /dev/null and b/assets/jp/daemon/AMBUSH_AVOID.png differ diff --git a/assets/jp/daemon/GET_EMERGENCY_REPAIR.png b/assets/jp/daemon/GET_EMERGENCY_REPAIR.png new file mode 100644 index 000000000..edc09b080 Binary files /dev/null and b/assets/jp/daemon/GET_EMERGENCY_REPAIR.png differ diff --git a/assets/jp/daemon/GET_ITEMS.BUTTON.png b/assets/jp/daemon/GET_ITEMS.BUTTON.png new file mode 100644 index 000000000..9f7e28716 Binary files /dev/null and b/assets/jp/daemon/GET_ITEMS.BUTTON.png differ diff --git a/assets/jp/daemon/STRATEGY_OPEN.BUTTON.png b/assets/jp/daemon/STRATEGY_OPEN.BUTTON.png new file mode 100644 index 000000000..5fc85421c Binary files /dev/null and b/assets/jp/daemon/STRATEGY_OPEN.BUTTON.png differ diff --git a/assets/jp/daemon/STRATEGY_OPEN.png b/assets/jp/daemon/STRATEGY_OPEN.png new file mode 100644 index 000000000..66a8bf721 Binary files /dev/null and b/assets/jp/daemon/STRATEGY_OPEN.png differ diff --git a/assets/jp/daily/DAILY_ACTIVE.png b/assets/jp/daily/DAILY_ACTIVE.png new file mode 100644 index 000000000..4a3c4977d Binary files /dev/null and b/assets/jp/daily/DAILY_ACTIVE.png differ diff --git a/assets/jp/daily/DAILY_ENTER.png b/assets/jp/daily/DAILY_ENTER.png new file mode 100644 index 000000000..3a03d0f52 Binary files /dev/null and b/assets/jp/daily/DAILY_ENTER.png differ diff --git a/assets/jp/daily/DAILY_FLEET_NEXT.png b/assets/jp/daily/DAILY_FLEET_NEXT.png new file mode 100644 index 000000000..e29006ed7 Binary files /dev/null and b/assets/jp/daily/DAILY_FLEET_NEXT.png differ diff --git a/assets/jp/daily/DAILY_FLEET_PREV.png b/assets/jp/daily/DAILY_FLEET_PREV.png new file mode 100644 index 000000000..7b82a1202 Binary files /dev/null and b/assets/jp/daily/DAILY_FLEET_PREV.png differ diff --git a/assets/jp/daily/DAILY_MISSION_2.png b/assets/jp/daily/DAILY_MISSION_2.png new file mode 100644 index 000000000..0a6c1ae45 Binary files /dev/null and b/assets/jp/daily/DAILY_MISSION_2.png differ diff --git a/assets/jp/daily/DAILY_MISSION_3.png b/assets/jp/daily/DAILY_MISSION_3.png new file mode 100644 index 000000000..d56755a77 Binary files /dev/null and b/assets/jp/daily/DAILY_MISSION_3.png differ diff --git a/assets/jp/daily/DAILY_NEXT.png b/assets/jp/daily/DAILY_NEXT.png new file mode 100644 index 000000000..93cc2a3f0 Binary files /dev/null and b/assets/jp/daily/DAILY_NEXT.png differ diff --git a/assets/jp/daily/DAILY_PREV.png b/assets/jp/daily/DAILY_PREV.png new file mode 100644 index 000000000..c43fadc88 Binary files /dev/null and b/assets/jp/daily/DAILY_PREV.png differ diff --git a/assets/jp/daily/OCR_REMAIN.png b/assets/jp/daily/OCR_REMAIN.png new file mode 100644 index 000000000..7e602a20b Binary files /dev/null and b/assets/jp/daily/OCR_REMAIN.png differ diff --git a/assets/jp/equipment/EQUIPMENT_OPEN.png b/assets/jp/equipment/EQUIPMENT_OPEN.png new file mode 100644 index 000000000..37bc2f569 Binary files /dev/null and b/assets/jp/equipment/EQUIPMENT_OPEN.png differ diff --git a/assets/jp/equipment/EQUIP_1.png b/assets/jp/equipment/EQUIP_1.png new file mode 100644 index 000000000..eb33b6800 Binary files /dev/null and b/assets/jp/equipment/EQUIP_1.png differ diff --git a/assets/jp/equipment/EQUIP_2.png b/assets/jp/equipment/EQUIP_2.png new file mode 100644 index 000000000..6c98373db Binary files /dev/null and b/assets/jp/equipment/EQUIP_2.png differ diff --git a/assets/jp/equipment/EQUIP_3.png b/assets/jp/equipment/EQUIP_3.png new file mode 100644 index 000000000..c8fd42943 Binary files /dev/null and b/assets/jp/equipment/EQUIP_3.png differ diff --git a/assets/jp/equipment/EQUIP_OFF.png b/assets/jp/equipment/EQUIP_OFF.png new file mode 100644 index 000000000..b2c6017e4 Binary files /dev/null and b/assets/jp/equipment/EQUIP_OFF.png differ diff --git a/assets/jp/equipment/FLEET_ENTER.png b/assets/jp/equipment/FLEET_ENTER.png new file mode 100644 index 000000000..04eb03415 Binary files /dev/null and b/assets/jp/equipment/FLEET_ENTER.png differ diff --git a/assets/jp/equipment/FLEET_NEXT.png b/assets/jp/equipment/FLEET_NEXT.png new file mode 100644 index 000000000..19839f69f Binary files /dev/null and b/assets/jp/equipment/FLEET_NEXT.png differ diff --git a/assets/jp/equipment/FLEET_PREV.png b/assets/jp/equipment/FLEET_PREV.png new file mode 100644 index 000000000..7d05eb729 Binary files /dev/null and b/assets/jp/equipment/FLEET_PREV.png differ diff --git a/assets/jp/equipment/OCR_FLEET_INDEX.png b/assets/jp/equipment/OCR_FLEET_INDEX.png new file mode 100644 index 000000000..3ac28cfb2 Binary files /dev/null and b/assets/jp/equipment/OCR_FLEET_INDEX.png differ diff --git a/assets/jp/equipment/SWIPE_AREA.png b/assets/jp/equipment/SWIPE_AREA.png new file mode 100644 index 000000000..bd1a0ef0f Binary files /dev/null and b/assets/jp/equipment/SWIPE_AREA.png differ diff --git a/assets/jp/equipment/SWIPE_CHECK.png b/assets/jp/equipment/SWIPE_CHECK.png new file mode 100644 index 000000000..ba1d40dbd Binary files /dev/null and b/assets/jp/equipment/SWIPE_CHECK.png differ diff --git a/assets/jp/exercise/EQUIP_ENTER.png b/assets/jp/exercise/EQUIP_ENTER.png new file mode 100644 index 000000000..e341ff5fa Binary files /dev/null and b/assets/jp/exercise/EQUIP_ENTER.png differ diff --git a/assets/jp/exercise/OCR_EXERCISE_REMAIN.png b/assets/jp/exercise/OCR_EXERCISE_REMAIN.png new file mode 100644 index 000000000..976c1502c Binary files /dev/null and b/assets/jp/exercise/OCR_EXERCISE_REMAIN.png differ diff --git a/assets/jp/exercise/OPPONENT_1.png b/assets/jp/exercise/OPPONENT_1.png new file mode 100644 index 000000000..c4d3792ed Binary files /dev/null and b/assets/jp/exercise/OPPONENT_1.png differ diff --git a/assets/jp/exercise/OPPONENT_2.png b/assets/jp/exercise/OPPONENT_2.png new file mode 100644 index 000000000..889e77ad7 Binary files /dev/null and b/assets/jp/exercise/OPPONENT_2.png differ diff --git a/assets/jp/exercise/OPPONENT_3.png b/assets/jp/exercise/OPPONENT_3.png new file mode 100644 index 000000000..f1c858a9a Binary files /dev/null and b/assets/jp/exercise/OPPONENT_3.png differ diff --git a/assets/jp/exercise/OPPONENT_4.png b/assets/jp/exercise/OPPONENT_4.png new file mode 100644 index 000000000..9fdb28edc Binary files /dev/null and b/assets/jp/exercise/OPPONENT_4.png differ diff --git a/assets/jp/handler/FAST_FORWARD_OFF.png b/assets/jp/handler/FAST_FORWARD_OFF.png new file mode 100644 index 000000000..14ef2f032 Binary files /dev/null and b/assets/jp/handler/FAST_FORWARD_OFF.png differ diff --git a/assets/jp/handler/FAST_FORWARD_ON.png b/assets/jp/handler/FAST_FORWARD_ON.png new file mode 100644 index 000000000..baf68c776 Binary files /dev/null and b/assets/jp/handler/FAST_FORWARD_ON.png differ diff --git a/assets/jp/handler/FORMATION_1.png b/assets/jp/handler/FORMATION_1.png new file mode 100644 index 000000000..621645902 Binary files /dev/null and b/assets/jp/handler/FORMATION_1.png differ diff --git a/assets/jp/handler/FORMATION_2.png b/assets/jp/handler/FORMATION_2.png new file mode 100644 index 000000000..bae9a30ca Binary files /dev/null and b/assets/jp/handler/FORMATION_2.png differ diff --git a/assets/jp/handler/FORMATION_3.png b/assets/jp/handler/FORMATION_3.png new file mode 100644 index 000000000..c43781a06 Binary files /dev/null and b/assets/jp/handler/FORMATION_3.png differ diff --git a/assets/jp/handler/FORMATION_LOCATION.png b/assets/jp/handler/FORMATION_LOCATION.png new file mode 100644 index 000000000..f91299cc0 Binary files /dev/null and b/assets/jp/handler/FORMATION_LOCATION.png differ diff --git a/assets/jp/handler/GET_AMMO.png b/assets/jp/handler/GET_AMMO.png new file mode 100644 index 000000000..4532cb32c Binary files /dev/null and b/assets/jp/handler/GET_AMMO.png differ diff --git a/assets/jp/handler/GET_ITEMS_1.BUTTON.png b/assets/jp/handler/GET_ITEMS_1.BUTTON.png new file mode 100644 index 000000000..78e26346d Binary files /dev/null and b/assets/jp/handler/GET_ITEMS_1.BUTTON.png differ diff --git a/assets/jp/handler/INFO_BAR_1.png b/assets/jp/handler/INFO_BAR_1.png new file mode 100644 index 000000000..9f1884161 Binary files /dev/null and b/assets/jp/handler/INFO_BAR_1.png differ diff --git a/assets/jp/handler/INFO_BAR_2.png b/assets/jp/handler/INFO_BAR_2.png new file mode 100644 index 000000000..016291130 Binary files /dev/null and b/assets/jp/handler/INFO_BAR_2.png differ diff --git a/assets/jp/handler/INFO_BAR_3.png b/assets/jp/handler/INFO_BAR_3.png new file mode 100644 index 000000000..6bb78cec1 Binary files /dev/null and b/assets/jp/handler/INFO_BAR_3.png differ diff --git a/assets/jp/handler/LOGIN_CHECK.BUTTON.png b/assets/jp/handler/LOGIN_CHECK.BUTTON.png new file mode 100644 index 000000000..39af3c6f3 Binary files /dev/null and b/assets/jp/handler/LOGIN_CHECK.BUTTON.png differ diff --git a/assets/jp/handler/LOGIN_CHECK.png b/assets/jp/handler/LOGIN_CHECK.png new file mode 100644 index 000000000..e3e429cbf Binary files /dev/null and b/assets/jp/handler/LOGIN_CHECK.png differ diff --git a/assets/jp/handler/LOGIN_CONFIRM.png b/assets/jp/handler/LOGIN_CONFIRM.png new file mode 100644 index 000000000..bb6b94060 Binary files /dev/null and b/assets/jp/handler/LOGIN_CONFIRM.png differ diff --git a/assets/jp/handler/MAP_AIR_RAID.png b/assets/jp/handler/MAP_AIR_RAID.png new file mode 100644 index 000000000..a1ffb384a Binary files /dev/null and b/assets/jp/handler/MAP_AIR_RAID.png differ diff --git a/assets/jp/handler/MAP_AMBUSH.png b/assets/jp/handler/MAP_AMBUSH.png new file mode 100644 index 000000000..3f8ff115f Binary files /dev/null and b/assets/jp/handler/MAP_AMBUSH.png differ diff --git a/assets/jp/handler/MAP_AMBUSH_EVADE.BUTTON.png b/assets/jp/handler/MAP_AMBUSH_EVADE.BUTTON.png new file mode 100644 index 000000000..d247de207 Binary files /dev/null and b/assets/jp/handler/MAP_AMBUSH_EVADE.BUTTON.png differ diff --git a/assets/jp/handler/MAP_AMBUSH_EVADE.png b/assets/jp/handler/MAP_AMBUSH_EVADE.png new file mode 100644 index 000000000..25bda9864 Binary files /dev/null and b/assets/jp/handler/MAP_AMBUSH_EVADE.png differ diff --git a/assets/jp/handler/MAP_BUFF.png b/assets/jp/handler/MAP_BUFF.png new file mode 100644 index 000000000..f91299cc0 Binary files /dev/null and b/assets/jp/handler/MAP_BUFF.png differ diff --git a/assets/jp/handler/MAP_CLEAR_PERCENTAGE.png b/assets/jp/handler/MAP_CLEAR_PERCENTAGE.png new file mode 100644 index 000000000..600f6103c Binary files /dev/null and b/assets/jp/handler/MAP_CLEAR_PERCENTAGE.png differ diff --git a/assets/jp/handler/MYSTERY_ITEM.png b/assets/jp/handler/MYSTERY_ITEM.png new file mode 100644 index 000000000..6b18de5f8 Binary files /dev/null and b/assets/jp/handler/MYSTERY_ITEM.png differ diff --git a/assets/jp/handler/STORY_CHOOSE.png b/assets/jp/handler/STORY_CHOOSE.png new file mode 100644 index 000000000..2e652009c Binary files /dev/null and b/assets/jp/handler/STORY_CHOOSE.png differ diff --git a/assets/jp/handler/STORY_CHOOSE_2.png b/assets/jp/handler/STORY_CHOOSE_2.png new file mode 100644 index 000000000..f8c9b80c6 Binary files /dev/null and b/assets/jp/handler/STORY_CHOOSE_2.png differ diff --git a/assets/jp/handler/STORY_LETTERS_ONLY.png b/assets/jp/handler/STORY_LETTERS_ONLY.png new file mode 100644 index 000000000..f3e85da30 Binary files /dev/null and b/assets/jp/handler/STORY_LETTERS_ONLY.png differ diff --git a/assets/jp/handler/STORY_LETTER_BLACK.png b/assets/jp/handler/STORY_LETTER_BLACK.png new file mode 100644 index 000000000..96f18ad99 Binary files /dev/null and b/assets/jp/handler/STORY_LETTER_BLACK.png differ diff --git a/assets/jp/handler/STORY_SKIP.BUTTON.png b/assets/jp/handler/STORY_SKIP.BUTTON.png new file mode 100644 index 000000000..c363d638f Binary files /dev/null and b/assets/jp/handler/STORY_SKIP.BUTTON.png differ diff --git a/assets/jp/handler/STORY_SKIP.png b/assets/jp/handler/STORY_SKIP.png new file mode 100644 index 000000000..17559a8c2 Binary files /dev/null and b/assets/jp/handler/STORY_SKIP.png differ diff --git a/assets/jp/handler/STRATEGY_OPENED.BUTTON.png b/assets/jp/handler/STRATEGY_OPENED.BUTTON.png new file mode 100644 index 000000000..6ee139ff3 Binary files /dev/null and b/assets/jp/handler/STRATEGY_OPENED.BUTTON.png differ diff --git a/assets/jp/handler/SUBMARINE_HUNT_OFF.png b/assets/jp/handler/SUBMARINE_HUNT_OFF.png new file mode 100644 index 000000000..4b8eaf597 Binary files /dev/null and b/assets/jp/handler/SUBMARINE_HUNT_OFF.png differ diff --git a/assets/jp/handler/SUBMARINE_HUNT_ON.png b/assets/jp/handler/SUBMARINE_HUNT_ON.png new file mode 100644 index 000000000..bb21337ab Binary files /dev/null and b/assets/jp/handler/SUBMARINE_HUNT_ON.png differ diff --git a/assets/jp/handler/SUBMARINE_VIEW_OFF.png b/assets/jp/handler/SUBMARINE_VIEW_OFF.png new file mode 100644 index 000000000..85e4af6b9 Binary files /dev/null and b/assets/jp/handler/SUBMARINE_VIEW_OFF.png differ diff --git a/assets/jp/handler/SUBMARINE_VIEW_ON.png b/assets/jp/handler/SUBMARINE_VIEW_ON.png new file mode 100644 index 000000000..72235a01b Binary files /dev/null and b/assets/jp/handler/SUBMARINE_VIEW_ON.png differ diff --git a/assets/jp/hard/EQUIP_ENTER_1.png b/assets/jp/hard/EQUIP_ENTER_1.png new file mode 100644 index 000000000..55acc14f3 Binary files /dev/null and b/assets/jp/hard/EQUIP_ENTER_1.png differ diff --git a/assets/jp/hard/EQUIP_ENTER_2.png b/assets/jp/hard/EQUIP_ENTER_2.png new file mode 100644 index 000000000..0c0959421 Binary files /dev/null and b/assets/jp/hard/EQUIP_ENTER_2.png differ diff --git a/assets/jp/hard/OCR_HARD_REMAIN.png b/assets/jp/hard/OCR_HARD_REMAIN.png new file mode 100644 index 000000000..6de7f7cb8 Binary files /dev/null and b/assets/jp/hard/OCR_HARD_REMAIN.png differ diff --git a/assets/jp/map/FLEET_1_IN_USE.png b/assets/jp/map/FLEET_1_IN_USE.png new file mode 100644 index 000000000..145ac9e71 Binary files /dev/null and b/assets/jp/map/FLEET_1_IN_USE.png differ diff --git a/assets/jp/map/FLEET_2_IN_USE.png b/assets/jp/map/FLEET_2_IN_USE.png new file mode 100644 index 000000000..f4f842610 Binary files /dev/null and b/assets/jp/map/FLEET_2_IN_USE.png differ diff --git a/assets/jp/map/FLEET_PREPARATION_HARD_1.png b/assets/jp/map/FLEET_PREPARATION_HARD_1.png new file mode 100644 index 000000000..0c580f319 Binary files /dev/null and b/assets/jp/map/FLEET_PREPARATION_HARD_1.png differ diff --git a/assets/jp/map/FLEET_PREPARATION_HARD_2.png b/assets/jp/map/FLEET_PREPARATION_HARD_2.png new file mode 100644 index 000000000..324238232 Binary files /dev/null and b/assets/jp/map/FLEET_PREPARATION_HARD_2.png differ diff --git a/assets/jp/map/MAP_CAT_ATTACK.png b/assets/jp/map/MAP_CAT_ATTACK.png new file mode 100644 index 000000000..bfdda8e59 Binary files /dev/null and b/assets/jp/map/MAP_CAT_ATTACK.png differ diff --git a/assets/jp/map/MAP_PREPARATION_CANCEL.png b/assets/jp/map/MAP_PREPARATION_CANCEL.png new file mode 100644 index 000000000..269bb33d1 Binary files /dev/null and b/assets/jp/map/MAP_PREPARATION_CANCEL.png differ diff --git a/assets/jp/map/SUBMARINE_IN_USE.png b/assets/jp/map/SUBMARINE_IN_USE.png new file mode 100644 index 000000000..55da34170 Binary files /dev/null and b/assets/jp/map/SUBMARINE_IN_USE.png differ diff --git a/assets/jp/retire/ENHANCE_RELOAD.png b/assets/jp/retire/ENHANCE_RELOAD.png new file mode 100644 index 000000000..14b59b771 Binary files /dev/null and b/assets/jp/retire/ENHANCE_RELOAD.png differ diff --git a/assets/jp/retire/GET_ITEMS_1_RETIREMENT_SAVE.png b/assets/jp/retire/GET_ITEMS_1_RETIREMENT_SAVE.png new file mode 100644 index 000000000..4e6ae919f Binary files /dev/null and b/assets/jp/retire/GET_ITEMS_1_RETIREMENT_SAVE.png differ diff --git a/assets/jp/reward/COIN.png b/assets/jp/reward/COIN.png new file mode 100644 index 000000000..a7af11215 Binary files /dev/null and b/assets/jp/reward/COIN.png differ diff --git a/assets/jp/reward/COMMISSION_HAS_PENDING.png b/assets/jp/reward/COMMISSION_HAS_PENDING.png new file mode 100644 index 000000000..6132f09e0 Binary files /dev/null and b/assets/jp/reward/COMMISSION_HAS_PENDING.png differ diff --git a/assets/jp/reward/COMMISSION_NOTICE_AT_CAMPAIGN.png b/assets/jp/reward/COMMISSION_NOTICE_AT_CAMPAIGN.png new file mode 100644 index 000000000..8b97a85de Binary files /dev/null and b/assets/jp/reward/COMMISSION_NOTICE_AT_CAMPAIGN.png differ diff --git a/assets/jp/reward/COMMISSION_STOP_SCROLLING.png b/assets/jp/reward/COMMISSION_STOP_SCROLLING.png new file mode 100644 index 000000000..8be7ef16b Binary files /dev/null and b/assets/jp/reward/COMMISSION_STOP_SCROLLING.png differ diff --git a/assets/jp/reward/EXP_INFO_S_REWARD.png b/assets/jp/reward/EXP_INFO_S_REWARD.png new file mode 100644 index 000000000..c38ea6304 Binary files /dev/null and b/assets/jp/reward/EXP_INFO_S_REWARD.png differ diff --git a/assets/jp/reward/MISSION_NOTICE.png b/assets/jp/reward/MISSION_NOTICE.png new file mode 100644 index 000000000..c1b624f94 Binary files /dev/null and b/assets/jp/reward/MISSION_NOTICE.png differ diff --git a/assets/jp/reward/OIL.png b/assets/jp/reward/OIL.png new file mode 100644 index 000000000..62bed7db3 Binary files /dev/null and b/assets/jp/reward/OIL.png differ diff --git a/assets/jp/reward/REWARD_SAVE_CLICK.png b/assets/jp/reward/REWARD_SAVE_CLICK.png new file mode 100644 index 000000000..fd55823ab Binary files /dev/null and b/assets/jp/reward/REWARD_SAVE_CLICK.png differ diff --git a/assets/jp/reward/TACTICAL_CLASS_CANCEL.png b/assets/jp/reward/TACTICAL_CLASS_CANCEL.png new file mode 100644 index 000000000..e60212c0e Binary files /dev/null and b/assets/jp/reward/TACTICAL_CLASS_CANCEL.png differ diff --git a/assets/jp/reward/TACTICAL_CLASS_START.png b/assets/jp/reward/TACTICAL_CLASS_START.png new file mode 100644 index 000000000..0f1a0ff6f Binary files /dev/null and b/assets/jp/reward/TACTICAL_CLASS_START.png differ diff --git a/assets/jp/template/TEMPLATE_AMBUSH_EVADE_FAILED.png b/assets/jp/template/TEMPLATE_AMBUSH_EVADE_FAILED.png new file mode 100644 index 000000000..4a44f6bba Binary files /dev/null and b/assets/jp/template/TEMPLATE_AMBUSH_EVADE_FAILED.png differ diff --git a/assets/jp/template/TEMPLATE_AMBUSH_EVADE_SUCCESS.png b/assets/jp/template/TEMPLATE_AMBUSH_EVADE_SUCCESS.png new file mode 100644 index 000000000..0f1fb69bd Binary files /dev/null and b/assets/jp/template/TEMPLATE_AMBUSH_EVADE_SUCCESS.png differ diff --git a/assets/jp/template/TEMPLATE_ENEMY_BOSS.png b/assets/jp/template/TEMPLATE_ENEMY_BOSS.png new file mode 100644 index 000000000..0b498c815 Binary files /dev/null and b/assets/jp/template/TEMPLATE_ENEMY_BOSS.png differ diff --git a/assets/jp/template/TEMPLATE_ENEMY_CARRIER.png b/assets/jp/template/TEMPLATE_ENEMY_CARRIER.png new file mode 100644 index 000000000..126c7ab11 Binary files /dev/null and b/assets/jp/template/TEMPLATE_ENEMY_CARRIER.png differ diff --git a/assets/jp/template/TEMPLATE_ENEMY_L.png b/assets/jp/template/TEMPLATE_ENEMY_L.png new file mode 100644 index 000000000..05dd28e80 Binary files /dev/null and b/assets/jp/template/TEMPLATE_ENEMY_L.png differ diff --git a/assets/jp/template/TEMPLATE_ENEMY_LIGHT.png b/assets/jp/template/TEMPLATE_ENEMY_LIGHT.png new file mode 100644 index 000000000..92d98f961 Binary files /dev/null and b/assets/jp/template/TEMPLATE_ENEMY_LIGHT.png differ diff --git a/assets/jp/template/TEMPLATE_ENEMY_M.png b/assets/jp/template/TEMPLATE_ENEMY_M.png new file mode 100644 index 000000000..229929833 Binary files /dev/null and b/assets/jp/template/TEMPLATE_ENEMY_M.png differ diff --git a/assets/jp/template/TEMPLATE_ENEMY_MAIN.png b/assets/jp/template/TEMPLATE_ENEMY_MAIN.png new file mode 100644 index 000000000..2f169a782 Binary files /dev/null and b/assets/jp/template/TEMPLATE_ENEMY_MAIN.png differ diff --git a/assets/jp/template/TEMPLATE_ENEMY_S.png b/assets/jp/template/TEMPLATE_ENEMY_S.png new file mode 100644 index 000000000..e0c6cff39 Binary files /dev/null and b/assets/jp/template/TEMPLATE_ENEMY_S.png differ diff --git a/assets/jp/template/TEMPLATE_ENEMY_TREASURE.png b/assets/jp/template/TEMPLATE_ENEMY_TREASURE.png new file mode 100644 index 000000000..b8bf91b08 Binary files /dev/null and b/assets/jp/template/TEMPLATE_ENEMY_TREASURE.png differ diff --git a/assets/jp/template/TEMPLATE_FLEET_AMMO.png b/assets/jp/template/TEMPLATE_FLEET_AMMO.png new file mode 100644 index 000000000..3bd7f6405 Binary files /dev/null and b/assets/jp/template/TEMPLATE_FLEET_AMMO.png differ diff --git a/assets/jp/template/TEMPLATE_FORMATION_1.png b/assets/jp/template/TEMPLATE_FORMATION_1.png new file mode 100644 index 000000000..643c7aaa2 Binary files /dev/null and b/assets/jp/template/TEMPLATE_FORMATION_1.png differ diff --git a/assets/jp/template/TEMPLATE_FORMATION_2.png b/assets/jp/template/TEMPLATE_FORMATION_2.png new file mode 100644 index 000000000..db237eb05 Binary files /dev/null and b/assets/jp/template/TEMPLATE_FORMATION_2.png differ diff --git a/assets/jp/template/TEMPLATE_FORMATION_3.png b/assets/jp/template/TEMPLATE_FORMATION_3.png new file mode 100644 index 000000000..f21cf865e Binary files /dev/null and b/assets/jp/template/TEMPLATE_FORMATION_3.png differ diff --git a/assets/jp/template/TEMPLATE_SIREN_1.png b/assets/jp/template/TEMPLATE_SIREN_1.png new file mode 100644 index 000000000..63c1ebbba Binary files /dev/null and b/assets/jp/template/TEMPLATE_SIREN_1.png differ diff --git a/assets/jp/template/TEMPLATE_SIREN_2.png b/assets/jp/template/TEMPLATE_SIREN_2.png new file mode 100644 index 000000000..c5ac71a31 Binary files /dev/null and b/assets/jp/template/TEMPLATE_SIREN_2.png differ diff --git a/assets/jp/template/TEMPLATE_SIREN_3.png b/assets/jp/template/TEMPLATE_SIREN_3.png new file mode 100644 index 000000000..b1169b640 Binary files /dev/null and b/assets/jp/template/TEMPLATE_SIREN_3.png differ diff --git a/assets/jp/template/TEMPLATE_SIREN_Algerie.png b/assets/jp/template/TEMPLATE_SIREN_Algerie.png new file mode 100644 index 000000000..761b9e089 Binary files /dev/null and b/assets/jp/template/TEMPLATE_SIREN_Algerie.png differ diff --git a/assets/jp/template/TEMPLATE_SIREN_DD.png b/assets/jp/template/TEMPLATE_SIREN_DD.png new file mode 100644 index 000000000..dc1fb8deb Binary files /dev/null and b/assets/jp/template/TEMPLATE_SIREN_DD.png differ diff --git a/assets/jp/template/TEMPLATE_SIREN_LaGalissonniere.png b/assets/jp/template/TEMPLATE_SIREN_LaGalissonniere.png new file mode 100644 index 000000000..e57eaebeb Binary files /dev/null and b/assets/jp/template/TEMPLATE_SIREN_LaGalissonniere.png differ diff --git a/assets/jp/template/TEMPLATE_SIREN_Vauquelin.png b/assets/jp/template/TEMPLATE_SIREN_Vauquelin.png new file mode 100644 index 000000000..454bc978b Binary files /dev/null and b/assets/jp/template/TEMPLATE_SIREN_Vauquelin.png differ diff --git a/assets/jp/template/TEMPLATE_SIREN_Z18.png b/assets/jp/template/TEMPLATE_SIREN_Z18.png new file mode 100644 index 000000000..4035a0d03 Binary files /dev/null and b/assets/jp/template/TEMPLATE_SIREN_Z18.png differ diff --git a/assets/jp/template/TEMPLATE_SIREN_Z19.png b/assets/jp/template/TEMPLATE_SIREN_Z19.png new file mode 100644 index 000000000..cb58a4430 Binary files /dev/null and b/assets/jp/template/TEMPLATE_SIREN_Z19.png differ diff --git a/assets/jp/template/TEMPLATE_SIREN_Z2.png b/assets/jp/template/TEMPLATE_SIREN_Z2.png new file mode 100644 index 000000000..c518d611d Binary files /dev/null and b/assets/jp/template/TEMPLATE_SIREN_Z2.png differ diff --git a/assets/jp/template/TEMPLATE_STAGE_CLEAR.png b/assets/jp/template/TEMPLATE_STAGE_CLEAR.png new file mode 100644 index 000000000..9d4d0d5ce Binary files /dev/null and b/assets/jp/template/TEMPLATE_STAGE_CLEAR.png differ diff --git a/assets/jp/template/TEMPLATE_STAGE_PERCENT.png b/assets/jp/template/TEMPLATE_STAGE_PERCENT.png new file mode 100644 index 000000000..58e99f97f Binary files /dev/null and b/assets/jp/template/TEMPLATE_STAGE_PERCENT.png differ diff --git a/assets/jp/ui/BACK_ARROW.BUTTON.png b/assets/jp/ui/BACK_ARROW.BUTTON.png new file mode 100644 index 000000000..33878384b Binary files /dev/null and b/assets/jp/ui/BACK_ARROW.BUTTON.png differ diff --git a/assets/jp/ui/BACK_ARROW.png b/assets/jp/ui/BACK_ARROW.png new file mode 100644 index 000000000..843cce04f Binary files /dev/null and b/assets/jp/ui/BACK_ARROW.png differ diff --git a/assets/jp/ui/DAILY_CHECK.png b/assets/jp/ui/DAILY_CHECK.png new file mode 100644 index 000000000..4fd00a83e Binary files /dev/null and b/assets/jp/ui/DAILY_CHECK.png differ diff --git a/assets/jp/ui/EVENT_CHECK.png b/assets/jp/ui/EVENT_CHECK.png new file mode 100644 index 000000000..14e3808a4 Binary files /dev/null and b/assets/jp/ui/EVENT_CHECK.png differ diff --git a/assets/jp/ui/GOTO_MAIN.BUTTON.png b/assets/jp/ui/GOTO_MAIN.BUTTON.png new file mode 100644 index 000000000..42cde372d Binary files /dev/null and b/assets/jp/ui/GOTO_MAIN.BUTTON.png differ diff --git a/assets/jp/ui/MAIN_GOTO_EVENT_LIST.png b/assets/jp/ui/MAIN_GOTO_EVENT_LIST.png new file mode 100644 index 000000000..b9b56d1fd Binary files /dev/null and b/assets/jp/ui/MAIN_GOTO_EVENT_LIST.png differ diff --git a/assets/jp/ui/MAIN_GOTO_REWARD.png b/assets/jp/ui/MAIN_GOTO_REWARD.png new file mode 100644 index 000000000..bb66709b1 Binary files /dev/null and b/assets/jp/ui/MAIN_GOTO_REWARD.png differ diff --git a/assets/jp/ui/REWARD_CHECK.png b/assets/jp/ui/REWARD_CHECK.png new file mode 100644 index 000000000..56691c636 Binary files /dev/null and b/assets/jp/ui/REWARD_CHECK.png differ diff --git a/assets/jp/ui/REWARD_GOTO_MAIN.png b/assets/jp/ui/REWARD_GOTO_MAIN.png new file mode 100644 index 000000000..1afb4308f Binary files /dev/null and b/assets/jp/ui/REWARD_GOTO_MAIN.png differ diff --git a/dev_tools/button_extract.py b/dev_tools/button_extract.py index fc9848b41..a3511347b 100644 --- a/dev_tools/button_extract.py +++ b/dev_tools/button_extract.py @@ -17,7 +17,7 @@ from module.base.template import Template # Don't modified it manually. """ IMPORT_EXP = IMPORT_EXP.strip().split('\n') + [''] -VALID_SERVER = ['cn', 'en'] +VALID_SERVER = ['cn', 'en', 'jp'] class ImageExtractor: diff --git a/module/config/argparser_jp.py b/module/config/argparser_jp.py new file mode 100644 index 000000000..f495f06e0 --- /dev/null +++ b/module/config/argparser_jp.py @@ -0,0 +1,382 @@ +import codecs +import configparser +import os +import shutil + +from gooey import Gooey, GooeyParser + +from alas import AzurLaneAutoScript +from module.config.dictionary import dic_true_eng_to_eng, dic_eng_to_true_eng +from module.logger import logger, pyw_name + + +def update_config_from_template(config, file): + """ + Args: + config (configparser.ConfigParser): + + Returns: + configparser.ConfigParser: + """ + template = configparser.ConfigParser(interpolation=None) + template.read_file(codecs.open(f'./config/template.ini', "r", "utf8")) + changed = False + # Update section. + for section in template.sections(): + if not config.has_section(section): + config.add_section(section) + changed = True + for section in config.sections(): + if not template.has_section(section): + config.remove_section(section) + changed = True + # Update option + for section in template.sections(): + for option in template.options(section): + if not config.has_option(section, option): + config.set(section, option, value=template.get(section, option)) + changed = True + for section in config.sections(): + for option in config.options(section): + if not template.has_option(section, option): + config.remove_option(section, option) + changed = True + # Save + if changed: + config.write(codecs.open(file, "w+", "utf8")) + return config + + +@Gooey( + optional_cols=2, + program_name=pyw_name.capitalize(), + sidebar_title='Function', + terminal_font_family='Consolas', + language='english', + default_size=(1000, 720), + navigation='SIDEBAR', + tabbed_groups=True, + show_success_modal=False, + show_failure_modal=False, + # show_stop_warning=False, + # load_build_config='gooey_config.json', + # dump_build_config='gooey_config.json', +) +def main(ini_name=''): + if not ini_name: + ini_name = pyw_name + ini_name = ini_name.lower() + + # Load default value from .ini file. + config_file = f'./config/{ini_name}.ini' + config = configparser.ConfigParser(interpolation=None) + try: + config.read_file(codecs.open(config_file, "r", "utf8")) + except FileNotFoundError: + logger.info('Config file not exists, copy from ./config/template.ini') + shutil.copy('./config/template.ini', config_file) + config.read_file(codecs.open(config_file, "r", "utf8")) + + config = update_config_from_template(config, file=config_file) + + event_folder = [dic_eng_to_true_eng.get(f, f) for f in os.listdir('./campaign') if f.startswith('event_')][::-1] + + saved_config = {} + for opt, option in config.items(): + for key, value in option.items(): + key = dic_eng_to_true_eng.get(key, key) + if value in dic_eng_to_true_eng: + value = dic_eng_to_true_eng.get(value, value) + if value == 'None': + value = '' + + saved_config[key] = value + + def default(name): + """Get default value in .ini file. + Args: + name (str): option, in chinese. + + Returns: + str: Default value, in chinese. + """ + name = name.strip('-') + return saved_config.get(name, '') + + def choice_list(total): + return [str(index) for index in range(1, total + 1)] + + # Don't use checkbox in gooey, use drop box instead. + # https://github.com/chriskiehl/Gooey/issues/148 + # https://github.com/chriskiehl/Gooey/issues/485 + + parser = GooeyParser(description=f'AzurLaneAutoScript, An Azur Lane automation tool. Config: {config_file}') + subs = parser.add_subparsers(help='commands', dest='command') + + # ==========setting========== + setting_parser = subs.add_parser('setting') + + # 选择关卡 + stage = setting_parser.add_argument_group('Level settings', 'Need to run once to save options') + stage.add_argument('--enable_stop_condition', default=default('--enable_stop_condition'), choices=['yes', 'no']) + stage.add_argument('--enable_fast_forward', default=default('--enable_fast_forward'), choices=['yes', 'no']) + + stop = stage.add_argument_group('Stop condition', 'After triggering, it will not stop immediately. It will complete the current attack first, and fill in 0 if it is not needed.') + stop.add_argument('--if_count_greater_than', default=default('--if_count_greater_than'), help='The previous setting will be used, and the number\n of deductions will be deducted after completion of the attack until it is cleared.') + stop.add_argument('--if_time_reach', default=default('--if_time_reach'), help='Use the time within the next 24 hours, the previous setting will be used, and it will be cleared\n after the trigger. It is recommended to advance about\n 10 minutes to complete the current attack. Format 14:59') + stop.add_argument('--if_oil_lower_than', default=default('--if_oil_lower_than')) + stop.add_argument('--if_trigger_emotion_control', default=default('--if_trigger_emotion_control'), choices=['yes', 'no'], help='If yes, wait for reply, complete this time, stop \nIf no, wait for reply, complete this time, continue') + stop.add_argument('--if_dock_full', default=default('--if_dock_full'), choices=['yes', 'no']) + + # 出击舰队 + fleet = setting_parser.add_argument_group('Attack fleet', 'No support for alternate lane squadrons, inactive map or weekly mode will ignore the step setting') + fleet.add_argument('--enable_fleet_control', default=default('--enable_fleet_control'), choices=['yes', 'no']) + fleet.add_argument('--enable_map_fleet_lock', default=default('--enable_map_fleet_lock'), choices=['yes', 'no']) + + f1 = fleet.add_argument_group('Road Fleet', 'Players can choose a formation before battle. Though it has no effect appearance-wise, the formations applies buffs to certain stats.\nLine Ahead: Increases Firepower and Torpedo by 15%, but reduces Evasion by 10% (Applies only to Vanguard fleet)\nDouble Line: Increases Evasion by 30%, but decreases Firepower and Torpedo by 5% (Applies only to Vanguard fleet)\nDiamond: Increases Anti-Air by 20% (no penalties, applies to entire fleet)') + f1.add_argument('--fleet_index_1', default=default('--fleet_index_1'), choices=['1', '2', '3', '4', '5', '6']) + f1.add_argument('--fleet_formation_1', default=default('--fleet_formation_1'), choices=['Line Ahead', 'Double Line', 'Diamond']) + f1.add_argument('--fleet_step_1', default=default('--fleet_step_1'), choices=['1', '2', '3', '4', '5', '6'], help='In event map, fleet has limit on moving, so fleet_step is how far can a fleet goes in one operation, if map cleared, it will be ignored') + + f2 = fleet.add_argument_group('Boss Fleet') + f2.add_argument('--fleet_index_2', default=default('--fleet_index_2'), choices=['do_not_use', '1', '2', '3', '4', '5', '6']) + f2.add_argument('--fleet_formation_2', default=default('--fleet_formation_2'), choices=['Line Ahead', 'Double Line', 'Diamond']) + f2.add_argument('--fleet_step_2', default=default('--fleet_step_2'), choices=['1', '2', '3', '4', '5', '6'], help='In event map, fleet has limit on moving, so fleet_step is how far can a fleet goes in one operation, if map cleared, it will be ignored') + + f3 = fleet.add_argument_group('Alternate Road Fleet') + f3.add_argument('--fleet_index_3', default=default('--fleet_index_3'), choices=['do_not_use', '1', '2', '3', '4', '5', '6']) + f3.add_argument('--fleet_formation_3', default=default('--fleet_formation_3'), choices=['Line Ahead', 'Double Line', 'Diamond']) + f3.add_argument('--fleet_step_3', default=default('--fleet_step_3'), choices=['1', '2', '3', '4', '5', '6'], help='In event map, fleet has limit on moving, so fleet_step is how far can a fleet goes in one operation, if map cleared, it will be ignored') + + f4 = fleet.add_argument_group('Auto-mode') + f4.add_argument('--combat_auto_mode', default=default('--combat_auto_mode'), choices=['combat_auto', 'combat_manual', 'stand_still_in_the_middle']) + + # 潜艇设置 + submarine = setting_parser.add_argument_group('Submarine settings', 'Only supported: hunt_only, do_not_use every_combat') + submarine.add_argument('--fleet_index_4', default=default('--fleet_index_4'), choices=['do_not_use', '1', '2']) + submarine.add_argument('--submarine_mode', default=default('--submarine_mode'), choices=['do_not_use', 'hunt_only', 'every_combat', 'when_no_ammo', 'when_boss_combat', 'when_boss_combat_boss_appear']) + + # 心情控制 + emotion = setting_parser.add_argument_group('Mood control') + emotion.add_argument('--enable_emotion_reduce', default=default('--enable_emotion_reduce'), choices=['yes', 'no']) + emotion.add_argument('--ignore_low_emotion_warn', default=default('--ignore_low_emotion_warn'), choices=['yes', 'no']) + + e1 = emotion.add_argument_group('Road Fleet') + e1.add_argument('--emotion_recover_1', default=default('--emotion_recover_1'), choices=['not_in_dormitory', 'dormitory_floor_1', 'dormitory_floor_2']) + e1.add_argument('--emotion_control_1', default=default('--emotion_control_1'), choices=['keep_high_emotion', 'avoid_green_face', 'avoid_yellow_face', 'avoid_red_face']) + e1.add_argument('--hole_fleet_married_1', default=default('--hole_fleet_married_1'), choices=['yes', 'no']) + + e2 = emotion.add_argument_group('BOSS Fleet') + e2.add_argument('--emotion_recover_2', default=default('--emotion_recover_2'), choices=['not_in_dormitory', 'dormitory_floor_1', 'dormitory_floor_2']) + e2.add_argument('--emotion_control_2', default=default('--emotion_control_2'), choices=['keep_high_emotion', 'avoid_green_face', 'avoid_yellow_face', 'avoid_red_face']) + e2.add_argument('--hole_fleet_married_2', default=default('--hole_fleet_married_2'), choices=['yes', 'no']) + + e3 = emotion.add_argument_group('Alternate Road Fleet', 'Will be used when the home team triggers mood control') + e3.add_argument('--emotion_recover_3', default=default('--emotion_recover_3'), choices=['not_in_dormitory', 'dormitory_floor_1', 'dormitory_floor_2']) + e3.add_argument('--emotion_control_3', default=default('--emotion_control_3'), choices=['keep_high_emotion', 'avoid_green_face', 'avoid_yellow_face', 'avoid_red_face']) + e3.add_argument('--hole_fleet_married_3', default=default('--hole_fleet_married_3'), choices=['yes', 'no']) + + # 血量平衡 + hp = setting_parser.add_argument_group('HP control', 'Fleet lock must be turned off to take effect') + hp.add_argument('--enable_hp_balance', default=default('--enable_hp_balance'), choices=['yes', 'no']) + hp.add_argument('--enable_low_hp_withdraw', default=default('--enable_low_hp_withdraw'), choices=['yes', 'no']) + hp_balance = hp.add_argument_group('HP Balance', '') + hp_balance.add_argument('--scout_hp_difference_threshold', default=default('--scout_hp_difference_threshold'), help='When the difference in HP volume is greater than the threshold, transpose') + hp_balance.add_argument('--scout_hp_weights', default=default('--scout_hp_weights'), help='Pioneer flesh should be modified when there is a difference, the format 1000,1000,1000') + hp_add = hp.add_argument_group('Emergency repair', '') + hp_add.add_argument('--emergency_repair_single_threshold', default=default('--emergency_repair_single_threshold'), help='Used when single shipgirl is below the threshold') + hp_add.add_argument('--emergency_repair_hole_threshold', default=default('--emergency_repair_hole_threshold'), help='Used when all front rows or all back rows are below the threshold') + hp_withdraw = hp.add_argument_group('Low HP volume withdrawal', '') + hp_withdraw.add_argument('--low_hp_withdraw_threshold', default=default('--low_hp_withdraw_threshold'), help='When HP is below the threshold, retreat') + + # 退役选项 + retire = setting_parser.add_argument_group('Retirement settings', '') + retire.add_argument('--enable_retirement', default=default('--enable_retirement'), choices=['yes', 'no']) + retire.add_argument('--use_one_click_retirement', default=default('--use_one_click_retirement'), choices=['yes', 'no']) + retire.add_argument('--retire_mode', default=default('--retire_mode'), choices=['retire_all', 'retire_10']) + + rarity = retire.add_argument_group('Retirement rarity', 'The ship type selection is not supported yet. Ignore the following options when using one-key retirement') + rarity.add_argument('--retire_n', default=default('--retire_n'), choices=['yes', 'no'], help='N') + rarity.add_argument('--retire_r', default=default('--retire_r'), choices=['yes', 'no'], help='R') + rarity.add_argument('--retire_sr', default=default('--retire_sr'), choices=['yes', 'no'], help='SR') + rarity.add_argument('--retire_ssr', default=default('--retire_ssr'), choices=['yes', 'no'], help='SSR') + + # 掉落记录 + drop = setting_parser.add_argument_group('Drop record', 'Save screenshots of dropped items, which will slow down the click speed when settlement is enabled') + drop.add_argument('--enable_drop_screenshot', default=default('--enable_drop_screenshot'), choices=['yes', 'no']) + drop.add_argument('--drop_screenshot_folder', default=default('--drop_screenshot_folder')) + + clear = setting_parser.add_argument_group('Wasteland mode', 'Unopened maps will stop after completion. Opened maps will ignore options, and its done if you do not open up') + clear.add_argument('--enable_map_clear_mode', default=default('--enable_map_clear_mode'), choices=['yes', 'no']) + clear.add_argument('--clear_mode_stop_condition', default=default('--clear_mode_stop_condition'), choices=['map_100', 'map_3_star', 'map_green']) + clear.add_argument('--map_star_clear_all', default=default('--map_star_clear_all'), choices=['index_1', 'index_2', 'index_3', 'do_not_use'], help='The first few stars are to destroy all enemy ships') + + # ==========reward========== + reward_parser = subs.add_parser('reward') + reward_condition = reward_parser.add_argument_group('Triggering conditions', 'Need to run once to save the options, after running it will enter the on-hook vegetable collection mode') + reward_condition.add_argument('--enable_reward', default=default('--enable_reward'), choices=['yes', 'no']) + reward_condition.add_argument('--reward_interval', default=default('--reward_interval'), choices=['20', '30', '60'], help='How many minutes to trigger collection') + + reward_oil = reward_parser.add_argument_group('Oil supplies', '') + reward_oil.add_argument('--enable_oil_reward', default=default('--enable_oil_reward'), choices=['yes', 'no']) + reward_oil.add_argument('--enable_coin_reward', default=default('--enable_coin_reward'), choices=['yes', 'no']) + + reward_mission = reward_parser.add_argument_group('mission rewards', '') + reward_mission.add_argument('--enable_mission_reward', default=default('--enable_mission_reward'), choices=['yes', 'no']) + + reward_commission = reward_parser.add_argument_group('Commission settings', '') + reward_commission.add_argument('--enable_commission_reward', default=default('--enable_commission_reward'), choices=['yes', 'no']) + reward_commission.add_argument('--commission_time_limit', default=default('--commission_time_limit'), help='Ignore orders whose completion time exceeds the limit, Format: 23:30') + + priority1 = reward_commission.add_argument_group('Time-consuming priority of delegation', '') + priority1.add_argument('--duration_shorter_than_2', default=default('--duration_shorter_than_2'), help='') + priority1.add_argument('--duration_longer_than_6', default=default('--duration_longer_than_6'), help='') + priority1.add_argument('--expire_shorter_than_2', default=default('--expire_shorter_than_2'), help='') + priority1.add_argument('--expire_longer_than_6', default=default('--expire_longer_than_6'), help='') + + priority2 = reward_commission.add_argument_group('Daily delegation priority', '') + priority2.add_argument('--daily_comm', default=default('--daily_comm'), help='Daily resource development, high-level tactical research and development') + priority2.add_argument('--major_comm', default=default('--major_comm'), help='1200 oil / 1000 oil commission') + + priority3 = reward_commission.add_argument_group('Additional delegation priority', '') + priority3.add_argument('--extra_drill', default=default('--extra_drill'), help='Short-range Sailing Training, Coastal Defense Patrol') + priority3.add_argument('--extra_part', default=default('--extra_part'), help='Small Merchant Escort, Forest Protection Commission') + priority3.add_argument('--extra_cube', default=default('--extra_cube'), help='Fleet Exercise Ⅲ, Fleet Escort ExerciseFleet Exercise Ⅲ') + priority3.add_argument('--extra_oil', default=default('--extra_oil'), help='Small-scale Oil Extraction, Large-scale Oil Extraction') + priority3.add_argument('--extra_book', default=default('--extra_book'), help='Small Merchant Escort, Large Merchant Escort') + + priority4 = reward_commission.add_argument_group('Emergency delegation priority', '') + priority4.add_argument('--urgent_drill', default=default('--urgent_drill'), help='Defend the transport troops, annihilate the enemy elite troops') + priority4.add_argument('--urgent_part', default=default('--urgent_part'), help='Support Vila Vela Island, support terror Banner') + priority4.add_argument('--urgent_cube', default=default('--urgent_cube'), help='Rescue merchant ship, enemy attack') + priority4.add_argument('--urgent_book', default=default('--urgent_book'), help='Support Tuhaoer Island, support Moe Island') + priority4.add_argument('--urgent_box', default=default('--urgent_box'), help='BIW equipment transportation, NYB equipment research and development') + priority4.add_argument('--urgent_gem', default=default('--urgent_gem'), help='BIW VIP guard, NYB patrol guard') + priority4.add_argument('--urgent_ship', default=default('--urgent_ship'), help='Small ship watching ceremony, alliance ship watching ceremony') + + reward_tactical = reward_parser.add_argument_group('Classroom', 'Only support continuation of skill books, not new skills') + reward_tactical.add_argument('--enable_tactical_reward', default=default('--enable_tactical_reward'), choices=['yes', 'no']) + reward_tactical.add_argument('--tactical_night_range', default=default('--tactical_night_range'), help='Format 23:30-06:30') + reward_tactical.add_argument('--tactical_book_tier', default=default('--tactical_book_tier'), choices=['3', '2', '1'], help='Skill book that uses at most T a few \nT3 is a gold book, T2 is a purple book, T1 is a blue book') + reward_tactical.add_argument('--tactical_exp_first', default=default('--tactical_exp_first'), choices=['yes', 'no'], help='Choose Yes, give priority to the 150% bonus \nSelect No, give priority to the skills book with the same rarity') + reward_tactical.add_argument('--tactical_book_tier_night', default=default('--tactical_book_tier_night'), choices=['3', '2', '1']) + reward_tactical.add_argument('--tactical_exp_first_night', default=default('--tactical_exp_first_night'), choices=['yes', 'no']) + + # ==========emulator========== + emulator_parser = subs.add_parser('emulator') + emulator = emulator_parser.add_argument_group('Emulator', 'Need to run once to save the options, it will check whether the game is started \nIf the game is started, trigger a collection') + emulator.add_argument('--serial', default=default('--serial'), help='Bluestacks 127.0.0.1:5555 \nNox 127.0.0.1:62001') + emulator.add_argument('--package_name', default=default('--package_name'), help='') + + debug = emulator_parser.add_argument_group('Debug settings', '') + debug.add_argument('--enable_error_log_and_screenshot_save', default=default('--enable_error_log_and_screenshot_save'), choices=['yes', 'no']) + debug.add_argument('--enable_perspective_error_image_save', default=default('--enable_perspective_error_image_save'), choices=['yes', 'no']) + + adb = emulator_parser.add_argument_group('ADB settings', '') + adb.add_argument('--use_adb_screenshot', default=default('--use_adb_screenshot'), choices=['yes', 'no'], help='It is recommended to enable it to reduce CPU usage') + adb.add_argument('--use_adb_control', default=default('--use_adb_control'), choices=['yes', 'no'], help='Suggest to close, can speed up the click speed') + adb.add_argument('--combat_screenshot_interval', default=default('--combat_screenshot_interval'), help='Slow down the screenshot speed during battle and reduce CPU') + + # ==========每日任务========== + daily_parser = subs.add_parser('daily') + + # 选择每日 + daily = daily_parser.add_argument_group('Choose daily', 'Daily tasks, exercises, difficulty charts') + daily.add_argument('--enable_daily_mission', default=default('--enable_daily_mission'), help='If there are records on the day, skip', choices=['yes', 'no']) + daily.add_argument('--enable_hard_campaign', default=default('--enable_hard_campaign'), help='If there are records on the day, skip', choices=['yes', 'no']) + daily.add_argument('--enable_exercise', default=default('--enable_exercise'), help='If there is a record after refreshing, skip', choices=['yes', 'no']) + + # 每日设置 + daily_task = daily_parser.add_argument_group('Daily settings', 'Does not support submarine daily') + daily_task.add_argument('--tactical_training', default=default('--tactical_training'), choices=['daily_air', 'daily_gun', 'daily_torpedo']) + daily_task.add_argument('--fierce_assault', default=default('--fierce_assault'), choices=['index_1', 'index_2', 'index_3']) + daily_task.add_argument('--escort_mission', default=default('--escort_mission'), choices=['index_1', 'index_2', 'index_3']) + daily_task.add_argument('--advance_mission', default=default('--advance_mission'), choices=['index_1', 'index_2', 'index_3']) + daily_task.add_argument('--daily_fleet', default=default('--daily_fleet'), choices=['1', '2', '3', '4', '5', '6']) + daily_task.add_argument('--daily_equipment', default=default('--daily_equipment'), help='Change equipment before playing, unload equipment after playing, do not need to fill in 0 \ncomma, such as 3, 1, 0, 1, 1, 0') + + # 困难设置 + hard = daily_parser.add_argument_group('Difficult setting', 'Need to turn on weekly mode, only support 10-4 temporarily') + hard.add_argument('--hard_campaign', default=default('--hard_campaign'), help='For example 10-4') + hard.add_argument('--hard_fleet', default=default('--hard_fleet'), choices=['1', '2']) + hard.add_argument('--hard_equipment', default=default('--hard_equipment'), help='Change equipment before playing, unload equipment after playing, do not need to fill in 0 \ncomma, such as 3, 1, 0, 1, 1, 0') + + # 演习设置 + exercise = daily_parser.add_argument_group('Exercise settings', 'Only support the most experience for the time being') + exercise.add_argument('--exercise_choose_mode', default=default('--exercise_choose_mode'), choices=['max_exp', 'max_ranking', 'good_opponent'], help='Only support the most experience for the time being') + exercise.add_argument('--exercise_preserve', default=default('--exercise_preserve'), help='Only 0 are temporarily reserved') + exercise.add_argument('--exercise_try', default=default('--exercise_try'), help='The number of attempts by each opponent') + exercise.add_argument('--exercise_hp_threshold', default=default('--exercise_hp_threshold'), help='HHP