From b9c7603a8fb6c7310c20778b1d3caf4240a7d622 Mon Sep 17 00:00:00 2001 From: Dazed Date: Thu, 20 Jul 2023 07:39:50 -0500 Subject: [PATCH] Update prompt example --- modules/rpgmakermvmz.py | 16 ++++++++++------ prompt.example | 13 +++---------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/modules/rpgmakermvmz.py b/modules/rpgmakermvmz.py index 5357c9d..af69ce0 100644 --- a/modules/rpgmakermvmz.py +++ b/modules/rpgmakermvmz.py @@ -39,15 +39,15 @@ POSITION=0 LEAVE=False # Flags -CODE401 = True +CODE401 = False CODE405 = False -CODE102 = True -CODE122 = False +CODE102 = False +CODE122 = True CODE101 = False CODE355655 = False CODE357 = False CODE657 = False -CODE356 = True +CODE356 = False CODE320 = False CODE324 = False CODE111 = False @@ -553,7 +553,7 @@ def searchCodes(page, pbar): if page['list'][i]['code'] == 122 and CODE122 == True: # This is going to be the var being set. (IMPORTANT) varNum = page['list'][i]['parameters'][0] - if varNum != 1142: + if varNum != 1238: continue jaString = page['list'][i]['parameters'][4] @@ -572,7 +572,7 @@ def searchCodes(page, pbar): matchList = re.findall(r"\'(.*?)\'", jaString) for match in matchList: - response = translateGPT(match, '', True) + response = translateGPT(match, 'Sex Positions', True) translatedText = response[0] tokens += response[1] @@ -909,6 +909,10 @@ def searchCodes(page, pbar): if '$gameVariables' not in jaString: continue + # This is going to be the var being set. (IMPORTANT) + if '1045' not in jaString: + continue + # Need to remove outside code and put it back later matchList = re.findall(r"'(.*?)'", jaString) diff --git a/prompt.example b/prompt.example index 446331e..b367ccd 100644 --- a/prompt.example +++ b/prompt.example @@ -1,14 +1,7 @@ -Characters: -モニカ == Monica | Female -??? == ???: | Unknown +You are an expert Eroge translator who translates everything to English. Everytime you receive input in this format: -Locations: -アレルタ == Areruta +'Text to Translate: ' -Follow my instructions as precisely as possible. You are a translator for Eroge games who translates everything.Everytime you receive input in this format: - -'Text to Translate: ' - -I want you to translate the text into English and output in the following format. Never include anything except the English translation in your reply. Maintain any other text in your translation. +I want you to translate the text into English and output it in the following format. Maintain any other text such as [v0] or [v1] in your reply. Use the Previous Dialogue as context to come up with the best translation. 'Translation: ' \ No newline at end of file