-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbbcpex_obtain.py
25 lines (22 loc) · 990 Bytes
/
bbcpex_obtain.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
'''
This script takes the PC version of
Blazblue Chronophantasma Extend and grabs the character files we need, decrypts them, and decompresses them
Change TARGET_FOLDER and place ggxrd_decrypter.exe in this folder and run this script.
https://www.reddit.com/r/Guiltygear/comments/3w7set/xrd_pc_upk_decrypter/
'''
import os, struct,zlib
import subprocess
TARGET_FOLDER = "X:\\Games\BlazBlue Continuum Shift Extend\\Data\\Char\\"
for root,dirs,files in os.walk(TARGET_FOLDER):
for filename in files:
print os.path.join(root,filename)
subprocess.call(["ggxrd_decrypter.exe",os.path.join(root,filename)],shell=True)
if os.path.isfile("input/bbcsex/"+filename):
os.remove("input/bbcsex/"+filename)
os.rename(os.path.join(root,filename)+".decrypted","input/bbcsex/"+filename)
f = open("input/bbcsex/"+filename,"r+b")
f.seek(0x10)
data = zlib.decompress(f.read())
f.seek(0)
f.write(data)
f.close()