Delete some stuff

This commit is contained in:
dazedanon 2025-09-10 14:40:45 -05:00
parent 7baffb8cc0
commit 7d4a849a61
9 changed files with 14 additions and 89 deletions

1
.gitignore vendored
View file

@ -5,6 +5,7 @@
*.yaml
*.yml
*.txt
*.log
!prompt.txt
*.rpy
!vocab.txt

View file

@ -1,52 +0,0 @@
# Event codes
# case 401 : return 'Show Text'; break;
# case 402 : return 'When *'; break;
# case 102 : return 'Show Choices'; break;
# case 103 : return 'Input Number'; break;
# case 104 : return 'Select Item'; break;
# 108 and 408 are event comments
# case 405 : return 'Show Scrolling Text'; break;
# case 111 : return 'Conditional Branch'; break;
# case 119 : return 'Common Event'; break;
# case 121 : return 'Control Switches'; break;
# case 122 : return 'Control Variables'; break;
# case 125 : return 'Change Gold'; break;
# case 126 : return 'Change Items'; break;
# case 127 : return 'Change Weapons'; break;
# case 128 : return 'Change Armors'; break;
# case 129 : return 'Change Party Member'; break;
# case 201 : return 'Transfer Player'; break;
# case 202 : return 'Set Vehicle Location'; break;
# case 203 : return 'Set Event Location'; break;
# case 505 : return 'Set Movement Route'; break;
# case 212 : return 'Show Animation'; break;
# case 231 : return 'Show Picture'; break;
# case 232 : return 'Move Picture'; break;
# case 285 : return 'Get Location Info'; break;
# case 301 : return 'Battle Processing'; break;
# case 302 :
# case 605 : return 'Shop Processing'; break;
# case 303 : return 'Name Input Processing'; break;
# case 311 : return 'Change HP'; break;
# case 312 : return 'Change MP'; break;
# case 326 : return 'Change TP'; break;
# case 313 : return 'Change State'; break;
# case 314 : return 'Recover All'; break;
# case 315 : return 'Change EXP'; break;
# case 316 : return 'Change Level'; break;
# case 317 : return 'Change Parameter'; break;
# case 318 : return 'Change Skill'; break;
# case 319 : return 'Change Equipment'; break;
# case 320 : return 'Change Name'; break;
# case 321 : return 'Change Class'; break;
# case 322 : return 'Change Actor Images'; break;
# case 324 : return 'Change Nickname'; break;
# case 325 : return 'Change Profile'; break;
# case 331 : return 'Change Enemy HP'; break;
# case 332 : return 'Change Enemy MP'; break;
# case 342 : return 'Change Enemy TP'; break;
# case 333 : return 'Change Enemy State'; break;
# case 336 : return 'Enemy Transform'; break;
# case 337 : return 'Show Battle Animation'; break;
# case 339 : return 'Force Action'; break;
# default : return code;

View file

View file

@ -613,7 +613,7 @@ def searchNames(data, pbar, context):
newContext = "Reply with only the " + LANGUAGE + " translation of the RPG skill name"
# Names
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
file.write(f"\n#{context}\n")
while i < len(data) or filling == True:
if i < len(data):
@ -862,7 +862,7 @@ def searchNames(data, pbar, context):
else:
# Get Text
if data[j]["name"] != "":
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
file.write(f'{data[j]["name"]} ({translatedNameBatch[0]})\n')
data[j]["name"] = translatedNameBatch[0]
translatedNameBatch.pop(0)
@ -911,7 +911,7 @@ def searchNames(data, pbar, context):
# Set Data
if len(nameList) == len(translatedNameBatch):
j = k
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
while j < i:
# Empty Data
if data[j] is None or data[j]["name"] == "":
@ -954,7 +954,7 @@ def searchNames(data, pbar, context):
j += 1
continue
else:
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
file.write(f'{data[j]["name"]} ({translatedNameBatch[0]})\n')
# Get Text
data[j]["name"] = translatedNameBatch[0]

View file

@ -840,7 +840,7 @@ def searchNames(data, pbar, context, filename):
newContext = "Reply with only the " + LANGUAGE + " translation of the RPG skill name"
# Names
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
file.write(f"\n#{context}\n")
# --- Batching pass: collect all note texts for all note types ---
@ -1049,7 +1049,7 @@ def searchNames(data, pbar, context, filename):
else:
# Get Text
if data[j]["name"] != "":
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
file.write(f'{data[j]["name"]} ({translatedNameBatch[0]})\n')
# Actors are excluded from vocab updates
data[j]["name"] = translatedNameBatch[0]
@ -1107,7 +1107,7 @@ def searchNames(data, pbar, context, filename):
# Set Data
if len(nameList) == len(translatedNameBatch):
j = k
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
while j < i:
# Empty Data
if data[j] is None or data[j]["name"] == "":
@ -1161,7 +1161,7 @@ def searchNames(data, pbar, context, filename):
j += 1
continue
else:
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
file.write(f'{data[j]["name"]} ({translatedNameBatch[0]})\n')
# Get Text
if vocab_enabled:

View file

@ -228,7 +228,7 @@ def translatePlugin(data, pbar, filename, translatedList):
i = 0
# Category
with open("translations.txt", "a+", encoding="utf-8") as tlFile:
with open("log/translations.txt", "a+", encoding="utf-8") as tlFile:
tlFile.write(f"\nCustom:\n")
tlFile.close()
@ -291,7 +291,7 @@ def translatePlugin(data, pbar, filename, translatedList):
translatedText = re.sub(r"\n", re.escape(colorCode), translatedText)
# Set Data
with open("translations.txt", "a+", encoding="utf-8") as tlFile:
with open("log/translations.txt", "a+", encoding="utf-8") as tlFile:
tlFile.write(f"{originalString} ({translatedText})\n")
data[i] = data[i].replace(originalString, translatedText)
saveCheckLines(data, filename)

View file

@ -941,7 +941,7 @@ def searchDB(events, pbar, jobList, filename):
for table in tableList:
# Grab NPCs
if table["name"] == "戦闘コマンド" and NPCFLAG == True:
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
if setData:
file.write(f"\n#Actors\n")
for npc in table["data"]:
@ -1292,7 +1292,7 @@ def searchDB(events, pbar, jobList, filename):
if table["name"] == "アイテム" and ITEMFLAG == True:
# Write Category
if setData:
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
file.write(f"\n#Items\n")
# Begin Translation
@ -1314,7 +1314,7 @@ def searchDB(events, pbar, jobList, filename):
# Pass 2 (Set Data)
else:
# Write to TL File
with open("translations.txt", "a", encoding="utf-8") as file:
with open("log/translations.txt", "a", encoding="utf-8") as file:
file.write(f"{jaString} ({itemList[0][0]})\n")
dataList[j].update({"value": itemList[0][0]})

View file

@ -1,13 +0,0 @@
@echo off
set /p choice=Do you want to edit the .env file? (y/n):
if /i "%choice%"=="y" (
notepad .env
echo Press enter when you are done
pause
echo Continuing...
) else (
echo Continuing without editing .env file...
)
python3 -m pip install -r requirements.txt
python3 start.py
pause

View file

@ -1,11 +0,0 @@
#!/bin/bash
read -p "Do you want to edit the .env file? (y/n): " choice
if [ "$choice" == "y" ] || [ "$choice" == "Y" ]; then
nano .env
echo "Continuing..."
else
echo "Continuing without editing .env file..."
fi
python3 -m pip install -r requirements.txt
python3 start.py