Add Global Var to configure wide converter in nscript

This commit is contained in:
DazedAnon 2025-03-11 13:58:57 -05:00
parent f98b4e06ef
commit d0db08c2b4
3 changed files with 34 additions and 26 deletions

View file

@ -41,6 +41,7 @@ BRFLAG = False # If the game uses <br> instead
FIXTEXTWRAP = True # Overwrites textwrap
IGNORETLTEXT = False # Ignores all translated text.
MISMATCH = [] # Lists files that throw a mismatch error (Length of GPT list response is wrong)
CONVERTTOWIDE = False # Default (False)
# tqdm Globals
BAR_FORMAT = "{l_bar}{bar:10}{r_bar}{bar:-10b}"
@ -266,7 +267,8 @@ def translateOnscripter(data, pbar, filename, translatedList):
translatedText = translatedText.replace(" ", " ")
# Convert to Wide
translatedText = translatedText.translate(ascii_to_wide)
if CONVERTTOWIDE:
translatedText = translatedText.translate(ascii_to_wide)
# Fix Formatting
translatedText = fixText(translatedText)
@ -291,7 +293,8 @@ def translateOnscripter(data, pbar, filename, translatedList):
# Set Data
for j in range(len(translatedTextList)):
# Convert to Wide
translatedText = translatedTextList[j].translate(ascii_to_wide)
if CONVERTTOWIDE:
translatedText = translatedTextList[j].translate(ascii_to_wide)
# Set
data[i] = data[i].replace(choiceList[j], translatedText)

View file

@ -1206,7 +1206,7 @@ def searchCodes(page, pbar, jobList, filename):
## Event Code: 122 [Set Variables]
if "code" in codeList[i] and codeList[i]["code"] == 122 and CODE122 is True:
# This is going to be the var being set. (IMPORTANT)
if codeList[i]["parameters"][0] not in list(range(0, 100)):
if codeList[i]["parameters"][0] not in list(range(500, 800)):
i += 1
continue

View file

@ -1,29 +1,34 @@
Here are some vocabulary and terms so that you know the proper spelling and translation.
```
# Game Characters
しナリス (Renalith) - Female
ウイオラ (Viola) - Female
夜霧 (Yogiri) - Female
シスターミサ (Sister Misa) - Female
マダムローズ (Madam Rose) - Female
ドン=ブリトー (Don Borito) - Male
ゴン=ブリトー (Gon Borito) - Male
ボンゴ (Bongo) - Male
占い師 (Fortune Teller) - Female
グランド (Grand) - Male
トラバス所長 (Director Trabas) - Male
大富豪ティンパ (Tycoon Timpa) - Male
傭兵サクソン (Mercenary Saxon) - Male
拳法家リュウチン (Kung Fu Master Ryuchin) - Male
マイティゴースト (Mighty Ghost) - Female
バトウ (Batou) - Male
ディーラー (Dealer) - Male
チェンバロ王子 (Prince Cembalo) - Male
リネット (Linette) - Female
オリン (Orin) - Female
チェロル (Cheryl) - Female
スクルー (Sukuru) - Female
スクルド (Skuld) - Female
アイカ (Aika) - Female
カナエ (Kanae) - Female
マドカ (Madoka) - Female
シズカ (Shizuka) - Female
ユウキ (Yuuki) - Male
ユキナ (Yukina) - Female
ヒカリ (Hikari) - Female
イッパツ (Ippatsu) - Male
ウユ (Uyu) - Female
ミキ (Miki) - Female
カズヨシ (Kazuyoshi) - Male
モモコ (Momoko) - Female
ライタ (Raita) - Male
ツヨシ (Tsuyoshi) - Male
レイキ (Reiki) - Male
センカ (Senka) - Female
タツオ (Tatsuo) - Male
チョウシン (Choushin) - Male
ヤワラ (Yawara) - Female
カンテツ (Kantetsu) - Male
ソラ (Sora) - Female
すすむ (Susumu) - Male
イリコ (Iriko)
レイナ (Reina)
ギンジ (Ginji)
ケンシロウ (Kenshirou)
カガミ (Kagami)
円 (Yen) - Female
# Lewd Terms
マンコ (pussy)