From 6f38cad661f8761225169f6ed82f9ec3cebc1060 Mon Sep 17 00:00:00 2001 From: DazedAnon Date: Tue, 15 Oct 2024 09:52:51 -0500 Subject: [PATCH] Fix getSpeaker --- modules/csv.py | 4 ++-- modules/images.py | 4 ++-- modules/lune.py | 4 ++-- modules/nscript.py | 4 ++-- modules/rpgmakerace.py | 4 ++-- modules/rpgmakermvmz.py | 6 +++--- modules/rpgmakerplugin.py | 4 ++-- modules/wolf.py | 4 ++-- modules/wolf2.py | 4 ++-- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/modules/csv.py b/modules/csv.py index 28b2667..7c97828 100644 --- a/modules/csv.py +++ b/modules/csv.py @@ -383,7 +383,7 @@ def getSpeaker(speaker): # Translate and Store Speaker response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", True, ) @@ -394,7 +394,7 @@ def getSpeaker(speaker): # Retry if name doesn't translate for some reason if re.search(r"([a-zA-Z??])", response[0]) == None: response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", False, ) diff --git a/modules/images.py b/modules/images.py index dcffb3b..d1fa56b 100644 --- a/modules/images.py +++ b/modules/images.py @@ -318,7 +318,7 @@ def getSpeaker(speaker): # Translate and Store Speaker response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", True, ) @@ -329,7 +329,7 @@ def getSpeaker(speaker): # Retry if name doesn't translate for some reason if re.search(r"([a-zA-Z??])", response[0]) == None: response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", False, ) diff --git a/modules/lune.py b/modules/lune.py index 996ce91..781a26d 100644 --- a/modules/lune.py +++ b/modules/lune.py @@ -323,7 +323,7 @@ def getSpeaker(speaker): # Translate and Store Speaker response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", True, ) @@ -334,7 +334,7 @@ def getSpeaker(speaker): # Retry if name doesn't translate for some reason if re.search(r"([a-zA-Z??])", response[0]) == None: response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", False, ) diff --git a/modules/nscript.py b/modules/nscript.py index 3076013..38bf7c7 100644 --- a/modules/nscript.py +++ b/modules/nscript.py @@ -391,7 +391,7 @@ def getSpeaker(speaker): # Translate and Store Speaker response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", True, ) @@ -402,7 +402,7 @@ def getSpeaker(speaker): # Retry if name doesn't translate for some reason if re.search(r"([a-zA-Z??])", response[0]) == None: response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", False, ) diff --git a/modules/rpgmakerace.py b/modules/rpgmakerace.py index 1a0684b..1b7fc78 100644 --- a/modules/rpgmakerace.py +++ b/modules/rpgmakerace.py @@ -2432,7 +2432,7 @@ def getSpeaker(speaker): # Translate and Store Speaker response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", True, ) @@ -2443,7 +2443,7 @@ def getSpeaker(speaker): # Retry if name doesn't translate for some reason if re.search(r"([a-zA-Z??])", response[0]) == None: response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", False, ) diff --git a/modules/rpgmakermvmz.py b/modules/rpgmakermvmz.py index ce9b88d..0c9a997 100644 --- a/modules/rpgmakermvmz.py +++ b/modules/rpgmakermvmz.py @@ -69,7 +69,7 @@ LEAVE = False # Dialogue / Scroll / Choices (Main Codes) CODE401 = True CODE405 = True -CODE102 = False +CODE102 = True # Optional CODE101 = True # Turn this one when names exist in 101 @@ -2513,7 +2513,7 @@ def getSpeaker(speaker): # Translate and Store Speaker response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", True, ) @@ -2524,7 +2524,7 @@ def getSpeaker(speaker): # Retry if name doesn't translate for some reason if re.search(r"([a-zA-Z??])", response[0]) == None: response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", False, ) diff --git a/modules/rpgmakerplugin.py b/modules/rpgmakerplugin.py index 5335edc..ccb212e 100644 --- a/modules/rpgmakerplugin.py +++ b/modules/rpgmakerplugin.py @@ -296,7 +296,7 @@ def getSpeaker(speaker): # Translate and Store Speaker response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", True, ) @@ -307,7 +307,7 @@ def getSpeaker(speaker): # Retry if name doesn't translate for some reason if re.search(r"([a-zA-Z??])", response[0]) == None: response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", False, ) diff --git a/modules/wolf.py b/modules/wolf.py index 9f9f392..53bea51 100644 --- a/modules/wolf.py +++ b/modules/wolf.py @@ -1780,7 +1780,7 @@ def getSpeaker(speaker): # Translate and Store Speaker response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", True, ) @@ -1791,7 +1791,7 @@ def getSpeaker(speaker): # Retry if name doesn't translate for some reason if re.search(r"([a-zA-Z??])", response[0]) == None: response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", False, ) diff --git a/modules/wolf2.py b/modules/wolf2.py index 4acbf0b..2cb6f09 100644 --- a/modules/wolf2.py +++ b/modules/wolf2.py @@ -343,7 +343,7 @@ def getSpeaker(speaker): # Translate and Store Speaker response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", True, ) @@ -354,7 +354,7 @@ def getSpeaker(speaker): # Retry if name doesn't translate for some reason if re.search(r"([a-zA-Z??])", response[0]) == None: response = translateGPT( - f'Speaker: {speaker}', + f'{speaker}', "Reply with the " + LANGUAGE + " translation of the NPC name.", False, )