Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 47e0f17

Browse files
committed
bug fixes
1 parent eb1333f commit 47e0f17

File tree

4 files changed

+63
-59
lines changed

4 files changed

+63
-59
lines changed

src/localization/locales.py

+46-46
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@
519519
},
520520
},
521521
"ja-JP": {
522-
"author": "@Yossi#1114",
522+
# "author": "@Yossi#1114",
523523

524524
# cmd doesnt support kanji :(
525525
# "config": {
@@ -577,51 +577,51 @@
577577
# "checker_error": "アップデートを確認できませんでした。",
578578
# }
579579
# },
580-
"presences": {
581-
"party_states": {
582-
"open": "オープンパーティー",
583-
"solo": "ソロ",
584-
"in_party": "パーティーに参加中",
585-
},
586-
"client_states": {
587-
"away": "離席中",
588-
"menu": "メニュー",
589-
"custom_setup": "カスタム設定",
590-
"queue": "マッチを検索中",
591-
"pregame": "試合開始前",
592-
},
593-
"team_names": {
594-
"TeamOne": "ディフェンダー",
595-
"TeamTwo": "アタッカー",
596-
"TeamSpectate": "観戦者",
597-
"TeamOneCoaches": "ディフェンダー側コーチ",
598-
"TeamTwoCoaches": "アタッカー側コーチ",
599-
},
600-
"modes": {
601-
"newmap": "新マップ",
602-
"competitive": "コンペティティブ",
603-
"unrated": "アンレート",
604-
"spikerush": "スパイクラッシュ",
605-
"deathmatch": "デスマッチ",
606-
"ggteam": "エスカレーション",
607-
"onefa": "レプリケーション",
608-
"custom": "カスタムゲーム",
609-
"snowball": "スノーボールファイト",
610-
"": "カスタム",
611-
},
612-
"pregame": {
613-
"selecting": "選択中",
614-
"locked": "ロック済み",
615-
},
616-
"leveling": {
617-
"level": "レベル",
618-
"ranked_rating": "RR",
619-
},
620-
"startup": {
621-
"loading": "ロード中",
622-
"view_github": "GitHubで確認",
623-
}
624-
},
580+
# "presences": {
581+
# "party_states": {
582+
# "open": "オープンパーティー",
583+
# "solo": "ソロ",
584+
# "in_party": "パーティーに参加中",
585+
# },
586+
# "client_states": {
587+
# "away": "離席中",
588+
# "menu": "メニュー",
589+
# "custom_setup": "カスタム設定",
590+
# "queue": "マッチを検索中",
591+
# "pregame": "試合開始前",
592+
# },
593+
# "team_names": {
594+
# "TeamOne": "ディフェンダー",
595+
# "TeamTwo": "アタッカー",
596+
# "TeamSpectate": "観戦者",
597+
# "TeamOneCoaches": "ディフェンダー側コーチ",
598+
# "TeamTwoCoaches": "アタッカー側コーチ",
599+
# },
600+
# "modes": {
601+
# "newmap": "新マップ",
602+
# "competitive": "コンペティティブ",
603+
# "unrated": "アンレート",
604+
# "spikerush": "スパイクラッシュ",
605+
# "deathmatch": "デスマッチ",
606+
# "ggteam": "エスカレーション",
607+
# "onefa": "レプリケーション",
608+
# "custom": "カスタムゲーム",
609+
# "snowball": "スノーボールファイト",
610+
# "": "カスタム",
611+
# },
612+
# "pregame": {
613+
# "selecting": "選択中",
614+
# "locked": "ロック済み",
615+
# },
616+
# "leveling": {
617+
# "level": "レベル",
618+
# "ranked_rating": "RR",
619+
# },
620+
# "startup": {
621+
# "loading": "ロード中",
622+
# "view_github": "GitHubで確認",
623+
# }
624+
# },
625625
},
626626
"ko-KR": {},
627627
"pl-PL": {},

src/localization/localization.py

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def unlocalize_key(key):
4646
return k
4747
return key
4848

49+
@staticmethod
4950
def get_config_value(*keys):
5051
localized_keys = [Localizer.get_config_key(key) for key in keys]
5152
result = Localizer.config

src/presence/presences/ingame.py

+15-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
from .ingame_presences.session import Game_Session
22
from .ingame_presences.range import Range_Session
3+
from valclient.exceptions import PhaseError
34

45
def presence(rpc,client=None,data=None,content_data=None,config=None):
5-
coregame = client.coregame_fetch_player()
6+
try:
7+
coregame = client.coregame_fetch_player()
68

7-
if coregame is not None:
8-
match_id = coregame["MatchID"]
9-
if data["provisioningFlow"] != "ShootingRange":
10-
try:
11-
session = Game_Session(rpc,client,data,match_id,content_data,config)
9+
if coregame is not None:
10+
match_id = coregame["MatchID"]
11+
if data["provisioningFlow"] != "ShootingRange":
12+
try:
13+
session = Game_Session(rpc,client,data,match_id,content_data,config)
14+
session.main_loop()
15+
except:
16+
pass
17+
else:
18+
session = Range_Session(rpc,client,data,match_id,content_data,config)
1219
session.main_loop()
13-
except:
14-
pass
15-
else:
16-
session = Range_Session(rpc,client,data,match_id,content_data,config)
17-
session.main_loop()
18-
1920

21+
except PhaseError:
22+
pass

src/utilities/config/app_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ...localization.localization import Localizer
88

99
default_config = {
10-
"version": "v3.1.0",
10+
"version": "v3.1.1",
1111
"region": ["",Client.fetch_regions()],
1212
"client_id": 811469787657928704,
1313
"presence_refresh_interval": 3,

0 commit comments

Comments
 (0)