Skip to content

Instantly share code, notes, and snippets.

// SPDX-License-Identifier: MIT
// See https://forums.nrvnqsr.com/showthread.php/9708-Mahoutsukai-no-Yoru-HD-PC-file-format-deciphering
#include <windows.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
data00000.hfa
02_01_help_en_2.cbg
02_01_help_ja_2.cbg
02_01_help_zc_2.cbg
02_01_help_zt_2.cbg
02_05_help_en_2.cbg
02_05_help_ja_2.cbg
02_05_help_zc_2.cbg
02_05_help_zt_2.cbg
03_01_help_en_2.cbg
// SPDX-License-Identifier: MIT
// This doesn't work properly in all cases. You would be better off using https://gist.github.com/Alyinghood/21bdb81d6f83114604082bd019482ae3 instead
// See https://forums.nrvnqsr.com/showthread.php/9708-Mahoutsukai-no-Yoru-HD-PC-file-format-deciphering
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
# SPDX-License-Identifier: MIT
# See https://forums.nrvnqsr.com/showthread.php/9708-Mahoutsukai-no-Yoru-HD-PC-file-format-deciphering
import io
import sys
import struct
import os
def main():
import sys
bx = b"\x8C\x11\x93\xAA\xB2\x97\xFA\xBB\xBD\xF6\x63\xA8\xA5\xE1\x70\x23"
with open(sys.argv[1], "rb") as f:
with open(sys.argv[2], "wb") as wf:
last_read_len = len(bx)
while last_read_len >= len(bx):
ba = bytearray(f.read(16))

How to extract voice files from cartridge, digital, NoNpDrm, Maidump, Vitamin, VPK, PKG, Zeus, PSARC of Zero no Kiseki Evolution

This guide assumes that you are working with the Japanese version of the game.
This guide is written so that it can be performed even if you do not know much about computers.
Following the steps in this guide will result in voice files you can use in the Geofront patch.
Please read the steps before performing them!

If you have a decrypted "data2.psarc" file, jump to section "data2.psarc".
If you have a cartridge version of the game and a Playstation Vita system with VitaShell installed, jump to section "Dumping the cartridge".