2 items

File information

Last updated

Original upload

Created by

DeathChaos

Uploaded by

DeathChaosV2

Virus scan

Safe to use

Tags for this mod

11 comments

  1. Kalaskii
    Kalaskii
    • member
    • 0 kudos
    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!

    never mind I figured it out! 
    1. Jaratii
      Jaratii
      • premium
      • 0 kudos
      god i hate people that do this
  2. ChemBoy1
    ChemBoy1
    • premium
    • 212 kudos
    Thank you for this. Pardon my ignorance, but how do you crack open the .cpk file? And are there .apk files inside of the .cpk archive?
    1. DeathChaosV2
      DeathChaosV2
      • premium
      • 23 kudos
      You can use this tool to extract the contents of CPK files, which is where all the game files are stored.
    2. ChemBoy1
      ChemBoy1
      • premium
      • 212 kudos
      Got it. Thank you!
    3. Arifin981007
      Arifin981007
      • member
      • 0 kudos
      Can you tell me how to use it?
    4. Hobbtotter
      Hobbtotter
      • supporter
      • 0 kudos
      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.
  3. Zaratos116
    Zaratos116
    • member
    • 1 kudos
    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
  4. Drogean
    Drogean
    • BANNED
    • 76 kudos
    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
    1. DeathChaosV2
      DeathChaosV2
      • premium
      • 23 kudos
      From what I've seen, its just the standard BC7 UNORM DDS format.
  5. vatch
    vatch
    • supporter
    • 1 kudos
    finnally some good shitttt