Hi! I've never done something like this before so I'm a little confused. I have the apk file, I have dotnet, and I have your pack, but I'm not sure what to do now. Thank you!
Download the zip file, extract it and run CriFsLib.GUI.exe. Drag and drop the CPK file onto the window that opened up, then right click and click extract all.
Thank you. I'm sorry, but how do you convert a .msg file to a .txt file? Okay, I wrote a python script (by wolsu team): import os def decode_binary_file(filepath, output_root): with open(filepath, 'rb') as f: binary_data = f.read() # Декодируем двоичные данные в строку с использованием кодировки UTF-8 try: decoded_text = binary_data.decode('utf-8') except UnicodeDecodeError: print(f"Ошибка декодирования файла: {filepath}") return # Определяем относительный путь файла относительно корневой папки (для сохранения структуры) relative_path = os.path.relpath(filepath, root_directory)
# Определяем путь для сохранения декодированного файла в новой директории output_filepath = os.path.join(output_root, os.path.splitext(relative_path)[0] + '_decoded.txt')
# Создаем все папки, если их нет os.makedirs(os.path.dirname(output_filepath), exist_ok=True) # Сохраняем результат в файл with open(output_filepath, 'w', encoding='utf-8') as out_file: out_file.write(decoded_text) print(f"Декодирование завершено, результат сохранён в '{output_filepath}'.") # Укажите корневую директорию, содержащую двоичные файлы root_directory = r'UNPACKS_FILE_PATH\Metaphor ReFantazio\EN' # Укажите директорию для сохранения декодированных файлов output_directory = r'SAVE_TXT_PATH' # Рекурсивно проходим по всем директориям и файлам for dirpath, dirnames, filenames in os.walk(root_directory): for filename in filenames: if filename.endswith('.msg'): # Проверяем расширение файла file_path = os.path.join(dirpath, filename) decode_binary_file(file_path, output_directory)
Replace “UNPACKS_FILE_PATH” with the path to the unpacked “EN” folder where the “.msg” files are located. Replace “SAVE_TXT_PATH” with the path where you want to save decoded files in “.txt” format
do you know what types of textures or images are in APK files? im looking through the CPK for APK files to extract and it seems like its all text and background stuff - not models or clothes in any of the "character" folders
for example i downloaded a Gallica texture mod and its pointing to COMMON\model\character\0011\ and GFS or TEX files, no DDS or anything
11 comments
never mind I figured it out!
Okay, I wrote a python script (by wolsu team):
import os
Replace “UNPACKS_FILE_PATH” with the path to the unpacked “EN” folder where the “.msg” files are located.def decode_binary_file(filepath, output_root):
with open(filepath, 'rb') as f:
binary_data = f.read()
# Декодируем двоичные данные в строку с использованием кодировки UTF-8
try:
decoded_text = binary_data.decode('utf-8')
except UnicodeDecodeError:
print(f"Ошибка декодирования файла: {filepath}")
return
# Определяем относительный путь файла относительно корневой папки (для сохранения структуры)
relative_path = os.path.relpath(filepath, root_directory)
# Определяем путь для сохранения декодированного файла в новой директории
output_filepath = os.path.join(output_root, os.path.splitext(relative_path)[0] + '_decoded.txt')
# Создаем все папки, если их нет
os.makedirs(os.path.dirname(output_filepath), exist_ok=True)
# Сохраняем результат в файл
with open(output_filepath, 'w', encoding='utf-8') as out_file:
out_file.write(decoded_text)
print(f"Декодирование завершено, результат сохранён в '{output_filepath}'.")
# Укажите корневую директорию, содержащую двоичные файлы
root_directory = r'UNPACKS_FILE_PATH\Metaphor ReFantazio\EN'
# Укажите директорию для сохранения декодированных файлов
output_directory = r'SAVE_TXT_PATH'
# Рекурсивно проходим по всем директориям и файлам
for dirpath, dirnames, filenames in os.walk(root_directory):
for filename in filenames:
if filename.endswith('.msg'): # Проверяем расширение файла
file_path = os.path.join(dirpath, filename)
decode_binary_file(file_path, output_directory)
Replace “SAVE_TXT_PATH” with the path where you want to save decoded files in “.txt” format
for example i downloaded a Gallica texture mod and its pointing to COMMON\model\character\0011\ and GFS or TEX files, no DDS or anything