Add: Set up logging.raiseExceptions to False to silence exceptions

FIx: [EN] Minor fix in translation.
This commit is contained in:
kyO The NinjA 2020-06-03 05:17:20 -03:00
parent 7dd2ef6ab1
commit 6fe11505a7
3 changed files with 7 additions and 1 deletions

View File

@ -318,7 +318,7 @@ def main(ini_name=''):
# event_name.add_argument('--enable_hard_bonus', default=default('--enable_hard_bonus'), choices=['yes', 'no'], help='Will enable Daily bonus for Event hard maps') # Trying implement all event maps # event_name.add_argument('--enable_hard_bonus', default=default('--enable_hard_bonus'), choices=['yes', 'no'], help='Will enable Daily bonus for Event hard maps') # Trying implement all event maps
# ==========main========== # ==========main==========
main_parser = subs.add_parser('main') main_parser = subs.add_parser('Main_campaign')
# 选择关卡 # 选择关卡
stage = main_parser.add_argument_group('Choose a level', 'Main campaign, currently only supports the first six chapters and 7-2') stage = main_parser.add_argument_group('Choose a level', 'Main campaign, currently only supports the first six chapters and 7-2')
stage.add_argument('--main_stage', default=default('--main_stage'), help='E.g 7-2') stage.add_argument('--main_stage', default=default('--main_stage'), help='E.g 7-2')

View File

@ -4,6 +4,8 @@ from module.base.template import Template
# This file is generated by module.dev_tools.asset_extract. # This file is generated by module.dev_tools.asset_extract.
# Don't modified it manually. # Don't modified it manually.
CLOSE_ANNOUNCEMENT = Button(area={'cn': (922, 140, 990, 187), 'en': (922, 140, 990, 187)}, color={'cn': (217, 101, 96), 'en': (217, 101, 96)}, button={'cn': (922, 140, 990, 187), 'en': (922, 140, 990, 187)}, file={'cn': './assets/cn/handler/CLOSE_ANNOUNCEMENT.png', 'en': './assets/en/handler/CLOSE_ANNOUNCEMENT.png'})
EVENT_ANNOUNCEMENT_CHECK = Button(area={'cn': (302, 151, 560, 175), 'en': (302, 151, 560, 175)}, color={'cn': (163, 179, 214), 'en': (163, 179, 214)}, button={'cn': (302, 151, 560, 175), 'en': (302, 151, 560, 175)}, file={'cn': './assets/cn/handler/EVENT_ANNOUNCEMENT_CHECK.png', 'en': './assets/en/handler/EVENT_ANNOUNCEMENT_CHECK.png'})
FAST_FORWARD_OFF = Button(area={'cn': (984, 587, 1021, 606), 'en': (984, 587, 1021, 606)}, color={'cn': (252, 252, 252), 'en': (252, 252, 252)}, button={'cn': (984, 587, 1021, 606), 'en': (984, 587, 1021, 606)}, file={'cn': './assets/cn/handler/FAST_FORWARD_OFF.png', 'en': './assets/en/handler/FAST_FORWARD_OFF.png'}) FAST_FORWARD_OFF = Button(area={'cn': (984, 587, 1021, 606), 'en': (984, 587, 1021, 606)}, color={'cn': (252, 252, 252), 'en': (252, 252, 252)}, button={'cn': (984, 587, 1021, 606), 'en': (984, 587, 1021, 606)}, file={'cn': './assets/cn/handler/FAST_FORWARD_OFF.png', 'en': './assets/en/handler/FAST_FORWARD_OFF.png'})
FAST_FORWARD_ON = Button(area={'cn': (1025, 587, 1063, 606), 'en': (1025, 587, 1063, 606)}, color={'cn': (252, 252, 252), 'en': (252, 252, 252)}, button={'cn': (1025, 587, 1063, 606), 'en': (1025, 587, 1063, 606)}, file={'cn': './assets/cn/handler/FAST_FORWARD_ON.png', 'en': './assets/en/handler/FAST_FORWARD_ON.png'}) FAST_FORWARD_ON = Button(area={'cn': (1025, 587, 1063, 606), 'en': (1025, 587, 1063, 606)}, color={'cn': (252, 252, 252), 'en': (252, 252, 252)}, button={'cn': (1025, 587, 1063, 606), 'en': (1025, 587, 1063, 606)}, file={'cn': './assets/cn/handler/FAST_FORWARD_ON.png', 'en': './assets/en/handler/FAST_FORWARD_ON.png'})
FLEET_LOCKED = Button(area={'cn': (1197, 502, 1274, 519), 'en': (1181, 490, 1280, 531)}, color={'cn': (146, 186, 179), 'en': (61, 82, 97)}, button={'cn': (1197, 502, 1274, 519), 'en': (1181, 490, 1280, 531)}, file={'cn': './assets/cn/handler/FLEET_LOCKED.png', 'en': './assets/en/handler/FLEET_LOCKED.png'}) FLEET_LOCKED = Button(area={'cn': (1197, 502, 1274, 519), 'en': (1181, 490, 1280, 531)}, color={'cn': (146, 186, 179), 'en': (61, 82, 97)}, button={'cn': (1197, 502, 1274, 519), 'en': (1181, 490, 1280, 531)}, file={'cn': './assets/cn/handler/FLEET_LOCKED.png', 'en': './assets/en/handler/FLEET_LOCKED.png'})
@ -18,6 +20,7 @@ GET_MISSION = Button(area={'cn': (553, 491, 727, 551), 'en': (553, 481, 727, 541
INFO_BAR_1 = Button(area={'cn': (194, 297, 1086, 299), 'en': (194, 297, 1086, 299)}, color={'cn': (107, 158, 255), 'en': (107, 158, 255)}, button={'cn': (194, 297, 1086, 299), 'en': (194, 297, 1086, 299)}, file={'cn': './assets/cn/handler/INFO_BAR_1.png', 'en': './assets/en/handler/INFO_BAR_1.png'}) INFO_BAR_1 = Button(area={'cn': (194, 297, 1086, 299), 'en': (194, 297, 1086, 299)}, color={'cn': (107, 158, 255), 'en': (107, 158, 255)}, button={'cn': (194, 297, 1086, 299), 'en': (194, 297, 1086, 299)}, file={'cn': './assets/cn/handler/INFO_BAR_1.png', 'en': './assets/en/handler/INFO_BAR_1.png'})
INFO_BAR_2 = Button(area={'cn': (194, 234, 1086, 236), 'en': (194, 234, 1086, 236)}, color={'cn': (107, 158, 255), 'en': (107, 158, 255)}, button={'cn': (194, 234, 1086, 236), 'en': (194, 234, 1086, 236)}, file={'cn': './assets/cn/handler/INFO_BAR_2.png', 'en': './assets/en/handler/INFO_BAR_2.png'}) INFO_BAR_2 = Button(area={'cn': (194, 234, 1086, 236), 'en': (194, 234, 1086, 236)}, color={'cn': (107, 158, 255), 'en': (107, 158, 255)}, button={'cn': (194, 234, 1086, 236), 'en': (194, 234, 1086, 236)}, file={'cn': './assets/cn/handler/INFO_BAR_2.png', 'en': './assets/en/handler/INFO_BAR_2.png'})
INFO_BAR_3 = Button(area={'cn': (194, 171, 1086, 173), 'en': (194, 171, 1086, 173)}, color={'cn': (107, 158, 255), 'en': (107, 158, 255)}, button={'cn': (194, 171, 1086, 173), 'en': (194, 171, 1086, 173)}, file={'cn': './assets/cn/handler/INFO_BAR_3.png', 'en': './assets/en/handler/INFO_BAR_3.png'}) INFO_BAR_3 = Button(area={'cn': (194, 171, 1086, 173), 'en': (194, 171, 1086, 173)}, color={'cn': (107, 158, 255), 'en': (107, 158, 255)}, button={'cn': (194, 171, 1086, 173), 'en': (194, 171, 1086, 173)}, file={'cn': './assets/cn/handler/INFO_BAR_3.png', 'en': './assets/en/handler/INFO_BAR_3.png'})
INFO_WINDOW = Button(area={'cn': (860, 191, 929, 237), 'en': (860, 191, 929, 237)}, color={'cn': (217, 103, 97), 'en': (217, 103, 97)}, button={'cn': (860, 191, 929, 237), 'en': (860, 191, 929, 237)}, file={'cn': './assets/cn/handler/INFO_WINDOW.png', 'en': './assets/en/handler/INFO_WINDOW.png'})
IN_MAP = Button(area={'cn': (749, 654, 921, 707), 'en': (748, 652, 922, 702)}, color={'cn': (213, 124, 124), 'en': (211, 124, 124)}, button={'cn': (749, 654, 921, 707), 'en': (748, 652, 922, 702)}, file={'cn': './assets/cn/handler/IN_MAP.png', 'en': './assets/en/handler/IN_MAP.png'}) IN_MAP = Button(area={'cn': (749, 654, 921, 707), 'en': (748, 652, 922, 702)}, color={'cn': (213, 124, 124), 'en': (211, 124, 124)}, button={'cn': (749, 654, 921, 707), 'en': (748, 652, 922, 702)}, file={'cn': './assets/cn/handler/IN_MAP.png', 'en': './assets/en/handler/IN_MAP.png'})
IN_STAGE = Button(area={'cn': (122, 16, 172, 39), 'en': (120, 18, 208, 40)}, color={'cn': (149, 167, 207), 'en': (104, 118, 157)}, button={'cn': (122, 16, 172, 39), 'en': (120, 18, 208, 40)}, file={'cn': './assets/cn/handler/IN_STAGE.png', 'en': './assets/en/handler/IN_STAGE.png'}) IN_STAGE = Button(area={'cn': (122, 16, 172, 39), 'en': (120, 18, 208, 40)}, color={'cn': (149, 167, 207), 'en': (104, 118, 157)}, button={'cn': (122, 16, 172, 39), 'en': (120, 18, 208, 40)}, file={'cn': './assets/cn/handler/IN_STAGE.png', 'en': './assets/en/handler/IN_STAGE.png'})
LOGIN_ANNOUNCE = Button(area={'cn': (1160, 45, 1227, 90), 'en': (1159, 44, 1228, 91)}, color={'cn': (174, 61, 56), 'en': (193, 79, 73)}, button={'cn': (1160, 45, 1227, 90), 'en': (1159, 44, 1228, 91)}, file={'cn': './assets/cn/handler/LOGIN_ANNOUNCE.png', 'en': './assets/en/handler/LOGIN_ANNOUNCE.png'}) LOGIN_ANNOUNCE = Button(area={'cn': (1160, 45, 1227, 90), 'en': (1159, 44, 1228, 91)}, color={'cn': (174, 61, 56), 'en': (193, 79, 73)}, button={'cn': (1160, 45, 1227, 90), 'en': (1159, 44, 1228, 91)}, file={'cn': './assets/cn/handler/LOGIN_ANNOUNCE.png', 'en': './assets/en/handler/LOGIN_ANNOUNCE.png'})
@ -38,6 +41,7 @@ MAP_WALK_OUT_OF_STEP = Button(area={'cn': (654, 312, 704, 335), 'en': (654, 312,
MYSTERY_ITEM = Button(area={'cn': (589, 294, 691, 427), 'en': (589, 294, 691, 427)}, color={'cn': (144, 127, 83), 'en': (144, 127, 83)}, button={'cn': (589, 294, 691, 427), 'en': (589, 294, 691, 427)}, file={'cn': './assets/cn/handler/MYSTERY_ITEM.png', 'en': './assets/en/handler/MYSTERY_ITEM.png'}) MYSTERY_ITEM = Button(area={'cn': (589, 294, 691, 427), 'en': (589, 294, 691, 427)}, color={'cn': (144, 127, 83), 'en': (144, 127, 83)}, button={'cn': (589, 294, 691, 427), 'en': (589, 294, 691, 427)}, file={'cn': './assets/cn/handler/MYSTERY_ITEM.png', 'en': './assets/en/handler/MYSTERY_ITEM.png'})
POPUP_CANCEL = Button(area={'cn': (404, 493, 576, 550), 'en': (403, 481, 577, 541)}, color={'cn': (166, 169, 172), 'en': (170, 172, 174)}, button={'cn': (404, 493, 576, 550), 'en': (403, 481, 577, 541)}, file={'cn': './assets/cn/handler/POPUP_CANCEL.png', 'en': './assets/en/handler/POPUP_CANCEL.png'}) POPUP_CANCEL = Button(area={'cn': (404, 493, 576, 550), 'en': (403, 481, 577, 541)}, color={'cn': (166, 169, 172), 'en': (170, 172, 174)}, button={'cn': (404, 493, 576, 550), 'en': (403, 481, 577, 541)}, file={'cn': './assets/cn/handler/POPUP_CANCEL.png', 'en': './assets/en/handler/POPUP_CANCEL.png'})
POPUP_CONFIRM = Button(area={'cn': (704, 493, 876, 550), 'en': (703, 481, 877, 541)}, color={'cn': (94, 144, 204), 'en': (107, 152, 207)}, button={'cn': (704, 493, 876, 550), 'en': (703, 481, 877, 541)}, file={'cn': './assets/cn/handler/POPUP_CONFIRM.png', 'en': './assets/en/handler/POPUP_CONFIRM.png'}) POPUP_CONFIRM = Button(area={'cn': (704, 493, 876, 550), 'en': (703, 481, 877, 541)}, color={'cn': (94, 144, 204), 'en': (107, 152, 207)}, button={'cn': (704, 493, 876, 550), 'en': (703, 481, 877, 541)}, file={'cn': './assets/cn/handler/POPUP_CONFIRM.png', 'en': './assets/en/handler/POPUP_CONFIRM.png'})
SERVER_DOWN = Button(area={'cn': (565, 314, 706, 334), 'en': (565, 314, 706, 334)}, color={'cn': (109, 111, 114), 'en': (109, 111, 114)}, button={'cn': (565, 314, 706, 334), 'en': (565, 314, 706, 334)}, file={'cn': './assets/cn/handler/SERVER_DOWN.png', 'en': './assets/en/handler/SERVER_DOWN.png'})
STORY_CHOOSE = Button(area={'cn': (902, 344, 959, 357), 'en': (902, 344, 959, 357)}, color={'cn': (98, 122, 156), 'en': (98, 122, 156)}, button={'cn': (902, 344, 959, 357), 'en': (902, 344, 959, 357)}, file={'cn': './assets/cn/handler/STORY_CHOOSE.png', 'en': './assets/en/handler/STORY_CHOOSE.png'}) STORY_CHOOSE = Button(area={'cn': (902, 344, 959, 357), 'en': (902, 344, 959, 357)}, color={'cn': (98, 122, 156), 'en': (98, 122, 156)}, button={'cn': (902, 344, 959, 357), 'en': (902, 344, 959, 357)}, file={'cn': './assets/cn/handler/STORY_CHOOSE.png', 'en': './assets/en/handler/STORY_CHOOSE.png'})
STORY_CHOOSE_2 = Button(area={'cn': (903, 388, 959, 399), 'en': (903, 388, 959, 399)}, color={'cn': (98, 121, 156), 'en': (98, 121, 156)}, button={'cn': (903, 388, 959, 399), 'en': (903, 388, 959, 399)}, file={'cn': './assets/cn/handler/STORY_CHOOSE_2.png', 'en': './assets/en/handler/STORY_CHOOSE_2.png'}) STORY_CHOOSE_2 = Button(area={'cn': (903, 388, 959, 399), 'en': (903, 388, 959, 399)}, color={'cn': (98, 121, 156), 'en': (98, 121, 156)}, button={'cn': (903, 388, 959, 399), 'en': (903, 388, 959, 399)}, file={'cn': './assets/cn/handler/STORY_CHOOSE_2.png', 'en': './assets/en/handler/STORY_CHOOSE_2.png'})
STORY_LETTERS_ONLY = Button(area={'cn': (1159, 26, 1264, 52), 'en': (1159, 26, 1264, 52)}, color={'cn': (123, 128, 141), 'en': (123, 128, 141)}, button={'cn': (1159, 26, 1264, 52), 'en': (1159, 26, 1264, 52)}, file={'cn': './assets/cn/handler/STORY_LETTERS_ONLY.png', 'en': './assets/en/handler/STORY_LETTERS_ONLY.png'}) STORY_LETTERS_ONLY = Button(area={'cn': (1159, 26, 1264, 52), 'en': (1159, 26, 1264, 52)}, color={'cn': (123, 128, 141), 'en': (123, 128, 141)}, button={'cn': (1159, 26, 1264, 52), 'en': (1159, 26, 1264, 52)}, file={'cn': './assets/cn/handler/STORY_LETTERS_ONLY.png', 'en': './assets/en/handler/STORY_LETTERS_ONLY.png'})

View File

@ -4,6 +4,8 @@ import os
import sys import sys
from collections import deque from collections import deque
logging.raiseExceptions = False # Set True if wanna see encode errors on console
pyw_name = os.path.splitext(os.path.basename(sys.argv[0]))[0] pyw_name = os.path.splitext(os.path.basename(sys.argv[0]))[0]
if '_' in pyw_name: if '_' in pyw_name:
pyw_name = '_'.join(pyw_name.split('_')[:-1]) pyw_name = '_'.join(pyw_name.split('_')[:-1])